Ecat_Master_Mram_Read_Word_Data - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

EtherCAT Programming Guide

30.2 _ECAT_Master_MRAM_Read_Word_Data

Syntax
U16 PASCAL _ECAT_Master_MRAM_Read_Word_Data(U16 CardNo, U32 Index, U32
DataNum, U16 *Data)
Purpose
Read the U16 data (Word) from 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] = {0};
// Read data from the last three data space of retentive memory.
U32 Index=65533, DataNum=3;
Status= _ECAT_Master_MRAM_Read_Word_Data(CardNo, Index, DataNum, data);
March, 2017
Data type
Property
U16
Number
U32
Value
U32
Quantity
U16*
Data array
Description
Card number
Range: 0 ~ 65535
Data number to be read from the memory
Data array to be read from the memory
Operating MRAM on PAC
30
30-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents