Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 112

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

Advertisement

■Checking the bit status in 16-bit/32-bit binary data
Instruction symbol
BON
BONP
DBON
DBONP
■Searching for the maximum value of 16-bit/32-bit binary data
Instruction symbol
MAX
MAXP
MAX_U
MAXP_U
DMAX
DMAXP
DMAX_U
DMAXP_U
■Searching for the minimum value of 16-bit/32-bit binary data
Instruction symbol
MIN
MINP
MIN_U
MINP_U
DMIN
DMINP
DMIN_U
DMINP_U
■Sorting 16-bit/32-bit binary data
Instruction symbol
SORTD
SORTD_U
DSORTD
DSORTD_U
■Adding 16-bit binary data
Instruction symbol
WSUM
WSUM_U
WSUMP
WSUMP_U
■Adding 32-bit binary data
Instruction symbol
DWSUM
DWSUM_U
DWSUMP
DWSUMP_U
2 CPU MODULE INSTRUCTIONS
110
2.3 Application Instructions
Processing details
Checks whether (n) bit(s) of the specified device are on or off, and stores the result in the device
specified by (d).
Checks whether (n) bit(s) of the specified device are on or off, and stores the result in the device
specified by (d).
Processing details
Searches the (n) points of data in the device specified by (s) in units of 16 bits, and stores the
maximum value in the device specified by (d).
Searches the (n) points of data in the device specified by (s) in units of 32 bits, and stores the
maximum value in the device specified by (d).
Processing details
Searches the (n) points of data in the device specified by (s) in units of 16 bits, and stores the
minimum value in the device specified by (d).
Searches the (n) points of data in the device specified by (s) in units of 32 bits, and stores the
minimum value in the device specified by (d).
Processing details
Sorts the (n) points of data in the device specified by (s) in units of 16 bits.
("(n)((n)-1)2" scanning required)
Sorts the (n) points of data in the device specified by (s) in units of 32 bits.
("(n)((n)-1)2" scanning required)
Processing details
Adds the (n) points of 16-bit binary data in the device starting from the one specified by (s), and
stores the result in the device specified by (d).
Processing details
Adds the (n) points of 32-bit binary data in the device starting from the one specified by (s), and
stores the result in the device specified by (d).
Reference
Page 918 BON(P)
Page 920 DBON(P)
Reference
Page 922 MAX(P)(_U)
Page 924
DMAX(P)(_U)
Reference
Page 926 MIN(P)(_U)
Page 928 DMIN(P)(_U)
Reference
Page 930 SORTD(_U)
Page 932
DSORTD(_U)
Reference
Page 934
WSUM(P)(_U)
Reference
Page 936
DWSUM(P)(_U)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents