6/20/2014 2:10 PM | |
Joined: 7/7/2010 Last visit: 12/11/2024 Posts: 15491 Rating: (2456)
|
Take a look at this thread - second post: /tf/WW/en/Posts/75807#top The use of the AT overlay allows you to have your structure as the IN of an FB, and the byte/word/dword as the OUT of your FB -- and the other way around too. |
science guy |
|
6/20/2014 2:24 PM | |
Posts: 5225 Rating: (1197) |
Which PLC? Which TIA version? Which TIA license? S7-300 and S7-400 also allows direct access (please indicate if that is what you need). For S7-1200 and S7-1500 you have.. * overlay with AT * slicing huggy_d1 already supplied some help on the overlay. Slicing.. MyVar as DINT You have access to this variable as.. * #MyVar.................................... x1 double * #MyVar.W0 / #MyVar.W1............x2 words * #MyVar.B0.. #MyVar.B3............. x4 bytes * #MyVar.X0.. #MyVar.31.............. x32 bits Helpful? w |
6/20/2014 2:37 PM | |
Posts: 211 Rating: (6) |
Tried, not possible. Thanks anyway! |
6/20/2014 4:23 PM | |
Posts: 211 Rating: (6) |
Works in simulator, thanks! :) |
This contribution was helpful to1 thankful Users |
Follow us on