Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 111

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Check code instructions
■Check code
Instruction symbol
Processing details
CCD
Performs addition of the data stored in the devices specified by (s) to (s)+(n)-1 and calculate the
horizontal parity, and stores the added data in the device specified by (d) and the horizontal parity
CCDP
in the device specified by (d)+1.
Data processing instructions
■Searching 16-bit/32-bit binary data
Instruction symbol
Processing details
SERDATA
Searches the (n) points in the 16-bit binary data specified by (s2) for the 16-bit binary data specified
by (s1).
SERDATAP
(s1)
(d): Location
(d)+1: Number of matches
DSERDATA
Searches the (n) points in the 32-bit binary data specified by (s2) for the 32-bit binary data specified
by (s1).
DSERDATAP
(s1)
(d): Location
(d)+1: Number of matches
■Searching 16-bit/32-bit binary data (minimum, match, maximum)
Instruction symbol
Processing details
SERMM
Searches the (n) points in the 16-bit binary data specified by (s1) for the same data as the 16-bit
binary data specified by (s2), the minimum value, and the maximum value.
(s1)
SERMMP
DSERMM
Searches the (n) points in the 32-bit binary data specified by (s1) for the same data as the 32-bit
binary data specified by (s2), the minimum value, and the maximum value.
(s1)
DSERMMP
■Checking 16-bit/32-bit binary data
Instruction symbol
Processing details
SUM
Stores the total number of "1" bits in the 16-bit binary data stored in the specified device.
SUMP
b15
(d): Number of 1s
DSUM
Stores the total number of "1" bits in the 32-bit binary data stored in the specified device.
DSUMP
(s)+1
(d): Number of 1s
(s2)
(n)
(d)
(d)+1
32 bit
(s2)
(n)
(d)
(d)+1
(s2)
(n)
(d)
to
(d)+4
(s2)
(n)
[(d)+1, (d)]
to
[(d)+9, (d)+8]
(s)
b0
···
(d)
(s)
(d)
Reference
Page 903 CCD(P)
Reference
Page 906 SERDATA(P)
Page 908
DSERDATA(P)
Reference
Page 910 SERMM(P)
Page 912 DSERMM(P)
Reference
Page 914 SUM(P)
Page 916 DSUM(P)
2 CPU MODULE INSTRUCTIONS
2.3 Application Instructions
2
109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents