Ctu(_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.3

CTU(_E)

Outline
This function block counts up the number of times of rising of a signal.
1. Format
Function name
CTU
CTU_E
*1.
Refer to caution points.
2. Set data
Variable
EN
CU
Input
variable
RESET (
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 up (adds "1" to) the value stored in a device specified in
specified in
s1
When the count value reaches a value specified in
When a device specified in
resets the count value of a device 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.
210
FX
3U(C)
Expression in each language
Structured ladder
Instance name
CTU
M0
CU
M10
RESET
CV
D0
PV
Instance name
CTU_E
X000
EN
ENO
M0
CU
M10
RESET
CV
D0
PV
Execution condition
Count source signal
(
)
s1
Reset input signal
)
s2
Counter set value
(
)
n
Execution status
Count-up output signal
(
)
d1
Number of times of rising
(
)
d2
turns ON.
turns ON, this function block turns OFF a device specified in
s2
FX
FX
FX
3G
2N(C)
1N(C)
CTU(CU,RESET,PV); *1
Example:
Instance name(CU:=M0,
Q
M20
RESET=M10, PV=D0);
D10
M20:=Instance name.Q;
D10:=Instance name.CV;
CTU_E(EN,CU,RESET,PV); *1
Example:
Instance name(EN=X000,
CU:=M0, RESET=M10, PV=D0);
Q
M20
M20:=Instance name.Q;
D10
D10:=Instance name.CV;
Description
, a device specified in
n
.
d2
6 Standard Function Blocks
6.3 CTU(_E)
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Bit
Bit
Word [signed]
Bit
Bit
Word [signed]
when a device
d2
turns ON.
d1
FX
0(S)
, and
d1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents