Hitachi HIDIC MICRO-EH Applications Manual page 185

Table of Contents

Advertisement

Item number
FUN instructions-11
Ladder format
FUN 146 (s)
Instruction format
FUN 146 (s)
Usable I/O
Argument (counter
s
number, preset
specification)
Argument
s+1
(on-preset value)
Argument
s+2
(off-preset value)
Function
15
S
Counter number
S + 1
On-preset specification
S + 2
Off-preset specification
The on-preset value and off-preset value will be set according to the preset specifications for the specified counter number.
The coincidence output value will remain unchanged even when coincidence output is possible.
Notes
If a value other than H01 to H04 is specified for the counter number and a value other than H00 to H02 is set for the preset
specification, 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 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.
The specified preset value will be checked using the criteria shown below. If an error occurs, DER will be set to "1" and no
processing will be performed.
If there is no error, the bit respective to the setting error detail information WRF057 will be set to "0" and releases the
operation disabled status.
1] When the preset specification is 00H
If S+1 (on-preset) and S+2 (off-preset) values are equal, and error is generated.
2] When the preset specification is 01H
If S+1 (on-preset) and the off-preset value of WRF076 to WRF079 are equal, an error is generated.
3] When the preset specification is 02H
If S+2 (on-preset) and the off-preset value of WRF072 to WRF075 are equal, an error is generated.
This instruction is used only to set the on-preset value and off-preset value. Other counter settings will not be changed and it
will not affect the count operation.
The settings made using the instruction will be reflected in the special internal output (WRF072 to WRF075 and WRF076 to
WRF078). However, it is not reflected if DER becomes equal to "1."
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.
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
Preset specification
5-135
Chapter 5 Instruction Specifications
High-speed counter preset
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
162
Steps
3
Word
Double word
WR,
DR,
WM TC DX DY
DM
Counter number:
H01 to H04
Preset specification:
H00 – Specification of on-preset
H01 – Specification of on-preset
H02 – Specification of off-preset
Remark
Other
value and off-preset value
value only
value only

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents