Chapter 5 Instruction Specifications

Item number

Basic instructions-11, 12

Name

Set/reset coil output (SET, RES)

 

 

 

 

 

Ladder format

 

 

 

Condition code

 

 

Processing time (s)

Remark

 

n

n

 

R7F4

R7F3

R7F2

R7F1

R7F0

Average

Maximum

 

 

SET

S

SET

DER

ERR

SD

V

 

C

 

 

 

Upper case: SET

 

n

n

 

 

 

 

 

 

RES

R

RES

 

z

z

z

z

 

z

0.9

 

Lower case: RES

 

 

 

 

 

 

Instruction format

 

 

 

Number of steps

 

 

 

 

 

 

 

SET n

 

 

 

Condition

 

Steps

 

 

 

 

 

 

RES n

 

 

 

 

 

1

 

 

0.9

 

 

 

Usable I/O

 

X

Y

Bit

CU, CT

 

Word

 

TC

Double word

Constant

Other

 

 

M

WX WY WM

DX DY

DM

 

 

 

 

 

R,

TD, SS,

 

WR,

 

 

DR,

 

 

n

I/O number

 

 

{

{

 

 

 

 

 

 

 

 

 

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

Switches on the device when the operation result obtained up to that point is “1.”

 

 

SET n

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The device that is switched on will not be switched off even if the operation result is “0.”

n

RES

SET n RES n

RES n

Switches off the device when the operation result obtained up to that point is “1.”

( ) indicates the display when the Ladder Editor is used.

Notes

When a set/reset coil is used on a multi-layer coil, it must be set to the highest level or an arbitrary contact must be entered immediately before the use.

Example of OK

SET

SET

Example of NG

SET

SET

SET

Program example

X00000

R100

SET

LD

X00000

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

R100

X00001

R100

 

LD

X00001

 

RES

R100

 

 

 

 

RES

 

 

 

 

 

 

 

 

 

 

 

 

 

Program description

When input X00000 turns on, output R100 turns on. Even if X00000 turns off, R100 remains on.

When input X00001 turns on, output R100 turns off.

When input X00000 and X00001 both turn on, the one executed later than the other during programming takes a higher priority.

5-21

Page 71
Image 71
Hitachi NJI-350B manual Usable I/O Bit, Word Double word Constant Other, Wx Wy Wm Dx Dy Td, Ss