Calling the function block

Call the function block in the "Control" program. If you use more than one OSS21C stepper motor module in your application, the following steps must be repeated for each stepper motor module. Each stepper motor module must be uniquely named.

Line

Comment

[3]

Create instance of the StepperWrapper function block.

[4]

Create instance of the structure of the stepper function block.

[5]

If xExternalConfigWrite is set to TRUE, the parameters are automatically written each time a mode is activated. SEW‑EURODRIVE recommends writing the parameters only at the start, otherwise the cycle time will be too high.