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.
Single Function Block with SFC
The following timing diagram explains how it works:
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.
Cascaded Function Blocks
The timing diagram:
Cascaded Function Blocks timing diagram
A corresponding solution written in LD looks like:
Cascaded Function Blocks with LD