Chapter 5 Instruction Specifications

Relational expression Classification

number

Ladder symbol

Item

 

21 d=s1 <= s2

22 d=s1 S<= s2

Instruction symbol

Instruction

Process descriptions

I/O types used

name

 

 

≤ Relational

When s1 < s2, d ← 1

[Word]

expression

When s1 ≥ s2, d ← 0

d: Y, R, M

 

 

s1, s2: WX, WY,

 

 

WR, WM, Timer

 

 

Counter,

 

 

Constant

 

 

[Double word]

 

 

d: Y, R, M

 

 

s1, s2: DX, DY,

 

 

DR, DM,

 

 

Constant

Signed ≤

When s1 ≤ s2, d ← 1

[Double word]

Relational

When s1 > s2, d ← 0

d: Y, R, M

expression

s1 and s2 are compared as

s1, s2: DX, DY,

 

signed 32-bit binary.

DR, DM,

 

 

Constant

R7F4

R7F3

R7F2

R7F1

R7F0

DER

ERR

SD

V

C

z

z

z

z

z

 

 

 

 

 

Process

time (s)

MICRO-EH

40

71

50

Steps

4

6

6

Remarks

Upper case: W

Lower case: DW

5.Application instructions

Classification

numberItem

Ladder symbol

Instruction symbol

 

 

 

operationsBit

1

BSET(d, n)

 

 

 

 

 

2

BRES(d, n)

 

 

3

BTS(d, n)

 

Shift/rotate

4

SHR(d, n)

 

 

 

 

5

SHL(d, n)

 

 

6

ROR(d, n)

 

 

7

ROL(d, n)

 

 

8

LSR(d, n)

 

 

9

LSL(d, n)

 

 

 

 

 

Instruction

name

Bit set

Bit reset

Bit test

Shift right

Shift left

Rotate right

Rotate left

Logical shift right

Logical shift left

Process descriptions

n 0

d1

Sets 1 to bit n.

n 0

d0

Sets 0 to bit n.

n 0

d C

Acquires the value in bit n to C (R7F0).

SD →

d

→ C

Shifts right by n bits.

C ←

d

← SD

Shifts left by n bits.

d→ C

Rotates right by n bits.

C ←

d

Rotates left by n bits.

0 →

d

→ C

Shifts right by n bits.

 

 

 

← 0

C ←

d

Shifts left by n bits.

I/O types used

[Word]

d:WY, WR, WM, TC n(0-15): WX, WY, WR, WM, TC, Constant

[Double word]

d:DY, DR, DM n(0-31): WX, WY, WR, WM, TC, Constant

[Word]

d:WY, WR, WM, TC

n:WX, WY, WR, WM, TC, Constant

[Double word]

d:DY, DR, DM

n:WX, WY, WR, WM, TC, Constant

*C: R7F0

SD: R7F2

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

z

z

z

z

z

z

z

z

z

z

z

z

z

z

z

z

z

z

 

 

 

 

 

Process

time (s)

MICRO-EH

26

35

29

38

31

38

38

46

38

46

47

75

46

54

36

45

36

45

Steps

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

Remarks

Upper case: W Lower case: DW

Upper case: W Lower case: DW

Upper case: W

Lower case: DW

Upper case: W Lower case: DW

Upper case: W Lower case: DW

Upper case: W Lower case: DW

Upper case: W Lower case: DW

Upper case: W Lower case: DW

Upper case: W Lower case: DW

5-8

Page 58
Image 58
Hitachi NJI-350B manual Instruction symbol Process descriptions