PLS

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - PulseClosed When the step gets activated, the action is activated for a single execution, and possibly once again when the step is deactivated. signal generator.

Inputs

Input

Data Type

Range

Unit

Default

Description

RUN

BOOL

FALSE, TRUE

 

 

EnablingClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive. command.

CYCLE

TIME

 

 

 

Signal periodClosed Motor systems having a reciprocating or oscillating motor that operates synchronously with the periodicity of the source which supplies the electrical energy. The period of execution of a pipe is the time spent between two successive computations of set values for the same pipe. The period of execution of a pipe is specified by the PERIOD parameter of the input pipe block..

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 functionClosed 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