Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-15
Item number Basic instructions-3, 4 Name Contact serial connection (AND, ANI)
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
DER ERR SD V C
n
n
zzzzz
Instruction format Number of steps
0.8
AND n
Condition Steps
ANI n
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
n I/O number {{{ {
Function
n
AND n
Obtains AND of the previous operation result and the a-contact operation.
n
ANI n
Obtains AND of the previous operation result and the b-contact operation.
Notes
Edge detection (DIF, DFN) cannot be used in respect to ANI.
Pay close attention if the external output is to be monitored when counter input (coincidence output), PWM output, or pulse
output is set with the PI/O function.
R0
WR0 = WR0 + 1
Y100 DIF1
Y100 will not change when monitored. It will remain the same value previously set using functions such as
set/reset.
For example, if Y100 is off, the Y100 status will not change while being monitored and WRO will also remain unchanged.
Program example
X00002
X00003
Y00100
Y00101
LD
AND
OUT
LD
ANI
OUT
X00002
R010
Y00100
X00003
R011
Y00101
R011
R010
Program description
When input X00002 and R010 are both on, output Y00100 is on and all others are off.
When input X00003 is on and R011 is off, output Y00101 is on and all others are off.
AND n
ANI n