Hitachi HIDIC MICRO-EH Applications Manual page 190

Table of Contents

Advertisement

Item number
FUN instructions-14
Ladder format
FUN 149 (s)
Instruction format
FUN 149 (s)
Usable I/O
Argument (Pulse output
s
number)
Function
15
S
Pulse output number
Starts pulse output of the specified pulse number and the output is stopped once the specified number of pulses are output.
Notes
If the pulse output number is set to a value other than H01 to H04 and the pulse output number is set to "0," DER will be set
to "1"and no processing will be performed.
If the external I/O corresponding to the pulse output number is set to a function other than pulse output, 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.
The pulse that is output with this instruction will be a pulse having a duty of 30 to 50 %. (To output a pulse having a duty
ratio of 50 %, set the value corresponding to the CPU model in the special internal output WRF06B, by referring to Section
8.1.4.)
When pulse output is commenced with this instruction, the output control flag (R7FC to R7FF) that corresponds to the pulse
output number will turn on while the pulse is output. It will turn off when the specified number of pulses have been output.
When the CPU is not operating, the pulse output continues/stops according to the setting of the special internal output
(output selection at R7DC stop).
This instruction does not have an acceleration/deceleration function.
Only pulse output stop operation can be executed for the I/O that is outputting a pulse with the acceleration/deceleration
function.
If this instruction is executed while the backup memory is being written (R7EF=1), DER will be set to "1" and no
processing will be performed.
The backup memory will not be written during pulse output. Be extremely careful when you change a program during RUN.
Program example
R9
DIF9
Program description
Prior to starting a pulse output operation, various settings required for the pulse output operation are reflected in the special
internal outputs, and the PI/O function setting flag (R7F5) is turned on while the CPU is being stopped.
For more details on the special internal output settings, see Chapter 8.
Starts the pulse output No. 1 (Y100) operation.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
0
Operation instruction
WR9 = H0101
FUN 149 (WR9)
5-140
Chapter 5 Instruction Specifications
Pulse output control
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
149
Steps
3
Word
Double word
WR,
DR,
WM TC DX DY
DM
Pulse output number: H01 to H04
Operation instruction: H00 – Stop,
H01 - Start
LD
R9
AND DIF9
[
WR9 = H101
FUN
149 ( WR9 )
]
Remark
Other

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents