Jump to content
OMRON Forums

Wouter

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Wouter

  1. Hi Shadi,

    I'm using the ecattypedsdo command to read/write register values from slaves, but I don't know how to use it for the master.

    The ecattypedsdo function takes 7 arguments one of which is the slave index. Since the master doesn't have an slave index I don't know how that function will work for getting the master CoE dictionary.

    Can you perhaps post an example? 

    - Wouter

  2. Hello,

    For a program that we want to write, we need to know if (and how many) lost frames there are. With the PMAC IDE, in diagnostic mode, I'm able to see this in the master object dictionary 0x2002 (Bus Diagnosis Object) subindex 9. I can't seem to find any command in the software reference manual that allows me to access this value.

    My question is, is there a command that allows me to read master object dictionary values value (in gpascii -2 mode)?

    Thanks in advance,

    Wouter

    forum.PNG

  3. 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

     

  4. 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

×
×
  • Create New...