1060
29 COUNTER FUNCTION BLOCKS
29.2 Down Counter
29.2
Down Counter
CTD(_E)
These function blocks count down the number of times of rising of a signal.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
1.
Count down
• These function blocks count down (subtract "-1" from) the value of (d2) when (s1) turns ON from OFF.
• When the value of (d2) is 0, (d1) turns ON and the function blocks stop counting down.
• Set the count start value for (n). When (s2) is turned ON, (d1) turns OFF and (n) is set for (d2).
2.
Count start value
The effective setting range of (n) is from 0 to 32767.
Ladder diagram, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
CTD_1(CD:=s1,LD:=s2,PV:=n,Q:=d1,CV:=d2);
[With EN/ENO]
CTD_E_1(EN:=EN, ENO:=ENO CD:=s1,LD:=s2,PV:=n,Q:=d1,CV:=d2);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s1(CD)
Count signal input
Input variable
BOOL
s2(LD)
Count value set
Input variable
BOOL
n(PV)
Count start value
Input variable
INT
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d1(Q)
Count end
Output variable
BOOL
d2(CV)
Count value
Output variable
INT
s1
d1
d2
s2
n
EN
ENO
d1
d2
s1
s2
n
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......