dm_Stop (stop direct mode)
Function
int16 dm_Stop(uint16 uiPortNo, char08 *cpErrMsg);
Description
Stop direct mode between Master and IO-Link device. Master returns to the previous mode automatically - master or device.
Input Parameters
- uchar08 uiPortNo – (virtual) comport number in order to communicate with Master
Output parameters
- char08 *cpErrMsg – pointer to buffer to return error message (minimum 256 bytes)
Return value
Zero if success or negative error number.
Example
int16 iRes = dm_Stop(iPortNo);