Cam switch

The following application example illustrates the configuration, declaration and call of the function blocks.

In the code example, a cam switch with one track and 4 cam windows is implemented. The output of the track is connected to a digital output of the inverter. The setpoints of "Axis1" are transferred as the source.