xPCI-3009 API
PCI-3009 SSI formated tram formated functions

Functions

_INT_ i_PCI3009_InitSSI (DWORD_ dw_BoardHandle, BYTE_ b_SSIProfile, BYTE_ b_PositionTurnLength, BYTE_ b_TurnCptLength, DWORD_ dw_SSIOutputClock, BYTE_ b_SSICountingMode)
 
_INT_ i_PCI3009_Read1SSIValue (DWORD_ dw_BoardHandle, BYTE_ b_SelectedSSI, PDWORD_ pdw_Position, PDWORD_ pdw_TurnCpt)
 
_INT_ i_PCI3009_ReadAllSSIValue (DWORD_ dw_BoardHandle, PDWORD_ pdw_Position, PDWORD_ pdw_TurnCpt)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_InitSSI ( DWORD_  dw_BoardHandle,
BYTE_  b_SSIProfile,
BYTE_  b_PositionTurnLength,
BYTE_  b_TurnCptLength,
DWORD_  dw_SSIOutputClock,
BYTE_  b_SSICountingMode 
)

Configure the SSI operating mode.
You must calling this function be for you call any other function witch access of SSI.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_SSIProfile: Selection from SSI profile length (1 to 32).
[in]b_PositionTurnLength: Selection from SSI position data length (1 to 31).
[in]b_TurnCptLength: Selection from SSI turn counter data length (0 to 31).
[in]dw_SSIOutputClock: Selection from SSI output clock.
From 252 to 5 000 000 Hz
[in]b_SSICountingMode: SSI counting mode selection
  • PCI3009_BINARY_MODE :
    Binary counting mode.
  • PCI3009_GRAY_MODE :
    Gray counting mode.
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a SSI module
-3: The selected SSI profile length is wrong
-4: The selected SSI position data length is wrong
-5: The selected SSI turn counter data length is wrong
-6: The selected SSI output clock is wrong
-7: The selected SSI counting mode parameter is wrong
_INT_ i_PCI3009_Read1SSIValue ( DWORD_  dw_BoardHandle,
BYTE_  b_SelectedSSI,
PDWORD_  pdw_Position,
PDWORD_  pdw_TurnCpt 
)

Read the selected SSI counter (b_SelectedSSI)

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_SelectedSSI: Selection from SSI counter (0 to 2)
[out]pdw_Position: SSI position in the turn
[out]pdw_TurnCpt: Number of turns
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a SSI module
-3: SSI not initialised see function "i_PCI3009_InitSSI"
-4: The selected SSI is wrong
-5: This function does not support more than 32 bits profile length
_INT_ i_PCI3009_ReadAllSSIValue ( DWORD_  dw_BoardHandle,
PDWORD_  pdw_Position,
PDWORD_  pdw_TurnCpt 
)

Read all SSI counter

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]pdw_Position: SSI position in the turn
[out]pdw_TurnCpt: Number of turns
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a SSI module
-3: SSI not initialised see function "i_PCI3009_InitSSI"
-4: This function does not support more than 32 bits profile length