Hitachi NJI-350B User Manual

Page 61

Advertising
background image

Chapter 5 Instruction Specifications

5-11

6.

Control instructions

R7F

4

R7F

3

R7F

2

R7F

1

R7F

0

Process

time

(

µ s)

C

la

ssi

fica

tio

n

It

em

num

ber

Ladder symbol

In

str

ucti

on

sy

m

bol Instruction

name

Process descriptions

I/O types used

DER ERR SD

V

C

MICRO-EH

S

teps Remarks

1 END

Normal
scan end

Indicates the end of a
normal scan.

None

z z z z z

714

1

Co

ntr

ol

2 CEND(s)

Scan
conditional
end

Re-executes normal scan
from the beginning of the
normal scan when s=1,
while the next instruction is
executed when s=0.

s: X, Y, R, M

z z z z z

3 JMP n

Unconditio-
nal jump

Jumps to LBL n of the
same No. n.

n: Constant(0-
255)

z 1] z z z

5

707

32

2
2

*5

*6

4 CJMP n (s)

Conditional
jump

When s=1, jumps to the
LBL n of the same No.;
when s=0, executes the next
instruction.

n: Constant(0-
255)
s: X, Y, R, M

z 1] z z z

3

32

3 *5

*6

5 LBL n

Label

Indicates the jump
destination of JMP or
CJMP of the same No.

n: Constant(0-
255)

z z z z z

0.5

1

6 FOR n (s)

FOR

When s=0, jumps to the
location after the NEXT n
of the same No.; when s is
not 0, executes the next
instruction.

n: Constant(0-49)
s: WY, WR, WM

z 1] z z z

33

3

7 NEXT n

NEXT

Subtracts 1 from the s value
of the FOR n of the same
No. and jumps to FOR n.

n: Constant(0-49) z 1] z z z

38

2

8 CAL n

Call
subroutine

Executes the SB n
subroutine of the same No.
n.

n: Constant(0-99) z 1] z z z

24

2

9 SB n

Start
subroutine

Indicates the start of No. n
subroutine.

n: Constant(0-99) z 1] z z z

0.5

1

10 RTS

RETURN
SUBROUTIN

Returns from subroutine.

None

z z z z z

25

1

11 INT n

Start
interrupt
scan

Indicates the start of No. n
interrupt scan.

n: Constant(0-2,
16-19, 20-27)

z z z z z

0.5

1

12 RTI

RETURN
INTERRUPT

Returns from interrupt
scan.

None

z z z z z

0.5

1

7.

Transfer instructions

R7F

4

R7F

3

R7F

2

R7F

1

R7F

0

Process

time

(

µ s)

C

la

ssi

fica

tio

n

It

em

num

ber

Ladder symbol

In

str

ucti

on

sy

m

bol Instruction

name

Process descriptions

I/O types used

DER ERR SD

V

C

MICRO-EH

S

teps Remarks

1 TRNS 0

Data sending and receiving
(optional)

d: WY10
s: WR, WM
t: R, M

↕ z z z z

80

3

Tr

an

sf

er

in

st

.

2 RECV 0

General
purpose
port
communica
-tion
command

Data receiving and sending
(optional)

d: WX0
s: WR, WM
t: R, M

↕ z z z z

80

3

8.

FUN instructions

R7F

4

R7F

3

R7F

2

R7F

1

R7F

0

Process

time

(

µ s)

C

la

ssi

fica

tio

n

It

em

num

ber

Ladder symbol

In

str

ucti

on

sy

m

bol Instruction

name

Process descriptions

I/O types used

DER ERR SD

V

C

MICRO-EH

S

teps Remarks

1 FUN 5 (s)

General
purpose
port
switching

Port type switching from
dedicated port to general
purpose port

s: WR,WM

↕ z z z z

114

3

2 FUN 80 (s)

(ALREF (s))

I/O refresh
(all points)

Refreshes all external I/O
ranges.

s: WR,WM

↕ z z z z

432

3

FU

N

ins

tru

ctio

ns

3 FUN 81 (s)

(IOREF (s))

I/O refresh
(I/O /link
designation
)

Refreshes only the input
range, output range or link
range.

s: WR,WM

↕ z z z z

244

3

Advertising