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.

LP-AM243: EtherCAT with Single PHY configuration

Part Number: LP-AM243
Other Parts Discussed in Thread: AM2434, SYSCONFIG

Tool/software:

Hi all,

I'm currently working with AM2434 LP where both the PHYs where configured for EtherCAT communication.

But I want to configure and work with Single PHY. Is that possible?

If possible, kindly guide me configure and work EtherCAT with single PHY.

On board we have removed a PHY IC and in example.sysconfig I have configured EthPhy device --> NONE for the section where we have removed PHY.

Also made some changes in the code. Return Phy not okay error.

Regards,

D. Jenita.

  • Hi Jenita,

    May I know the end goal you're trying to achieve here with the above EtherCAT configuration?

    Regards,
    Aaron

  • Hi Aaron, 

    Its our customer requirement to do so. They want to have EtherCAT at one port and TCP/IP on the other.

    As per my understanding TCP frames were dropped by EtherCAT in comparison with EtherType. If Configuring single port is not possible, I'm okay to have that on both(EtherCAT) ports but TCP frames should not get dropped.

    I couldn't find where exactly the frames got received and dropped in the code base. Is there any solution available for processing both the protocols(EtherCAT + TCP/IP) 

    Regards,
    D.Jenita

  • Hi Jenita,

    Thank you for the details. Just to clarify myself, you want to use 2 ports (1 for EtherCAT and 1 for TCP/IP) and you are fine with configuring 2 ports for EtherCAT and in that itself, 1 of them should process TCP/IP frames. I believe your requirement is not 3 ports (2 for EtherCAT and 1 separate port for TCP/IP)

    Regards,
    Aaron

  • Yes Aaron, I didn't need 3 ports. I just want my EtherCat stack to accept TCP frames as well. May be I can have separate task to handle TCP frames.

    Regards,

    D.Jenita

  • Thanks Jenita.

    This ought to be theoretically possible. I'll look into this and get back to you by mid-next week.

    Regards,
    Aaron

  • Hi Aaron,

    Gentle Remainder:

    We are waiting for your response to move forward.

    Regards,
    D.Jenita

  • Hi Jenita,

    Please expect a reply by tomorrow.

    Regards,
    Aaron

  • Hi Jenita,

    You can disable the second port of EtherCAT within the Sysconfig by choosing NONE  as the ETHPHY Device for the corresponding port:

    Followed by this, the corresponding configurations done on the port should be commented out (For the Beckhoff demo, the PHY configurations are done in tiescsoc.c file). Additionally, you will need to set the link polarity of the unused port to HIGH or LOW based on the PHY link polarity. Set it to HIGH if link state is zero (bit clear) or set it to LOW if link state is 1 (bit set).

    You can configure TCP/IP on the other port based on your use case.

    Regards,
    Aaron