Delayed Shutdown Macro?

Hi all,

We have two HPLC-MS systems which we are currently setting to standby manually after sequence tables finish running, but would like to have a delayed macro setup to go into standby after a set period of time (i.e. after 15 minutes or 900 seconds). Is there some way to write a shutdown macro so that a timer begins after the sequence table(s) have completed running prior to standing by? This was able to be set in the GUI when I used Waters MassLynx software previously, but it seems to require a macro for ChemStation.

The macro we would like to amend is the default included with ChemStation:

name shutdown
         local reply$

         print NLSCoreUtil$("ShutdownMsg")
         !!!!! Do your own commands here
         STANDBY
         ! switch off FLD lamp
         if dev1046FLD = 1
                    if _offline = 0
                              reply$ = SendModule$ ("FLD", "LAMP=0")
                    endif
          endif
          print NLSCoreUtil$("ShutdownMsg")
          endmacro

Thank you.

Parents
  • Hi 

    Using what  suggested, the macro would become:

    name shutdown
             local reply$

             print NLSCoreUtil$("ShutdownMsg")
             SLEEP 900
             STANDBY
             ! switch off FLD lamp
             if dev1046FLD = 1
                        if _offline = 0
                                  reply$ = SendModule$ ("FLD", "LAMP=0")
                        endif
              endif
              print NLSCoreUtil$("ShutdownMsg")
              endmacro

    Cheers

    Andy

Reply
  • Hi 

    Using what  suggested, the macro would become:

    name shutdown
             local reply$

             print NLSCoreUtil$("ShutdownMsg")
             SLEEP 900
             STANDBY
             ! switch off FLD lamp
             if dev1046FLD = 1
                        if _offline = 0
                                  reply$ = SendModule$ ("FLD", "LAMP=0")
                        endif
              endif
              print NLSCoreUtil$("ShutdownMsg")
              endmacro

    Cheers

    Andy

Children
No Data
Was this helpful?