Panasonic FP Series Programming Manual page 510

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

SET
SET: When the execution conditions have been satisfied, the output is turned on, and the on status
Description
is retained.
RST: When the execution conditions have been satisfied, the output is turned off, and the off status
is retained.
like with the SET and RST instructions. (Even if a total check is run, this is not
handled as a syntax error.)
When the SET and RST instructions are used, the output changes with each step
during processing of the operation.
To output a result while operation is still in progress, use a partial I/O update
instruction (F143).
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.
Placing a DF instruction (or specifying a rising edge in LD) before the SET and
RST instructions ensures that the instruction is only executed at a rising edge.
Relays:
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.
Operands
For
SET
RST
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help. Since addresses are assigned directly
using FP addresses, no POU header is necessary.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Using the DF command or specifying a rising edge refines the program by making the
programming step valid for one scan only:
(1) When the input X0 is activated, the output Y0 is set.
(2) When the input X0 is turned off, the output Y0 remains set.
(3) When the input X1 is activated, the output Y0 is reset.
(4) When the input X0 is reactivated, the output Y0 is set.
SET, RESET
You can use relays with the same number as many times as you
Relay
-
Y
R
L
-
T/C
Register
-
-
E
-
Bistable instructions
Constant
-
509

Advertisement

Table of Contents
loading

Table of Contents