Hi, I use for the first time the directLogic product so my questions are:
I download "Host_Ethernet_SDK.zip" and I look the demo code "EtherIO" in c++ and it seem to be code for EBC... Here is what is in the readme file :
The samples found in DEMOCODE\. The samples included are ...
...EQ which demos the basic query and interrogate of all ether products, ...
(OK is the EtherQry folder)
...ETHERIO which demos logical address resolution ...
(Error, it's probably the EtherOI folder but in the ETHERIO.CPP file, is the code for EBC (see line 1159@1164) )
...and a non-blocking CCM transaction to an Hx-ECOM, ...
(OK, is the EtherCCM folder)
...ETHERIO which demos logical address resolution and an IO read operation on an EBC.
(Error, it'S probably the EbcIO folder)
So can I have a code example for communication with ECOM protocol read and write into some "V" register. And by the way, I need some precision about the HEICCMRequest.
- This fonciton use for the CCM protocol... but my PLC is configure with the ECOM protocol. Is this fonction while work.
- the param DataType... I see the table, but which value must I write here? Probably 31 mean 1...
- the param address... this param is in HEX ?
int HEICCMRequest
(
HEIDevice *pDevice, // Device to perform request on
BOOL bWrite, // if TRUE, we are writing data
// if FALSE, we are reading data
BYTE DataType, // Type of data to read / write
// (see table below and DirectNET manual)
WORD Address, // Address of data to read / write
// (see table below and DirectNET manual)
WORD DataLen, // Length of data to read / write
// (see table below and DirectNET manual)
BYTE *pData // Buffer for read / write data
// (see table below and DirectNET manual)
);
Thank you