Chapter 5 Instruction Specifications

Item number

 

Control instructions-2

 

 

Name

 

 

Scan conditional end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ladder format

 

 

 

 

 

 

Condition code

 

Processing time (s)

Remark

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R7F4

 

R7F3

 

R7F2

 

R7F1

R7F0

Average

Maximum

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CEND (s)

 

 

DER

 

ERR

 

SD

 

 

V

 

 

C

 

 

 

 

 

 

Upper case :

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

Conditions

 

 

 

 

 

 

 

 

z

 

 

z

 

 

z

 

 

z

 

 

z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction format

 

 

 

 

 

 

Number of steps

 

 

 

 

 

 

 

do not meet

 

 

 

 

 

 

 

 

Condition

 

 

 

 

Steps

 

 

 

 

 

 

 

Lower case :

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CEND (s)

 

 

 

 

 

 

 

 

 

 

2

 

 

707

 

 

Conditions meet

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

Word

 

Double word

 

Constant

 

 

 

Usable I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Other

 

 

 

X

 

Y

M

 

 

CU, CT

 

WX

WY

WM

 

TC

DX

DY

DM

 

 

 

 

 

 

 

 

 

 

R,

 

 

TD, SS,

 

 

 

 

 

WR,

 

 

 

 

DR,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s

Scan end condition

{

{

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If the scan end condition (s) is on, the execution of this instruction returns to the head of the scan program and executes the program.

If (s) is off, the next instruction is executed.

This instruction can only be used in normal scan programs, and can be used as many times as desired.

This instruction can specify a startup condition. In this case, if the startup condition and (s) are both on, this instruction is executed.

Notes

The CEND instruction is checked prior to the execution, and if there is an error, the following error codes are 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

H0023

The CEND instruction is found after the END

 

 

 

instruction.

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction for use

 

 

 

 

 

CEND (s)

Program head Normal scan program

CEND (R000)

Normal scan program

CEND (R001)

Normal scan program

When R000 is on, to program head

When R000 is off, the next instruction is executed. When R001 is on, to program

When R001 is off, the next instruction is executed.

END

5-101

Page 151
Image 151
Hitachi NJI-350B manual 101