Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Non volatile tags
PostPosted: Sat Oct 01, 2011 2:55 pm 

Joined: Sat Oct 01, 2011 2:23 pm
Posts: 5

Offline
Hello everybody,
I have a small problem, i need a tag which is non volatile but also a controler tag.
the manual says you cannot have both at the same time.
is there a simple workaround?

greetings

bastian


 Profile  
 
 Post subject: Re: Non volatile tags
PostPosted: Mon Oct 03, 2011 10:05 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
I believe what you are wanting to do is have a value saved on the panel and sent to the PLC when the panel powers up. You should be able to do what you want with a "Write" only controller tag and a Non-Volatile internal tag. Whenever the non-volatile tag changes, you'd want to copy it's value to the controller. The code would look like this.

Code:
void NonVolatileTag_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
      {
         Globals.Tags.ControllerTag.Value =
            Globals.Tags.NonVolatileTag.Value;
      }


Attachment:
tag_copy_scrn.JPG
tag_copy_scrn.JPG [ 78.88 KiB | Viewed 3350 times ]


Attachment:
non_volatile_write_tags.JPG
non_volatile_write_tags.JPG [ 57.78 KiB | Viewed 3350 times ]

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
 Post subject: Re: Non volatile tags
PostPosted: Thu Oct 13, 2011 7:10 am 

Joined: Sat Oct 01, 2011 2:23 pm
Posts: 5

Offline
thanx for your reply.
this is a solution that will work for my case.
i didnt try it out at the moment because we used another solution with non volatile tags in the plc which is enough at the moment for this case.
greetings


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: