Search found 7 matches

by artistmonkey
Wed Jul 04, 2018 2:19 am
Forum: Scripting
Topic: Popup Screen Open Status
Replies: 2
Views: 7403

Popup Screen Open Status

Is there any way to check popup screen is opend or not by scripting without using any tag?
by artistmonkey
Tue Jun 26, 2018 12:34 am
Forum: Scripting
Topic: how can i make lightweighttag to get read() function
Replies: 5
Views: 13927

Re: how can i make lightweighttag to get read() function

artistmonkey wrote:
Nightf1y wrote:You need to do the following...

add...

using Interfaces.Tag;

and then access the tag as below.

((IBasicTag)Globals.Tags.Auto_BatchEndOkToSaveData).Read();


Regards
Hi Nightf1y
Hi Nightf1y,
it's working. I put ((IBasicTag)LWT).Read();
Thank You very much.
by artistmonkey
Fri Jun 15, 2018 4:10 am
Forum: Scripting
Topic: how can i make lightweighttag to get read() function
Replies: 5
Views: 13927

Re: how can i make lightweighttag to get read() function

You need to do the following... add... using Interfaces.Tag; and then access the tag as below. ((IBasicTag)Globals.Tags.Auto_BatchEndOkToSaveData).Read(); Regards Hi Nightf1y I am using below script to get dynamic tag value public string Str2Tags(string TagName) { //string to tagName and get relati...
by artistmonkey
Thu Jun 14, 2018 7:15 pm
Forum: Scripting
Topic: SOS, X2pro7 restart again and again
Replies: 2
Views: 6870

Re: SOS, X2pro7 restart again and again

Rebooting usually means the program is crashing. In this case, what I usually do is place a try {} catch {} around the code and spit the exception to a message box. That way you can get some indication as to what is causing the crash. As the issue gets more complex, I might use multiple catches wit...
by artistmonkey
Thu Jun 14, 2018 1:58 am
Forum: Scripting
Topic: SOS, X2pro7 restart again and again
Replies: 2
Views: 6870

SOS, X2pro7 restart again and again

Hi everybody, I've faced a little strange problem. Below script are fine in my testing x2pro7 and t7a. But my customer install in their x2pro7, it was auto restart again and again till com2 rs485 was unplugged. void rs40_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) ...
by artistmonkey
Thu Jun 14, 2018 1:46 am
Forum: Scripting
Topic: how can i make lightweighttag to get read() function
Replies: 5
Views: 13927

Re: how can i make lightweighttag to get read() function

I may need a bit more context on what you're trying to do, but it sounds like you should just be able to read the tag value using the Globals.Tags.<YourTagName>.Value I just try to use dynamic string tag and when I use in script module, I notice that lightweighttag doesn't update value which real v...
by artistmonkey
Sun May 27, 2018 9:33 pm
Forum: Scripting
Topic: how can i make lightweighttag to get read() function
Replies: 5
Views: 13927

how can i make lightweighttag to get read() function

I can get value of tag using dynamic tag name script. But the problem is tag value was not updated. I need to use tag.read() function and I don't know how to do that.
Anyone can help me!