Jump to content
OMRON Forums

ecatregreadwrite


Wouter

Recommended Posts

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

Link to comment
Share on other sites

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 by Wouter
wrong send
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...