MLFB_PlsTimeFw

Pipe Network motion icon

 Function Block - Forward/backward Position/Time range indicator.

Inputs

Input

Data Type

Range

Unit

Default

Description

ibExecute

BOOL

 

 

 

 

 

 

Enable PLS.

iDedicatedCmpID

DINT

 

 

 

 

 

 

ID of the dedicated comparator.

iStartPos

LREAL

 

 

 

 

 

 

Start position of PLS.

iOnTime

TIME

 

 

 

 

 

 

Time the PLS is on.

iDelayTime

TIME

 

 

 

 

 

 

Delay time for compensation.

ibForce

BOOL

 

 

 

 

 

 

Force PLS.

Outputs

Output

Data Type

Range

Unit

Description

oPLS

BOOL

 

 

N/A

Position limit switch.

Remarks

  • Used in the command position path with ascending position.
  • A dedicated comparator pipe block is needed.
  • The Boolean output oPLS is set to:
    • TRUE if the position has crossed the start position.
      • A timer with iOnTime must be started.
    • When the timer has expired the output is set to FALSE.
  • The function block is executed cyclically.
    • The modulo position is considered.
  • The function block has the possibility to compensate a delay time of the connected device (e.g., glue nozzles).

Timing

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//PLSOutput is True when chosen comparator passes 180 for 3 seconds a T#2ms delay

//Can also force the output to be true with ForceOuput variable

Inst_MLFB_PlsTimeFw( EnablePLS, PipeNetwork.COMPARATOR, 180, T#3s, T#2ms, ForceOutput );
PLSOutput := Inst_MLFB_PlsTimeFw.oPLS;