Create a routine for the controller fault handler

Use these steps to create a fault routine to operate as the controller fault handler. Program tags are automatically created during this process.
IMPORTANT:
When programming the fault handler, remember that any instruction that is skipped as part of the fault-handling program does not run when the main tasks and associated programs run.
For example, if the fault handler skips a JSR instruction that is causing a major fault, then that JSR instruction, including all of the programming within the subroutine, does not run.
When an instruction generates an error due to a fault (for example, a COP with an indirect addressing programming error), the instruction is skipped and does not run. This occurs with all instructions.
To create a routine for the controller fault handler
  1. In the Controller Organizer, right-click
    Controller Fault Handler
    and select
    New Program
    .
    L5K_PM014_ControllerFaultHandlerNewProgram_v31
  2. On the
    New Program
    dialog box, in
    Name
    , type a program name. Verify that
    Schedule in
    is set to
    Controller Fault Handler
    .
    L5K_PM014_Fault_Handler_Program_props_pg20_v22
  3. Select
    OK
    .
  4. In the Controller Organizer, right-click the program created in step 2 and select
    Add
    >
    New Routine
    .
    L5K_PM014_ControllerFaultHandlerNewRoutine_v31
  5. On the
    New Routine
    dialog box, in
    Name
    , type a name for the routine.
  6. In
    Type
    , choose the type of routine to create. The default is Ladder Diagram.
  7. In
    Assignment
    , use the default setting,
    Main
    .
    TIP:
    Even though
    Fault
    is an option in the
    Assignment
    , assigning the routine as a fault routine within the Controller Fault Handler is not necessary.
  8. Select
    OK
    .
    The fault routine is created in the
    Controller Fault Handler
    program.
    L5K_PM014_ControllerFaultRoutine_v31
  9. Double-click the fault routine to edit it.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal