5- 91 5- 91
5 MELSEC FUNCTIONS
5.18.7 Floating-point angle radian RAD_E_MD
The unit of magnitude of the specified angle is converted from the degree unit to the radian unit.
Function definition
BOOL RAD_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
Data to be converted, angle data in degree unit (real
number data)
D
OUT
Conversion result (radian unit) (real number data)
Return Value
Description
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))
5.18.8 Floating-point radian angle conversion DEG_E_MD
The unit of magnitude of the specified angle is converted from the radian unit to the degree unit.
Function definition
BOOL DEG_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1
IN
Data to be converted, radian value data (real number data)
D
OUT
Conversion result (degree unit) (real number data)
Return Value
Description
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))
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......