ADSWRITERESBC
The ADSWRITERESBC function block is used to acknowledge indications of a PLC task. A response is sent to the ADS source device via a positive edge at the RESPOND input. The source device is addressed via the PORT and NETID parameters. The INVOKEID parameter is used by the source device to assign the responses to the requests and is adopted by the output of the ADSWRITEIND function block. An error code can be returned to the ADS source device via the RESULT parameter.
VAR_INPUT
VAR_INPUT
NETID : T_AmsNetId;
PORT : T_AmsPort;
INVOKEID : UDINT;
RESULT : UDINT;
RESPOND : BOOL;
END_VAR
NETID : is a string containing the AMS network ID of the source device to which the ADS command is to be sent.
PORT : contains the port number of the ADS source device, to which the ADS command is to be sent
INVOKEID : contains a handle of the command, which was sent. The InvokeId is specified from the source device and serves to identify the commands.
RESULT : contains the error code, which should be sent to the source device
RESPOND : the function block is enabled via a positive edge at this input.
VAR_OUTPUT
VAR_INPUT
BUSY : BOOL;
END_VAR
BUSY : if the function block is activated, this output is set. It remains set until feedback is received.
Requirements
Development environment |
Target platform |
PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 Build > 517 TwinCAT v2.8.0 Build > 729 |
BC9xxx (165) firmware version >= 0xB7 |
TcAdsBC.Lb6 |