- #1
042012
- 6
- 0
Hi,
my computer is running 24h with a software which controls an electric equipement.
This software is working as a PLC, so when i start this software i have to specify the date, time and the number of cycle which it must start.
Problem:
during a power cut, my computer is running in UPS for 2 hours but after it shuts-down.
What i want is:
during a power cut, a small program in java or c must detect a state of a relay which will shuts-down my software and my computer properly and when the power cut come back, my computer should restart and the small program must start my software depending the date and time.
Is it possible?
I heard about the ADAM6060 module which can be used to detect the state of a contact from a relay.
Does anyone have a clue ?
Thank you
042012
my computer is running 24h with a software which controls an electric equipement.
This software is working as a PLC, so when i start this software i have to specify the date, time and the number of cycle which it must start.
Problem:
during a power cut, my computer is running in UPS for 2 hours but after it shuts-down.
What i want is:
during a power cut, a small program in java or c must detect a state of a relay which will shuts-down my software and my computer properly and when the power cut come back, my computer should restart and the small program must start my software depending the date and time.
Is it possible?
I heard about the ADAM6060 module which can be used to detect the state of a contact from a relay.
Does anyone have a clue ?
Thank you
042012