Chapter 5 Instruction Specifications

Item number

Basic instructions-28

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

27

40

 

 

Lower case: DW

 

 

 

 

 

 

 

z

 

 

 

z

 

 

 

z

 

 

 

z

 

 

z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction format

 

 

 

 

 

 

 

 

Number of steps

 

 

 

 

 

 

 

 

 

 

 

 

 

LD

(s1 == s2)

 

 

 

 

Condition

 

 

 

 

 

Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND

(s1 == s2)

 

 

 

 

Word

 

 

 

(See Notes)

 

 

 

35

50

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OR

(s1 == s2)

 

 

Double word

 

 

 

(See Notes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

 

 

 

Word

 

 

 

Double word

 

Constant

 

 

 

Usable I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Other

 

X

 

Y

M

 

 

CU, CT

 

WX

WY

WM

 

TC

DX

DY

DM

 

 

 

 

 

 

 

 

 

 

R,

 

 

TD, SS,

 

 

 

 

 

 

 

WR,

 

 

 

 

 

DR,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s1

Relational number 1

 

 

 

 

 

 

 

 

 

 

 

 

 

{

 

{

 

{

{

 

{

{

{

 

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s2

Relational number 2

 

 

 

 

 

 

 

 

 

 

 

 

 

{

 

{

 

{

{

 

{

{

{

 

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Ladder format]

 

 

 

 

 

 

s1

 

 

 

 

 

 

 

 

 

 

 

 

s1

 

 

 

 

 

s1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

==

 

 

 

 

 

 

 

 

 

==

 

 

 

 

 

 

==

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s2

 

 

 

 

 

 

 

 

 

 

 

 

s2

 

 

 

 

 

s2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Compares s1 and s2 as unsigned numbers, and

if s1 is equals to s2, it enters the continuity status (on) and if s1 is not equal to s2, 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

 

 

 

 

 

 

 

 

 

 

 

 

 

WR0000

R001

 

 

LD

(WR0000 == WR0002)

 

 

 

 

 

 

 

 

 

 

 

 

= =

 

 

 

 

OUT

R001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WR0002

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program description

When WR0000 = WR0002, R001 turns on.

OR (s1 == s2)

AND (s1 == s2)

LD (s1 == s2)

5-37

Page 87
Image 87
Hitachi NJI-350B manual Word Double word