3 process data handling, 4 interface variables, Process data handling – BECKHOFF ET9300 User Manual

Page 32: Interface variables

Advertising
background image

30

Application Note ET9300

Prototype:

UINT16 APPL_GenerateMapping (UINT16 *pInputSize, UINT16
*pOutputSize)

Parameter

Pointer to two 16bit variables to store the process data size.
pInputSize : Input process data (Slave -> Master).
pOutputSize : Output process data (Master - > Slave).

Return

See generic ESM return code description

Description

This function is called when the transition from PREOP to SAFEOP is
requested by the EtherCAT master. This function shall calculate the process
data size in bytes The values are required to check the SyncManager settings
and for the generic process data handling.

Prototype:

Void APPL_AckErrorInd(UINT16 stateTrans)

Parameter

stateTrans : Indicates the current state transition .

Return

Void

Description

This function is called when the master acknowledge and Error.

6.3.3

Process data handling

Prototype:

void APPL_InputMapping(UINT16 *pData)

Parameter

pData

Pointer to the input process data.

Return

Void

Description

This function is called after the application call to map the input process data to
the generic stack (The generic stack will copy the data to the SM buffer).

Prototype:

void APPL_OutputMapping(UINT16 *pData)

Parameter

pData

Pointer to the output process data.

Return

Void

Description

This function is called before the application call to get the output process data.

6.4

Interface Variables

Name

ApplicationObjDic

Type

Array of structure TOBJECT (see 7.5 for structure definition)

Description

Only required if the slave supports CoE. The variable shall be defined in the
application header file. This array contains the application specific objects. The
last element of this array shall have the index 0xFFFF.

Advertising