Callback function to read output data from the IO controller to the physical output of a submodule. If output data is invalid, replacement substitute value is used.
This function reads data from the buffer provided by the stack to the global output data array if data is valid, else replacement substitute value is copied and used instead. It also turns ON/OFF some LEDs based on the value received. IOPS of the corresponding submodule is also updated while IOCS is sent back as a return value.
- Parameters
-
| [in] | pnHandle | Profinet API Handle. |
| [in] | addr | Geographical address (slot/subslot) of the submodule. |
| [in] | bufLen | Length of data. |
| [in] | buffer | Pointer to data buffer to read from. |
| [in] | remoteIops | IOPS from the IO controller, can be: PN_API_IOD_STATUS_BAD or PN_API_IOD_STATUS_GOOD. |
- Returns
- Local IOCS as PN_API_IOD_IOXS.
- Return values
-
- See also
- PN_API_IOD_dataReadCbf