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.
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.
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.
Reload. Reloads the selected program into the editor.
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.
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.
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.
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.
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.