
Section 12. Serial Input and Output Functions
12-2
Remarks
The DialSequence instruction indicates the beginning of the code; the
EndDialSequence indicates the ending. The code is entered in the declarations
section of the program, prior to the main program (defined by the
BeginProg/EndProg instructions).
Any time an instruction in the main program requires that communication be
made with the remote datalogger identified by the PakBusAddr parameter, the
DialSequence code for that datalogger will be executed. The code will also be
executed if the datalogger receives a message from another PakBus device that
needs to be routed to the remote datalogger.
Each instruction has one parameter:
PakBusAddr The PakBusAddr parameter identifies the PakBus address of
the remote datalogger with which the host datalogger is trying to communicate.
Valid entries are 0 through 4094. Each PakBus device in the network must
have a unique address.
DialSuccess The DialSuccess parameter is a variable that will be
monitored for the success/failure of the communication attempt. If the
communication attempt fails, the communication link will be closed. A
variable holding the result of DialModem can be used for this parameter.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.
DialVoice (DialString)
The DialVoice instruction is used to define the dialing string for a COM310
voice modem.
Syntax
DialVoice (DialString)
Remarks
If the DialVoice instruction is set equal to a variable, a -1 (True) will be
returned if the communication attempt was successful or a 0 (False) will be
returned if it failed. VoiceHangup is used after the communication attempt to
hang up the voice modem.
DialString The DialString is the telephone number and any other codes
used to dial the modem. A comma in the DialString inserts a 2 second pause.
When creating code for voice modems, the VoiceKey instruction should be
used to add a delay before the EndVoice instruction is executed. Otherwise,
the datalogger will end the VoiceSpeak command before the spoken message is
completed.
Comentarios a estos manuales