Moxa M-1401 Handbuch Seite 28

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 129
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 27
ioLogik MXIO DLL API Reference System Commands Sets
4-3
MXSIO_Connect
Based on the COM port handle or ioLogik E2000 handle, users
must use this function to establish an I/O device handle for each
RS-485 or RS-232 I/O. A COM port handle can connect one
RS-232 I/O or up to 32 RS-485 I/O.
C/C++
Arguments
Return Value
int MXSIO_Connect ( int hCommport,
BYTE bytUnitID,
BYTE bytTransmissionMode,
int *hConnection);
hCommport: I/O over serial interface will get a serial
handle. I/O server over Ethernet interface
will get an Ethernet handle.
For more details, please see the Program
Flow IV and Program Flow V in Chapter 2.
bytUnitID: Modbus unit ID of the I/O, from 01
to 99.
bytTransmissionMod Modbus transmission format.
ex:
0: RTU mode
1: ASCII mode.
Note that the protocol settings must agree
with the hardware settings on the ioLogik
4000 I/O, and the ioLogik R2000 only
supports RTU.
hConnection: Handle of the I/O device connection.
Succeed MXIO_OK.
Fail Refer to Return Codes.
MXSIO_Disconnect
This will disconnect the RS-485/232 I/O. The I/O handle will be
invalid.
C/C++
Arguments
Return Value
int MXSIO_Disconnect ( int hConnection);
hConnection: Handle of the I/O device connection.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Seitenansicht 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 128 129

Kommentare zu diesen Handbüchern

Keine Kommentare