uptown47
Lifetime Supporting Member
Hi all
I'm currently converting an S5 program to S7. I've come across the following code and I have a few questions that I thought you may be able to help me out with.
The code is:
Questions...
1) Does the "DO" function get executed regardless because there isn't an A T 16 after the timer which I would have expected? In other words, is the timer (T 16) nothing to do with the "DO" instruction.
2) The 'DO' instruction is accessing F [FW 32] as I understand it. How can that work? If FW 32 is equal to 50. Does that mean that the code reads..
A F 50.0
= F 20.3
??
If FW 32 was equal to 52 would the code read:
A F 50.2
= F 20.3
??
Can anyone shed any light on this?
Many thanks
I'm currently converting an S5 program to S7. I've come across the following code and I have a few questions that I thought you may be able to help me out with.
The code is:
A F 20.3
L KT 010.1
SD T 16
DO FW 32
A F 0.0
= F 20.3
AN F 20.3
JC=M001
L FY 34
T FY 30
Questions...
1) Does the "DO" function get executed regardless because there isn't an A T 16 after the timer which I would have expected? In other words, is the timer (T 16) nothing to do with the "DO" instruction.
2) The 'DO' instruction is accessing F [FW 32] as I understand it. How can that work? If FW 32 is equal to 50. Does that mean that the code reads..
A F 50.0
= F 20.3
??
If FW 32 was equal to 52 would the code read:
A F 50.2
= F 20.3
??
Can anyone shed any light on this?
Many thanks