The following section outlines the functionality of the PPCL Editor work area.

PPCL Editor controls

Select Program. Selects a program from the device and automatically loads it into the PPCL Editor work area. The program is read from the controller into the user’s browser for editing. A toast notification in the lower-right corner will display when a program is successfully loaded into the PPCL Editor.

  • A busy indication will display inside the Select program selector while the system processes the request if the program is large.
  • A successful indication will briefly display inside the Select program selector when a program has been successfully loaded. A toast notification will also appear at the lower-right corner of the screen.
  • A warning indication will display inside the Select program selector if a program has failed to be retrieved. A toast notification will also appear at the lower-right corner of the screen.

Save. Sends the selected program from the user’s browser to the controller. Once the program is compiled and analyzed by the controller, it is returned to the editor with line status indicators and inline notifications.
The Save button is enabled once a program has been selected and loaded into the editor.

Clear Trace. Clears trace bits from the program. A response is returned to the work area that indicates that the command has succeeded or failed.
The Clear Trace button is enabled once a program has been selected and loaded into the editor.
Disabled if a program has been modified but not saved to the controller.

Reload. Reloads the selected program into the editor.
The Reload button is enabled once a program is selected and loaded into the editor.

Work area

Displays loaded PPCL Programs. In the work area, you can:

  • Edit lines in the program.
  • View information about the program, such as line status indicators.
  • Insert comments into the program.
  • Copy or move program lines.
  • Adjust statement numbers.
  • Search for text in a program.
  • Enable and disable program statements.

Fatal errors are displayed at the top of the work area and removed from the program.

Minimap

Displays the entire program in a small window on the right side of the work area. Use it to quickly scroll around a large program.

Find bar

Press CTRL+F to invoke the Find bar. The Find bar allows you to search within the program with options to Match Case, Match Whole Word, and Use Regular Expression.

Click to expand the Replace function. Press Enter to replace a single piece of code the program or press CTRL+ALT+Enter to replace all instances of a piece of code within the program.

Inline notifications

Displays syntax, fault, and unresolved errors that are found in the program. Inline notifications display above the PPCL Editor controls.

Fatal errors are displayed at the top of the work area and removed from the program automatically.

Command palette

Press F1 or right-click anywhere in the work area to access the Command palette.
The Command palette contains useful commands to help you modify a program in the editor.

Not all commands on the Command palette are relevant to PPCL programming.