When a PBC instruction is executed, the program between PBC and PBR will be executed.
PBC and PBR instructions can be used only in MAIN. They cannot be used in other parts of the program.
When the PBC instruction is turned ON, the bit variable in D1 will turn ON. The program running between PBC and PBR instructions executes ON processing until the PBC instruction turns OFF.
For every PBC instruction, one PBR instruction is always required.
PBC/PBR instruction S1 specifies nesting level. The processing of the specified level between PBC and PBR is executed.
Program example (without nesting)
When the variable of the normally open instruction is ON, the PBC instruction will execute. When the PBC instruction is executed, processing between PBC and PBR instructions is executed.
When the PBC instruction is OFF (PBC execution bit is OFF)
The ADD instruction does not execute even when the normally open instruction in the third rung is ON.
The MOV instruction does not execute even when the normally open instruction in the fourth rung is ON.
When the PBC instruction is ON (PBC execution bit is ON)
The ADD instruction is executed when the normally open instruction in the third rung is ON.
The MOV instruction is executed when the normally open instruction in the fourth rung turns ON.