PLS
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
RUN |
BOOL |
FALSE, TRUE |
|
|
|
CYCLE |
TIME |
|
|
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Q |
BOOL |
FALSE, TRUE |
|
Output pulse signal. |
Remarks
- On every period, the output is set to TRUE during one cycle only.
Time Diagram
FBD Language Example
FFLD Language Example
- In the FFLD Language, the input rung is the IN command.
- The output rung is the Q output.
IL Language Example
(* MyPLS is a declared instance of PLS function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block. *)
Op1: CAL MyPLS (RUN, CYCLE)
FFLD MyPLS.Q
ST
ST Language Example
(* MyPLS is a declared instance of PLS function block. *)
MyPLS (RUN, CYCLE);
Q := MyPLS.Q;
See Also