Hitachi HIDIC MICRO-EH Applications Manual page 82

Table of Contents

Advertisement

Item number
Basic instructions-24
Ladder format
CU n
s
Instruction format
OUT CU n s
Usable I/O
n
Counter number
s
Set value
Function
Increments the progress value by 1 each time the leading edge of the startup condition is detected, and switches on the coil
when the progress value is greater than or equal to the set value. The coil that is switched on turns off when the counter
clear CL n is switched on, and the progress value is cleared to 0.
The progress value is set in TC n and does not exceed 65535 (decimal).
If the progress value is updated while the system is running, the operation will be performed using the new progress value at
that point.
If an I/O is set for the set value, the set value can be changed during operation by changing the I/O value, since the set values
are updated during each scan.
Notes
A maximum of 256 points can be used for the timers and counters TD, SS, CU, CTU and CTD in total.
The timer numbers and counter numbers can not be overlapped.
While the counter clear CL n is on, the rise of startup condition is ignored.
Since the startup condition of the counter is edge detection, the condition for one scan can not be detected during the first
scan after RUN starts.
If the set value is set to 0, it is regarded as a coil that is always on and controlled by the CL n.
Program example
X00005
X00006
CU15
An example of a word I/O being used as the set value for the circuit shown above.
R7E3
WR0015=4
X00005
X00006
CU15
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
CU15
LD
4
OUT
CL15
LD
OUT
R105
LD
OUT
LD
R7E3
[
WR0015=4
CU15
]
WR0015
LD
X00005
CL15
OUT
CU15 WR0015
LD
X00006
OUT
CL15
R105
LD
CU15
OUT
R105
5-32
Chapter 5 Instruction Specifications
Counter (COUNTER)
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
1.4
Steps
5
Word
Double word
WR,
WM TC DX DY
X00005
CU15 4
X00006
CL15
CU15
R105
Remark
DR,
Other
DM
0 to 255 (Decimal)
1 to 65535 (Decimal)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents