BECKHOFF ET9300 User Manual

Page 27

Advertising
background image

Application Note ET9300

25

Prototype:

void HW_EscWriteByteIsr(UINT8 ByteValue, UINT16 Address)

Parameter

“ByteValue”

Local 8Bit variable which contains the data to be written to
the ESC memory area

“Address”

EtherCAT Slave Controller address. Specifies the offset
within the ESC memory area in Bytes.

Return

void

Description

This function should be implemented if a special function for ESC access from
interrupt service routines is required; otherwise this function is defined as
“HW_EscWriteByte”.
Writes one byte to the EtherCAT Slave Controller.
Only

defined if “ESC_16BIT_ACCESS” and “ESC_32BIT_ACCESS” are

disabled.

Prototype:

void HW_EscWriteMbxMem(MEM_ADDR *pData, UINT16 Address,
UINT16 Len )

Parameter

“pData”

Pointer to local source mailbox buffer. Type of the pointer
depends on the host controller architecture (specified in
ecat_def.h or the SSC Tool).

“Address”

EtherCAT Slave Controller address. Specifies the offset
within the ESC memory area in Bytes. Only valid addresses
are used depending on 8Bit/16Bit or 32 Bit ESC access
(specified in ecat_def.h or the SSC Tool).

“Len”

Access size in Bytes.

Return

void

Description

Writes data from the slave mailbox memory to ESC memory. If the local
mailbox memory is also located in the application memory this function is equal
to “HW_EscWrite”.

“Address”

EtherCAT Slave Controller address.Specifies the offset within
the ESC memory area in Bytes.

Return

void

Description

Writes one byte to the EtherCAT Slave Controller.
Only defined if “ESC_16BIT_ACCESS” and “ESC_32BIT_ACCESS” are
disabled.

Advertising