Wouter Posted February 24, 2022 Share Posted February 24, 2022 When using the ecatregreadwrite command like this: L0=ecatregreadwrite(0,0,1,$134,0,2);L0 I dont face any issues. But when I enable the ethercat bus (ECAT[0].Enable=1) and after dissabeling the bus. I always get the value 'nan'. The only workaround for this is resetting the ethercat but (ecat reset). Why is ecatregreadwrite( ) not working after enabeling the ethercat bus and why does it work after resetting the ethercat bus? (acontis stack & ide version 4.5.2.9) regards, Wouter Quote Link to comment Share on other sites More sharing options...
Alex Anikstein Posted February 25, 2022 Share Posted February 25, 2022 When you fail to get a response to the ecatregreadwrite, do you get a response to the "pmac slaves" command? I am wondering if that particular command is unresponsive, or if disabling EtherCAT also "broke" something about it entirely. 1 Quote Link to comment Share on other sites More sharing options...
Wouter Posted February 27, 2022 Author Share Posted February 27, 2022 I'll be back at work on monday, we'll try the suggested command and ecattypedsdo. I'll post the results here. Quote Link to comment Share on other sites More sharing options...
Wouter Posted February 28, 2022 Author Share Posted February 28, 2022 (edited) ecat slaves 0 VID=$00000083 PC=$000000AA 50:0 PREOP + Slave_001 L0=ecatregreadwrite(0,0,1,$0,0,1);L0 L0=17 ecat[0].enable=1 L0=ecatregreadwrite(0,0,1,$0,0,1);L0 L0=nan ecat slaves 0 VID=$00000083 PC=$000000AA 50:0 OP + IO_CONTROLUNIT ecat[0].enable=0 L0=ecatregreadwrite(0,0,1,$0,0,1);L0 L0=nan ecat slaves 0 VID=$00000083 PC=$000000AA 50:0 PREOP + IO_CONTROLUNIT Edited February 28, 2022 by Wouter wrong send Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.