Panasonic FP Series Programming Manual page 889

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Edge detection instructions
ALT
The function inverts the output condition (output o) each time the rising edge of the input signal
Description
(input i) is detected.
When the mode is changed from PROG to RUN or the power is turned on in RUN mode while the
input signal is TRUE, a rising edge will not be detected for the first scan.
Time chart
X0
Y10
Invert
PLC types
Data types
Variable
Data type
BOOL
input
BOOL
output
Operands
For
i
o
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.
POU header
In the POU header, all input and output variables are declared that are used for programming this
function.
LD
ST
When programming with structured text, enter the following:
output_value:=(ALT(input_value));
888
Alternative out
Invert
Invert
Availability of ALT (see page 1318)
Be careful when programming with commands that effect the order in which a
program is carried out, e.g. jump or loop instructions within a sequential function
chart or a function block. The order of the instructions might change depending on
the time when the instruction is carried out or the input value. (Specific basic JUMP
and LOOP instructions are: MC to MCE instruction, JP to LBL instruction, F19_SJP
to LBL instruction, LOOP to LBL instruction.
Relay
X
Y
R
L
-
Y
R
L
ON
OFF
ON
OFF
T/C
Register
T
C
-
-
-
-
-
-
-
-
Constant
-
-

Advertisement

Table of Contents
loading

Table of Contents