6. Explanation of Commands
- 32 -
(8) Data processing commands
Class
Process
unit
Command
sign
Symbol Process details
No.
of
step
Page
Search
16-bit
SER
SER S1 S2 D
(S1)
(S2)
(D) :Match No.
(D
+
1) :Number of match
data pieces
n
6
174
Number of
bits set to 1
16-bit
SUM
SUM
SD
b0
b15
(S)
Number of bits
set to 1.
4
176
2
n
-bit
DECO
DECO S D n
(
D
)
Decode
256 decode
(S)
n
2
n
bits
8
5
178
Decode
16-bit
SEG
SEG
SD
b3 b0
(
S
)
(
D
)
7SEG
3
180
Average
value
16-bit
S.AVE
S.AVE S D n
16-bit data average value
1
n
Σ
(
S+i
)
(
D
)
n
i=1
5
182
(9) Other function commands
Class
Process
unit
Command
sign
Symbol
Process details
No.
of
step
Page
Carry flag
set
—
S.STC
S.STC
Carry flag contact (SM12) is turned on. 1 184
Carry flag
reset
—
S.CLC
S.CLC
Carry flag contact (SM12) is turned off.
1
184
LDBIT
(<=)
BIT
S1 n
Bit test (A contact operation start handling)
(Note)
2 186
ANDBIT
(<=)
BIT
S1 n
Bit test (A contact series connection
handling)
(Note)
2 186
ORBIT
(<=)
BIT
S1 n
Bit test (A contact parallel connection
handling)
(Note)
2 186
LDBII
(< >)
BII
S1 n
Bit test (B contact operation start handling)
(Note)
2 188
ANDBII
(< >)
BII
S1 n
Bit test (B contact series connection
handling)
(Note)
2 188
BIT 1-bit
ORBII
(< >)
BII
S1 n
Bit test (B contact parallel connection
handling)
(Note)
2 188
(Note) The comparison operation commands are alternatively used for the MELSEC PLC development tool
(GX Developer).