the controller has Galileo Software?
cause Galileo show the I/O status when fault happen ,
or you can program a fault recorder and seen the last second of the operation when the fault happen, like IMS recorder