Problems with tracing in Simatic AX

0
Hi community!I am exploring the tracing functionalities in Simatic AX. Getting the trace online and on the PLC seems ok, but I cannot open a visualization or see any saved data in AX (I am running the demo script with the shiftregister). Whenever I want to open a visualization, this message keeps hanging:Also, I am not sure if any saved data on the memory card is shown in 'SAVED RESULTS'? My trace config:# SIMATIC AX Trace Configuration name: MyTrace jobType: finite sampleCount: 10 signals: - "sr.Q0" checkPoint: task: MyConfiguration.Main memoryCard: saveCount: 10 overwriteWhenFull: true Am I doing something wrong? I did find the docs about tracing, but unfortunately nothing about visualizations.I'm using:AX: 2510.11.0apax: 4.2.0ax/trace: 3.3.1Any help is greatly appreciated!Cheers, Nathan
asked
2 answers
0

Hi Nathan,


Thanks for sharing the details. Based on your provided trace configuration, the trace job is finite but does not have any defined saveTrigger.


As a result, the trace will show as running, but it will never finalize a measurement, because there is no trigger condition that tells AX when to persist the captured samples.


Because no measurement is finalized, nothing appears under SAVED RESULTS, and the visualization dialog remains in a loading state.


If you have a specific condition you want to trigger on, try adding a saveTrigger to your configuration.


saveTrigger documentation: https://docs.industrial-operations-x.siemens.cloud/r/en-us/ax/tracing-docs/3.3.1/configuration-file/save-trigger


Example snippet:

name: MyTrace
jobType: finite
sampleCount: 10

signals:
  - "sr.Q0"

checkPoint:
  task: MyConfiguration.Main

saveTrigger:
  preSamples: 10
  condition: "sr.Q0 = true"

memoryCard:
  saveCount: 10
  overwriteWhenFull: true


Let us know if this resolves your issue. Thank you!


answered
0

Hi Daniel,


Thanks for the reply! I actually managed to get it to work. I don't know which helped, but:

  • I accidentally installed node.js v24 instead of v22
  • before, I used the `plc-control` CLI to access a PLC. I couldn't use the "PLC online hub extension", because when I tried to add a PLC, the screen would go black after a couple seconds. I suspect my node.js version might be the culprit of that... after I downgraded node.js to v22, I managed to add a PLC connection using the "PLC online hub" extension.
  • I do see that all visualizations and results are stored under the name I used for my PLC connection in the PLC online hub extension.


So then my follow-up question would be: was I wrong in assuming I did not need the PLC online hub for the tracing extension? I thought the docs said that the plc-control CLI tool was sufficient.


answered