BECKHOFF ET9300 User Manual

Page 26

Advertising
background image

24

Application Note ET9300

Prototype:

void HW_EscWriteDWordIsr(UINT32 DWordValue, UINT16 Address)

Parameter

“DWordValue”

Local 32Bit 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. Only valid 32Bit
addresses are used.

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_EscWriteWord”.
Writes two words to the EtherCAT Slave Controller.

Prototype:

void HW_EscWriteWordIsr(UINT16 WordValue, UINT16 Address)

Parameter

“WordValue”

Local 16Bit 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. Only valid 16Bit addresses
are used.

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_EscWriteWord”.
Writes one word to the EtherCAT Slave Controller. Only required if
“ESC_32BIT_ACCESS” is not set.

Prototype:

void HW_EscWriteWord(UINT16 WordValue, UINT16 Address)

Parameter

“WordValue”

Local 16Bit 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. Only valid 16Bit addresses
are used.

Return

void

Description

Writes one word to the EtherCAT Slave Controller. Only required if
“ESC_32BIT_ACCESS” is not set.

Prototype:

void HW_EscWriteByte (UINT8 ByteValue, UINT16 Address)

Parameter

“ByteValue”

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

Advertising