AxUnit Exitcode: 7FFF FFFF

0
I am trying to activate AxUnit as described in the Quickstart project (https://docs.industrial-operations-x.siemens.cloud/r/en-us/ax/get-started/2510/quickstart).The defined "Test" fails with Exitcode 7FFF_FFFF. The project can be downloaded to PLCSIM Advanced.What could be a possible reason for this? I have tested on two PC's with the same result.
asked
5 answers
1

I see ... I'am almost certain that this is a prerequisites/environment issue.


Very First :

Make sure your project directory (path) DO NOT include spaces.

So avoid folder-names with spaces, just like : C:\Projects\Siemens\Ax Code\Local\...


First:

Again make sure you did this setup of the build tool correct :

https://docs.industrial-operations-x.siemens.cloud/r/en-us/ax/get-started/2510/setting-up-simatic-ax-logic-control-engineering/installing-additional-software/installing-mandatory-software

>> Step 5 - it is nessessary to run it via the cli


Next:

Could you please try to add a PATH variable to your apax.yml file quickly. VCToolsInstallDir and let it point to your installation directory of the vscode build tools. Probably something like that "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133" ... please double check for your system.


It could look something like that in your apax.yml:

variables:
   VCToolsInstallDir: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133"

Reload AxCode > build > and run the test again.

If that works ... move the variable to your windows global envionment variables. And delete it again from your project.

answered
0

Hello Steen,

the important part is under this link especially the part with visual studio build tools.
Can you ensure you correctly installed them:

https://docs.industrial-operations-x.siemens.cloud/r/en-us/ax/get-started/2510/setting-up-simatic-ax-logic-control-engineering


If it is still not working, please creating a ticket at the Siemens Support Desk would be recommended.


Regards
Markus

answered
0

Hi Markus

Thank you for the feedback.

I have tried to reinstall according to documentation without success.

Therefor i have created an support ticket.

Regards

Steen

answered
0

Hi Steen,


yeah ... the provided information are probably not enough. A screeenshot / the entire error output in the terminal/ the testcase / deps in the apax.yml ... all these things would help the community to give you better assistance incase you are able to share such information here.

Since 7FFF_FFFF is an unknown ExitCode for the AXUnit-ST Framework, I wonder if you could mean 0xFF instead which is more or less the standard out for a failing testcase.
"One or more test cases failed. This is the most common non-zero exit code and indicates that the test execution itself completed successfully, but at least one test assertion failed. "
You can find a list of all exitcodes
here.

Otherwise let us know if you are going to run the testcase on the plc or via the llvm target .. in case you don't know ... in which exact step of the getting started documentation (clicking which button) the error occured ?

Another thing : You may have visual studio installed, if so ... the path to the build-tools could also be messed up.

Greetings
Stefan

 

answered
0

Hi Stefan


Thanks for the reply.


AxUnit prints the following text: "Execution stops unexpectedly. Please check AxUnit Output", and the detailed error message is "[ERROR] Unknown command or argument 'Code\myquickstart'✗ An error occurred while trying to run the test. Exit code: 2147483647".


This happens on both llvm and PLCSIM Advanced v8.


You are right, I also have Visual Studio 2022 installed along with AX Code.


Best regards

Steen






answered