Hitachi HIDIC MICRO-EH Applications Manual page 182

Table of Contents

Advertisement

Item number
FUN instructions-8
Ladder format
FUN 143 (s)
Instruction format
FUN 143 (s)
Usable I/O
Argument (counter
s
number)
Argument
s+1
(Replacement value
storage area)
Function
15
S
Counter number
S + 1
Replacement value storage area
The counter value of the specified counter number will be replaced by the data stored in the replacement value storage area.
Notes
If a value other than H01 to H04 is specified for the counter number, DER will be set to "1" and no processing will be
performed.
If the specified counter number is set to a function other than a corresponding external I/O counter (single-phase counter,
two-phase counter), DER will be set to "1"and no processing will be performed.
Since Counter 4 is invalid when a 10-point CPU is used, if Counter 4 is specified, DER will be set to "1" and no processing
will be performed.
If the specified counter number is unable to make an output (PI/O function setting result by R7F5), DER will be set to "1"
and no processing will be performed.
This instruction is only used to rewrite the count value. Other counter settings will not be changed and will not affect the
count operation.
If the range for S exceeds the valid range of the I/O, DER will be set to "1" and no processing will be performed.
Program example
R3
DIF3
Program description
Rewrite the count value of the counter No. 1 to 1000.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
8 7
0
* *
WR30 = H0100
WR31 = 1000
FUN 143 (WR30)
5-132
Chapter 5 Instruction Specifications
High-speed Counter Current Value Replacement
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
175
Steps
3
Word
Double word
WR,
DR,
WM TC DX DY
DM
Counter number:
H01 to H04
**:
Disable area
LD
R3
AND DIF3
[
WR30 = H100
WR31 = 1000
FUN
143 (WR30)
]
Remark
Other

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents