IFR Systems FM/AM-1200S/A Operation Manual page 99

Communications service monitor
Table of Contents

Advertisement

1 p
OPEN " C O M 1 : 9 6 0 0
,N
, 8
,1 ,CS
,DS,
L F " AS # 1
2 0
P R I N T # 1 ,
" 2 " + C ~ ~ $ ( 1 3 )
3 0
I N P U T "CMD:
";CMD$
4 0
I F C M D $ = " Q U I T H THEN 1 6 0
5 0
P R I N T # 1 ,
CMD$
6 0
I F R I G H T $ ( C M D $ , ~ ) = " ? "
THEN GOSUB 1 2 0
7 0
I F CMD$
=
" M T R 1 "
O R CMD$
=
" M T R 2 " THEN GOSUB 1 2 0
8 0
I F CMD$
=
"MDS"
THEN GOSUB 1 2 0
9 0
I F CMD$
=
"DVMAC"
O R cMD$="DVMDCU THEN GOSUB 1 2 b
1 0 0
IF
C M D $
=
u
~
~
~
f
l
T H E N G O S U B 1 2 0
110
GOT0 3 0
1 2 0 I N P U T # l , R E T $
1 3 0 P R I N T RET$
1 4 0 I F R E T $ = " * * "
GOT0 1 2 0
1 5 0 RETURN
1 6 0 END
4 - 1 1 - 2
R S - 2 3 2 COMMAND PROCEDURE AND DATA STRUCTURE
A l l
F M / A M - 1 2 0 0 S / A
f u n c t i o n a l
c o m m a n d s a n d d a t a i n f o r m a t i o n a r e t r a n s -
f e r r e d o v e r t h e R S - 2 3 2 a s u p p e r c a s e A S C I I a1 p h a n u m e r i c c h a r a c t e r s t r i n g s
d e s i g n e d t o r e p l a c e t h e f r o n t
p a n e l c o n t r o l s .
A l l
i n p u t c o m m a n d s s e n t t o t h e F M / A M - 1 2 0 D S / A
a r e p l a c e d i n a n i n t e r n a l
I
q u e u e t h a t w i l l
a c c o m m o d a t e u p t o 1 2 8 b y t e s o f d a t a .
Command s t r i n g s
-
m a y b e p a c k e d t o g e t h e r ,
b u t t h e i n d i v i d u a l c o m m a n d s m u s t b e s e p a r a t e d b y
a c o l o n " : " d e l i m i t e r .
T h e c o l o n " : " m a y o r m a y n o t c a u s e t h e c o m m a n d
t o b e e x e c u t e d i m m e d i a t e l y ,
d e p e n d i n g u p o n t h e t y p e o f e x t e r n a l
c o n t r o l 1 e r b e i n g u s e d .
T h e f o l l o w i n g A S C I I C h a r a c t e r s w i l l
a l w a y s t e r -
m i n a t e t h e c o m m a n d o r s e r i e s o f c o m m a n d s :
A S C I I C a r r i a g e R e t u r n ( O D )
-
C R
A S C I I L i n e F e e d
( O A )
-
L F
M a x i m u m c o m m a n d s t r i n g l e n g t h i n c l u d i n g s p a c e s a n d d e l i m i t e r s i s 1 2 8
c h a r a c t e r s .
I f t h e c o m m a n d s t r i n g e x c e e d s 1 2 8 c h a r a c t e r s ,
e v e r y t h i n g u p
t o t h e m o s t r e c e n t d e l i m i t e r
w i l l
b e a c c e p t e d a n d t h e r e s t i g n o r e d .
A l l
s p a c e s w i l l
b e i g n o r e d e x c e p t w h e n u s i n g t h e " ! " c o m m a n d .
R e t u r n e d d a t a t o t h e e x t e r n a l c o n t r o l l e r w i l l
n o t b e p a c k e d t o g e t h e r i n
a s t r i n g .
I n s t e a d ,
e a c h s e t o f d a t a r e t u r n e d
w i l l
b e o n a n i n d i v i d u a l
l i n e a n d s e n t o u t i n t h e o r d e r i n w h i c h i t s c o m m a n d w a s s e n t .
T h a t i s ,
t h e f i r s t " g e t "
i n s t r u c t i o n s e n t i n a c o m m a n d s t r i n g
w i l l
c a u s e t h e
r e t u r n e d d a t a t o b e o n t h e f i r s t l i n e o f t h e o u t p u t ;
t h e s e c o n d " g e t "
i n s t r u c t i o n
w i l l
c a u s e t h e r e t u r n e d d a t a t o b e o n t h e s e c o n d l i n e o f t h e
o u t p u t ,
a n d s o o n .
D a t a i n p u t s t h a t a r e o u t o f s p e c i f i c r a n g e w i l l
g e n e r a l l y d e f a u l t t o t h e
m i n i mum v a l u e s o r i n i t i a1 c o n d i t i o n v a l u e s .

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for IFR Systems FM/AM-1200S/A

Table of Contents