RemoveRead
Removes a variable from a read request. The variable is specified via its address in the TwinCAT PLC. No read request may be pending at the time that the method is executed, i.e. the output bBusy of the function block must be FALSE.
Syntax
METHOD RemoveRead : HRESULT
VAR_INPUT
pVar : PVOID;
END_VAR
Return value
Name | Data type | Description |
---|---|---|
RemoveRead | HRESULT | E_HRESULTAdsErr.NOTINIT = Function block has not been initialized correctly. E_HRESULTAdsErr.BUSY = Request is active E_HRESULTAdsErr.INVALIDDATA = A transfer parameter has been defined incorrectly E_HRESULTAdsErr.INVALIDSIZE = The frame length is greater than the PDU length |
Inputs
Name | Data type | Description |
---|---|---|
pVar | PVOID | Address of the variables in the TwinCAT PLC |
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64) | Tc3_S7Comm (Communication) |