Specifications
12-1
Section 12. Serial Input and Output
Functions
This set of instructions and functions are meant to be used with (non-PakBus)
serial sensors and controllers and for purposes of dialing and paging through
generic text based devices. They cover the functionality of the traditional
Edlog dataloggers’ P15 and P97 instructions with additional flexibility.
DialModem (ComPort, BaudRate, DialString, ResponseString)
Used to send a modem dial string out one of the datalogger's ports.
Syntax
DialModem ( ComPort, BaudRate, DialString, ResponseString )
or
variable = DialModem ( ComPort, BaudRate, DialString, ResponseString )
Remarks
The DialModem instruction performs a SerialOpen, multiple SerialOuts, and a
SerialClose. If this instruction is set equal to a variable, a -1 will be returned if
the ResponseString is successfully received or a 0 will be returned if it isn't.
DialModem can be used within the DialSequence/EndDialSequence commands
to specify a communication route to be used for a PakBus datalogger, or it can
be used within the BeginProg/EndProg statements to send the dial string any
time the instruction is executed. When used within the
DialSequence/EndDialSequence commands, set DialModem equal to a variable
that will be used as the DialSuccess parameter for EndDialSequence. The
variable will be monitored by the EndDialSequence instruction. If the call is
unsuccessful, the link will be closed.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.
Parameter
& Data Type
Enter
Specifies the communication port and mode that will be used when sending
the dial string. If a negative code is entered for the ComPort (e.g., -1), the
datalogger will not wait for successful communication before moving on to the
next instruction. This will help to avoid skipped scans that would otherwise
occur.
Numeric Code Alpha Code Description
1 ComRS232 RS232 port of the datalogger
2 ComME Datalogger's CS I/O port; modem enabled
3 Com310 Datalogger's CS I/O port; COM 310 modem
4 ComSDC7 Datalogger's CS I/O port; SDC7
5 ComSDC8 Datalogger's CS I/O port; SDC8
6 Com1 Datalogger's control ports 1 (TX) & 2 (RX)
7 Com2 Datalogger's control ports 3 (TX) & 4 (RX)
8 Com3 Datalogger's control ports 5 (TX) & 6 (RX)
ComPort
Constant
9 Com4 Datalogger's control ports 7 (TX) & 8 (RX)