Sequence Change; Bcd 4-Digit Square Root - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.18.13 Sequence change

The random number sequence is changed according to the specified 16-bit BIN data.
Function definition

5.18.14 BCD 4-digit square root

The square root of the specified BCD 4-digit data is operated.
Function definition
5- 94
SRND_M
BOOL SRND_M (BOOL EN, ANY16 S1);
Argument Name
EN
S1
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the random number sequence is changed *)
(* according to the 16-bit BIN data stored in the device specified in iData.
SRND_M (X0, iData);
Corresponding MELSEC command
SRND (Series updates)
BSQR_MD
BOOL BSQR_MD (BOOL EN, ANY16 S1, ANY32 D);
Argument Name
EN
S1
D
Remarks: The digits of a bit device cannot be specified in "D".
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the square root of the value specified *)
(* in iData is operated, and the result is stored into Result.
BSQR_MD (X0, iData, dData);
Corresponding MELSEC command
BSQR (BCD 4-digit square root)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Random number sequence change result (BIN 16-bit
IN
data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
BCD 4-digit data to be operated (BIN 16-bit data)
OUT
Operation result (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
5- 94

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents