Commit 8736d13c authored by claes's avatar claes

FirstScan plc fo implemented

parent 8ed24e62
......@@ -145,6 +145,7 @@ struct plc_sThread {
plc_sArea copy;
io_tCtx plc_io_ctx;
pwr_tBoolean first_scan;
};
struct plc_sProcess {
......
......@@ -228,6 +228,9 @@ scan (
}
}
if ( tp->first_scan)
tp->first_scan = 0;
time_Uptime(&sts, &tp->after_scan, NULL);
if (sts == TIME__CLKCHANGE) {
tp->after_scan = tp->before_scan;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment