Message display
This instruction is used for displaying the message on the FP Programmer II screen. After executing the F149_MSG instruction, you can see the message specified by s_Start on the FP Programmer II screen.
Input
Message to be displayed
When the F149_MSG instruction is executed, the message-flag R9026 is set and the message specified by s_Start is set in special data registers DT9030 to DT9035 (DT90030 to DT90035 for FP0 T32CP, FP2/2SH, FP10/10S/10SH). Once the message is set in special data registers, the message cannot be changed even if the F149_MSG instruction is executed again. You can clear the message with the FP Programmer II.
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
When the variable start is set to TRUE, the function is carried out.
BODY
WORKSPACE
NETWORK_LIST_TYPE := NWTYPELD ;
ACTIVE_NETWORK := 0 ;
END_WORKSPACE
NET_WORK
NETWORK_TYPE := NWTYPELD ;
NETWORK_LABEL := ;
NETWORK_TITLE := ;
NETWORK_HEIGHT := 6 ;
NETWORK_BODY
B(B_VARIN,,'Hello~ world',8,3,10,5,);
B(B_CONTACT,,start,3,2,5,4,);
B(B_F,F149_MSG,,10,1,18,5,,?DEN?D@'s'?AENO);
L(1,0,1,6);
L(1,3,3,3);
L(5,3,10,3);
END_NETWORK_BODY
END_NET_WORK
END_BODY
IF start then
F149_MSG('Hello, world');
END_IF;