Chapter 5 Instruction Specifications

3.Basic instructions (relational box)

Classification

numberItem

Ladder symbol

Instruction symbol

Instruction

Process descriptions

I/O types used

 

 

 

 

 

 

name

 

 

 

 

 

 

box

28

s1

LD

= Relational When s1 = s2: Continuity

[Word]

Relational

 

==

(s1==

box

When s1 ≠ s2:

WX, WY, WR,

 

s2)

 

Noncontinuity

WM,

 

 

 

 

 

s2

 

 

 

 

 

 

Timer Counter

 

 

 

 

 

 

[Double word]

 

 

s1

AND

 

 

DX, DY, DR,

 

 

(s1==

 

 

DM

==s2)

s2

 

Constant

 

 

 

 

 

OR

 

s1

(s1==

==s2)

s2

29

s1

LD

Signed =

When s1 = s2: Continuity

DX, DY, DR,

 

(s1

Relational

When s1 ≠ s2:

DM

 

S==

S==

box

Noncontinuity

 

 

s2

s2)

 

s1 and s2 are compared as

Constant

 

 

 

 

signed 32-bit binary.

 

 

s1

AND

 

 

 

 

(s1

 

 

 

 

S==

S==

 

 

 

 

s2

s2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OR

 

 

 

 

s1

(s1

 

 

 

 

S==

S==

 

 

 

 

s2)

 

 

 

 

s2

 

 

 

 

 

 

 

 

30

s1

LD

<>

When s1 = s2:

[Word]

 

(s1<

Relational

Noncontinuity

WX, WY, WR,

<>

>s2)

box

When s1 ≠ s2: Continuity

WM,

 

s2

 

 

 

Timer Counter

 

 

 

 

[Double word]

 

 

 

 

 

 

 

AND

 

 

DX, DY, DR,

 

s1

(s1<

 

 

DM

<>

>s2)

 

 

Constant

 

 

 

 

s2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OR

 

 

 

 

s1

(s1<

 

 

 

<>

>s2)

 

 

 

 

 

 

 

 

s2

 

 

 

 

31

 

LD

Signed <>

When s1 = s2:

DX, DY, DR,

 

s1

(s1

Relational

Noncontinuity

DM

 

S<>

S<>

box

When s1 ≠ s2: Continuity

 

 

s2)

 

s1 and s2 are compared as

Constant

 

s2

 

 

 

 

signed 32-bit binary.

 

 

 

 

 

 

 

 

AND

 

 

 

 

s1

(s1

 

 

 

 

S<>

S<>

 

 

 

 

s2

s2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OR

 

 

 

 

s1

(s1

 

 

 

 

S<>

S<>

 

 

 

 

s2)

 

 

 

 

s2

 

 

 

 

 

 

 

 

R7F4

R7F3

R7F2

R7F1

R7F0

DER ERR SD

V

C

z

z

z

z

z

z z z z z

z z z z z

z z z z z

Process

time (s)

MICRO-EH

27

35

35

26.8

34.5

34.5

Steps

Remarks

 

5*1

6*2

7Upper

8case: W

Lower case: DW

5*2

5*1

6*2

7Upper

8case: W

Lower case: DW

5*2

8

*1: In the case of word, it requires five steps for LD (s1†s2) and AND (s1†s2), and six steps for OR (s1†s2).

*2: In the case of double word, for LD (s1†s2) and AND (s1†s2), it requires five steps when the combination of s1 and s2 is I/O and I/O, six steps when the combination is either I/O and constant or constant and I/O, and seven steps when the combination is constant and constant. For OR (s1†s2), one step is added respectively.

5-4

Page 54
Image 54
Hitachi NJI-350B manual Basic instructions relational box, Wx, Wy, Wr, Dx, Dy, Dr