Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-43
Item number Basic instructions-34 Name Relational box ( RELATIONAL BOX)
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
(See Function column) DER ERR SD V C Upper case: W
zzzzz26.8 40 Lower case: DW
Instruction format Number of steps
LD (s1 <= s2)
Condition Steps
AND (s1 <= s2) Word (See Notes) 42 52
OR (s1 <= s2) Double word (See Notes)
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
s1 Relational number 1 {{{{{{{{
s2 Relational number 2 {{{{{{{{
Function
[Ladder format]
s1
<=
s2
s1
<=
s2
s1
<=
s2
Compares s1 and s2 as unsigned numbers, and
if s1 is less than or equal to s2, it enters the continuity status (on) and
if s1 is greater than s2, it enters the noncontinuity status (off).
When s1 and s2 are words: 0 to 65535 (decimal) or H0000 to HFFFF (hexadecimal)
When s1 and s2 are double words: 0 to 4294967295 (decimal) or H00000000 to HFFFFFFFF (hexadecimal)
Notes
[Number of steps]
Word Double word LD, AND (s1<=s2) OR (s1<=s2)
LD (s1 <= s2) 5 steps I/O I/O 5 steps 6 steps
AND (s1 <= s2) 5 steps I/O Constant 6 steps 7 steps
OR (s1 <= s2) 6 steps Constant I/O 6 steps 7 steps
Constant Constant 7 steps 8 steps
Program example
R007
WR0000
< =
WR0002
LD (WR0000 <= WR0002)
OUT R007
Program description
When WR0000 WR0002, R007 turns on.
LD (s1 <= s2)
A
ND (s1 <= s2)
OR (s1 <= s2)