8/6/2009 2:55 AM | |
Joined: 10/7/2005 Last visit: 9/23/2023 Posts: 2987 Rating:
|
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 to
1 thankful Users |
8/6/2009 7:31 PM | |
Posts: 12 Rating:
|
It's a S7-300 315-2DP... |
8/6/2009 8:17 PM | |
Posts: 8946 Rating:
|
"T DB7.DBD77" is not possible at S5. |
Follow us on