Skip to content

The c++ program did not execute

     Please check my program. My current program is to read the data in XML, and put the INT value corresponding to STRING into int16 xml_s[5] with the Map function.Int16 xml_s2 [7].And then to PLCnext.Nothing wrong with the compilation. My tests showed that the DemoXMLtestComponent was not called.Could you please help to see where the problem is? Is the program in the attachment

Comments

  • Hello,

    When you say:

    DemoXMLtestComponent was not called.

    I assume that you are not seeing either of the log messages in the DemoXMLtestComponent::LoadConfig() function ?

    I also assume that you are:

    • copying the PCWLX file from the build directory to the PCLnext Engineer libraries directory?
    • adding the library to your PLCnext Engineer project from there?
    • creating an instance of DemoXMLtestProgram in a Task?

    If all these assumptions are correct, can you please attach a copy of the Output.log file, showing the complete startup sequence of the PLC? This normally gives messages showing that the Component has been instantiated.

    ~ Martin.

     

Sign In or Register to comment.