3/20/2017 11:06 AM | |
Joined: 11/16/2012 Last visit: 3/10/2024 Posts: 307 Rating: (52) |
You could convert your "102" from INT or REAL to DWORD and then assing each output with slice access. Info to slice access: https://support.industry.siemens.com/cs/ch/de/view/57374718/en Attachmentexample_bit.pdf (117 Downloads) |
Last edited by: MicTsc at: 3/20/2017 11:17:29 AM |
|
This contribution was helpful to1 thankful Users |
3/20/2017 11:18 AM | |
Joined: 11/16/2012 Last visit: 3/10/2024 Posts: 307 Rating: (52) |
An other example with byte slice access..
Attachmentexample_byte.pdf (119 Downloads) |
This contribution was helpful to1 thankful Users |
3/21/2017 10:23 PM | |
Joined: 3/23/2012 Last visit: 2/7/2024 Posts: 23 Rating: (0) |
I tried the program from MicTsc but but the PLC wont react at all. Do I have a mistake in it or do I mis something? AttachmentOB.pdf (78 Downloads) |
3/22/2017 10:57 AM | |
Joined: 11/16/2012 Last visit: 3/10/2024 Posts: 307 Rating: (52) |
Oh sorry, that was my fault. You have to start with Byte 3 in your DWORD. |
3/28/2017 9:38 AM | |
Joined: 11/16/2012 Last visit: 3/10/2024 Posts: 307 Rating: (52) |
Okay, I have created an example project with four examples. The first two examples convert an INT value to a byte value and set it to outputs Q0.0 - Q0.7 if you work with 8 bits. The two other examples convert an INT value to a WORD value and set it to outputs Q0.0 - Q0.7 and Q1.0 if you work with 9 bits. The project was created with TIA V13 SP1 Update9. You can test it with PLCSIM, either with HMI or with watch table. AttachmentProject1.zip (52 Downloads) |
Last edited by: Min_Moderator at: 3/28/2017 3:27:46 PMUpload attachment |
|