Pressure Systems 98RK Scanner User Manual


 
Pressure Systems, Inc. 98RK-1 & 9816 User’s Manual©
Page 73 www.PressureSystems.com
Alternately, every module may be given a unique remport number, requiring that
a host program bind a unique UDP socket to each of these unique remport
numbers. Then, when a particular socket receives a UDP datagram to its unique
port, the module sending it is automatically identified.
The optional ipaddr parameter is normally unspecified, causing it to default to use
the IP address of the current TCP/IP connection. That way the host need not
have to be aware of its own IP address. This parameter is provided in case a
special host has multiple network interfaces and wants to use more than one.
When used, ipaddr requires four dotted numeric fields (d.d.d.d). Each d is a 1-3
digit decimal number in the range 0-255. The ipaddr = 255.255.255.255 is best
avoided, unless the UDP datagrams of streams are to be broadcast to all
network nodes.
The ‘f’ parameter identifies the format of each selected acquired datum in each
stream packet, and is a single numeric digit. Valid format codes are listed in the
following table:
f converts each internal selected acquired datum value from.. max.char.
0 single binary float to 7-10-digit signed decimal
“ [-xxx]x.xxxxxx”
13
1 single binary float to 8-digit hex integer “ xxxxxxxx” 9
2 double binary float to 16-digit hex integer “ xxxxxxxxxxxxxxxx” 17
5 single binary float to long integer (EU*1000) then to 8-digit hex
integer
9
7 single binary float to single binary float (big endian: msb first) 4
8 single binary float to single binary float (little endian: lsb first) 4
Example:
Configure all streams to be delivered via UDP/IP protocol. Host expects the UDP
datagrams to arrive via port 7500. The IP Address of the current TCP/IP connection is
also used to send each UDP datagram.
"c 06 0 1 7500"
Read response:
"A"
Configure all streams to be delivered via the default TCP/IP protocol.
"c 06 0 0"
Read response:
"A"