This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ICE Ethercat DC mode

Other Parts Discussed in Thread: AM3357

Dear Sir,

   i use ICE board to test Ethercat communication, and the Twincat is as master. the mode is selected DC-SYNC.  The system can work.  

   but now i want to know which function in the 'ethercat_slave'project is to implement the configuration from the master. For example, how to write the register 0x981 value?

thank you very much.

Best regards.

  • Hello Echo Li,

    EtherCAT Masters use different EtherCAT Commands to configure and operate the slave. To write 0x981 from the master, you can use commands such as APWR and FPWR. Note that this requires that cyclic unit be ECAT (Master) controlled.

    If you intend to configure from within the slave application, you can use firmware APIs for that.

    You can find the firmware API guide as well as description of registers here: http://processors.wiki.ti.com/index.php/AM335x_EtherCAT_firmware_API_guide

    Regards,
    Srikant

  • hello Srikant,

    Thank you for your reply.
    and now i use another am3357 board to implement the ethercat communication, but in the following code the variable dcControl i get is always is 0;
    /*Read register 0x981 (corresponding masks are adapted)*/
    HW_EscReadByte(dcControl, ESC_DC_SYNC_ACTIVATION_OFFSET);

    so i need to find which function is used to deal with the received the cofiguration. can you tell me the specific function i find?

    thank you very much.