WERMA SIGNALTECHNIK
Version 1.2.0 - 0911
17
6.3.2.3
GetDeviceStatus
int GetDeviceStatus ( [in] int DevIdx, [out] char * Pos1, [out] char * Pos2, [out] char * Pos3,
[out] char * Pos4, [out] char * Pos5)
GetDeviceStatus
gets the status for all outputs.
Parameters
DevIdx
Index to the desire device currently available in the system. The first index is 1.
Pos1, Pos2, Pos3, Pos4, Pos5
Pointer to a variable that will contain the status of the output.
Macro
Value As Char
Value in ASCII
Description
OFF 0 0x30
Port
off
ON 1 0x31
Port
on
Blinking mode 1
2
0x32
Blinking mode 1
Blinking mode 2
3
0x33
Blinking mode 2
Return Value
1 if successful, otherwise the return value is -1.
6.3.2.4
GetDeviceSerial
int GetDeviceSerial( [in] int DevIdx, [out] int * TypeCode, [out] int * BatchCode, [out] int *
SerialCode)
GetDeviceSerial
gets the specified device serial code. This code is unique and can be
use to distinguish between various devices currently installed in the system.
Parameters
DevIdx
Index to the desire device currently available in the system. The first index is 1.
TypeCode
Pointer to a variable that will contain the device type code.
BatchCode
Pointer to a variable that will contain the device batch code.
SerialCode
Pointer to a variable that will contain the device serial code.
Return Value
1 if successful, otherwise the return value is -1.
Содержание KombiSIGN 71
Страница 2: ......