Welcome, Guest
Username: Password: Remember me

TOPIC: Scripting and Local tags

Scripting and Local tags 7 years 1 month ago #328

  • Loek
  • Loek's Avatar
I'm reading a DINT from my PLC and I can visualize the value on a screen.

But I also want to filter every bit from the DINT tag into bits. Therefore I use a script with a NAND function.

Unfortunately none of the results from the scripts are working!

I think it has to do with the tags I created... All script results must be local tags. How do I create a local tag? If I create a local tag, there's always a Server selected. There's no way to select "Local" e.g.
Attachments:
The administrator has disabled public write access.

Scripting and Local tags 7 years 1 month ago #329

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 863
  • Thank you received: 126
  • Karma: -108
Hello,

You should use other script object for your purpose it calls READB from Bitmap Operations library. If you want to use local tag you should left PV Input Tag empty as you done in your project. I attach your project with correction.


Best regards,
Ruslan
Attachments:
The administrator has disabled public write access.

Scripting and Local tags 7 years 1 month ago #330

  • Loek
  • Loek's Avatar
And the Local tags access mode has to be Read/Write of course!

Thanks! :)
The administrator has disabled public write access.
Go to top