Delta EtherCAT Programming Manual page 427

Table of Contents

Advertisement

Operating MRAM on PAC
API list of MRAM in PAC
_ECAT_Master_MRAM_Write_Word_Data
30
_ECAT_Master_MRAM_Read_Word_Data
_ECAT_Master_MRAM_Write_DWord_Data
_ECAT_Master_MRAM_Read_DWord_Data
30.1 _ECAT_Master_MRAM_Write_Word_Data
Syntax
U16 PASCAL _ECAT_Master_MRAM_Write_Word_Data(U16 CardNo, U32 Index, U32
DataNum, U16 *Data)
Purpose
Write the U16 data (Word) to the specified address of MRAM in PAC.
Note: Delta MH1 and MP1 series PAC provide 128K byte retentive memory space. API allows Word type
data to access the retentive memory. Index 0 will occupy byte 0 and byte 1, index 1 occupies byte 2 and
byte 3 and so on. The index range is between 0 and 65535.
Parameter
Name
CardNo
Index
DataNum
Data
Example
U16 Status = 0;
U16 CardNo = 16;
U16 data [3] = { 1, 2, 3};
// Write data to the last three data space of retentive memory.
U32 Index=65533, DataNum=3;
Status= _ECAT_Master_MRAM_Write_Word_Data(CardNo, Index, DataNum, &data);
30-2
API
Data type
Property
U16
Number
U32
Value
U32
Quantity
U16*
Data array
Description
Write the U16 data (Word) to the specified address of
MRAM in PAC.
Read the U16 data (Word) from the specified address
of MRAM in PAC.
Write the U32 data (DWord) into the specified address
of MRAM in PAC.
Read the U32 data (DWord) from the specified address
of MRAM in PAC.
Description
Card number
Range: 0 ~ 65535
Data number to be written into the memory
Data array to be written into the memory
EtherCAT Programming Guide
March, 2017

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents