Up/Down Counter - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Up/Down counter

CTUD(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
CTUD_E
EN
ENO
s1
d1
s2
d2
s3
d3
s4
n
The following function(s) can go in the dotted squares.
CTUD, CTUD_E
■Argument
Input/output
Name
argument
Input argument
EN
s1(CU)
s2(CD)
s3(RESET)
s4(LOAD)
n(PV)
Output argument
ENO
d1(QU)
d2(QD)
d3(CV)
Processing details
■Operation processing
• Counts up (+1) (D3) when (s1) is turned ON, and counts down (-1) (D3) when (s2) is turned ON. n sets the maximum value
of counter.
(d2) turns ON when (D3) reaches 0.
(d1) turns ON when (D3) reaches the maximum value n.
Resets (D3) when (s3) turns ON.
The value of n is set to (D3) when (s4) is turned ON.
• Valid setting range for n is -32768 to 32767. However, if 0 or less is set, (d1), (d2) are turned on regardless of the count
value of (D3).
LCPU
ST
(EN, s1, s2, s3, s4, n,
CTUD_E
ENO, d1, d2, d3);
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Count-up signal input
Count-down signal input
Count-up reset
Count-down reset
Maximum count value
Execution result (TRUE: Normal, FALSE: Error or
stop)
Count-up match output
Count-down match output
Current count value
Data type
Bit
Bit
Bit
Bit
Bit
Word (signed)
Bit
Bit
Bit
Word (signed)
5 APPLICATION FUNCTIONS
5.11 Standard Counter Function Blocks
5
185

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents