Specifications

Curtis 1310 Manual, Rev. B
35
1 6 F E B R U A R Y 2 0 0 8 D R A F T
Get_Encoder_Count(1)
This function retrieves the current position (count) of the encoder. Note that this
function is not required to get the current count as it is continuously updated in the
ENC#_Count variable.
Data Values
ENC#_Count Variable that is updated with the value of the encoder count.
Parameters
Enc# Identifies which encoder is to be read (ENC1 or ENC2).
Returns
N – Encoder count (0–32767).
Error Codes Bad_ID Incorrect ENC ID was used.
Examples User1=Get_Encoder_Count(ENC1)
or
User1=ENC1_Count
Get_Encoder_Vel(1)
This function retrieves the current velocity (RPM) of the encoder. The output is the
speed in Revolutions Per Minute as scaled by the Setup_Encoder() function. Note
that this function is not required to get the current velocity as it is continuously
updated in the ENC#_Vel variable.
Data Values
ENC#_Vel Variable that is updated with the encoder velocity in RPM.
Parameters
Enc# Identifies which encoder is to be read (ENC1 or ENC2).
Returns
N – Encoder velocity (0–32767).
Error Codes Bad_ID Incorrect ENC ID was used.
Examples User1=Get_Encoder_Vel(ENC1)
or
User1=ENC1_Vel
5 — VCL