Johnny T
Member
Hi
I'm converting some old S5 code into S7. I've got the following code in S5:
C DB 100
DO FW 223
L DW 0
T FW 220
I want to convert this to S7. I understand that its moving a word equivalent to the value of FW 223 into FW 220 but don't know how to do this in S7. I ideally want to do it in ladder if possible.
So, basically I want something along the lines of a MOVE function that 'moves' DB100.DBW[MW223] into MW220.
Obviously this doesn't work so I wondered if anyone knows the correct and most efficient way to replicate this in S7.
Many thanks
JT ;-)
I'm converting some old S5 code into S7. I've got the following code in S5:
C DB 100
DO FW 223
L DW 0
T FW 220
I want to convert this to S7. I understand that its moving a word equivalent to the value of FW 223 into FW 220 but don't know how to do this in S7. I ideally want to do it in ladder if possible.
So, basically I want something along the lines of a MOVE function that 'moves' DB100.DBW[MW223] into MW220.
Obviously this doesn't work so I wondered if anyone knows the correct and most efficient way to replicate this in S7.
Many thanks
JT ;-)