beautypg.com

Hitachi NJI-350B User Manual

Page 155

background image

Chapter 5 Instruction Specifications

5-105

Item number

Control instructions-5

Name

Label

Ladder format

Condition code

Processing time (

µs)

Remark

R7F4

R7F3

R7F2

R7F1

R7F0

Average Maximum

LBL n

DER

ERR

SD

V

C

z

z

z

z

z

Instruction format

Number of steps

0.5

Condition

Steps

LBL n

1

Bit

Word

Double word

Usable I/O

X

Y

R,

M

TD, SS,

CU, CT

WX WY

WR,

WM TC DX DY

DR,

DM

C

o

nstant

Other

n

Code number

{ 0 to 255 (Decimal)

Function

• This instruction indicates the destination of the jump when the JMP n or CJMP n instruction is executed (n is always used in

pairs).

• The n in the LBL n cannot be used multiple times in the same program.
• This instruction itself does not perform any operation.
• Even if a startup condition is used with LBL n, it will be ignored.

Notes

• This instruction is checked prior to execution, and when there is an error, the following error code is set in the special

internal output WRF001. Also, the CPU error code '34' is set to special internal output WRF000.

CPU error code

Special internal output

Error code

Error description

34

WRF001

H0001

Duplicate definition of LBL

Instruction for use

R100

(00001)

(00002)

(00003)

JMP 0

WR0000 = WR0000 + 1

LBL 0

R100

(00004)

(00005)

(00006)

WR0000 = WR0000 - 1

LBL 1

JMP 1

• When R100 is on, JMP 0 will be executed but JMP 1 will not be executed.

Therefore, the content of WR0000 will decrement by one during each scan.

• When R100 is off, JMP 0 will not be executed but JMP 1 will be executed.

Therefore, the content of WR0000 will increment by one during each scan.

LB

L n