Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 113

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

Advertisement

■Calculating the mean value of 16-bit/32-bit binary data
Instruction symbol
Processing details
MEAN
Calculates the average value of the (n) points of 16-bit data in the device starting from the one
specified by (s), and stores the average value in the device specified by (d).
MEANP
MEAN_U
MEANP_U
DMEAN
Calculates the average value of the (n) points of 32-bit data in the device starting from the one
specified by (s), and stores the average value in the device specified by (d).
DMEANP
DMEAN_U
DMEANP_U
■Calculating the square root of 16-bit/32-bit binary data
Instruction symbol
Processing details
SQRT
Performs a square root operation of the specified 16-bit binary data.
(s)(d)
SQRTP
DSQRT
Performs a square root operation of the specified 32-bit binary data.
(s)+1, (s)(d)
DSQRTP
■CRC operation
Instruction symbol
Processing details
CRC
Generates the CRC value for (n) 8-bit data (unit: byte) starting from the device specified by (s), and
store the CRC value to the device specified by (d).
CRCP
Database access instructions
■Opening the database
Instruction symbol
Processing details
DBOPEN
Connects to the database specified by (s), and makes it available.
DBOPENP
■Closing the database
Instruction symbol
Processing details
DBCLOSE
Releases the identification number specified by (s) and the allocation of the database.
DBCLOSEP
■Adding a record to the database
Instruction symbol
Processing details
DBINSERT
Adds a record to the table specified by (s2) in the database corresponding to the identification
number specified by (s1).
DBINSERTP
■Updating the record in the database
Instruction symbol
Processing details
DBUPDATE
Updates all record that meets the condition specified by (s5) in the table specified by (s2) in the
database specified by the identification number specified by (s1).
DBUPDATEP
■Searching the record in the database
Instruction symbol
Processing details
DBSELECT
Searches the records in the table specified by (s2) in the database corresponding to the
identification number specified by (s1).
DBSELECTP
■Deleting the record in the database
Instruction symbol
Processing details
DBDELETE
Deletes the record that meets the condition specified by (s3) in the table specified by (s2) in the
database corresponding to the identification number specified by (s1).
DBDELETEP
Reference
Page 938
MEAN(P)(_U)
Page 940
DMEAN(P)(_U)
Reference
Page 942 SQRT(P)
Page 943 DSQRT(P)
Reference
Page 944 CRC(P)
Reference
Page 952 DBOPEN(P)
Reference
Page 954
DBCLOSE(P)
Reference
Page 956
DBINSERT(P)
Reference
Page 962
DBUPDATE(P)
Reference
Page 968
DBSELECT(P)
Reference
Page 976
DBDELETE(P)
2 CPU MODULE INSTRUCTIONS
2.3 Application Instructions
2
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents