EasyManua.ls Logo

werma KombiSIGN 71 - Setsingleio; Getiostatus

werma KombiSIGN 71
23 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WERMA SIGNALTECHNIK Version 1.2.0 - 0911 20
6.3.3.2 SetSingleIO
int SetSingleIO( [in] int DevIdx, [in] int IOIdx, [in] int Status)
SetSinlgeIO sets the status of a single Output.
Parameters
DevIdx
Index to the desire device currently available in the system. The first index is 1.
IOIdx
Sets the status of a single Output. This value range is between 1 and 5.
Status
Specifies the desire status for the given Output.
0 – OUTPUT OFF
1 – OUTPUT ON
2 – Blinking mode 1
3 – Blinking mode 2
Return Value
1 if successful, otherwise the return value is -1.
6.3.3.3 GetIOStatus
int GetIOStatus( [in] int DevIdx, [out] int * OutMask)
GetIOStatus gets the current Output status for all Outputs.
Parameters
DevIdx
Index to the desire device currently available in the system. The first index is 1.
OutMask
Pointer to a variable that will contain the current Output status mask. This parameter
can be the sum of the following Output port indexes.
Macro Value Description
OFF 0 No port enable
O1 1 IO #1 enable, also if Blinking mode1 or Blinking mode 2 is set
O2 2 IO #2 enable, also if Blinking mode1 or Blinking mode 2 is set
O3 4 IO #3 enable , also if Blinking mode1 or Blinking mode 2 is set
O4 8 IO #4 enable , also if Blinking mode1 or Blinking mode 2 is set
O5 16 IO #5 enable , also if Blinking mode1 or Blinking mode 2 is set
Return Value
1 if successful, otherwise the return value is -1.