Debugging a Hot Standby Application
Original instructions
Introduction
You can write an application for your Quantum Hot Standby system in almost the same manner as you would for any other Quantum PLC. This is because the Quantum Hot Standby system does not require the use of special function blocks or user actions to provide most redundant features. There are some important exceptions to this statement. See Restricted Functions
NOTE: When in this section we use the word Debug, it doesn’t mean Debug mode (which concerns the use of break point), it means that we are debugging the application with all other tools that Control Expert software provides.
Debug and Diagnostic
The following tables presents Debug and Diagnostic operations for Quantum Hot Standby PLCs:
Diagnostic
140 CPU 671 60
140 CPU 671 60S
140 CPU 672 6•
140 CPU 678 61
Diagnostic Function Block
Yes
Yes
Yes
Yes
Diagnostic Buffer
Yes
Yes
Yes
Yes
Diagnostic Buffer characteristics
Max buffer size
16KB
25KB
25KB
25KB
Max errors
160
254
254
254
Breakpoint*
1 max
1 max
1 max
1 max
Step by step (Into, over, and out)
Yes
Yes
Yes
Yes
Variable animation
  • End of MAST
  • Watch Point
  • End of MAST
  • Watch Point
  • End of MAST
  • Watch Point
  • End of MAST
  • Watch Point
Link animation
Yes
Yes
Yes
Yes
* Use of breakpoints is forbidden on a functioning (redundant) Hot Standby system.
If the primary CPU is connected to a standby PLC, do not use breakpoints on a primary CPU as this can cause a switchover.
You can use a breakpoint if the standby CPU is not connected or stopped.
Debug the Control/Command of the Procedure
Debugging a Quantum Hot Standby application program is a two-stage process:
  1. Debug the basic program operation on one of the Hot Standby PLCs running as a Standalone PLC. When you do this, all of the debug and diagnostic resources noted in the tables above are available.
    NOTE: If a standalone Hot Standby controller is not available, put the Standby PLC into a Non Conf state and do this first stage of debugging on the Primary PLC.
  2. Debug any redundancy-specific aspects of your program on a functioning (redundant) Hot Standby system that is not actively managing your process. When performing this second stage, the debug and diagnostic resources in the tables above are not available.
WARNING
UNINTENDED EQUIPMENT OPERATION
When debugging the redundancy-specific aspects of your application program:
  • Always debug your application on a fully functioning Hot Standby system.
  • Only conduct debugging on a Hot Standby system that is not actively managing your process.
  • Do not use the Control Expert debug and diagnostic features except as permitted by this manual.
  • Confirm that the interaction of the MAST task mode and duration with the Watchdog values meet the needs of your application.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
When you are conducting the second stage of debugging, confirm that you initially connect to the PLC currently acting as Primary. The Standby PLC only executes section 0 of the MAST task of your application program.
Debug the First Section of the MAST task in Standby PLC
To debug the first section in the Standby PLC application, the following points have to be taken into account:
Debugging the Redundancy Part
Do not attempt to debug or otherwise verify the performance of an application intended for use in a Hot Standby system on a non-Hot Standby PLC. You must debug Hot Standby-related applications on a Hot Standby PLC.
Do not use the debug and diagnostic operations normally available for Quantum PLCs on a redundant Hot Standby system. The operations such as step-by-step and breakpoints halt program execution and eliminate the redundancy of the Hot Standby system.
NOTE: A Switchover is not generated when the Primary application stops on a breakpoint.
The debugging that can be accomplished once your application program is loaded onto a redundant Hot Standby system offers the following debugging features:
Once the Hot Standby PLCs have entered either the Primary or Standby operating modes, confirm that: