Moxa M-1401 Handbuch Seite 36

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 129
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 35
ioLogik MXIO DLL API Reference Modbus Command Sets
5-2
MXIO_WriteCoils
This function code is used to write the contiguous status of an I/O
coils.
C/C++
Arguments
Return Value
int MXIO_WriteCoils ( int hConnection,
WORD wStartCoil,
WORD wCount,
BYTE bytCoils[ ]);
hConnection: Handle for the I/O connection.
wStartCoil: Specifies the starting coil to be written. The
address is beginning at 0.
wCount: The number of coils to be written.
bytCoils: An array that stores the coil value; each byte
holds eight coil values.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
MXIO_ReadRegs
This function code is used to read the contents of a contiguous
block of the I/O holding registers.
C/C++
Arguments
Return Value
int MXIO_ReadRegs ( int hConnection,
BYTE bytRegisterType,
WORD wStartRegister,
WORD wCount,
WORD wRegister[ ]);
hConnection: The handle for an I/O connection.
bytRegisterType: Coil type to be read. The meaning for a value in
an entity is as follows:
3: read holding registers (output word).
4: read input register (input word).
wStartRegister: Specifies the starting register address. The
address is beginning at 0.
wCount: The number of coils to be read.
wRegister: An array that stores the register values.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Seitenansicht 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 128 129

Kommentare zu diesen Handbüchern

Keine Kommentare