Page 1 of 1

Frozen screen

Posted: Fri Mar 21, 2014 3:23 am
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

Re: Frozen screen

Posted: Mon Mar 24, 2014 11:31 am
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
}

Re: Frozen screen

Posted: Tue Mar 25, 2014 3:47 am
by wlederer
Thank You Stuart.