How do I reset a value when the HMI is power cycled?

How do I reset a value when the HMI is power cycled?
none 0.0 0
  • HMI Model: cMT2108X2
  • EasyBuilder Pro Version: V6.08.02.401
  • Serial Number or supplier: 2301407117
    Do the Toggle Switches have a setting to make them turn back off when the HMI is powered off? Every time I reload my program or power up my machine, the state in which my Toggle Switch was in at power off, is retained, and the switch is held in that state when the HMI comes on line again. I need them to be set to Off/Low on powering down.

Hi @JBennett,

Unfortunately, the HMI cannot send a request to the device when it is powering down unless the request is sent prior to power loss. In this situation, I would recommend that you configure a “handshake” or “heartbeat” between the HMI and PLC and turn off the corresponding bit within PLC program when the PLC loses communication with the HMI.

1 Like

Does this exchange awhile ago shed any light on what you are trying to do?

1 Like

I ended up creating this simple Macro to set my Toggle Switch to Off (false) as the machine powered up, and before the operator has access to the window where they power up and home the machine.

macro_command main()
bool off = false
SetData(off, “MODBUS TCP/IP”, “G_Power_Enable”, 1)
end macro_command

Thanks,
Jerry

1 Like

Hi @JBennett,

Thank you for posting your solution! Have a great day!