62
•
Chapter 8 Hardware & Software Protection
CDS-3310
Amplifier Error Routine
If there is an overcurrent, overvoltage, undervoltage, or Hall input error, the application program will
jump to the #AMPERR automatic subroutine. Once the routine is running, the user can program
conditional statements to alert the operator to the amplifier error, shut off the amplifiers, turn on the
error output, etc.
Instruction Interpretation
#A;JP #A;EN
Dummy Program
#AMPERR Amplifier
Error
Utility
v1=_TA1;v2=_TA2
Set variable v1 to general amplifier; set v2 to Hall Error
IF (v2=1)
Check Hall error on X axis
MG”Hall Error on X”
Alert Operator
ENDIF
IF (v2=2)
Check Hall error on Y axis
MG”Hall Error on Y”
Alert Operator
ENDIF
IF (v2=4)
Check Hall error on Z axis
MG”Hall Error on Z”
Alert Operator
ENDIF
If (v2=8)
Check Hall Error on W axis
MG”Hall Error on W”
Alert Operator
IF (v1=1)
Check for Overcurrent
MG”Overcurrent” Alert
Operator
ENDIF
IF (v1=2)
Check for Overvoltage
MG”Overvoltage” Alert
Operator
ENDIF
IF (v1=4)
Check for Overtemperature
MG”Too Hot!”
Alert Operator
ENDIF
IF (v1=8)
Check for Undervoltage
MG” Voltage too low”
Alert Operator
ENDIF
MO Motors
Off
EN End
Program
Summary of Contents for CDS-3310
Page 26: ...18 i Chapter 2 Getting Started CDS 3310 THIS PAGE LEFT PLANK INTENTIONALLY...
Page 32: ...24 i Chapter 3 Connecting I O CDS 3310 THIS PAGE LEFT PLANK INTENTIONALLY...
Page 124: ...CDS 3310 Chapter 8 Hardware Software Protection i 63 THIS PAGE LEFT PLANK INTENTIONALLY...
Page 138: ...CDS 3310 Chapter 10 Theory of Operation i 77 THIS PAGE LEFT BLANK INTENTIONALLY...