Author Topic: PLC Error Display  (Read 11989 times)

chai_thing05

  • Newbie
  • Posts: 10
  • I'm a llama!
    • View Profile
PLC Error Display
« 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.


support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:PLC Error Display
« Reply #1 on: November 27, 2012, 08:59:49 PM »
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.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

chai_thing05

  • Newbie
  • Posts: 10
  • I'm a llama!
    • View Profile
Re:PLC Error Display
« Reply #2 on: November 28, 2012, 12:41:14 AM »
thanks for your reply.

May i have some sample program to test it ?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:PLC Error Display
« Reply #3 on: November 28, 2012, 09:24:43 AM »
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

Email: support@triplc.com
Tel: 1-877-TRI-PLCS