From one tag value create two tag value

I have a tag that I want to show in a separate tag, I create two memory tags and a gateway on read/write mode
then I set up tag value change event to
if currentValue.value > 150:

but its not working do you know why?

You aren’t providing a value to system.tag.write(), only a tagpath. You have to provide two arguments. See the docs:

1 Like

Tip: use the </> code formatting button on your code to preserve indents and enable syntax highlighting. You can edit your post (the pencil icon) to fix it.

1 Like

Thank you so much
I have an analyzer. The analyzer works twice per hour and gives me a max number of benzene and other practical

I need to show operation what is those numbers, for example, I must take a max value if the analyzer reading value is less than 500 and then I must take max value if the reading value is above 500

Do you have any idea?

Thank you for your help in advance