industrialNETworXnetx

vinay

vinay

| 01.07.2010 | 13:29 | 3 replies

configure EIP adapter (cifx 50 Re ) with warmstart parameters

I was trying to configure the hilscher card with warmstart parameters using packet cmd 0x3608 but i'm getting unknown cmd error (0xc000004). Can anybody let me know the exact procedureto configure the device any sample code would be highly appreciated.

thanks in advance

Johnny

Johnny

| 01.07.2010 | 14:16

Hello vinay,
this error happens usually if the packet is sent to the wrong channel. Please confirm, that it is send to "communication channel 0". ulDest in packet head must be set to 0x20.

Otherwise the packet is sent to the "system Channel" which is something like a base system, which dont know the fieldbus specifc stuff.

Johnny

vinay

vinay

| 02.07.2010 | 15:43

Hi Johnny,

thanks for your quick reply got the packets correctly but seems some prob in the procedure i follow to configure the adapter. what i'm trying to do is reconfigure the adapter/slave with new IP address & Instance. and the procedure i follow is

 1. EIS_SendConfig();  // Send warmstart parameters cmd : 0x003608

2. xChannelReset();//channel INIT
3. Sleep(10000);
4.check mailbox for errors
5. EIS_RegisterOutputAssembly(); //cmd 0x1A0C
6. EIS_RegisterInputAssembly(); //cmd 0x1A0C
7. RegisterApp();// 0x002F10

thanks in advance

vinay
 

Kai Michel

Kai Michel

Hilscher Gesellschaft für Systemautomation mbH

| 25.08.2010 | 17:05

Hi vinay,

If I get you right there are no errors sending those packets? So the status of the returning packets is 0x00?

If so, what exactly does not work and what's the behaviour of the device after trying to reconfigure it? (LEDs?)

Maybe the data of  the packets you are sending would help.

The procedure of reconfiguring the packets actually looks good to me.

Login