Writing Tag Values
-
- Posts: 3
- Joined: Mon Feb 06, 2012 11:33 am
Writing Tag Values
Is it possible to take a value from a Modbus read only variable and write it to a Modbus write only variable when a button is pressed?
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Writing Tag Values
The below code fires the ValueChange event for Tag1 whenever it changes. It then copies the value into Tag2. You should also turn on the Always active property of Tag1, so that it always polls the tag.
You should also look at the Data Exchange section of the manual.
You should also look at the Data Exchange section of the manual.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
-
- Posts: 3
- Joined: Mon Feb 06, 2012 11:33 am
Re: Writing Tag Values
Thanks Mark. It worked great!mark.monroe wrote:The below code fires the ValueChange event for Tag1 whenever it changes. It then copies the value into Tag2. You should also turn on the Always active property of Tag1, so that it always polls the tag.
You should also look at the Data Exchange section of the manual.