8/6/2009 2:55 AM | |
Joined: 10/7/2005 Last visit: 10/11/2024 Posts: 3024 Rating: (1054) |
Hello Cherymax This way, if you want to do it unconditionally: [code]L MD50 // load MD50 value into accu1 T DB7.DBD77 // transfer accu1 to DB7.DBD77 T DB9.DBD99 // transfer accu1 to DB9.DBD99 [/code] and this way if you want to do it conditionally (e.g. only if M1.1 is "1"): [code]A M 1.1// IF M 1.1 is ON JCN JUMP //THEN:(note: could also use JNB) L MD50 // load MD50 value into accu1 T DB7.DBD77 // transfer accu1 to DB7.DBD77 T DB9.DBD99 // transfer accu1 to DB9.DBD99 JUMP: xyz // logic continues here [/code] Alternatively, do this in LAD or FBD and use the MOVE instruction I hope this helps |
Cheers |
|
This contribution was helpful to1 thankful Users |
8/6/2009 7:31 PM | |
Posts: 12 Rating: (0) |
It's a S7-300 315-2DP... |
8/6/2009 8:17 PM | |
Posts: 8946 Rating: (999) |
"T DB7.DBD77" is not possible at S5. |
Follow us on