User Tools

Site Tools


tcs:tcsng_command_list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tcs:tcsng_command_list [2012/12/17 11:52]
admin
tcs:tcsng_command_list [2019/08/28 13:12] (current)
davner
Line 78: Line 78:
  Returns: [JJJJJJJ.j]  Returns: [JJJJJJJ.j]
  
-        FLEXFILE Retrieve contents of current flex file (Pointing Correction) being used   Added by Scott 12/2012+        FLEXFILE Path and file name of current flex map   Added by Scott 12/2012
                  Args: N/A                  Args: N/A
-                 Returns: [line 1\n] [line 2\n[line 3\n] ...+                 Returns: [PATH/][pctcs_.tp]
  
         LIMITPROF Horizon limit profile as a function of azimuth      Added by Scott 12/2012         LIMITPROF Horizon limit profile as a function of azimuth      Added by Scott 12/2012
Line 93: Line 93:
  Args: N/A  Args: N/A
  Returns: this returns an 8 bit integer whose bits represent the following  Returns: this returns an 8 bit integer whose bits represent the following
- bit0(LSB) = RA low limit + bit0(LSB) = RA  
- bit1 = RA upper limit + bit1 = DEC 
- bit2 = DEC low limit + bit2 = Derotator 
- bit3 = DEC upper limit + bit3 = Hardware Horizon 
- bit4-6 = unknown ??????? + bit4 = Software Horizon 
- bit7 = limit warning? + bit5 = Focus Upper 
- bit8 = limit warning?+ bit6 = Focus Lower
  a 1 indicates limit active, 0 indicates limit not active  a 1 indicates limit active, 0 indicates limit not active
  
Line 114: Line 114:
  a 1 indicates limit active, 0 indicates limit not active  a 1 indicates limit active, 0 indicates limit not active
   
 + LIMITINHIBIT   limit inhibit status
 +                       args N/A
 +                       Returns: 0 if limits are active and 1 if limits are inactive
 +===SOFTLIMITS==== 
 +[[tcs:limit_logic| S1 and S2 limits are defined here ]]
 + SOFTLIMITS     Software limit status
 +                       args N/A
 +                       
 +                       Returns : 6 bit software limit status
 +                       
 +                       bit 0 = RA S2          
 +                       bit 1 = RA S1          
 +                       bit 2 = DEC S2         
 +                       bit 3 = DEC S1         
 +                       bit 4 = Horizon S2     
 +                       bit 5 = Horizon S1
 +                       [[tcs:limit_logic|Limit Logic in TCS]]    
  
 +                       
 +        
  MOTION  Motion status bits  MOTION  Motion status bits
  Args: N/A  Args: N/A
Line 202: Line 221:
  GUIDE(Guide Rate) = +XXXXXXXXX.xxx  GUIDE(Guide Rate) = +XXXXXXXXX.xxx
  DRIFT(Drift Rate) = +XXXXXXXXX.xxx  DRIFT(Drift Rate) = +XXXXXXXXX.xxx
 +        
 +        
 +===Satellite Requests===        
 +        
 +        
 +       GETSATELAZ Satellite horizontal coordinates
 +                   Args: N/A
 +                   returns [EL] [AZ]
 +                   
 +        GETSATECI  Satellite Earth Centered Inertial Cartesian coords
 +                   Args: N.A
 +                   Returns: [X] [Y] [Z]
 +                   
 +        GETSATECEF Satellite Earth Centered Earth Fixed Cartesian coords
 +                   Args: N.A
 +                   Returns: [X] [Y] [Z]
 +
 +===undefined Request===
 + TEST1 ??? >> probably useless but is currently in the command set
 + Args: ???
 + Returns: ???
 +
 + INDEX ???
 + Args: ???
 + Returns: ???
 +
 + PP ???
 + Args: ???
 + Returns: ???
 +
 + SRVFRQ  ???
 + Args: ???
 + Returns: ???
 +
  
 ===Dome Request=== ===Dome Request===
Line 226: Line 279:
  AZ(Dome Azmouth) = +XXX.XXXXXXX  AZ(Dome Azmouth) = +XXX.XXXXXXX
  HOME(Home Position) = +XXX.XXXXXXX  HOME(Home Position) = +XXX.XXXXXXX
 +         
 +         
 +         
 +        
 ===Focus Request=== ===Focus Request===
  FOCSPEED Focus Speed  FOCSPEED Focus Speed
Line 236: Line 292:
  Returns: +XXXXX  Returns: +XXXXX
  
 +=== DIO Request ===
 +**TODO make this consistent with Softlimits (use binary, not hex)**
 +
 +       DIO All 6 bytes of DIO
 +            Args: N/A
 +            Returns: A1 B1 C1 A2 B2 C2 as hex numbers
 +           
 +            
 +            A1: 
 +                Bit0: FOCUS UP 
 +                Bit1: FOCUS DN
 +                Bit2: FOCUS F/S
 +                Bit3: ESTOP STATUS
 +                Bit4  HA ALT LIMIT
 +                Bit5  DEC ALT LIMIT
 +                Bit6  DEROT ALT LIMIT
 +                Bit7  SPARE A7A
 +                
 +           B1: Paddle Buttons
 +                Bit0: NORTH
 +                Bit1: SOUTH
 +                Bit2: EAST
 +                Bit3: WEST
 +                Bit4: GUIDE/DRIFT
 +                Bit5: SLEW
 +                Bit6: DOME RIGHT
 +                Bit7  DOME LEFT
 +            
 +            C1: 
 +                Bit0: HA LIMIT
 +                Bit1: DEC LIMIT
 +                Bit2: HOR LIMIT
 +                Bit3: HS NORTH
 +                Bit4: HS EAST
 +                Bit5: Dome Home
 +                Bit6: Focus Up  Limit
 +                Bit7: Focus 
 +                
 +           A2:
 +               Bit0: HA E SLEW 
 +               Bit1: HA W SLEW
 +               Bit2: DEC N SLEW 
 +               Bit3: DEC S SLEW 
 +               Bit4  HOR SLEW LIMIT
 +               Bit5  DEROT CW SLEW LIMIT
 +               Bit6  DEROT CCW SLEW LIMIT
 +               Bit7  REMOTE LOCKOUT
 +         B2: 
 +               Bit0: HA DIR
 +               Bit1: DEC DIR
 +               Bit2: FOCUS DIR
 +               Bit3: DEROT DIR
 +               Bit4: HA INHIBIT
 +               Bit5: DEC INHIBIT 
 +               Bit6: FOCUS INHIBIT 
 +               Bit7: DEROT INHIBIT
 +               
 +          C2:
 +              Bit0: RING BIT 0
 +              Bit1: RING BIT 1
 +              Bit2: SLEW PERMIT
 +              Bit3: DEROT LIMIT
 +              Bit4  DOME RIGHT OUT
 +              Bit5  DOME LEFT OUT
 +              Bit6  DOME ENABLE OUT
 +              Bit7  SPAREC7B
 +           
 +          
 +            
 ==== Commands ==== ==== Commands ====
  
Line 539: Line 664:
  Returns: "OK" or "FAILED"  Returns: "OK" or "FAILED"
  
-PEC+[[tcs:periodic_error_correction|Periodic Error Correction]]
 Request Request
  PECSTAT Current PEC operation status  PECSTAT Current PEC operation status
Line 625: Line 750:
  Returns: ???  Returns: ???
  
-undefined??? 
-Request 
- TEST1 ??? >> probably useless but is currently in the command set 
- Args: ??? 
- Returns: ??? 
- 
- INDEX ??? 
- Args: ??? 
- Returns: ??? 
- 
- PP ??? 
- Args: ??? 
- Returns: ??? 
- 
- SRVFRQ  ??? 
- Args: ??? 
- Returns: ??? 
- 
-Command 
  SYSSAVE ???  SYSSAVE ???
  Args: ???  Args: ???
Line 654: Line 760:
         SYSRESET Restarts TCS process after disbling the telescope       Added by Scott 12/2012         SYSRESET Restarts TCS process after disbling the telescope       Added by Scott 12/2012
                      Telescope should be stowed before doing this.                      Telescope should be stowed before doing this.
-                 Args: N/A    +                 Args: [TIME] [DD/MM/YY] [HH:MM:SS] 
 +                  
 +                 If no arguments are used the TCS simply restarts  
 +                 as if you had restarted the TCS computer. If for some reason  
 +                 the time is bad on the TCS computer you can add the TIME 
 +                 argument followed by the date and time in UT and TCS will 
 +                 use this and not the computer time for astrometry. 
 +                 
                  Returns OK or Failure                  Returns OK or Failure
- +                  
 +         
 +       TLE       Gives TCS a new TLE for tracking Earth Satellites 
 +                 Args: Follows this format exactly: [[https://en.wikipedia.org/wiki/Two-line_element_set]] 
 +                  
 +                  
 +       SATTRACK  Tracks the current satellite TLE with the telescope. 
 +                 Args: N/A
  
- + 
 +      NEXTEVENT Gives you rise or set time in hours of coordinates set using the NEXTPOS command.  
 +                Args N.A 
 +                Returns: Rise/Set (0/1) state and time in decimal hours. 
tcs/tcsng_command_list.1355770369.txt.gz · Last modified: 2012/12/17 11:52 by admin