Hitachi NJI-350B User Manual

Page 152

Advertising
background image

Chapter 5 Instruction Specifications

5-102

Item number

Control instructions-3

Name

Unconditional jump (JUMP)

Ladder format

Condition code

Processing time (

µs)

Remark

R7F4

R7F3

R7F2

R7F1

R7F0

Average Maximum

JMP n

DER

ERR

SD

V

C

z

1]

z

z

z

Instruction format

Number of steps

32

Condition

Steps

JMP n

2

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

• If the startup condition of JMP n switches on, the control jumps the program from this instruction to the LBL n of the same

code number. Always use JMP n and LBL n in pairs.

• If the startup condition is not established, the next instruction will be executed.
• To set this instruction in conjunction with other instructions in the same arithmetic-operation box, insert this instruction at

the end of the box.

• The JMP n instruction is valid only within the same scan program. (A jump to a subroutine or interrupt scan cannot be

performed from a normal scan, nor vice versa.)

• Nesting of JMP n instructions is possible, but note so that an overload error does not occur.

Notes

• This instruction is checked prior to the execution, and if there is an error, the following error codes are set in the special

internal outputs R7F3 and WRF015. In this case, jump is not performed and the next instruction will be executed.

Special internal output

Error code

Error description

R7F3=1

WRF015

H0015

There is no LBL n.

H0040

A jump is attempted to a different program area.

Instruction for use

JMP n

LBL n

Program

Program

• When the startup condition turns on, it jumps to LBL n.
• If there is a timer within the program it jumped to, the progress value is updated,

but since instructions are not executed, output will not be turned on even if the
ON conditions are met.

JM
P n

Advertising