FB_CoEService

FB_CoEService 1:

This class provides a read and write service for CoE-addressable EtherCAT devices. This can be used to read and/or write internal information from a field device, for example.

Syntax:

FUNCTION_BLOCK FB_CoEService EXTENDS FB_MessageBase

FB_CoEService 2: Properties

Name

Type

Access

Description

AdsAddr

AMSADDR

Get, Set

ADS address of the target device.

Is set automatically when an existing field device is linked via EcDevice.

Busy

BOOL

Get

The service is currently performing a read or write operation.

Config

I_CoEParameter

Get

Information on the parameter to be read: address, data type, memory type, validation

Done

BOOL

Get

The read or write process has been successfully completed.

EcDevice

I_IoEcAds

Get, Set

Transfer of an existing I/O element with mapping of the ADS address

Error

BOOL

Get

An error has occurred during the read or write process.

ErrorId

UDINT

Get

Error code of the last error that occurred.

FB_CoEService 3: Methods

Name

Description

Cyclic()

Cycle method

Read(bExecute)

Commands a read process.

Write(bExecute)

Commands a write process.

FB_CoEService 4: Interfaces

Type

Description

I_CoEService

Standard interface on FB_CoEService.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.55

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v12.6.1.0)