Menu

openPOWERLINK demo .xdd files yield empty xap.h

Help
2012-11-28
2013-04-26
1 2 > >> (Page 1 of 2)
  • Stefan Enzinger

    Stefan Enzinger - 2012-11-28

    I'm trying to modify the cycletime of the openPOWERLINK demo using the given .XDC files.
    what I do:
    * run openCONFIguRATOR
    * set name
    * import the XDC from openPOWERLINK:
    (ObjDicts/CiA302-4_MN/00000000_POWERLINK_CiA302-4_MN.xdd)
    * disable "Auto Generate"
    * in simpleView: adjust node name and cycle time
    * Add CN... from MN-context menu in Network Browser
    * import the XDC from openPOWERLINK
    (ObjDicts/CiA401_cn/00000000_POWERLINK_CiA401_CN.xdd)
    * save and "Build Project"

    But this only results in an empty xap.h file
    and the demo won't run with the .cdc

    what am I missing?
    thanks in advance
    stefan

     
  • Stefan Enzinger

    Stefan Enzinger - 2013-03-15

    Hello... I would really appreciate any help on this subject, as I'm kind of stuck in my project and this would really help me out.

    so...: bump

    thanks in advance :)

    greez, stefan

     
  • Ramakrishnan P

    Ramakrishnan P - 2013-03-18

    Hello stefen,

    1) I would like to know on what application you are trying to implement and what is your goal?

    2) The behavior of the openConfigurator is right.

    • One thing you should know about openConfigurator's "autogenerate": By disabling autogenerate the mapping of objects on the MN side has to be done manually & process image struct will not be generated by the tool.
    • Also there will be no mappings on the CN PDO's(1A00, 1600, 1601, 1602) in the default xdd(00000000_POWERLINK_CiA401_CN.xdd). So I suggest you to enable autogenerate and fill the mappings in the CN PDO's(1A00 , 1600, 1601, 1602) as per your requirement.

    For more details refer the Ethernet POWERLINK Communication Profile Specification document section 6.4.9. You can download it from the Ethernet Powerlink Standardization Group website.
    Please let me know if you face any further issues or you have any other clarifications.

     
    • Do

      Do - 2013-03-22

      hello,
      My autogenerate is enabled but i have the same problem i ave an empty xap.h file, I couldn't find out the problem
      please help me

       
    • Stefan Enzinger

      Stefan Enzinger - 2013-04-19

      Hello Ramakrishna

      I'm sorry that my response has such a delay. I didn't get mail-notification. I should have looked!

      ad 1) My project is to port openPOWERLINK (CN for now) to SafeRTOS. The demo starts nicely already, but I do get a wrong statusres packet in the initialisation. So I'd like to increase the cyclelength for debugging.

      2) * thanks for the heads-up on "autogenerate"
      * Could you please send me a complete openCONFIGURATOR project that generates the .cdc and xap.h files that work with the demo. I will need to read up the Profile Specification later too.

       
      • Stefan Enzinger

        Stefan Enzinger - 2013-04-19

        ... self reply

        Now I'm running the QT-MN demo on windows and the CN-demo on linux. alternatively I'm using a X20 module as CN. X20 PS + X20 DI, so digital-inputs only.

        This error shows up on the MN log:

        AppCbEvent(Node=0x1, CFM-Progress: Object 0x6200/0, 98/152 Bytes -> SDO Abort=0x
        6010000, Error=0x0)

        Error 0x6010000 seems to be:
        EPL_SDOAC_UNSUPPORTED_ACCESS
        ... defined in EplSdoAc.h

        I can not configure 0x6200/0 in openCONFIGURATOR. The whole UI is grey/inactive.
        value is set to 1 though.

        thank you in advance. :)

        ---- paste of mnobd.txt:
        00000013
        //// NodeId Assignment
        1F81 01 00000004 00000007

        1A00 00 00000001 00
        1600 00 00000001 00
        1006 00 00000004 000186A0
        1C02 01 00000004 00000028
        1C02 03 00000004 00000028
        1C09 01 00000004 00000028
        1C14 00 00000004 02faf080
        1F26 01 00000004 000029cd
        1F27 01 00000004 03eea338
        1F92 01 00000004 00006978
        1800 01 00000001 01
        1A00 01 00000008 000800000001A040
        1400 01 00000001 01
        1600 01 00000008 000800000001A4C0
        1A00 00 00000001 01
        1600 00 00000001 01
        ////Configuration Data for CN-1
        1F22 01 0000008c
        0000000d
        1600 00 00000001 00
        1A00 00 00000001 00
        1006 00 00000004 000186A0
        1020 01 00000004 000029cd
        1020 02 00000004 03eea338
        1C0B 03 00000004 00000050
        1C0D 03 00000004 00000050
        1C14 00 00000004 02faf080
        6200 00 00000001 01
        1600 01 00000008 0008000000016200
        1A00 01 00000008 0008000000016000
        1600 00 00000001 01
        1A00 00 00000001 01
        //// NodeId Reassignment
        1F81 01 00000004 80000007

         
        • Powerlink-team Kalycito

          Dear Stefan,

          Have you used the default objdict.h file available at the below path/have you made changes at your end

          \openPOWERLINK-V1.08.2\ObjDicts\CiA401_CN\objdict.h

          If you have made modifications, can you please share your objdict.h with us.

          Regards,
          Powerlink-team
          Kalycito

           
          • Stefan Enzinger

            Stefan Enzinger - 2013-04-26

            I took the project from the link below, whith didnt fit to my standard setup. this was the error.

            I am using the unmodified demo.

            Now I created another config in openCONFIGURATOR.
            took the MN and CN .XDDs from openPOWERLINK stack/objdicts
            set the cycle time to 50000, I figured that was used in the demo too.

            But using this cdc on my windows demo and an X20 CN results in:

            TimerResolution Min = 156250, Max = 10000, Cur = 156250
            NtSetTimerResolution returnd 0, current resolution = 9766
            Setup Process Image Successfull
            AppCbEvent(NMT) event 0x10 -> Init (0x19)
            EplApi::EplApi: returns 0x0
            AppCbEvent(NMT) event 0x20 -> ResetApp (0x29)
            AppCbEvent(NMT) event 0x21 -> ResetCommunication (0x39)
            AppCbEvent(NMT) event 0x23 -> ResetConfiguration (0x79)
            AppCbEvent(NMT) event 0x25 -> NotActive (0x21C)
            AppCbEvent(NMT) event 0x27 -> PreOp1 (0x21D)
            AppCbEvent(NMT) event 0x29 -> PreOp2 (0x25D)
            AppCbEvent(NMT) event 0x2B -> ReadyToOp (0x26D)
            AppCbEvent(NMT) event 0x2C -> Operational (0x2FD)
            AppCbEvent(Node=0x1, CheckConf)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1011/1, 8/82 Bytes)
            AppCbEvent(Node=0x1, ConfRestored)
            AppCbEvent(Node=0x1, UpdateConf)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1006/0, 15/78 Bytes)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1020/1, 26/78 Bytes)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1020/2, 37/78 Bytes)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1C0B/3, 48/78 Bytes)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1C0D/3, 59/78 Bytes)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1C14/0, 70/78 Bytes)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1010/1, 74/78 Bytes -> SDO Abort=0x5
            040000, Error=0x0)
            AppCbEvent(Node=0x1, CFM-Progress: Object 0x1006/0, 78/78 Bytes)
            AppCbEvent(Node=0x1, ConfReset)
            AppCbEvent(HistoryEntry): Type=0x3002 Code=0x8241 (0x01 00 00 00 00 00 00 00)
            AppCbEvent (Node=0x1): Error = EPL_E_DLL_INVALID_FORMAT (0x8241)
            AppCbEvent(kEplNmtGsOff) originating event = 0x2D
            AppCbEvent(NMT) event 0x2D -> Off (0x0)
            NtSetTimerResolution returnd 0, current resolution = 156250

            ... there is no 1010h entry in openconfigurator. even creating one doesnt help.
            0x5040000 seems to be some timeout.

            thanks again.

             
  • Powerlink-team Kalycito

    Hi,
    You are using the xdd files from default MN, CN. Since there is no mappings in the xdd files, So the xap.h will be empty.For more details refer the Ethernet POWERLINK Communication Profile Specification document section 6.4.9. You can download it from the Ethernet Powerlink Standardization Group website.
    Then create the mappings in the xdd as per your applications requirement and build it with openCONFIGURATOR. You can able to view the values in mnobd.txt, xap.h.

    Regards,
    Gokul
    Kalycito

    Note: I request you to create separate thread for help.

     
    • Do

      Do - 2013-03-22

      thank you . I have also another problem.I am running openPOWERLINK_v1.08 -> Examples -> X86 -> Generi -> demo_mn_console ->
      with X20 BC0083 bus controller using a linux master
      Firstly I create the XDC file, then I went to openCONFIGURATOR and I developed
      a new project getting like a result the CDC file for the stack + xap.h. Then I
      copied those files into this address openCONFIGURATOR_v1.8\ Examples\X86\ Generic demo_mn_console .I build the project and run it but there are no packets sent and received.

       
      • Powerlink-team Kalycito

        Hello,

        I would just like to clarify, if you have configured powerlink in

        1. user-kernel mode, means you insert a kernel module and then run the mn console application. In this case you need to pass the absolute cdc path during inserting the module

        2. pcap version: Where you configure both stack and application on the user space. In this case can replace the cdc in the Examples -> X86 -> Generic -> demo_mn_console and do a make install in your build folder, the cdc will be copied into your build/bin folder.

        In either case, did you check the physical layer connections? Are you using a hub? Do you see any activities in packet sniffer?

        Regards,
        Powerlink-team
        Kalycito.

         
        • Do

          Do - 2013-03-22

          am using pcap version, and i replaced the cdc in Examples -> X86 -> Generic -> demo_mn_console even the xap.h and i did a make install in the build folder.
          but am using a switch S105, AND IN THE X20 i see only the green led in X20DI and DO and when i used the wireshark there are packets with payload:00 means that there are no packets exanged. I can't figure out the problem.
          Please i need a help
          Regards,
          Dorra

           

          Last edit: Do 2013-03-22
    • Do

      Do - 2013-03-22

      and for the mapping i ve already did it, i modified the PDO and i created the index and sub index but am having always an empty file.

       
  • Powerlink-team Kalycito

    Hello Dorra,

    Could you please list the steps followed to build the project and if possible share the complete openCONFIGURATOR project with us.

    Regards,
    Ramakrishnan
    Kalycito

     
  • Do

    Do - 2013-03-26

    Hello,
    First of all am using linux as a master and openPOWERLINK-V1.08.2
    For the R&B X20 slave i did the same steps as mentionned here:
    http://ftp.jaist.ac.jp/pub/sourceforge/o/project/op/openpowerlink/Documentation/POWERLINK_Linux_Master_Howto_EN.pdf
    exept thar i added the xdd file of the R&D X20 device.
    The result= i got optional when i run my project but the X20 doesnt't respond and when i used the wireshark the payload=0 as you can see in this picture.

    Now for the linux slave, i followed exactly the steps mentionned in the following user manual:http://ftp.heanet.ie:21/mirrors/sourceforge/o/op/openconf/openCONFIGURATOR/1.0/1.0.0/openCONFIGURATOR_1.0.0_DPD.pdf but i got an empty xap file;

    Could you pleaaase help me;
    Best regards,
    Dorra

     
  • Powerlink-team Kalycito

    Hello Dorra,

    From your explanation I feel that you are trying to do two separate configuration
    1. Linux MN & B&R X20 slave
    2. Linux MN & Linux Slave

    Am I right ?

    In case of
    B&R x20 Slave:
    Please write your application in "AppCbSync" to change data in Preq.

    Linux Slave:
    Can you check what will be the "value" field in "NoOfEntries" sub-index (RPDO & TPDO) for slave in your openConfigurator project. I feel that it will be '0' in your project & that cause this issue. Please check this field & correct it as your application needs.

    After that also if you have empty xap.h file please share your openConfigurator project with us.

    Regards,
    Ramakrishnan
    Kalycito

     

    Last edit: Powerlink-team Kalycito 2013-03-26
    • Do

      Do - 2013-03-26

      Hello,
      Thank you for your response.
      Yes am trying to do separate configuration;

      B&R X20 slave:
      my application in AppCbSync is figured in the folowing picture

      For Linux Slave
      Noofentries is not zero, there are some pictures of my configuration

       

      Last edit: Do 2013-03-26
      • Do

        Do - 2013-03-26
         

        Last edit: Do 2013-03-26
    • Do

      Do - 2013-03-26
       

      Last edit: Do 2013-03-26
    • Do

      Do - 2013-03-26
       

      Last edit: Do 2013-03-26
  • Powerlink-team Kalycito

    Hello Dorra,

    For a cross check in

    B&R X20 slave:
    Can you comment out all the if conditions & keep ***DigitalOutput01 = 1 alone & send me the wireshark trace (.pcap file, not a screenshot) with demo_main.c & xap.h file.

    Linux Slave:
    Please share the full project as a zip file to us.
    We still feel that 1A00 NoOfEntries is zero.

    Note: Please share the projects & files with us (I hope that there wont be any restrictions for you to share it) then we can solve this issues ASAP & save a lots of time.

    Regards,
    Ramakrishnan
    Kalycito

     
    • Do

      Do - 2013-03-27

      Hello,
      B&R X20 slave:
      i ve sent the whole project, the demo_main and xap are in Examples->X86->Generic->demo_mn_console

       

      Last edit: Do 2013-03-27
    • Do

      Do - 2013-03-27
       

      Last edit: Do 2013-03-27
    • Do

      Do - 2013-03-27

      Linux Slave:
      I ve changed teh 1A00 noofentries, i got this result :

      define COMPUTED_PI_OUT_SIZE 4

      typedef struct
      {
      unsigned CN1_M00_DigitalInput_00h_AU8_DigitalInput:8;
      unsigned PADDING_VAR_1:24;
      } PI_OUT;

      endif

      But i didn' get the PI_IN EVEN WHEN I VE CHANGED 1600 NoOFENTRIES

       

      Last edit: Do 2013-03-27
      • Powerlink-team Kalycito

        Hello Dorra,

        Since you want to map the pdo's to MN. Please set the "NodeId" in 1400 & 1800 to '0'and build the project.

        I've attached the openCONFIGURATOR project with the corrections made for your reference.

        Please let me know if this issue still exists.

        Regards,
        Ramakrishnan
        Kalycito

         

        Last edit: Powerlink-team Kalycito 2013-03-27
1 2 > >> (Page 1 of 2)

Log in to post a comment.