Hi,
I working on an an s5 95U and trying to do a small bit of indirect addressing. I have the DO instruction working fine but im struggling with a JC to load FY7 for the DO instruction. I have 3 bits F2.1, F2.2, F2.3. If F2.1 is true i want to load FY7 with 32, if F2.2 load FY7 with 33 and F2.3 FY7 =0.
I have tried using the following but am getting bogged down somewhere. Can some examine and point me where im going wrong. The cpu is stopping with cycle time overrun error.
Regards,
Barry
FB3 Name
M003: AN F2.1
AN F2.2
JC = M001
L KF +32
T FY7
M001: AN F2.1
AN F2.3
JC = M002
L KF +33
T FY7
M002: AN F2.2
AN F2.3
JC = M003
L KF +0
T FY7
I working on an an s5 95U and trying to do a small bit of indirect addressing. I have the DO instruction working fine but im struggling with a JC to load FY7 for the DO instruction. I have 3 bits F2.1, F2.2, F2.3. If F2.1 is true i want to load FY7 with 32, if F2.2 load FY7 with 33 and F2.3 FY7 =0.
I have tried using the following but am getting bogged down somewhere. Can some examine and point me where im going wrong. The cpu is stopping with cycle time overrun error.
Regards,
Barry
FB3 Name
M003: AN F2.1
AN F2.2
JC = M001
L KF +32
T FY7
M001: AN F2.1
AN F2.3
JC = M002
L KF +33
T FY7
M002: AN F2.2
AN F2.3
JC = M003
L KF +0
T FY7