21
www.rsf.at
6.2.3 Functions for Error Messages and Status
UFC_ClearError
Clear error messages (status bit 4)
Prototype:
return = UFC_ClearError (unsigned char card, unsigned char Clear);
return: (-2…1)
card:
Number of the module (0…7)
Clear:
Bit 0 = 0
a
Do not clear error for counter 1 (axis 0)
1
a
Clear error for counter 1 (axis 0)
Bit 1 = 0
a
Do not clear error for counter 2 (axis 0)
1
a
Clear error for counter 2 (axis 1)
Bit 2 = 0
a
Do not clear error for counter 3 (axis 0)
1
a
Clear error for counter 3 (axis 2)
UFC_GetCounterStatus
Read out counter status
Prototype:
return = UFC_GetCounterStatus (unsigned char card, unsigned char Axis,
unsigned short *Status);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
*Status:
Bit 0 = 0
a
Encoder track A inactive
1
a
Encoder track A active
Bit 1 = 0
a
Encoder track B inactive
1
a
Encoder track B active
Bit 2 = 0
a
Encoder track R inactive
1
a
Encoder track R active
Bit 3 = 0
a
Encoder signal monitoring inactive
1
a
Encoder signal monitoring active
(Encoder input pin 14 of encoders with TTL signals,
amplitude monitoring for encoders with analog input (1 Vpp))
Bit 4 = 0
a
Encoder frequency monitoring inactive
1
a
Encoder frequency monitoring active
Bit 5 = 0
a
First reference mark not traversed
1
a
First reference mark traversed
Bit 6 = 0
a
Second reference mark not traversed
1
a
Second reference mark traversed
Bit 7 = 0
a
Reference pulse inhibit inacitve
1
a
Reference pulse inhibit active
Bit 8 = 0
a
Encoder trigger signal S1 inactive
1
a
Encoder trigger signal S1 active
Bit 9 = 0
a
Encoder trigger signal S2 inactive
1
a
Encoder trigger signal S2 active