GetProcessIoStatus()

GetProcessIoStatus() 1:

This method is used to read the EtherCAT status of an I/O element.

Syntax:

METHOD GetProcessIoStatus : HRESULT
VAR_INPUT
    bWcState:               REFERENCE TO BOOL;
    bToggle:                REFERENCE TO BOOL;
    nInfoDataState:         REFERENCE TO UINT;
    sAdsAddr:               REFERENCE TO AMSADDR;
END_VAR

GetProcessIoStatus() 2: Return value

Name

Type

Description

GetProcessIoStatus

HRESULT

Return value with feedback on the success of the execution.

The return value of the method is of type HRESULT. The following return values are to be expected.

E_AdsErr

Return value

Cause

DEVICE_ERROR

0x9B00 0700

The I/O element is in error state.

DEVICE_SYMBOLNOTFOUND

0x9B00 0710

The transferred reference is invalid.

DEVICE_INCOMPATIBLE

0x9B00 070E

The variable type of the transferred structure does not match the I/O element.

DEVICE_SRVNOTSUPP

0x1B00 0701

Function is not supported by the I/O element.

Notice This return value is not marked as an error!

DEVICE_NOERR

0x1B00 000

Execution was successful.

GetProcessIoStatus() 3: Inputs

Name

Type

Description

bWcState

REFERENCE TO BOOL

Reference to a variable to which the WcState is to be written.

bToggle

REFERENCE TO BOOL

Reference to a variable to which the toggle is to be written.

nInfoDataState

REFERENCE TO UINT

Reference to a variable to which the InfoData state is to be written.

sAdsAddr

REFERENCE TO AMSADDR

Reference to a variable to which the AdsAddr is to be written.

Notice Only available with IoEcAds.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.55

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v3.12.5.0)