Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-113
Item number Control instructions-12 Name End interrupt scan program (RETURN INTERRUPT)
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
RTI DER ERR SD V C
zzzzz
Instruction format Number of steps
0.5
Condition Steps
RTI 1
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
Function
This instruction declares the end of an interrupt scan program.
When this program is executed, the processing is returned to the program that was executing before the interrupt scan was
performed.
Do not set a startup condition with this instruction.
Notes
This instruction is checked prior to execution, and when there is an error, the following error code is set in the special
internal output WRF001. Also, the CPU error code '34' is set to special internal output WRF000.
CPU error code Special internal output Error code Error description
H0012 RTI undefined
34 WRF001 H0021 RTI area error
H0031 RTI startup condition error
Instruction for use
INT 0
WR0000=WR0000+1
WR0000=0
R000=0
RTI
X00000
X00000
WM000
< =
WR0000
SET
R000
A 0.01s timer is created using 10 ms interval interrupt.
WM000, WR0000 and R000 are used for the set value, progress value
and timer coil, respectively.
When X00000 is off, the progress value and timer coil are cleared.
When X00000 is on, the progress value increments by 1 every 10 ms.
The timer coil is turned on upon WM000 is less than or equal to
WR0000.
RTI