Welcome, Guest
Username: Password: Remember me

TOPIC: Scripting and Local tags

Scripting and Local tags 6 years 5 months 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 6 years 5 months ago #329

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
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 6 years 5 months 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