
ioLogik MXIO DLL API Reference Programming Flow
2-4
Connecting to a Single Serial I/O
ioLogik 4000 and R2000 I/O can be used in RS-485, RS-232 control networks. For access to I/O
over RS-485 or RS-232, please pay attention to the following:
z Your computer must be equipped with an RS-232 or RS-485 communication port.
z Make sure that the baudrate and communication parameters for the computer and the I/O are
identical.
z Make sure that the I/O is running under Modbus/RTU
ioLogik 4000 remote I/O
ID: 10
ioLogik E2000 Ethernet I/O
ID: 10
Four steps are required to access remote I/O data using the MXIO Linux Library.:
1. Use MXSIO_OpenCommport to open the COM port and connect to the serial I/O.
2. Use MXSIO_Connect to connect to the serial I/O using the Unit ID (e.g., 10).
MXSIO_Connect should return a handle.
3. Use the handle to access the desired I/O point with Modbus command sets or direct I/O
command sets.
4. To finish the operation, use MXSIO_Disconnect and MXSIO_CloseCommport to release
Windows system resources.
Program Flow III.
Connecting Single RS-485 I/O.
MXSIO_OpenCommport
MXSIO_Connect
Direct I/O
Command Sets
Modbus Command Sets
MXSIO_ Disconnect
MXSIO_Closecommport
Comentarios a estos manuales