Example Log File Download Script

 

 

 

;   Sample Procomm Plus Script for downloading Catalyst RTU Log Files.

 
 

      

 

proc main; Starts procedure (required)

 

 

 

   string Name = "RTUname.cap"   ; Name of capture file to open

 

 

 

   set capture file Name      ; Set name of capture file

 

 

 

   dial DATA "Catalyst"            ; Dial Catalyst

 

 

 

   while $DIALING                   ; Loop while dialing

 

   Endwhile

 

 

 

   capture ON                ; Open up the capture file

 

 

 

   waitfor "Enter PIN: "; Tells Procomm to wait for the RTU to ask for a PIN

 

   transmit "007^M"; Procomm transmits PIN back to Catalyst

 

 

 

   while $CARRIER             ; Loop while connected to RTU

 

   waitfor "Logfile Download Complete"

 

   transmit "Logfile Download Complete^M"

 

   endwhile

 

 

 

   capture OFF                ; Close the capture file

 

  

 

   pwexit; Close Procomm Plus (optional)

 

 

 

endproc; Ends procedure (required)