Special instructions
1004
Part III FP Instructions
F155_SMPL
Transfer sampling data
F155_SMPL can only be used with the sampling mode "per Scan".
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Specify the sampling points using Control FPWIN Pro:
Relay contacts: 16 points
Available for (FP format): X, Y, R, L, T, C
Data: 3 words
Available for (FP format): WX, WY, WR, WL, SV, EV, DT, LD, FL
PLC types Availability of F155_SMPL (see page 1321)
Description
This instruction transfers the sampling data specified by the sampling trace editor into the sampling
memory.
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).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
F155_SMPL();
END_IF;