Ctd(_E) - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
6.4

CTD(_E)

Outline
This function block counts down the number of times of rising of a signal.
1. Format
Function name
CTD
CTD_E
*1.
Refer to caution points.
2. Set data
Variable
EN
CD
Input
variable
LOAD
PV
ENO
Output
Q
variable
CV
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function block counts down (subtracts "1" from) the value stored in a device specified in
device specified in
The value
n
This function block turns ON a device specified in
When a device specified in
the initial value for subtraction specified in
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) Expression of function blocks in each language
*1.
Set the instance when using a function block.
Describe the instance name when programming a function block.
212
FX
3U(C)
Structured ladder
Instance name
CTD
M0
CD
M10
LOAD
D0
PV
Instance name
X000
CTD_E
EN
ENO
M0
CD
M10
LOAD
D0
PV
Execution condition
Count source signal
(
)
s1
Reset input signal
(
)
s2
Counter set value
(
)
n
Execution status
Output signal (which turns ON when the current counter value
(
)
d1
becomes "0" or less)
Number of times of rising
(
)
d2
turns ON.
s1
specifies the initial value for subtraction.
turns ON, this function block turns OFF a device specified in
s2
FX
FX
FX
3G
2N(C)
Expression in each language
CTD(CD,LOAD,PV); *1
Example:
Instance name(CD:=M0,
Q
M20
LOAD=M10, PV=D0);
CV
D10
M20:=Instance name.Q;
D10:=Instance name.CV;
CTD_E(EN,CD,LOAD,PV); *1
Example:
Instance name(EN=X000,
CD:=M0, LOAD=M10, PV=D0);
Q
M20
M20:=Instance name.Q;
CV
D10
D10:=Instance name.CV;
Description
when the count value becomes "0".
d1
to the count value of a device specified in
n
6 Standard Function Blocks
FX
FX
/FX
1N(C)
1S
U
2C
ST
Bit
Bit
Bit
Word [signed]
Bit
Bit
Word [signed]
6.4 CTD(_E)
FX
FX
0N
0(S)
Data type
when a
d2
, and sets
d1
.
d2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents