User manual

MEX ASPERA-3
Ref.:
ME-ASP-MA-0002
Issue:
Issue 1 Rev. 4
Date:
15/2/2002
Page:
Page 34 of 58
ASPERA-3 EGSE User Manual
IFSI
CNR
RX[12] TBD
RX[13] TBD
RX[14] Used as jump RX[14] lines if VERTM command end with time-out (predefined
RX[14]=1).
RX[15] Used as time-out (seconds) in VERTM command (predefined RX[15]=20).
A typical procedure could be:
_begin ; Initialise errors counter
_step 2000 ; 2 seconds time interval between instructions
MAIN28on ; Switch on main 28 V. This macro expand to
; relay 0 200 which send a 15V pulse to the
; relay # 0 with a duration of 200x122us = 24ms
tpoll 3 ; poll for telemetry every 3 seconds
verhk 10 0 6 0xff00 0x1000 0xff00
; wait (with a timeout of 10 seconds) for Hk SID=0
; offset 6 words (16 bit word), byte high to be
; greater than 16
_tover 10 ; This predefined macro expand to _SETRX 15 10 and
; set time-out for all subsequent VERTM command
; to 10 seconds
_tojmp 2 ; This predefined macro expand to _SETRX 14 2 and
; set the jump linees on time-out for all subsequent
; VERTM command to 2
vertm 6 0xff 3 7 0xff00 0x1900 8 0xff 0 14 0xff00 0x1000 0xff00
; This command is equivalent to the previous (actually
; VERHK is translated to VERTM) but much more general.
; The command select the HK packet [Type 3 (6,0xff,3)
; subType 25 (7,0xff00,0x1900)] sid=0 (8,0xff,0) then
; check the same parameter which is now at offset
; 6+8=14 because in VERTM the offset is counted from
; the beginning of the packet.
_jmp 2 ; jump to _SETRX 0 3 instruction if no timeout
; occurred in the previous vertm
_goto _error_ ; go to label _error_ if timeout occurred in the
; previous vertm
_SETRX 0 3 ; set local register #0 to 3
ASPMELS30 ; send the high level command to Aspera as listed in
; table /Mex/CmdLut/TeleCommand.txt
_tover 30 ; This predefined macro expand to _SETRX 15 30 and
_tojmp 1 ; This predefined macro expand to _SETRX 14 1
vertm 6,0xff,3, 7,0xff00,0x1900, 8,0xff,0, 17, 0xff0f, 0x1000, 0xff00
; verify command execution on HK
; Sid=0,timeout 30 sec ..........
ASPMNPD1Start
vertm 6,0xff,3, 7,0xff00,0x1900, 8,0xff,0, 27, 0xff0f, 0x1000, 0xff00
; verify command execution on HK
; Sid=0, timeout 30 sec ..........
ASPMNPD1Stop
verhk 0, 29 0xff0f, 0x1000, 0xff00
; verify command execution on HK
; Sid=0, timeout 30 sec ..........