Hitachi HIDIC MICRO-EH Applications Manual page 85

Table of Contents

Advertisement

Program example
X00007
X00008
X00009
CT17
An example of a word I/O being used as the set value for the circuit shown above.
R7E3
WR0017=4
X00007
X00008
X00009
CT17
Program description
[Time chart]
X00007
X00008
CL17
CT17
Set value
5
=4
4
3
2
Progress value
1
(TC17)
1]
2]
3]
6] The progress value will not exceed 65535 (decimal). Also, it will not be below 0.
7] When the counter clear (CL17) turns on, the progress value and the counter coil are cleared. The progress value is not
updated while the counter clear is on.
The clear is performed under the conditions set immediately before execution of the counter coil instruction.
Example using the word I/O as the set value
When RUN is commenced, the set value is set to word I/O.
Or, the word I/O for the set value is designated to store in the power failure memory.
CTU17
LD
4
OUT
CTD17
LD
OUT
CL17
LD
OUT
R107
LD
OUT
LD
[
WR0017=4
CTU17
]
WR0017
LD
CTD17
OUT
LD
OUT
CL17
LD
OUT
R107
LD
OUT
Ignored
65 535
65 534
5
4
4
3
3
2
4] 5]
6]
5-35
Chapter 5 Instruction Specifications
X00007
CTU17 4
X00008
CTD17
X00009
CL17
CT17
R107
R7E3
X00007
CTU17 WR0017
X00008
CTD17
X00009
CL17
CT17
R107
1] The progress value (count value) is
up-counted at the leading edge of
Ignored
X00007.
2] The counter coil (CT17) is turned on
when the progress value ≥ set value.
Ignored
3] When the up-coil and down-coil
startup conditions turn on
simultaneously, the progress value
does not change.
4] The progress value is down-counted
at the leading edge of X00008.
5] The counter coil turns off when set
value > progress value.
0
7]
6]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents