Basic Instructions
2
−
33
When SET and RST instructions are used
When the
SET
and
RST
instructions are used, the output changes with each step during processing of the
operation.
Example:
When X0, X1, and X2 are turned on
X0
Y10
X1
Y10
X2
Y10
Y10
This portion of the program is processed as if Y10
were on.
This portion is processed as if Y10 were off.
This portion is processed as if Y10 were on.
S
R
〈
〈
〈
〈
S
〈
〈
I/O update is performed when an
ED
instruction is executed, therefore the data actually output is determined
by the final operation result. In the above example, the Y10 output is on.
To output a result while operation is still in progress, use a partial I/O update instruction (
F143
).
Precautions during programming
The output destination of a
SET
instruction is held even during the operation of an
MC
instruction.
The output destination of a
SET
instruction is reset when the mode is changed from RUN to PROG. or when
the power is turned off, except when a hold type internal relay is specified as the output destination.
SET and RST instructions and differential instructions
Be sure to place a
DF
instruction before the
SET
and
RST
instructions to make program development and
refinement easier.
This is particularly effective when the same output destination is used in several places in the program.
X0
Y10
X1
Y10
(DF)
(DF)
R
〈
〈
S
〈
〈
Precautions when using the FP2SH and FP10SH
It is not possible to specify a pulse relay (P) as the output destination for a
SET
or
RST
instruction.
All error alarm buffers can be cleared using the
RST
DT90400 instruction.
The head of the error alarm buffers can be cleared using the
RST
DT90401 instruction.
How relays are handled with SET and RST instructions
Relays can be turned off using the
RST
instruction.
Using the various relays with the
SET
and
RST
instructions does not result in double output.
It is not possible to specify a pulse relay (P) as the output destination for a
SET
or
RST
instruction.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...