Mitsubishi Electric MELSEC Q Series Programming Manual page 164

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

Advertisement

5 MELSEC FUNCTIONS
5.18.7 Floating-point angle
The unit of magnitude of the specified angle is converted from the degree unit to the radian unit.
Function definition
5.18.8 Floating-point radian
The unit of magnitude of the specified angle is converted from the radian unit to the degree unit.
Function definition
5- 91
radian
BOOL RAD_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the angle data of degree unit specified *)
(* in rData is converted into the radian unit, and the result is stored into Result.
RAD_E_MD (X0, rData, Result);
Corresponding MELSEC command
RAD (Conversion from floating-point angle to radian (Single precision))
angle conversion
BOOL DEG_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the unit of magnitude of the angle is
(* converted from the radian unit to the degree unit, and the result is stored into Result. *)
DEG_E_MD (X0, rData, Result);
Corresponding MELSEC command
DEG (Conversion from floating-point radian to angle (Single precision))
RAD_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be converted, angle data in degree unit (real
IN
number data)
OUT
Conversion result (radian unit) (real number data)
DEG_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be converted, radian value data (real number data)
OUT
Conversion result (degree unit) (real number data)
Description
Description
Description
Description
*)
*)
5- 91

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents