6 Standard Function Blocks
6.11 TIMER_CONT_FB_M
226
FXCPU Structured Programming Manual
(Application Functions)
6.11
TIMER_CONT_FB_M
Outline
This function block counts the period of time while the condition is satisfied, and generates an output when
the timer counts up the specified time.
1. Format
*1.
Refer to "Cautions".
2. Set data
Function and operation explanation
1) This is a retentive timer that counts the time when the variable is ON. It starts counting the current value
when the execution condition of the input argument Coil turns ON.
The timer starts counting from "ValueIn
×
1 to 1000 ms". When it counts up to "Preset
×
1 to 1000 ms",
the output argument Status turns ON.
The current measurement value is outputted into ValueOut.
2) The condition of measurement ValueOut and output argument ON/OFF status is maintained even if the
execution condition of the input argument Coil turns OFF.
When the execution condition of the input argument Coil turns ON, the timer resume counting from the
measurement it holds.
*1.
Var_D10 is a global label and is defined as D10.
*2.
Var_M10 is a global label and is defined as M10.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Function name
Expression in each language
Structured ladder
ST
TIMER_
CONT_FB_M
TIMER_CONT_FB_M(Coil,
Preset,ValueIn); *1
Variable
Description
Data type
Input
variable
Coil
Execution condition
Bit
Preset
Timer set value
Word [signed]
ValueIn
Initial timer value
Word [signed]
Output
variable
ValueOut
Current timer value
ANY16
Status
Timer output contact
Bit
TIMER_CONT_FB_M
Coil
ValueOut
Preset
ValueIn
Status
Instance name
ON
ON
ON
Var_M0
Var_M10
Value of Var_D10
0
15 sec
timing chart
[ ST ]
200
0
Var_D10
*1
Var_M10
*2
Var_M0
TIMER_CONT_FB_M
Coil
ValueOut
Preset
ValueIn
Status
1
150
-
151-200
5 sec
Instance name
Instance name (Coil:= Var_M0,Preset:= 10,Valueln:= 1);
Var_D10:=Instance name.ValueOut;
Var_M10:=Instance name.Status;
[Structured ladder]
Содержание 09R927
Страница 2: ......
Страница 234: ...232 FXCPU Structured Programming Manual Application Functions Revision History MEMO ...