Skip to content

Usage question: Tag change event #20

Description

@intensite

Not an issue per say, more a usage question.

Is it feasible/possible to code an event to trap when a PLC tag value changes? Some kind of a subscription system.
I would like to publish to a MQTT topic, but only if the tag value has changed.

If no built-in feature allows for this, I was planning to implement an array of "tag objects" that would hold something like
( tagName, lastValue, currentValue ) and then regularly poll & compare the currentValue with the lastValue for each tags to be monitored.

Not the most elegant. Do you have a better solution?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions