Frozen screen

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Frozen screen

Post by wlederer »

I wrote a script to read data from R-registers in PLC (Mitsubishi FX3u) and record them into a file on an external USB memory. The procedure run about 6 minutes and all the time, the HMI (Beijer T7A) is completely frozen.
How can I put some information about, what is happening, on HMI screen?

regards, Waldemar

stuartm
Posts: 61
Joined: Thu Jun 06, 2013 9:21 am

Re: Frozen screen

Post by stuartm »

Please consider threading.

using System.Threading; // Required for Thread class

void button_click(Object o, EventArgs e) {
Thread t = new Thread(new ThreadStart(MyThread));
t.isBackground = true; // Prevent run lockout when closing demo program
t.Start();
}


void MyThread() {
// Transfer your files here
}

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: Frozen screen

Post by wlederer »

Thank You Stuart.

Post Reply