• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configuring EtherCAT communication
#2
Well the source code under https://github.com/HilscherAutomation/ne...ndlerECS.c

registers an application using the command "RCX_REGISTER_APP_REQ" if now your program was accidentially stopped without using the "RCX_UNREGISTER_APP_REQ" the netx chip will deny another registration. 

Three methods to recover from this: 

1.) depower and repower the whole netPI and call your program again or
2.) execute the command xChannelReset() in the function "int32_t ChannelDemo()" of the source code https://github.com/HilscherAutomation/ne...leConfig.c right before the line while(CIFX_NO_ERROR == (lRet = Pkt_ReceivePacket(hChannel,&tAppData.tPkt,0))); or
3.) call the "RCX_UNREGISTER_APP_REQ" message when you see the registration message returning an error in order to deregister a previously called program that didn't send "RCX_UNREGISTER_APP_REQ" before leaving

In all cases the netX chip will "lose" its previous registration setting.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Configuring EtherCAT communication - by Hoeber - September-22nd-2021, 01:11 PM
RE: Configuring EtherCAT communication - by Armin@netPI - September-22nd-2021, 01:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Configuring S7-1200 PLC to communicate with node-red ... Cman587 3 5,305 January-27th-2021, 11:01 AM
Last Post: Armin@netPI
  running ethercat slave MGharat 6 5,753 December-10th-2019, 10:06 AM
Last Post: MGharat
  [SOLVED] EtherCAT Slave snortman 5 6,014 February-7th-2019, 07:36 AM
Last Post: Armin@netPI
  [SOLVED] Monitoring as EtherCAT Slave PRingelberg 8 6,775 October-16th-2018, 08:10 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)