SmartAXIS Touch User's Manual 12-19
2 Ladder Program
12
Control Function
TCCST
Timer/Counter Current Value Store
When input is on, 16- or 32-bit data designated by S1 is
read out and stored to the current value of device
designated by D1.
S1 → D1
YES
CMP=
Compare Equal To
When input is on, 16- or 32-bit data designated by
source devices S1 and S2 are compared. When S1 data is
equal to S2 data, destination device D1 is turned on.
When the condition is not met, D1 is turned off.
YES
Data type W or I: S1 = S2 → D1 on
Data type D, L, or F: S1·S1+1 = S2·S2+1 → D1 on
CMP<>
Compare Unequal To
When input is on, 16- or 32-bit data designated by
source devices S1 and S2 are compared. When S1 data is
not equal to S2 data, destination device D1 is turned on.
When the condition is not met, D1 is turned off.
YES
Data type W or I: S1 S2 → D1 on
Data type D, L, or F: S1·S1+1 S2·S2+1→ D1 on
CMP<
Compare Less Than
When input is on, 16- or 32-bit data designated by
source devices S1 and S2 are compared. When S1 data is
less than S2 data, destination device D1 is turned on.
When the condition is not met, D1 is turned off.
YES
Data type W or I: S1 < S2 → D1 on
Data type D, L, or F: S1·S1+1 < S2·S2+1 → D1 on
CMP>
Compare Greater Than
When input is on, 16- or 32-bit data designated by
source devices S1 and S2 are compared. When S1 data is
greater than S2 data, destination device D1 is turned on.
When the condition is not met, D1 is turned off.
YES
Data type W or I: S1 > S2 → D1 on
Data type D, L, or F: S1·S1+1 > S2·S2+1 → D1 on
CMP<=
Compare Less Than or Equal To
When input is on, 16- or 32-bit data designated by
source devices S1 and S2 are compared. When S1 data is
less than or equal to S2 data, destination device D1 is
turned on. When the condition is not met, D1 is turned
off.
YES
Data type W or I: S1 S2 → D1 on
Data type D, L, or F: S1·S1+1 S2·S2+1 → D1 on
CMP>=
Compare Greater Than or Equal To
When input is on, 16- or 32-bit data designated by source
devices S1 and S2 are compared. When S1 data is greater
than or equal to S2 data, destination device D1 is turned
on. When the condition is not met, D1 is turned off.
YES
Data type W or I: S1 S2 → D1 on
Data type D, L, or F: S1·S1+1 S2·S2+
1 → D1 on
ICMP>=
Interval Compare Greater Than or Equal To
When input is on, the 16- or 32-bit data designated by
S1, S2, and S3 are compared. When the condition is met,
destination device D1 is turned on. When the condition is
not met, D1 is turned off.
YES
Data type W or I: S1 S2 S3 → D1 on
Data type D, L, or F:
S1·S1+1 S2·S2+1 S3·S3+1 → D1 on
LC=
Load Compare Equal To
This instruction constantly compares 16- or 32- bit data
designated by S1 and S2. When S1 data is equal to S2
data, the output to the following instructions is turned on.
When the condition is not met, the output is turned off.
YES
Data type W or I: S1 = S2
Data type D, L, or F: S1·S1+1 = S2·S2+1
Symbol Name and Diagram Function
Interrupt
Program
Execution
REP
**
D1(R)
*****
S1(R)
*****
TCCST(*)
REP
**
D1(R)
*****
S2(R)
*****
CMP=(*)
AND/OR
S1(R)
*****
REP
**
D1(R)
*****
S2(R)
*****
CMP
<>
(*)
AND/OR
S1(R)
*****
REP
**
D1(R)
*****
S2(R)
*****
CMP<(*)
AND/OR
S1(R)
*****
REP
**
D1(R)
*****
S2(R)
*****
CMP>(*)
AND/OR
S1(R)
*****
REP
**
D1(R)
*****
S2(R)
*****
CMP<=(*)
AND/OR
S1(R)
*****
REP
**
D1(R)
*****
S2(R)
*****
CMP>=(*)
AND/OR
S1(R)
*****
D1
*****
S2
*****
ICMP>=(*) S1
*****
S3
*****