Results 1 to 4 of 4

Thread: How to reboot display from code

  1. #1

    Default How to reboot display from code

    Hi,

    I am looking for a method to reboot the CR1201. So far I have looked at the following

    Divide 0 - No effect, seems to reboot PLCs only.

    SysLibPlcCtrl.lib
    SysShutdownPlc(b_Dummy); (* Forces off - Holds Red Light Flashing *)
    SysResetPlcProgram(rmRESETMODE := RESET_COLD); (* Forces off - No Light Flashing *)

    As a side note, I don't understand how the library can have commands like SysStartPlcProgram(b_Dummy); as this is code which would need to be running, to run the code itself?

    The only way I presently see is to use the output of the CR1201 to control a relay to intefere with the power supply, surely there is a better way?

    Luke

  2. #2
    Join Date
    May 2009
    Location
    Minneapolis, MN
    Posts
    302

    Default

    If you have your switching voltage on CLAMP 15 (Connector 1, Pin 5) you can use the System Flag SUPPLY_SWITCH to turn the unit off.

    The SysLibPlcCtrl does not work with the CR1201.

  3. #3

    Default

    Hi Eric,

    I have experience working with the variables

    CLAMP_15_SWITCHING_THRESHOLD
    CLAMP_15_VOLTAGE
    SUPPLY_SWITCH

    However I have found that whilst I can use this method to get the screen to turn off it will not (understandably) turn back on automatically.

    My requirement is for a reboot, not power down. Is that possible?

    Thanks
    Luke

  4. #4
    Join Date
    May 2009
    Location
    Minneapolis, MN
    Posts
    302

    Default

    No you will not be able to reset the display from your code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •