Internet PLC Forum
General => Technical support => Topic started by: chai_thing05 on November 27, 2012, 04:25:30 AM
-
How to detect and then display the PLC's error on LCD 216 ?
e.g Lost connection (due to hardware failure? network ?) , Input/output terminal faulty, PLC error ... and etc.
Thanks.
-
Your program must be able to detect the error and you can then use the SETLCD y, x, message$ command to display the error on the LCD.
The question of course is what you can detect? E.g. to detect input sensor failure, you will have to know what signify a failure - e.g. an analog sensor that is returning out-of-range data can be detected by the program. You as the programmer has to know how to detect error and then you can display the error.
Other system errors such as runtime error or undefined interrupts will be automatically displayed on the LCD by the PLC firmware.
-
thanks for your reply.
May i have some sample program to test it ?
-
There are sample programs in your C:\TRiLOGI\TL6\usr\samples folder
You can also download more complete working programs from:
http://www.tri-plc.com/appnotes/AppnoteMain.htm