F155_SMPL

Transfer sampling data

This instruction transfers the sampling data specified by the sampling trace editor into the sampling memory.

F155_SMPL can only be used with the sampling mode "per Scan".

Remarks

Specify the sampling points using Control FPWIN Pro:

  • Flags: 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

Example

POU header

All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.

	VAR
		start: BOOL:=FALSE;
			(*activates the function*)
	END_VAR

POU body

When the variable start is set to TRUE, the function is carried out.

LD body

BODY
    WORKSPACE</p>
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
B(B_CONTACT,,start,4,1,6,3,);
B(B_F,F155_SMPL!,Instance,8,0,15,3,,?DEN?AENO);
L(1,2,4,2);
L(6,2,8,2);
L(1,0,1,5);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

IF start then
    F155_SMPL();
END_IF;

Modified on: 2019-01-25Feedback on this pagePanasonic hotline