Download Print this page

Down Counter - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

29.2

Down Counter

CTD(_E)
These function blocks count down the number of times of rising of a signal.
Ladder diagram, FBD/LD
[Without EN/ENO]
s1
d1
s2
d2
n
Setting data
■Descriptions, types, and data types
Argument
EN
s1(CD)
s2(LD)
n(PV)
ENO
d1(Q)
d2(CV)
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.
29 COUNTER FUNCTION BLOCKS
1060
29.2 Down Counter
[With EN/ENO]
EN
ENO
s1
d1
s2
d2
n
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Count signal input
Count value set
Count start value
Output status (TRUE: Normal, FALSE: Abnormal)
Count end
Count value
Structured text
[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);
Type
Input variable
Input variable
Input variable
Input variable
Output variable
Output variable
Output variable
Data type
BOOL
BOOL
BOOL
INT
BOOL
BOOL
INT

Hide quick links:

Advertisement

loading