ExamplesΒΆ

Example: A Function Block Instance controls different Motions of an Axis

The following figure shows an example where the Function Block 1 is used to control AxisX with three different values of Velocity. In a Sequential Function Chart (SFC) the velocity 10, 20, and 0 is assigned to V. To trigger the input Execute with a rising edge the variable E is stepwise set and reset.

../_images/d3c063bd2c040ba80a33139000604ffd

Single Function Block with SFC

The following timing diagram explains how it works:

../_images/cc147f492c0410930a33139001d3647a

Timing diagram for a usage of single Function Block

Note

The second InVelocity is set for only one cycle because the Execute has gone low before the ActualVelocity equals CommandedVelocity.

Example: Different Function Blocks Instances control the Motions of an Axis

Different instances related to the same axis can control the motions on an axis. Each instance will then be responsible for one part of the global profile.

../_images/88860dbd2c0413de0a3313900192cee3

Cascaded Function Blocks

The timing diagram:

../_images/c4d1e3aa2c0416930a33139000cbbed0

Cascaded Function Blocks timing diagram

A corresponding solution written in LD looks like:

../_images/5d241c742c0418380a33139000aeb2c8

Cascaded Function Blocks with LD