High-Speed Timer; Counter - 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.1.3 High-speed timer

When the coil of the timer (high-speed timer, high-speed retentive timer) turns ON, the timer calculates 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

5.1.4 Counter

COUNTER_M
The present value (count value) of the counter is incremented by 1, and when the counter counts up (present
value = set value), the contact is put in the following status.
N/O contact: Conduction N/C contact: Non-conduction
Function definition
5 - 5
TIMER_H_M
BOOL TIMER_H_M (BOOL EN, BOOL TCoil, ANY16 TValue);
Argument Name
EN
TCoil
TValue
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
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( TValue), the
(* contact is put in the following status.
(* N/O contact: Conduction N/C contact: Non-conduction
TIMER_H_M (X0, TC0, TValue);
Corresponding MELSEC command
OUTH T (High-speed timer)
BOOL COUNTER_M (BOOL EN, BOOL CCoil, ANY16 CValue);
Argument Name
EN
CCoil
CValue
Remarks: When a constant is specified for the counter set value, only a decimal
number can be specified.
The timer set value can be specified within the range 0 to 32767.
Return Value
Execution condition
BOOL
Example of use
(* After execution condition X0 has turned ON, the present value (count value) is *)
(* incremented by 1 when CC0 changes from OFF to ON, and when the counter *)
(* counts up (present value = CValue), the contact is put in the following status. *)
(* N/O contact: Conduction N/C contact: Non-conduction
COUNTER_M (X0, CC0, CValue);
Corresponding MELSEC command
OUT C (Counter)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
TS, TC device or STS, STC device (bit data)
IN
Timer set value (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only
IN
when the result is TRUE)
CS, CC device number (bit data)
IN
Counter set value (BIN 16-bit data)
IN
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents