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.

Arm-based microcontrollers forum

Part Number: AM2434

Tool/software:

Hi all,

I'm currently working with EtherNet/IP adapter example [C:\ti\ind_comms_sdk_am243x_11_00_00_08\examples\industrial_comms\ethernetip_adapter_demo].

Connection setup:

I'm trying to send cyclic data from the Adapter to Scanner software[EnIPExplorer].

Created Assembly object with Instance Id 0x65 and added 

Class ID => 0x70 : Instance ID => 0x1 :  ID => 0x308 to 0x30D => as assembly member under the assembly instance 0x65 

EI_API_CIP_addAssemblyMember(pCipNode, 0x65, 0x70, 0x1, (uint16_t)(0x308));

which is an Input assembly [T -> O].

Under EI_APP_GENERIC_DEVICE_run(), tried two approaches for sending cyclic data

1. EI_API_CIP_setAttr_usint(pCipNode, 0x70, 0x01, 0x0308, attrValue);  => default


2. EI_API_CIP_getAssemblySize(pCipNode, 0x65, &size);

      EI_API_CIP_setAssemblyData (pCipNode, 0x65, &attrValue, size);

Once Adapter connected with EnIPExplorer and when I tried to do implicit messaging with the assembly instance ID 0x65 and attribute ID 0x3

the connection established with Forward_open request. Data got received at EnIP with an error

May I know how to clear this.

Regards,
D.Jenita

  • Hello,

    I attempted to replicate the scenario you described, but I didn't encounter any issues with Forward_Open or retrieving the Attribute#3 value from Assembly instance 0x65. For testing, I used the Hilscher EtherNet/IP tool .
    To better understand the nature of the problem, could you please share your Wireshark log with me?

    Best regards,
    Pourya

  • Hi Pourya,

    I have used the Hilscher EtherNet/IP Tool, there explicit messaging with auto-repeat operations is working fine.

    However, implicit messaging [Forward Open request/ retrieving the Attribute #3 from Assembly instance 0x65] is not working on my setup.

    It may be a configuration issue. Can anyone guide me further with the configurations to be done in Hilscher EtherNet/IP Tool for implicit messaging?

    Wireshark frames of implicit messaging with EnIPExplorer: 

    LPEnIPImplicit.zip

    Also can you suggest me any open source EtherNet/IP Scanner like software where we can import and use EDS file if possible.

    Regards,

    D.Jenita 

  • Hi Jenita,

    Configuring the Hilscher tool is relatively straightforward. Simply navigate to 'Preferences -> Local NIC', select the correct network interface, and enter your device's IP address under "Target Node IPv4 address". That's all the configuration you'll need.

    Regarding the Wireshark log, I was referring to the Explicit message tests that are failing on your end. The log you shared appears to show everything working as expected.
    Unfortunately, I'm not aware of any open-source software that can import EDS files and establish IO connection.
    Best regards,
    Pourya
  • Hi Pourya,

    As I already mentioned I'm able to do Explicit messaging with Hilscher tool as in I configured Local NIC, Electronic Key and connected with Target Node.

    All I need is the configurations to do implicit messaging with Hilscher EtherNet/IP tool as in Configuring assembly objects, Connection establishment.

    How to configure 0x4 Assembly Object and 

    Do I need to change configuration under Process data tab for implicit messaging

    I'm getting connection failure once the request sent from Hilscher Tool

    Is there anything else I need to do to achieve implicit messaging? Please guide me further

    Regards,

    Jenita

  • Hi Jenita,

    assuming you are using the original example without any modifications, I noticed two issues:

    1. The Connection path is incorrect and should be set to 200424012C652C64.
    2. The Data sizes are also incorrect. The device produces 5 bytes (T2O) and consumes 5 bytes (O2T), and it does not use a Run/Idle header.

    This information can be deduced from the EDS file delivered with the example.

      

    Best regards,
    Pourya

  • Hi Pourya,

    Thank you so much.

    Implicit messaging working fine now after the configuration change.

    Regards,
    Jenita