how to test with imported tia2st DB ?

0
Hello,    my Goal is to access a WinCC Unified HMI and therefor I am using the tia2st tool (2.0.26) The imported Lib seams to lead to following error when I try to run apax test.    Not sure if workspace apax.yml also a cause for that?  I am using a workspace with app-Project and Lib-project as submodule.    Maybe someone has an idea?    Thanks in advance!    Best Patrick   terminal:  PS C:\Projects\biogasplantAX\app> apax test -e=plcsim -t="192.168.70.10" ✔ Package verification succeeded. Target IP used: 192.168.70.10 Engine used: PLCSIM Current loglevel: InformationTest start time: 14:33:39 💡 The active log level is: Information 🕐 Starting test process... 🕑 Prepare test environment... 14:33:39 warn: ApaxTestDirector.Cli.Steps.TestProjectPreparation[0] ⚠️ [Warning] Target path 'C:\Projects\biogasplantAX\app\bin\axunit-artifacts' already exists. Trying to delete ddirectory, to have a clean state. 14:33:39 warn: ApaxTestDirector.Cli.Steps.TestProjectPreparation[0] ⚠️ [Warning] Access to the path 'simatic-ax' is denied. Copying C:\Projects\biogasplantAX\app\bin\axunit-artifacts\src\resources\alarming\alarm-config.yml 🕒 Getting information about tests... ⏳ Starting apax install for symbolInfo Envoking:install tooks: 6sec 👉 Apax install for generating symbol-info finished in 6 seconds ⏳ Executing first apax build. Envoking:build tooks: 2sec ❌ apax build for symbolInfo failed!- Verifying signatures for workspace... ✔ Package verification succeeded. WARNING Building for 'plcsim' specifically is not necessary. You can safely remove it and only use target "1500" for all SIMATIC PLCs. The SW loader will prepare an app file for the concrete connected hardware on the fly. The file path './lib/1500/Hmi.lib' does not exist. ✘ An error occurred while attempting to run build. Exitcode: 1 stc --input C:\Projects\biogasplantAX\app\bin\axunit-artifacts\src --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\axunitst-library\bin\1500\ax-axunitst-library.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\simatic-1500-alarming\bin\1500\ax-simatic-1500-alarming.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-bitaccess\bin\1500\ax-system-bitaccess.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-conversion\bin\1500\ax-system-conversion.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-datetime\bin\1500\ax-system-datetime.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-math\bin\1500\ax-system-math.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-selection\bin\1500\ax-system-selection.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-strings\bin\1500\ax-system-strings.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-timer\bin\1500\ax-system-timer.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\biogasplant-modules\bin\1500\biogasplant-modules.lib --target s7generic --simulation --output bin\plcsim --compile-to app:biogasplant-app-symbolinfogeneration:0.0.1 --debug --lib ./lib/1500/Hmi.lib -fskip-code-gen -i C:\Projects\biogasplantAX\app\test -i C:\Projects\biogasplantAX\app\src AX Structured Text (ST) compiler V8.0.45.46747. Specify --help for a list of available options and commands. apax build for symbolInfo failed!- Verifying signatures for workspace... ? Package verification succeeded. WARNING Building for 'plcsim' specifically is not necessary. You can safely remove it and only use target "1500" for all SIMATIC PLCs. The SW loader will prepare an app file for the concrete connected hardware on the fly. The file path './lib/1500/Hmi.lib' does not exist. ? An error occurred while attempting to run build. Exitcode: 1 stc --input C:\Projects\biogasplantAX\app\bin\axunit-artifacts\src --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\axunitst-library\bin\1500\ax-axunitst-library.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\simatic-1500-alarming\bin\1500\ax-simatic-1500-alarming.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-bitaccess\bin\1500\ax-system-bitaccess.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-conversion\bin\1500\ax-system-conversion.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-datetime\bin\1500\ax-system-datetime.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-math\bin\1500\ax-system-math.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-selection\bin\1500\ax-system-selection.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-strings\bin\1500\ax-system-strings.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\@ax\system-timer\bin\1500\ax-system-timer.lib --lib C:\Projects\biogasplantAX\app\bin\axunit-artifacts\.apax\packages\biogasplant-modules\bin\1500\biogasplant-modules.lib --target s7generic --simulation --output bin\plcsim --compile-to app:biogasplant-app-symbolinfogeneration:0.0.1 --debug --lib ./lib/1500/Hmi.lib -fskip-code-gen -i C:\Projects\biogasplantAX\app\test -i C:\Projects\biogasplantAX\app\src AX Structured Text (ST) compiler V8.0.45.46747. Specify --help for a list of available options and commands. apax.yml: # General information name: "biogasplant-app" version: 0.0.1 type: app # Targets to be compiled with 'apax build' targets: - "1500" - plcsim # Catalog: catalogs: "@ax/simatic-ax": ^2411.2.0 # Dependencies devDependencies: "@ax/sdk": 2411.2.0 "@ax/tia2st": ^2.0.26 dependencies: "biogasplant-modules": ^0.0.7 "@ax/simatic-1500-alarming": 2.0.1 # Project variables variables: APAX_BUILD_ARGS: - "--debug" # Generate debug information for target "1500" - "--lib ./lib/1500/Hmi.lib" BIN_FOLDER: "./bin/1500" # choose your target RT, here : any S7-1500 PLC # IP address must match with the IP address of your target device # The IP address in the .vscode/launch.json must be equal IP_ADDRESS: "192.168.70.10" # Apax scripts scripts: # call 'apax load' to download the builded program to the target. An 'apax build' might be required upfront load: apax sld load --non-overwriting --input $BIN_FOLDER --target $IP_ADDRESS --restart --accept-security-disclaimer --log debug # call 'apax dlplc' to build and download the application to the target dlplc: - apax build - apax load  
asked
1 answers
0

Hi Patrick ... 

 

I would suggest you rather address these kind of errors to the SIMATIC AX Service-desk directly via a Bug, so the devs can have a look on that.

 

Anyway ... we still trying to investigate on this as a community.

My first idea : Try to execute the "apax test" command not within a AxCode workspace project, but rather in that approriate app or lib project ? 

Did you updated to apax 4.0.0 yet ?

 

And next to this request .. a general question to your direction.

Why do you use TIA2AX for your HMI strategy ?

Did you know that we have an other solution in place ?! see:  link to GH community post

 

Keep going & happy coding ...

🐱‍💻 BEEP, BOOP, BEEP, BEEP, BOOP 🐱‍🏍

 

answered