COM320 Voice Communications Modem
16
DialSequence (4094)
DialSuccess = DialModem (COM320, 9600,"1112223333","") 'Phone number to call
EndDialSequence (DialSuccess)
BeginProg
Scan (30,Sec,0,0)
PanelTemp (PTemp,250)
Battery (Batt_volt)
dummy = 0
TCDiff (TCvalue_F,1,mV2_5C,7,TypeT,PTemp,True ,0,250,1.8,32)
If TCvalue_F > 85 then
SendVariables (Result,COM320,4094,4094,0000,2500,"Public","Callback",dummy,1)
Delay (1,15,Sec)
'Prevents too soon callback
Endif
CallTable TestA
CallTable TestB
NextScan
EndProg
In the above data callback program, the phone number is dialed in the
DialSequence()
/
EndDialSequence()
using the
DialModem()
instruction. Any
needed re-dials are handled by
EndDialSequence(
DialSuccess
)
.
LoggerNet
recognizes the incoming call as a data callback by the arrival of the
“Public” and “Callback” strings sent by the
SendVariables()
instruction in the
TableName
and
FieldName
parameters (visible in low-level log for ComPort).
Callback must be enabled in both the station and the ComPort screens.
The 25 second
SendVariables()
TimeOut
(2500 hundredths of a second)
allows the slow phone connection time to build.
5.3.2 Data Callback Instructions
The following instructions are used to program a data callback.
DialSequence/EndDialSequence
The
DialSequence()
/
EndDialSequence()
instructions are used to define the
code necessary to route packets to a PakBus datalogger. Any time an
instruction (
SendVariables()
) in the main program requires that
communication be made with the remote PakBus device identified by the
PakBusAddr
parameter (
LoggerNet
server with PakBus address = 4094), the
DialSequence code for that datalogger will be executed.
DialModem
The
DialModem()
instruction is used to send a modem dial string out one of
the datalogger's ports.
DialModem()
can be used within
DialSequence()
/
EndDialSequence()
to specify a communication route to be used for a PakBus
device.
The
ResponseString
is used to specify the response code expected back from
the modem when a connection is made. When a null string is entered (""), the
default is "1"+ CHR(13).
Содержание COM320
Страница 2: ......
Страница 6: ......
Страница 32: ...COM320 Voice Communications Modem 24 ...
Страница 34: ......
Страница 40: ...Appendix B Updating and Configuring the COM320 B 6 ...
Страница 46: ...Appendix D COM320 Word List D 4 ...
Страница 47: ......