logo Welcome, Guest. Please Login or Register.
June 26, 2017, 08:05:07 PM
Home Help Search Login Register
 News: You can search the forum for answers to your question in a previous discussion. Please click on the "Search" button above and enter the keyword to search. To get to the full discussion of a listed message, please click on the TITLE of the message listed in the search listing.

  Internet PLC Forum
  General
  Technical support
(Moderator: support)
  Timebomb
? previous next ?
Pages: [1] Go Down Reply Notify of replies Send the topic Print
   Author  Topic: Timebomb  (Read 98 times)
can
Sr. Member
***

Posts: 151



I'm a llama!

View Profile E-Mail
Timebomb
« on: June 06, 2017, 05:52:36 AM »
Reply with quote

Hi. Does anybody know of any way to time bomb the program in FMD88?
Report to moderator   Logged
support
Global Moderator
*****

Posts: 3023





View Profile WWW E-Mail
Re:Timebomb
« Reply #1 on: June 07, 2017, 09:10:49 PM »
Reply with quote

Do you want to partially disable your program or you want to entirely shut it down? The best way to time bomb the program is to define a counter/timer to specify the limitations on your application and when that value is reached, the entire program or partially will shut down. For instance in preventive maintenances, programmer decides to stop the system working but should keep the life safety related sections of the program fully functional.
 Time_Bomb.PC6
Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
can
Sr. Member
***

Posts: 151



I'm a llama!

View Profile E-Mail
Re:Timebomb
« Reply #2 on: June 18, 2017, 11:05:06 AM »
Reply with quote

Hi. I'm thinking of deleting the entire program in PLC permanently when a counter is up. Is there any key words that can enable me to do it using Tbasic? Thank you.
Report to moderator   Logged
garysdickinson
Expert Member
****

Posts: 351



I'm an old guy!!!

View Profile E-Mail
Re:Timebomb
« Reply #3 on: June 18, 2017, 03:59:15 PM »
Reply with quote

I have found no TBASIC keywords that can directly alter the stored program.  You can alter SV of TIMERs and COUNTERs. 

If your PLC has non-volatile EEP storage you can wipe this out.  I use EEP to store all sorts of configuration data so that my customer can run the same PL6/7 program on several systems.  Only the EEP image changes between systems.

Why do I mention this?  I look for a unique signature in EEP to determine if the EEP based configuration data is valid. If valid, the code runs.  If not valid the code builds a generic configuration data set in EEP.

For your usages, when the usage counter expires,  zero out the EEPROM and reset the PLC.  The CF that is called on the first scan can simply put the PLC in an endless loop if the EEP has been cleared. This will brick the PLC for 99.9% of your customers.



Best regards,

Gary D*ickinson
Report to moderator   Logged
Pages: [1] Go Up Reply Notify of replies Send the topic Print 
? previous next ?
Jump to: 


Login with username, password and session length

Powered by MySQL Powered by PHP Internet PLC Forum | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!