Panasonic FP Series Programming Manual page 1017

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Program execution control instructions
BRK
The BRK (Breakpoint) instruction stops the execution at the address of this instruction during the
Description
test run mode if the trigger EN is in the ON-state.
Once this instruction is executed, the program halts. To continue the program, the mode in the test
run (continuous run / step run) should be selected. In the step run mode, the program is executed
instruction by instruction regardless of the instructions and in the continuous run mode, the
program is executed until it is stopped by the next break instruction (BRK) or the end of the
program (end instruction ED).
The test run mode is executed, when the mode selector switch on the PLC is
set to RUN mode with setting the INITIALIZE/TEST switch to the TEST mode.
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out.
LD
ST
When programming with structured text, enter the following:
IF
start
THEN
BRK();
END_IF;
1016
Break

Advertisement

Table of Contents
loading

Table of Contents