Cockpit: Controlling the Application
Note
This topic only applies to the standard (non-safety-related) controller. The steps for the Safety PLC are described in the help chapter "Safety PLC Commissioning: From Compiling to Debugging ![]() ×‣ Connecting vs. Monitoring Mode vs. Debug Mode ×‣ Controlling the Safety Application from the Safety Cockpit ×‣ Safety PLC Diagnostics out of the Safety Cockpit ×‣ Monitoring/Debugging the Safety PLC ×‣ Monitoring Mode: Displaying Online Values ×‣ Debugging Safety-Related Code: Forcing/Overwriting ×‣ WATCHES: Monitoring/Debugging the Safety-Related Application ×‣ Safety PLC Simulation ×". |
- Display of the essential diagnostic information on the controller.
- Main control functions to start, stop, and reset the controller, and to read project sources from the controller.
WARNING
|
Unintended machine operation
|
Note
Poor internet connection? Performance problems due to VPN connection? You can adapt the TCP communication settings by increasing the handshake timeout value and the polling interval. See topic "TCP Communication Connection". |
How to open the controller 'Cockpit'
Cockpit toolbar commands for controlling the application
The 'Cockpit' toolbar provides all commands for controlling the application.
Note
Which commands are actually provided, depends on the controller type involved. |
- Writing the project to the controller and starting the application (observe the safety warning message noted at the beginning of this topic)
- Stopping the controller
- Restarting the application (cold, warm, hot, depending on the controller type)
- Rebooting and/or resetting the controller (normal or factory reset, depending on the controller type)
- Loading project sources stored on the controller into PLCnext Engineer, if supported by the controller type
Some of the commands are also available in the context menu of the controller in the ONLINE STATE window which is located in the Cross Function Area at the bottom of the screen.
Note
The commands for debugging the application in debug mode are provided in the CALL STACKS window and in the BREAKPOINTS window. |
Note
The commands, i.e., functionalities provided in the Cockpit depend on the controller type. Icons described here may be not available if the function is not supported by the controller. |
Toolbar button | Keyboard shortcut | Description | ||
---|---|---|---|---|
![]() | - | Establishes/disconnects a communication connection between PLCnext Engineer and the controller.
![]() Examples: ![]() ![]() ![]() ![]()
|
||
![]() | - | Activates the debug mode by attaching PLCnext Engineer to the running application process on the controller.This command is only available, if a communication connection exists between PLCnext Engineer and the controller (see previous table line).In debug mode, the controller icon in the PLANT indicates the controller status. Examples:
![]() ![]() ![]() ![]()
|
||
![]() | - | If the controller implements a secure device concept, the 'Logon/Logoff' command is available as Cockpit button and in the context menu of the controller icon.While you are logged off, the command opens the logon mask where you have to enter a user name and password for the desired user role. Logging on to the controller automatically establishes a communication connection to the controller.If you are logged on, the command logs you off from the controller and terminates the communication connection to the controller ('Disconnect').Refer to the topic "Network Security" for details. | ||
![]() | - | If the controller implements a secure device concept, the 'Switch User' command is available as Cockpit button and in the context menu of the controller icon.Switch the user role: the command logs off from the controller in order to log on with a different user name (role). The command is only available, while you are logged on to the controller. This is indicated by a green shield symbol ![]() |
||
![]() | - | If the controller implements a secure device concept, the 'Change Password' command is available as Cockpit button and in the context menu of the controller icon.Opens a dialog where you can change the password of the user currently logged on at the controller. In the dialog, enter the user name, the current password and the new password. (You can click on the "eye" icon to view an entered password.) Retype your new password in the last input field, and confirm with clicking the arrow button right to the last input field. The command is only available, while you are logged on to the controller. This is indicated by a green shield symbol ![]() |
||
![]() | - | For those controllers that support several 'Write' commands, these commands may be organized in a drop-down button list shown left. The command executed last remains visible in the toolbar.
![]() |
||
![]() | <F5> | "All in one" command 'Write and Start Project'. The following is executed:
![]() ×‣ WATCHES: Monitoring/Debugging the Application ×‣ Debugging Code: Forcing/Overwriting ×‣ Debugging Code: Breakpoints ×‣ Monitoring/Debugging the Safety PLC ×‣ Monitoring Mode: Displaying Online Values ×‣ Debugging Safety-Related Code: Forcing/Overwriting ×‣ WATCHES: Monitoring/Debugging the Safety-Related Application ×.The command is only available if PLCnext Engineer is connected to the controller. It is not necessary to switch to debug mode.
|
||
![]() | <Ctrl> + <F5> | "All in one" command 'Write and Start Project (with Sources)'. The command includes the same operations as the 'Write and Start Project' command described in the preceding table row. Additionally, it includes the project sources and stores them on the controller.Project sources stored on the controller can be read and loaded into PLCnext Engineer with the 'Read Sources' command (if supported by the controller - see below).The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode.This feature may not be available for all controller types. |
||
![]() | - | This feature may not be available for all controller types."All in one" command 'Write and Start Project Changes': after modifying the project, it is rebuild and automatically written to the running controller. The controller then switches from the old to the new project version without stopping or a reset. Therefore, the list of executed operations corresponds to the list under the 'Write and Start Project' command, except the controller reset and restart.
|
||
![]() | - | This feature may not be available for all controller types."All in one" command 'Write and Start Project Changes (with Sources)'. The command includes the same operations as the 'Write and Start Project Changes' command described in the preceding table row. Additionally, it includes the project sources and stores them on the controller.The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode. |
||
![]() | - | Updates the displayed diagnostic information in the Cockpit.The command is only available if PLCnext Engineer is connected to the controller. It is not necessary to switch to debug mode. | ||
![]() | - | Launches the default web browser that is configured for your computer and executes the visualization (HMI application). The display starts with the HMI page specified as start page.The HMI application can be run using the integrated web server of the controller.The command is only available if the PC running PLCnext Engineer and the controller are physically connected to the network and the controller is reachable in the network.Refer to the topic "Running the HMI Application" for further details. | ||
![]() | - | Access to network device via the default web browser that is configured for your computer.PLCnext Engineer allows you to access the web-based management (WBM) interface of a device directly from the Cockpit. The web-based management interface can be used to manage and configure the device from
anywhere in the network using a standard browser.
|
||
![]() | - | This feature may not be available for all controller types.Loads the project sources stored on the controller into PLCnext Engineer.Refer to the topic "Reading project sources from the controller".The command is only available if PLCnext Engineer is connected to the controller. It is not necessary to switch to debug mode. | ||
![]() | - | This feature may not be available for all controller types.Sets the real-time clock on the controller to the current system time of the computer.The command is only available if PLCnext Engineer is connected to the controller. It is not necessary to switch to debug mode. | ||
![]() | - | This feature may not be available for all controller types.If pressed, the controller switches from the Run state to the Halt state if a string error has been detected. | ||
![]() | <Ctrl> + <Alt> + <F2> | Stops the program execution on the controller.The command is only available if PLCnext Engineer is connected to the controller and the controller is running. It is not necessary to switch to debug mode. If debug mode is active, the controller status changes from "Running" to "Stopped" (indicated by the controller icon in the PLANT). | ||
![]() | - | For those controllers that support retain handling, several possibilities for restarting the controller are available. According to the IEC 61131 standard, the following restarts are provided:
![]() |
||
![]() | <Ctrl> + <Alt> + <F3> | A hot start is not supported by all controller types.Executes a hot start on the controller. During a hot start no data are initialized. Instead, the program is continued with the current variable values.After executing the command, PLCnext Engineer automatically attaches to the running project on the controller and switches to debug mode.The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode.
|
||
![]() | <Ctrl> + <Alt> + <F4> | A warm start is not supported by all controller types.Executes a warm start on the controller. During a warm start, only non-retentive data are initialized.After executing the command, PLCnext Engineer automatically attaches to the running project on the controller and switches to debug mode.The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode.
|
||
![]() | <Ctrl> + <Alt> + <F5> | Executes a cold start on the controller. During a cold start all data are initialized.After executing the command, PLCnext Engineer automatically attaches to the running project on the controller and switches to debug mode.The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode. | ||
![]() | - | Saves the retain data to a backup file. This way, you can "preserve" a particular condition of your application at a desired point in time. You can reload these values later (see next table row).By copying the backup file to an SD card, retain values can, for example, be reused after a controller replacement or transferred to different controllers/applications.This command is available while the controller is connected to PLCnext Engineer and you are logged on to the controller. The command can be executed independently of the controller state.
|
||
![]() | - | Restores the latest retain data from a backup file (*.prb). This way, you can reload a particular condition of your application you have saved before (see previous table row).The command is only available while the controller is connected to PLCnext Engineer and in Stop state, and you are logged on to the controller.Clicking the button preloads the last saved retain values from the backup file and then executes an extended warm start.
|
||
![]() | <Ctrl> + <Alt> + <F6> | Reboots the controller. The operation corresponds to a Power Off/On operation. The loaded application (code and network configuration) is deleted from the RAM. The controller reboots with the settings stored last and loads the boot project stored in the Flash Memory, if available. The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode. | ||
![]() | - | Resets the controller to factory defaults. Similar to the 'Reboot' command, the loaded application (code and network configuration) is deleted from the RAM and Flash Memory (Boot Project). Additionally, all communication settings are reset to default settings. After executing the command, the controller has its original configuration state as when unboxing it.The command is only available if PLCnext Engineer is connected to the controller and the controller is stopped. It is not necessary to switch to debug mode. | ||
![]() | - | Enables the use of breakpoints on the connected controller. Set breakpoints are only activated (i.e., the controller only halts at a breakpoint), if the use of breakpoints is enabled (button is pressed). Otherwise, none of the defined breakpoints can become activated, regardless of the commands you execute in online code worksheets or the BREAKPOINTS window.Refer to the topic "Debugging code: Breakpoints" for details. | ||
![]() ![]() ![]() | - | Three buttons at the right side of the toolbar that provide options for extended debugging.
|
||
![]() | - | This command is only active, if the 'Execution Value' mode (with or without Execution Indication) has been selected using the buttons described in the previous table row. The button opens a dialog, where you can modify the selection of POUs for which you want to see execution values.
|
||
![]() | - | The button is only available forPLCnext Technology controllers with redundancy function. In addition, both controllers must be reachable and in SYNC (work synchronously) or HSBY (Hot Standby) state.Performs a switch-over of the redundancy role of the controllers, i.e., the PRIMARY controller becomes the BACKUP controller and vice versa.
|