mad@imap
Member
Hello All,
I have a little code in an FB that I'm trying to figure out the only problem is I don't know SCL. can someone help me and tell me what this means. and is there a book I could get that would help me understand SCL?
Here is the code.
SET
SAVE
= L 10.1
L #i_TESTED_D
T #t_DWORD1_D
L #i_TESTER_FLAGS_D
T #t_DWORD2_D
= #o_TRUE_B
L 0
T #t_SCRATCH_I
A7d0: L #t_SCRATCH_I
L 31
<=I
JCN A7d1
A #o_TRUE_B
NOT
JCN A7d2
JU A7d1
JU A7d4
A7d2: L #t_SCRATCH_I
ITD
L L#0
+D
L L#1
*D
LAR1
CLR
A L [AR1,P#4.0]
L #t_SCRATCH_I
ITD
L L#0
+D
L L#1
*D
LAR1
= L 10.2
A L [AR1,P#0.0]
NOT
A L 10.2
JCN A7d4
CLR
= #o_TRUE_B
A7d4: L #t_SCRATCH_I
L 1
+I
T #t_SCRATCH_I
JU A7d0
A7d1: CLR
A L 10.1
SAVE
BE
The name of the block is D word test if that helps. there are also 5 pins on the block EN, ENO, I_TESTED_D, I_TESTER_FLAGS_D, AND O_TRUE_B.
THANKS FOR THE HELP
MAD@IMAP
I have a little code in an FB that I'm trying to figure out the only problem is I don't know SCL. can someone help me and tell me what this means. and is there a book I could get that would help me understand SCL?
Here is the code.
SET
SAVE
= L 10.1
L #i_TESTED_D
T #t_DWORD1_D
L #i_TESTER_FLAGS_D
T #t_DWORD2_D
= #o_TRUE_B
L 0
T #t_SCRATCH_I
A7d0: L #t_SCRATCH_I
L 31
<=I
JCN A7d1
A #o_TRUE_B
NOT
JCN A7d2
JU A7d1
JU A7d4
A7d2: L #t_SCRATCH_I
ITD
L L#0
+D
L L#1
*D
LAR1
CLR
A L [AR1,P#4.0]
L #t_SCRATCH_I
ITD
L L#0
+D
L L#1
*D
LAR1
= L 10.2
A L [AR1,P#0.0]
NOT
A L 10.2
JCN A7d4
CLR
= #o_TRUE_B
A7d4: L #t_SCRATCH_I
L 1
+I
T #t_SCRATCH_I
JU A7d0
A7d1: CLR
A L 10.1
SAVE
BE
The name of the block is D word test if that helps. there are also 5 pins on the block EN, ENO, I_TESTED_D, I_TESTER_FLAGS_D, AND O_TRUE_B.
THANKS FOR THE HELP
MAD@IMAP