Delta Tau 5xx-603869-xUxx manual Actions on Watchdog Timer Trip

Page 41

Brick Motion Controller Hardware Reference Manual

Watchdog Timer

Brick Motion Controller has an on-board watchdog timer. This subsystem provides a fail-safe shutdown to guard against software and hardware malfunction. To keep it from tripping the hardware circuit for the watchdog timer requires that two basic conditions be met. First, it must see a DC voltage greater than approximately 4.75V. If the supply voltage is below this value, the circuit’s relay will trip and the card will shut down, Brick Motion Controller uses its own DC to DC converter to create 5V and +/-15V from the user supplied 24VDC. This prevents corruption of registers due to insufficient voltage.

The second necessary condition is that the timer must see a square wave input (provided by the Turbo PMAC software) of a frequency greater than approximately 25 Hz. In the foreground, the servo-interrupt routine decrements a counter (as long as the counter is greater than zero), causing the least significant bit of the timer to toggle. This bit is fed to the timer itself. At the end of each background cycle, the CPU resets the counter value to a maximum value set by variable I40 (or to 4096 if I40 is set to the default of 0). If the card, for whatever reason, due either to hardware or software problems, cannot set and clear this bit repeatedly at 25 Hz or greater, the timer will trip and the Turbo PMAC system will shut down.

Actions on Watchdog Timer Trip

When the timer trips due to either under-voltage or under-frequency, the system is latched into a reset state, with a red LED indicating watchdog failure. The processor stops operating and will not communicate. All Servo, MACRO, and I/O ICs are forced into their reset states, which force discrete outputs off, and proportional outputs (DAC, PWM, PFM) to zero-level. In Turbo PMAC2 systems there is a hard-contact relay with both normally open and normally closed contacts. In a system, these outputs should be used to drop power to the amplifiers and other key circuitry if the card fails. Once the watchdog timer has tripped, power to the Turbo PMAC must be cycled off and on, or the INIT/hardware reset line must be taken low, then high, to restore normal functioning.

Diagnosing Cause of Watchdog Timer Trip

Because the watchdog timer is designed to trip on a variety of hardware and software failures, and the trip makes it impossible to query the card, it can be difficult to determine the cause of the trip. The following procedure is recommended to figure out the cause:

1.Reset the Turbo PMAC normally, just power cycle the cycle power. If it does not trip again immediately, there is an intermittent software or hardware problem. Check for the following:

Software events that overload the processor at times (e.g. additional servo-interrupt tasks, intensive

lookahead) or possible erroneous instruction (look for firmware or program checksum).

Review the Evaluating the Turbo PMAC’s Computational Load section of the Turbo USERS manual.

5V power-supply disturbances

Loose connections

2.If there is an immediate watchdog timer trip in Step 1, power up with the re-initialization switch pressed and hold in. If it does not trip now, there is a problem in the servo/phase task loading for the frequency, or an immediate software problem on the board. Check for the following:

Phase and servo clock frequencies vs. the number of motors used by Turbo PMAC. These frequencies may need to be reduced.

A PLC 0 or PLCC 0 program running immediately on power-up (I5 saved at 1 or 3) and taking too much time.

User-written servo or phase program not returning properly.

3.If there is an immediate watchdog timer trip in Step 2, check for hardware issues:

Troubleshooting

33

Image 41
Contents 125 Copyright Information Safety InstructionsOperating Conditions Delta Tau Data Systems, Inc. Technical SupportPage Page Revision History Page Table of Contents Brick Motion Controller Hardware Reference Manual Introduction Brick Motion Controller FeaturesBrick Motion Controller Hardware Reference Manual Brick Motion Controller Options Part NumberMacro and Special Feedback Options Analog I/O OptionsCommunication Options Use of Equipment Receiving and UnpackingBrick Motion Controller Hardware Reference Manual Earth Grounding Paths Wiring Earth-GroundNoise Problems X1-X8 Encoder Input 1 to ConnectorsPin Symbol Function X11/12 Female DB-9 Connector Pin # Symbol Function X9/10 Female DB-9 Connector Pin # SymbolX9-10 Analog I/O Ch5 X9 and Ch6 X10, Optional X11-12 Analog I/O Ch7 X11 and Ch8 X12, OptionalX14 RJ45, Ethernet Connector X13 USB 2.0 ConnectorPin # Symbol X15 WatchdogS2 Firmware Reload Enable TB1 Power ConnectorS1 Re-Initialization on Reset Control Description J4 Limit Inputs 1-4 AxisJ5 Limit Inputs 5-8 Axis Limit and Flag Circuit WiringGND Sample J4/J5, Flags Wiring DiagramsAMP1-AMP8 Amplifier connections 1 to Amplifier Fault / Amplifier Enable diagrams J6 General Purpose I/O J6 General Purpose I/O Female DB-37 Connector Pin # SymbolSourcing Sinking Suggested M-var. # AddressJ7 Extra General Purpose I/O Optional Symbol FunctionSuggested M-var. # Address J8 Extra General Purpose I/O Optional J8 General Purpose I/O Female DB-37 Connector Pin # SymbolSuggested M-var. # Address GBL Sample J6/J7, I/O Wiring DiagramsSignal Format Setting up Quadrature EncodersHardware Setup Function Pin #Channel# Address Description Encoder Loss SetupBipolar Setting up the Analog Inputs optionalFiltered DAC Outputs Configuration optional Parameters to Set up Global Hardware Signals Parameters to Set Up Per-Channel Hardware Signals Software Setup Setting up for Pulse and Direction OutputI7m00 Servo IC m MaxPhase/PWM Frequency Control Multi-Channel Servo IC I-VariablesSingle-Channel I-Variables I7mn6 Servo IC m Channel n Output Mode SelectI7m04 PFM Pulse Width Control I7mn0 Servo IC m Channel n Encoder Decode ControlIxx30 Motor xx Proportional Gain Ixx34 Motor xx Integration ModeExample Ixx31 Motor x Derivative GainBrick Motion Controller Hardware Reference Manual Diagnosing Cause of Watchdog Timer Trip Watchdog TimerActions on Watchdog Timer Trip Troubleshooting X1-8 DB-15 Connectors for encoder feedback DB- Connector Spacing SpecificationsX9-12 DB-9 Connectors for Analog I/O Screw Lock Size for all DB-connectorsType of Cable for Encoder Wiring Appendix a Inputs SchematicsJ6 and J7 General Purpose I/O Outputs Opto Gnd PlaneLimits 1,2,3,4 J4 Limit Inputs for AxisLimits 5,6,7,8 J5 Limit Inputs for AxisDimensional Layout and Connector location