RemoveWrite

RemoveWrite 1:

Removes a variable from a write request. The variable is specified via its address in the TwinCAT PLC. No write 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 RemoveWrite    : HRESULT
VAR_INPUT
    pVar              : PVOID;
END_VAR

RemoveWrite 2: Return value

Name

Data type

Description

RemoveWrite

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

RemoveWrite 3: 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)