Author Topic: PC rebooted and wrote zeros to PLC  (Read 653 times)

EE_Kraig

  • Newbie
  • *
  • Posts: 37
    • View Profile
PC rebooted and wrote zeros to PLC
« on: April 18, 2017, 10:38:45 AM »
Last week the PC running AHMI was in the process of installing updates and rebooting and for some time it was on the "please don't turn off" Win10 screen. Somewhere during that process, it set all the PLC registers that the app writes to, to zero. Trying to understand why/when it wrote zeros and if it's a bug, intended, etc.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: PC rebooted and wrote zeros to PLC
« Reply #1 on: April 18, 2017, 11:20:00 AM »
Do you have code in your application that writes to the PLC?

EE_Kraig

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: PC rebooted and wrote zeros to PLC
« Reply #2 on: April 18, 2017, 12:29:42 PM »
Yes and no. I have two DPMs that only write to the PLC from the control. I have three AnalogValueDisplays that write from the control and in code I do write to the same values on an event, e.g. ButtonClick.

I should add this is ModbusTCP
« Last Edit: April 18, 2017, 01:50:46 PM by EE_Kraig »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: PC rebooted and wrote zeros to PLC
« Reply #3 on: April 18, 2017, 01:40:19 PM »
To my knowledge, there are only 2 possibilities for something to write to the PLC on startup without user interaction. Those would be user code or the Analog Input Controls expansion pack.

EE_Kraig

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: PC rebooted and wrote zeros to PLC
« Reply #4 on: April 18, 2017, 01:50:35 PM »
I don't think it was actually on startup but rather on shutdown. I'm guessing the PC closed the app before it tried to shutdown, or maybe it didn't and then the modbus driver freaked? Just wanted to mention it in case I was missing something.