Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 832

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

Advertisement

Processing details
• These instructions calculate the square root of the BCD 8-digit data specified by (s), and store the operation result in the
device specified by (d).
(
(s)+1
(s)
(s)+1, (s): 2-word data
(d): Integral part
(d)+1: Decimal part
• The value to be specified in (s) is a BCD value with a maximum of 8 digits (0 to 99999999).
• A BCD value from 0 to 9999.9999 is stored as the operation result in the device specified by (d).
• The operation result is a value whose 5th decimal place is rounded down.
Operation error
Error code
Description
(SD0)
3405H
The data in the device specified by (s) is not a BCD value.
7 APPLICATION INSTRUCTIONS
830
7.9 Real Number Instructions
(d)
(d)+1
) =
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents