Ctud(_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.5

CTUD(_E)

Outline
This function block counts up/down the number of times of rising of a signal.
1. Format
Function name
CTUD
CTUD_E
*1.
Refer to caution points.
2. Set data
Variable
EN
CU
CD
Input
variable
RESET (
LOAD
PV
ENO
QU
Output
variable
QD
CV
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function block counts up (adds "1" to) the value stored in a device specified in
specified in
s1
This function block counts down (subtracts "1" from) the value stored in a device specified in
device specified in
specifies the maximum value of the counter.
n
When the value stored in a device specified in
specified in
d1
When the value stored in a device specified in
214
FX
3U(C)
Expression in each language
Structured ladder
Instance name
CTUD
M0
CU
QU
M10
CD
QD
M20
RESET
CV
M30
LOAD
D0
PV
Instance name
CTUD_E
X000
EN
ENO
M0
CU
QU
M10
CD
QD
M20
RESET
CV
M30
LOAD
D0
PV
Execution condition
Count up signal
(
)
s1
Count down signal
(
)
s2
Reset input signal
)
s3
Resetting signal
(
)
s4
Counter set value
(
)
n
Execution status
Count-up output signal
(
)
d1
Output signal (which turns ON when the current counter value
(
)
d2
becomes "0" or less)
Count value data
(
)
d3
turns ON.
turns ON.
s2
turns ON.
FX
FX
FX
3G
2N(C)
1N(C)
CTUD(CU,CD,RESET,LOAD,PV);
*1
Example:
M40
Instance name(CU:=M0,
CD:=M10,RESET:=M20,LOAD:=
M50
M30,PV:=D0);
D10
M40:=Instance name.QU;
M50:=Instance name.QD;
D10:=Instance name.CV;
CTUD_E(EN,CU,CD,RESET,LOA
D,PV); *1
Example:
Instance name(EN=X000,
M40
CU:=M0,CD:=M10,RESET:=M20,
M50
LOAD:=M30,PV:=D0);
D10
M40:=Instance name.QU;
M50:=Instance name.QD;
D10:=Instance name.CV;
Description
reaches the maximum value
d3
becomes "0", a device specified in
d3
6 Standard Function Blocks
6.5 CTUD(_E)
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Bit
Bit
Bit
Bit
Word [signed]
Bit
Bit
Bit
Word [signed]
when a device
d3
d3
of the counter, a device
n
turns ON.
d2
FX
0(S)
when a

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents