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.

MCU-PLUS-SDK-AM243X: Consult about Profinet API in our SDK.

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: LP-AM243

Hi Experts,
     My customer is using PN_RT_MII Example for product software development, and we has the following questions:

     PN_RT_MII Example could be found in the C:\ti\mcu_plus_sdk_am243x_08_01_00_36\examples\industrial_comms\profinet_device_demo\rt_mii\am243x-lp

     1.The Acyclic data exchange between the Controller and Device, Could it be implemented on Sitara-AM243x products/Current SDK? 

      If yes, Can you provide an example for customers to develop? 

      2. As shown in the figure below, whether the device receives the parameterized configuration of the controller can support dynamic configuration?

    And I did not see any data frames received from the controller in the PN_RT_MII Example, can you point out that  "write frames" related API?

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/908/pastedimage1641385043145v3.png

      3.In the PN_RT_MII Example,  We did not see any read-write request and response operation functions in the RealIdentification.c, and if we want to implement the acyclic data communication as below, how to modify the code in the current SDK? Thanks!

  • Hi Experts,

         Is there any progress on this issue? Thanks!

  • Hi BU Team,

         Do we have any updates? This question is important for the customer.

  • Hi
    Sorry for the delay in response. We will provide answers by end of this week.

    Regards
    Dhaval Khandla

  • Dear Dhaval,

           If you have an S7-1211 controller on your side, can you have a try to add this module(Like the WRREC and RDREC ) as below:


          Can we have a try and study this function? Thanks! 

  • Hi

    1.The Acyclic data exchange between the Controller and Device, Could it be implemented on Sitara-AM243x products/Current SDK? 

          If yes, Can you provide an example for customers to develop? 

    Acyclic Data for example I&M Data is registered in APP_configureImData within so called I&M Carrier

    See Below the I&M Carrier Descriptor:

    /*
     *  Example of how different flavors of I&M carriers can be added to the array.
     *  A real submodule must be plugged prior adding an I&M carrier.
     *  Submodule must be able to be an I&M carrier (consistency with GSD).
     *  By adding a new I&M set, don't forget to adjust APP_IM_CARRIER_NUM.
     *
     *   {.api = 0x00000000, .slotNumber = 0x0001, .subslotNumber = 0x0001,
     *   .supportedIm = PN_API_IM_eSUPPORT_IM1 | PN_API_IM_eSUPPORT_IM2 | PN_API_IM_eSUPPORT_IM3,
     *   .deviceRepresentative = false, .moduleRepresentative = true, .memoryIndex = 1},
     *
     *   {.api = 0x12344567, .slotNumber = 0x00aa, .subslotNumber = 0x00fe,
     *   .supportedIm = PN_API_IM_eSUPPORT_IM2,
     *   .deviceRepresentative = false, .moduleRepresentative = false, .memoryIndex = 2},
     */
    static const APP_SImCarrierDescriptor_t imCarrierDescriptors_s[APP_IM_CARRIER_NUM] =
    {
        {.api = 0x00000000, .slotNumber = 0x0000, .subslotNumber = 0x0001,
        .supportedIm = PN_API_IM_eSUPPORT_IM1 | PN_API_IM_eSUPPORT_IM2 | PN_API_IM_eSUPPORT_IM3 | PN_API_IM_eSUPPORT_IM4,
        .deviceRepresentative = true, .moduleRepresentative = true, .memoryIndex = 0}
    };

    The I&M Carrier is filled in APP_createImDataCarrier.

    It is processed by the PROFINET Stack when given to PN_API_IM_addImCarrier.

    2. As shown in the figure below, whether the device receives the parameterized configuration of the controller can support dynamic configuration?

        And I did not see any data frames received from the controller in the PN_RT_MII Example, can you point out that  "write frames" related API?

    We will provide some additional APIs to provide more flexibility in MCU+ SDK 8.2 release.

    • We are planning to provide getExpectedSubmodules(). With this, application can read back the expected Identification.
    • Additionally we are improving the module substitutes feature to support substitutes of different I/O Size as well
    3.In the PN_RT_MII Example,  We did not see any read-write request and response operation functions in the RealIdentification.c, and if we want to implement the acyclic data communication as below, how to modify the code in the current SDK? Tha

    We will provide answer to this by end of the week.

           If you have an S7-1211 controller on your side, can you have a try to add this module(Like the WRREC and RDREC ) as below:

    I will not be able to try this out. Do you see any problems with this?

    Regards
    Dhaval Khandla

  • Dear Dhaval,

             The WRREC and RDREC module cannot be implemented on LP-AM243 device. In fact, the settings of the two modules are for the acyclic data communication. When customer use this module, it reports response timed out from the TIA Portal V16. 

  • The I&M Carrier is filled in APP_createImDataCarrier.

    could you explain more detail about this? 

  • Hi

    could you explain more detail about this

    My last response shows how to add new entry. Can you please elaborate your question? 

    Regards
    Dhaval Khandla 

  • Dear Dhaval,

             Those two modules (WRREC and RDREC module) I have mentioned earlier, it implements the Record data-CR, not the Alarm-CR.

             And what the customer wants to implement is the functionality I marked in red below picture:

             In fact, I didn't find a path to achieve this functionality. So could you continue to find the implemented path?Thanks!

            

  • Hi Dhaval,

         Is there any progress with the implemented path?

  • Shaoxing

    Please review the following APIs for read/write record: 

    For reference, in the SDK example, one of this APIs is used in "APP_configDev()" function of appStackConfigure.c.

    Regards
    Dhaval Khandla