Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-126
Item number FUN instructions-3 Name I/O refresh (Input/output)
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
FUN 81 (s) DER ERR SD V C
* (IOREF (s))
zzzz
Instruction format Number of steps
244
Condition Steps
FUN 81 (s) 3
* (IOREF (s))
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
sType {
Function
s Input type H00: Input refresh
H01: Output refresh
Depending on the I/O type of the area specified by s, refresh is performed with respect to I/O modules only, output modules
only.
Refresh is performed by each slot assignment according to the I/O assignment.
If the refresh processing is completed normally, DER is set to '0.'
* ( ) indicates the display when the Ladder Editor is used.
Notes
If the I/O type is other than H00 or H01, DER is set to “1” and no processing will be performed.
If the argument s exceeds the maximum I/O number, DER is set to “1” and no processing will be performed.
Program example
R000
LD R000
AND DIF0
[
WR0004 = 0
FUN 81 (WR0004)
]
LD R001
AND DIF1
[
WR0004 = 1
FUN 81 (WR0004)
]
R001
DIF1
WR0004 = 0
FUN 81 (WR0004 )
DIF0
WR0004 = 1
FUN 81 (WR0004 )
Program description
Upon leading of R000, the input module is refreshed.
Upon leading of R001, the output module is refreshed.
FUN 81 (s)