How to use sub-program in LX3V PLC project?
Last modified by Jim on 2023/12/01 10:54
1.General
This document introduces how to use sub-program in PLC project to improve the readability of PLC project.
2.Sub-program
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.
Figure 1
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.
Operating Procedure
- 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);
Figure 2
By using this function, you could keep your subprogram private or just enhance the readability of the plc program.