Specifications
13-1
Section 13. PakBus Communication
Instructions
This set of instructions is used to communicate with other PakBus devices. In
general they specify a COM port and a PakBus address. If the route to the
device is not yet known, it will try a direct route through the COM port. If the
route is through a neighbor that must first be dialed, then it will first try to dial
using the user specified DialSequence.
The PakBus Address parameter is a varia+ble, so it can be used in a For/Next
loop, for example.
The ComPort parameter is restricted to the following predefined constants:
TABLE 13.1-1. ComPort Parameter Codes
1 ComRS232 CR3000 RS232 port
2 ComME CR3000 CS I/O port; modem enabled
3 Com310 CR3000 CS I/O port; COM310 modem
4 ComSDC7 CR3000 CS I/O port; SDC7
5 ComSDC8 CR3000 CS I/O port; SDC8
6 Com1 CR3000 control ports C1 andC2
7 Com2 CR3000 control ports C3 andC4
8 Com3 CR3000 control ports C5 andC6
9 Com4 CR3000 control ports C7 andC8
This parameter sets a default com port in the case that the route to the remote
node is not yet known.
The Baud Rate on asynchronous ports will default to 9600 baud unless set
otherwise by a SerialOpen() function or if the port is opened by an incoming
packet at some other baud rate.
The Baud Rate parameter on the asynchronous ports (ComRS232, ComME,
Com1, Com2, Com3,and Com4) is restricted to
300,1200,4800,9600,19200,38400,57600,115200, with a default of 9600. (The
bit rate on the synchronous ports is to be determined.)
The instructions in general include a ResultCode variable indicating whether it
was successful or not. The ResultCode will be set to 0 if successful. If
communication fails, it will increment. If the communication succeeds but
there is some error indicated in the response code, then the ResultCode is set to
the negative of the response code. The possible non-zero response codes
(negated) are: