20
UFC_SetDirectionMode
Write counting direction
Prototype:
return = UFC_SetDirectionMode (unsigned char card, unsigned char Axis,
unsigned char Mode);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
Mode:
Counting direction
0 = normal
1 = inverted
UFC_GetDirectionMode
Read out counting direction
Prototype:
return = UFC_GetDirectionMode (unsigned char card, unsigned char Axis,
unsigned char *Mode);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
*Mode:
Selected counting direction
UFC_SetSwitchInit
Initialization of the encoder limit switches
Prototype:
return = UFC_SetSwitchInit (unsigned char card, unsigned char Axis, unsigned char INit);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
INit:
0
a
Encoder limit switch LO-active
1
a
Encoder limit switch HI-active
UFC_GetSwitchInit
Read out initialization of the encoder limit switches
Prototype:
return = UFC_GetSwitchInit (unsigned char card, unsigned char Axis, unsigned char *Init);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
*Init:
Setting of encoder limit switch (0 or 1)