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
Frozen screen
Re: Frozen screen
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
}
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
}