Moxa M-1401 Manuál Strana 76

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 129
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 75
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-39
Pulse2K_SetPowerOnValues
This function code is used to set the power on values of
contiguous pulse channels.
C/C++
Arguments
Return Value
int Pulse2K_SetPowerOnValues ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwValue);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
dwValue: Stores the power on values for the contiguous
channels; each bit holds the value of one
channel. A bit value of 0 represents the power
on value of the start channel. A bit value of 1
represents the value of the second pulse
channel. The values are:
0: stop
1: start
Succeed MXIO_OK.
Fail Refer to Return Codes.
Pulse2K_GetPowerOnValue
This function code is used to get the power on value for a
specific pulse channel.
C/C++
Arguments
Return Value
int Pulse2K_GetPowerOnValue ( int hConnection,
BYTE bytChannel,
BYTE * bytValue);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
bytValue: A pointer to the power on value of the desired
channel. The values are:
0: stop
1: start
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Zobrazit stránku 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 128 129

Komentáře k této Příručce

Žádné komentáře