8.5
_DMC_01_send_message
FORMAT
I16 PASCAL _DMC_01_send_message (U16 CardNo, U16 NodeID,U16 SlotID,
U16 Index,U16 SubIdx,U16 DataType,U16 Value0,U16 Value1,U16 Value2,U16 Value3)
Purpose
Sends SDO command message to the data buffer. (This API function will wait for the
command to be sent before exiting)
Parameters
Name
Data Type
CardNo
U16
NodeID
U16
SlotID
U16
Index
U16
SubIdx
U16
DataType
U16
Value0
U16
Value1
U16
Value2
U16
Value3
U16
Example
/*
CardNo: Card No; NodeID: NodeID; SlotID: SlotID; Index: SDO Index; SubIdx: SDO
Subindex; DataType: (Read Command) Read data, set as 0x40;
Write 8-bit, set as 0x2f; (Write Command) Write 16-bit, set as 0x2f; (Write Command) Write
32-bit, set as 0x23f;
Value0: SDO data low word (Low byte), Value1: SDO data low word (High byte);
Value2: GSDO data high word (Low byte), Value3: GSDO data high word (High byte)
*/
U16 CardNo=0, NodeID=1, SlotID=0;
U16 Index=0x6060, SubIdx=0, DataType=0x2f, value0=0x1, value1=0, value2=0, value3=0;
I16 status= _DMC_01_send_message (CardNo, NodeID, SlotID, Index, SubIdx, DataType,
value0, value1, value2, value3);
Revised March, 2012
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01
Unit
Number
CardNo is between 0~15
Unit
Number
Node ID
Unit
Number
Slot ID
Unit
Number
Index of object dictionary
Number
Sub-index of object dictionary
Number
Datatype of object dictionary
Message buffer (Data1) – index (Low byte),
Number
Message buffer (Data2) – Sub-Idx (High byte),
Number
Number
Message buffer (Data3) – Data (Low byte)
Number
Message buffer (Data4) – Data (High byte)
Description
CMD (High byte)
index high (Low byte)
(Write Command)
8-9