Enable or disable the TCP delayed acknowledgement
This FP instruction enables or disables the TCP delayed acknowlegement for Ethernet communication.
This instruction enables/disables TCP delayed acknowledgement for the FP7. Disabling TCP delayed acknowledgement for the FP7 speeds up communication if the other device is set to use TCP delayed acknowledgement.
Input
TRUE: Ethernet TCP delayed acknowledgement enabled
FALSE: Ethernet TCP delayed acknowledgement disabled
This instruction cannot be executed while the built-in Ethernet is being initialized. Before you execute the instruction, make sure that sys_bIsEthernetIPAddressAssigned is set to FALSE.
Set this instruction to be executed only one time after switching to RUN mode.
Upper and lower case characters can be used for operands for which a character constant can be specified. "Abcd", "ABCD" and "abcd" are synonymous, however, file names are case-sensitive.
When the power is turned ON, TCP delayed acknowledgement is enabled. After this instruction is executed by setting bEnable to FALSE, TCP delayed acknowledgement is disabled and the FP7 sends acknowledgements without delay.
Use the system variable sys_bIsEthernetTCPDelayedAckEnabled to check whether TCP delayed acknowledgement is enabled (TRUE) or disabled (FALSE).
if the instruction is executed during the initialization of Ethernet, sys_iEthernetConnectionErrorCode is set to "11: Ethernet is being initialized".
When the variable sys_bIsEthernetTCPDelayedAckEnabled is set to TRUE, the function is carried out.
BODY
WORKSPACE
NETWORK_LIST_TYPE := NWTYPELD ;
END_WORKSPACE
NET_WORK
NETWORK_TYPE := NWTYPELD ;
NETWORK_LABEL := ;
NETWORK_TITLE := ;
NETWORK_HEIGHT := 5 ;
NETWORK_BODY
B(B_CONTACT,,sys_bIsEthernetTCPDelayedAckEnabled,9,2,11,4,);
B(B_F,FP_ETHERNET_SET_TCP_DELAYED_ACK!,,20,1,39,5,,?DEN?DbEnable?AENO);
B(B_VARIN,,FALSE,18,3,20,5,);
L(1,0,1,5);
L(1,3,9,3);
L(11,3,20,3);
END_NETWORK_BODY
END_NET_WORK
END_BODY
if (sys_bIsEthernetTCPDelayedAckEnabled) then
FP_ETHERNET_SET_TCP_DELAYED_ACK(bEnable := FALSE);
end_if;