26
UFC_RefPar
Write to parameters for encoders with distance-coded reference marks
Prototype:
return = UFC_RefPar (unsigned char card, unsigned char Axis, unsigned short RefDis,
unsigned short RefOffset, long Ref1, long Ref2, long PosOffset, long *EncOffset);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
RefDis:
Basic spacing of the reference marks
RefOffset:
Reference offset
Ref1:
Current count on first reference mark
Ref2:
Current count on second reference mark
PosOffset:
Counter offset
*EncOffset:
Encoder offset
UFC_GetPosRef
Read out count values in consideration of the distance-coded reference mark
Prototype:
return = UFC_GetPosRef (unsigned char card, unsigned char Axis, unsigned char Reg,
unsigned long *Data);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
Reg:
Latch register (0 or 1)
*Data:
Contents of latch register set against the reference parameters