Chapter 5 Instruction Specifications

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

 

Constant

 

 

 

Usable I/O

 

 

X

Y

M

 

 

CU, CT

 

WX

WY

WM

 

TC

DX

DY

DM

 

 

Other

 

 

 

 

 

 

 

 

R,

 

 

TD, SS,

 

 

 

 

 

WR,

 

 

 

 

DR,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

JMP

0

 

 

(00001)

 

 

 

 

 

 

 

 

WR0000

= WR0000

+ 1

(00002)

 

 

 

LBL

0

 

 

(00003)

R100

JMP

1

 

 

(00004)

 

 

 

 

WR0000

= WR0000

- 1

(00005)

 

 

 

LBL

1

 

 

(00006)

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.

LBL n

5-105

Page 155
Image 155
Hitachi NJI-350B manual Control instructions-5, Label, LBL n, WRF001 H0001 Duplicate definition of LBL, 105