Individual Components 'Online' 'Reset' This command resets - with exception of the retain variables (VAR RETAIN) - all variables to that specific value, with which they have got initialized (also those variables which have been declared as VAR PERSISTENT !). If you have initialized the variables with a specific value, then this command will reset the variables to the initialized value. All other variables are set at a standard initialization (for example, integers at 0). As a precautionary measure, TwinCAT PLC Control asks you to confirm your decision before all of the variables are overwritten.
The situation is that which occurs in the event of a power failure or by turning the controller off, then on (warm restart) while the program is running. Use the ' Online' 'Run' command to restart the program. ‘Online’ ‘Reset All’ This command resets all variables including the persistent ones ( PERSISTENT) to their initialization values and erases the user program on the controller. The controller is returned to its original state. 'Online' 'Toggle Breakpoint' Shortcut: This command sets a breakpoint in the present position in the active window. If a breakpoint has already been set in the present position, that breakpoint will be removed.
The position at which a breakpoint can be set depends on the language in which the POU in the active window is written. In the Text Editors (IL, ST), the breakpoint is set at the line where the cursor is located, if this line is a breakpoint position (recognizable by the dark-gray color of the line number field). You can also click on the line number field to set or remove a breakpoint in the text editors. In FBD and LD, the breakpoint is set at the currently selected network. In order to set or remove a breakpoint in the FBD or LD Editor, you can also click on the network number field. In SFC, the breakpoint is set at the currently selected step.
In SFC you can also use with a doubleclick to set or remove a breakpoint. If a breakpoint has been set, then the line number field or the network number field or the step will be displayed with a light-blue background color. If a breakpoint is reached while the program is running, the program will stop, and the corresponding field will be displayed in a red background color. In order to continue the program, use the "Online" "Run" , "Online" "Step in" , or "Online" "Step Over" commands. You can also use the Breakpoint dialog box to set or remove breakpoints. 'Online' 'Breakpoint Dialogbox' This command opens a dialog box to edit breakpoints throughout the entire project.
The dialog box also displays all breakpoints presently set. In order to set a breakpoint, choose a POU in the POU combobox and the line or the network in the Location combobox where you would like to set the breakpoint; then press the Add button. The breakpoint will be added to the list. In order to delete a breakpoint, highlight the breakpoint to be deleted from the list of the set breakpoints and press the Delete button. The Delete All button can be used to delete all the breakpoints. In order to go to the location in the editor where a certain breakpoint was set, highlight the respective breakpoint from the list of set breakpoints and press the Go to button.
To set or delete breakpoints, you can also use the ' Online' 'Toggle Breakpoint' command. TX1200 105 Version: 1.3