Programming language, User's manual – Toshiba T2N User Manual
Page 250
User's manual
237
5. Programming Language
(A) TCMP (n) (B)
→
(C)
(A) > (B)
(A) > = (B)
(A) = (B)
(A) < > (B)
(A) < (B)
(A) < = (B)
(A) +1·(A) D> (B)+1·(B)
(A) +1·(A) D>= (B)+1·(B)
(A) +1·(A) D= (B) +1·(B)
(A) +1·(A) D< > (B)+1·(B)
(A) +1·(A) D< (B)+1·(B)
(A) +1·(A) D< = (B)+1·(B)
Ladder Diagram Instructions (Function Instructions)
Group
FUN
No.
Name
Representation
Summary
Number of
steps
required
Execution
time
required
(
µ
s)
Remarks
Compare
95
Bit file comparison
Compares the register tables starting from (A) and
(B), and stores the non-matching bits in (C).
3~5
✻
96
Greater than
Turns output ON if (A) > (B) (integer comparison).
3~5
61
97
Greater than or equal to
Turns output ON if (A)
≥
(B) (integer comparison).
3~5
60
98
Equal to
Turn output ON if (A) = (B) (integer comparison).
3~5
60
99
Not equal to
Turns output ON if (A)
≠
(B) (integer comparison).
3~5
60
100
Smaller than
Turns output ON if (A) < (B) (integer comparison).
3~5
61
101
Smaller than or equal to
Turns output ON if (A)
≤
(B) (integer comparison).
3~5
61
102
Double-length greater than
Turns output ON if (A)+1 and (A) > (B)+1•(B)
(double- length integer comparison).
3~7
89
103
Double-length greater than
or equal to
Turns output ON if (A)+1 and (A)
≥
(B)+1•(B)
(double- length integer comparison).
3~7
88
104
Double-length equal to
Turns output ON if (A)+1 and (A) = (B)+1•(B)
(double- length integer comparison).
3~7
83
105
Double-length not equal to
Turns output ON if (A)+1 and (A)
≠
(B)+1•(B)
(double- length integer comparison).
3~7
83
106
Double-length smaller than
Turns output ON if (A)+1 and (A) < (B)+1•(B)
(double- length integer comparison).
3~7
89
107
Double-length smaller than
or equal to
Turns output ON if (A)+1 and (A)
≤
(B)+1•(B)
(double- length integer comparison).
3~7
89