Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-141
Item number FUN instructions-15 Name Pulse frequency output setting changes
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
FUN 150 (s) DER ERR SD V C
zzzz
Instruction format Number of steps
217
Condition Steps
FUN 150 (s) 3
Bit Word Double word
Usable I/O
XY
R,
M
TD, SS,
CU, CT WX WY
WR,
WM TC DX DY
DR,
DM
Constant
Other
s
Argument (Pulse
number)
{
s+1
Argument (Frequency
value)
{
s+2
Argument (Number of
output pulses)
{
Function
Pulse output number: H01 to H04
Change specification: H00: Sets the frequency value and
number of pulse output,
H01: Sets the frequency value
only,
H02: Sets the number of pulse
output
Frequency: 10 to 5000 (Hz)
* The maximum frequency of 5000 Hz represents the total of
all pulse output frequencies.
* If the frequency value is set to less than 10 Hz, it is
internally changed to 10 Hz. The S parameter is also
rewritten.
Number of output pulses: H0000 – HFFFF (0 to 65535)
Auto correction is executed when the value corresponding to
the CPU model is specified in WRF06B.
Caution: There will be a slight error even if correction setting
is performed.
Pulse output is commenced at the specified frequency. Output is stopped once the number of pulses specified have been
output.
Sets the frequency value in Hz.
Example: To set a frequency of 3 kHz, set 3000 (HBB8) as internal output.
Sets the count for the number of output pulses.
Example: To set output of 10,000, set 10,000 (H2710) as internal output.
S
15 0
S + 1
Frequency value
S + 2
Number of pulse output
Pulse output number Change specification
FUN 150 (s)