Bit Check Of 32-Bit Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Bit check of 32-bit data

DSUM(P)
These instructions store the total bits of 1 in the binary 32-bit data of the device specified by (s) to the device specified by (d).
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device number that counts the total bits of 1
(d)
Head device number storing the total bits
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions store the total bits of 1 in the binary 32-bit data of the device specified by (s) to the device specified by
(d).
(s)+1
b31
1 0 0
1
1
1 0 0 1
0
1
0 0 1 1 1
b15
(d)
0 0 0
0
• When all binary 32-bit data of the device specified by (s) are 0 (off), the zero flag M8020 turns on.
Precautions
While the command input is off, the instruction is not executed. The output of the number of bits in the on status is latched in
the previous status.
Operation error
There is no operation error.
7 APPLICATION INSTRUCTION
552
7.17 Data operation instruction
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
(s)
b16
b15
0 0 0
1
0
0 0 0 1
1
1
Total of 1
b8b7
b0
0
0 0 0 0
0
0
1 0 0 0 0
Structured text
ENO:=DSUM(EN,s,d);
ENO:=DSUMP(EN,s,d);
Range
Double word Indirect
U\G
Z
LC
The total of 1 is stored in the binary data. (In the example shown on the left, the
b0
total is 16.)
1 0 1 1 0
Data type
Data type (label)
32-bit signed binary
ANY32
16-bit signed binary
ANY16
Constant
specification
LZ
K, H
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents