JMP n

Chapter 5 Instruction Specifications

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

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

• 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

When the startup condition turns on, it jumps to LBL n.

 

 

JMP n

 

• If there is a timer within the program it jumped to, the progress value is updated,

 

 

 

Program

 

but since instructions are not executed, output will not be turned on even if the

 

ON conditions are met.

LBL n

Program

5-102

Page 152
Image 152
Hitachi NJI-350B manual Special internal output Error code Error description, 102