PLS

Function Block - Pulse signal generator

Inputs

RUN : BOOL    Enabling command
CYCLE : TIME  Signal period

Outputs

Q : BOOL      Output pulse signal

Time diagram

Remarks

On every period, the output is set to TRUE during one cycle only. In LD language, the input rung is the IN command. The output rung is the Q output signal.

ST Language

(* MyPLS is a declared instance of PLS function block *)
MyPLS (RUN, CYCLE);
Q := MyPLS.Q;

FBD Language

LD Language

IL Language

(* MyPLS is a declared instance of PLS function block *)
Op1: CAL MyPLS (RUN, CYCLE)
     LD  MyPLS.Q
     ST  Q

See also

TON   TOF   TP