
850
26 COUNTER FUNCTION BLOCKS
26.2 Down Counter
26.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
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
Count signal input
Input variable
BOOL
s2
Count value set
Input variable
BOOL
n
Count start value
Input variable
INT
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d1
Count end
Output variable
BOOL
d2
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 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......