Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

When reset signal Reset changes to TRUE, counter value CV changes to 0 and counter output Q
changes to FALSE. When counter input signal CU changes to TRUE, CV is incremented. When the
value of CV reaches the value of PV or higher, the value of Q changes to TRUE.
After the value of CV reaches the value of PV or higher, the value of CV does not change even if the
value of CU changes to TRUE.
CU is ignored while Reset is TRUE. CV is not incremented.
The following figure shows a CTU_LINT programming example and timing chart for a PV of LINT#5.
LD
CTU_LINT_instance
A
CU
abc
Reset
LINT#5
PV
TRUE
CU=A
FALSE
TRUE
Reset=abc
FALSE
PV=LINT#5
CV=ghi
TRUE
Q=def
FALSE
When Reset changes to TRUE,
CV is reset to 0 and Q changes to
FALSE.
Additional Information
• Use the CTD instruction (page 2-146) to create a counter that decrements the counter value each
time the counter input signal is received.
• Use the CTUD instruction (page 2-155) to create a counter that is both incremented and decre-
mented.
Precautions for Correct Use
• Change Reset to TRUE and then back to FALSE to restart a counter that has completed counting up.
• Even when PV is set to a negative value, CV is set to 0 when the value of Reset changes to TRUE.
The value of CV will be higher than the value of PV, so the value of Q changes to TRUE immediately.
After that, the value of CV is not incremented even if the value of CU changes.
• Use the same data type for PV and CV.
• The following operation is performed if the value of PV changes while the value of Reset is FALSE.
Value of PV
Larger than the current value of CV
Equal to or smaller than the current
value of CV
• If the value of CU is FALSE and the power supply is interrupted or the operating mode is changed to
PROGRAM mode, the value of CV is incremented once if the value of CU is TRUE when instruction
execution is restarted.

NY-series Instructions Reference Manual (W560)

def
CTU_LINT
Q
CV
ghi
0
CV is incremented as soon as Reset
changes to FALSE.
The count operation is continued.
The count operation is ended. The value of Q changes to TRUE. The
current value of CV is retained. It does not change.
ST
CTU_LINT_instance(A, abc, LINT#5, def, ghi);
When CV reaches PV, Q
changes to TRUE.
Meaning
2 Instruction Descriptions
2
2-153

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents