5 - 4 5 - 4
5 MELSEC FUNCTIONS
5.1 Output
5.1.1 Output to device OUT_M
The execution condition is output to the specified device.
Function definition
BOOL OUT_M (BOOL EN, BOOL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition
D OUT
Target to be turned ON/OFF
Return Value
Description
BOOL
Execution condition
Example of use
(* Execution condition X0 is output to the assigned device of bData.
*)
OUT_M (X0, bData);
Corresponding MELSEC command
OUT (Output)
5.1.2 Low-speed timer TIMER_M
When the coil of the timer (low-speed timer, low-speed retentive timer) turns ON, the timer measures up to the
set value, and when the timer times out (calculation value ( set value), the contact is put in the following status.
N/O contact: Conduction N/C contact: Non-conduction
Function definition
BOOL TIMER_M (BOOL EN, BOOL TCoil, ANY16 TValue);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only
when the result is TRUE)
TCoil IN
TS, TC device or STS, STC device (bit data)
TValue IN
Timer set value (BIN 16-bit data)
Remarks: When a constant is specified for the timer set value, only a decimal number
can be specified.
The timer set value can be specified within the range 0 to 32767.
Return Value
Description
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, TC0 turns ON and the timer calculates *)
(* up to TValue, and when the timer times out (calculation value ( set value),
*)
(* the contact is put in the following status.
*)
(* N/O contact: Conduction N/C contact: Non-conduction
*)
TIMER_M (X0, TC0, TValue);
Corresponding MELSEC command
OUT T (Low-speed timer)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......