Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: XMMPAD

XMMPAD.m

Go to the documentation of this file.
  1. XMMPAD ;IHS/NPO/FBD - ACP-50 X.25 PAD CONTROL LOGIC; [ 06/24/94 1:27 PM ]
  1. ;;7.1;Mailman;**1003**;OCT 27, 1998
  1. ;;3.27;;
  1. Q
  1. ;
  1. DIAL ;INITIATE CALL SEQUENCE
  1. S:XMPHONE'["*" XMPHONE=$P(XMPHONE,"p",1)_"*p"_$P(XMPHONE,"p",2)
  1. U IO W *13 D CLEAR
  1. U IO W *13 D CLEAR
  1. S ER=0 U IO W XMPHONE,*13
  1. S (NOMORE,XMMHIT)=0
  1. F %=1:1:3 D Q:XMMHIT Q:NOMORE
  1. .D READ
  1. .S:Y["com" XMMHIT=1
  1. I Y'["com" S Y=$S(Y="":"Timed out before receiving 'connect' msg from modem",1:"Received '"_Y_"' msg from modem"),ER=1
  1. K NOMORE,XMMHIT
  1. Q
  1. ;
  1. HANGUP ;DISCONNECT SEQUENCE
  1. S Y="Disconnected",ER=0
  1. Q
  1. ;
  1. STATUS ; "STATUS" CODE
  1. S Y=" status report",ER=0
  1. Q
  1. ;
  1. CLEAR ;FLUSH INPUT BUFFER
  1. U IO F %=1:1 R *Y:2 Q:'$T
  1. Q
  1. ;
  1. READ ;READ ONE LINE OF INPUT
  1. S Y="" U IO F %1=1:1 R C#1:20 Q:'$T Q:C=$C(10) S Y=Y_C
  1. I '$T,'$L(Y) S Y="NO RESPONSE FROM ACP-50",NOMORE=1
  1. Q