Get PLC link settings
This FP instruction monitors the PLC link settings of all PLC link stations connected to the communication port specified by s_Port of the CPU unit and stores the result in the DUT d_adutPlcLinkParameter.
Input
Specifies the communication ports depending on the PLC type:
COM port e.g. SYS_COM0_PORT
MCU/SCU e.g. 16#xx01 (xx = slot number) in COM01
Output
Array of data unit types for the PLC link settings of the PLC link stations connected to the specified COM port (ARRAY [1..16] OF FP_COM_PLCLINK_PARAMETER_DUT)
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
adutPlcLinkStationsParameter: ARRAY [1..16] OF FP_COM_PLCLINK_PARAMETER_DUT;
END_VAR
BODY
WORKSPACE
NETWORK_LIST_TYPE := NWTYPELD ;
END_WORKSPACE
NET_WORK
NETWORK_TYPE := NWTYPELD ;
NETWORK_LABEL := ;
NETWORK_TITLE := ;
NETWORK_HEIGHT := 4 ;
NETWORK_BODY
B(B_F,FP_COM_GET_PLCLINK_STATIONS_PARAMETER!,,15,0,37,4,,?DEN?Ds_Port?AENO?Cd_adutPlcLinkParameter);
B(B_VARIN,,SYS_COM0_PORT,13,2,15,4,);
B(B_VAROUT,,adutPlcLinkStationsParameter,37,2,39,4,);
L(1,0,1,4);
L(1,2,15,2);
END_NETWORK_BODY
END_NET_WORK
END_BODY
FP_COM_GET_PLCLINK_STATIONS_PARAMETER(s_Port := SYS_COM0_PORT,
d_adutPlcLinkParameter => adutPlcLinkStationsParameter);