omayma
Hello everyone,
I am currently working with SFC in OpenPLC and I have a question regarding runtime monitoring of SFC steps.
 
In industrial tools such as Machine Expert or TIA Portal, each SFC step automatically generates internal runtime tags:
  • StepName.X → step active status
  • StepName.T → step active time
These tags are provided directly by the runtime system and can be monitored without adding any extra programming (for example, directly in a terminal or monitoring tool).
In OpenPLC, I am struggling to find:
  • Whether StepName.X and StepName.T are officially supported for SFC steps
  • How (or where) these internal SFC variables can be monitored at runtime (e.g. via terminal, JSON, or internal runtime data)
I found very limited documentation on this topic, and different behaviors seem to exist depending on the OpenPLC version.
My questions are:
  1. Does OpenPLC officially provide StepName.X and StepName.T for SFC steps?
  2. If yes, where are these variables exposed at runtime and how can they be monitored?
Any clarification or reference to documentation/source code would be greatly appreciated.
Thank you for your help.
Best regards,
Reply 0 0
thiagoralves
There is no way to monitor the step tags unless you explicitly declare a variable tied to it
Reply 0 0
omayma
Thanks for your reply.
So if I understand correctly, OpenPLC does not implicitly handle the step.T variables, and you must explicitly declare a timer associated with the step.
Is that correct?
Reply 0 0
thiagoralves
Yes.
Reply 0 0
BenLet
I am surprised by your answer. Maybe I didn't understand well your discuss because i'm french.
step.t and step.x are implemented and works well.
 
I don't know if these tags can be implemanted in the runtime.
I am interested in it because I would like to display in ScadaBR which step is active and for how long.

For the moment I will add an action in each step and create more variables to share to ScadaBR.
Reply 0 0
thiagoralves
Some users reported issues with step.t, so I just assumed it was not implemented correctly. If it works on your use case that’s great. You should be able to put them on located variables (i.e. %QX, %QW, %MW, etc). For step.t you will need to convert from time to INT or time to REAL first.
Reply 0 0
Reply