News:

  • August 27, 2026, 10:15:03 AM

Login with username, password and session length

Author Topic: Using $LastScan to see if a DM is in run mode.  (Read 5777 times)

Henryp

  • Hero Member
  • *****
  • Posts: 161
Using $LastScan to see if a DM is in run mode.
« on: October 03, 2018, 07:29:25 PM »
Hi,
I'm using $LastScan to reset a Modbus coil so I can read if my PLC is in run mode. The PLC had an I/O error and the coil didn't reset. Does $LastScan not go true on an I/O fault? Attached is a screen print.
Thank you

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6174
  • Yes Pinky, Do-more will control the world!
Re: Using $LastScan to see if a DM is in run mode.
« Reply #1 on: October 04, 2018, 12:23:47 AM »
I/O faults are fatal errors, and currently all fatal errors shut down hard. I guess there really is no reason we can't treat I/O errors a little more gently though, and do the $LastScan.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO