Help Please
Member
Hello,
I am converting a printout of an S5 STL program to ladder. I have found alot of information on this site so far but now I am stuck. I am not familiar with how the program uses the ACCU1...ACCU2 and so on. The printout shows this...
:L IW64
:T FW60
:O F40.7
:O F41.1
:JC =L16
:SLW 1
:SRW 4
:T FW42
:
:
:L FW14
:-F
:JP =L17
:CSW
Then L17 starts
I understand the 1st 5 lines. On the 6th line the SLW shifts ACCU1 to the left 1 place. Then line 7 shifts ACCU1 to the right 4 places. Is this correct? And if you shift a word right or left is it copied left or right or cut left or right. If I understand the T instruction correctly than it should load ACCU1 into FW14 in line 8, but I am not sure what would be there as a result of this logic. Any help would be appreciated.
I am converting a printout of an S5 STL program to ladder. I have found alot of information on this site so far but now I am stuck. I am not familiar with how the program uses the ACCU1...ACCU2 and so on. The printout shows this...
:L IW64
:T FW60
:O F40.7
:O F41.1
:JC =L16
:SLW 1
:SRW 4
:T FW42
:
:
:L FW14
:-F
:JP =L17
:CSW
Then L17 starts
I understand the 1st 5 lines. On the 6th line the SLW shifts ACCU1 to the left 1 place. Then line 7 shifts ACCU1 to the right 4 places. Is this correct? And if you shift a word right or left is it copied left or right or cut left or right. If I understand the T instruction correctly than it should load ACCU1 into FW14 in line 8, but I am not sure what would be there as a result of this logic. Any help would be appreciated.