Addressing

Assign the outputs of the function block to the inputs of the OSS21C peripheral module according to the following figure:

INFORMATION

Note the different data formats in the I/O image. The addresses must be specified in bytes when calling the function block.

The following table shows the assignment of the variables to the physical inputs of the stepper motor module from the figure above:

Variable

Channel in I/O image

uiStepperInputStartStatusAdr

Address of the output channel DRV1_CONTROL

uiStepperInputStartPosAdr

Address of the output channel DRV1_POS_REQ_VAL

uiStepperOutputStartStatusAdr

Address of the input channel

uiStepperOutputStartActPosAdr

uiStepperOutputStartActPosAdr

Address of the input channel DRV1_POS_ACT_VAL