Down Counter - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

36.2

Down Counter

CTD(_E)
RnPCPU
RnCPU RnENCPU
(Process)
These function blocks count down the number of rising edges of a signal.
Ladder, FBD/LD
[Without EN/ENO]
s1
d1
s2
d2
n
Setting data
■Description, type, data type
Argument
EN
s1(CD)
s2 (LD)
n (PV)
ENO
d1 (Q)
d2 (CV)
Processing details
■Operation processing
1.
Counting down
• When (s1) changes from off to on, the value in (d2) is counted down by one.
• When (d2) is 0, (d1) turns on and the counting stops.
• Set the start count value to (n). When (s2) turns on, (d1) turns off and (n) is set to (d2).
2.
Start count value
The valid setting range of (n) is 0 to 32767.
36 COUNTER/TIMER FUNCTION BLOCKS
1982
36.2 Down Counter
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
[With EN/ENO]
EN
ENO
s1
d1
s2
d2
n
Description
Execution condition (TRUE: Executed, FALSE: Not executed)
Count signal input
Count value set
Start count value
Output status (TRUE: Normal, FALSE: Abnormal or operation stop)
End of count
Count value
Structured text
[Without EN/ENO]
Instance name(CD:=s1,LD:=s2,PV:=n,Q:=d1,CV:=d2);
[With EN/ENO]
Instance name(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

Table of Contents
loading

Table of Contents