adriano.mele

Hi,

a super-quick question on SFC programming in OpenPLC.

As far as I know, in the standard 611313 it is assumed that every phase in a SFC graph has 2 variables associated, a phase marker (i.e. step.X) and a phase timer (i.e. step.T).

However, if I try to use the latter I get some compilation errors (while, if I substitute it with a dummy time variable, everything woks flawlessly). 

Any hint?

 

Thanks 🙂


EDIT - actually using it in inline transitions works, but the example below does not (?)

Quote 0 0
adriano.mele
Here is an example
Quote 0 0
thiagoralves
OpenPLC does not have this feature. However, you can achieve the same result by just using a D action qualifier on a variable, like this:
Capture.png 
The project is attached for reference.
Quote 0 0
adriano.mele
I know, I was just trying to reproduce an example from a textbook. Thanks anyway
Quote 0 0