Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 81

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

■Adding 16-bit data
Instruction symbol
Description
WSUM
These instructions add the (n) points of 16-bit binary data in the device starting from the one
specified by (s), and store the result in the device specified by (d).
WSUM_U
WSUMP
WSUMP_U
■Adding 32-bit data
Instruction symbol
Description
DWSUM
These instructions add the (n) points of 32-bit binary data in the device starting from the one
specified by (s), and store the result in the device specified by (d).
DWSUM_U
DWSUMP
DWSUMP_U
■Calculating the mean value of 16-bit/32-bit data
Instruction symbol
Description
MEAN
These instructions calculate the mean value of (n) points (16-bit binary data) in the devices starting
from the one specified by (s), and store the result in the device specified by (d).
MEANP
MEAN_U
MEANP_U
DMEAN
These instructions calculate the mean value of (n) points (32-bit binary data) in the devices starting
from the one specified by (s), and store the result in the device specified by (d).
DMEANP
DMEAN_U
DMEANP_U
■Calculating the square root of 16-bit/32-bit data
Instruction symbol
Description
SQRT
SQRTP
DSQRT
DSQRTP
■CRC calculation
Instruction symbol
Description
CRC
This instruction generates a CRC value for (n) 8-bit data (unit: byte) starting from the device
specified by (s), and stores the CRC value to (d).
CRCP
Indirect address read instruction
■Reading the indirect address
Instruction symbol
Description
ADRSET
(s)
(1)
ADRSETP
(2)
(1): Indirect address of the specified device
(2): Device name
(s)
 (d)
(s)+1,(s)
 (d)+1,(d)
(d)
Reference
Page 673
Reference
Page 674
Reference
Page 676
Page 678
Reference
Page 680
Page 681
Reference
Page 682
Reference
Page 684
3 CPU MODULE INSTRUCTION
3.3 Application Instruction
3
79

Hide quick links:

Advertisement

loading