Technical FAQs

Ask a Question

Is there any instruction in Unity Pro to read the Date and Code of Last Stop?

The PTC function reads the date and code of the most recent PLC stop, and saves the information in an integer table.

The Table of 5 integers contains the date in the first four words (equivalent of %SW54 to %SW57) and the error code in the last word. The error code is the one indicated in the %SW58 system word: 
1 = switch from RUN to STOP by the terminal, 
2 = stop on software fault (PLC task overflow), 
4 = mains power cut, 
5 = stop on hardware fault, 
6 = stop on HALT instruction.

Example: Stop at 22:53:10 on January 8, 2001. The contents of Stop_Date were as follows: 
Was this helpful?
What can we do to improve the information ?