This document introduces how to use sub-program in PLC project to improve the readability of PLC project.
Sub-program is a part of program, which can be called by P registers.
There are 2 sub-programs (P0 AND P1) in PLC program as Figure 1 shows. But the P0 is hidden so users can just see the program of P1.
3. Hide the sub-program
In WECON PLC Editor, the sub-program can be hidden to improve the readability of PLC program. This chapter will introduce how to hide the sub-program.
- Right click on the red circle area (please see Figure 1);
- Select the “encrypt” in Right-click menu, as Figure 2 shows;
- Set password (the default password in the demo plc project is 12345678);
By using this function, you could keep your subprogram private or just enhance the readability of the plc program.
Date: Feb 2017