26
i
Chapter 4 Communication
CDS-3310
Ethernet address. The CDS-3310 Ethernet address is set by the factory and the last two bytes of the
address are the serial number of the controller.
The second level of addressing is the IP address. This is a 32-bit (or 4 byte) number. The IP address is
constrained by each local network and must be assigned locally. Assigning an IP address to the
controller can be done in a number of ways.
The first method is to use the BOOT-P utility via the Ethernet connection (the CDS-3310 must be
connected to network and powered). For a brief explanation of BOOT-P, see the section:
Third Party
Software
. Either a BOOT-P server on the internal network or the Galil terminal software may be used
(see Chapter 2).
CAUTION: Be sure that there is only one BOOT-P server running. If your network has DHCP or
BOOT-P running, it may automatically assign an IP address to the controller upon linking it to the
network. In order to ensure that the IP address is correct, please contact your system administrator
before connecting the controller to the Ethernet network.
The second method for setting an IP address is to send the IA command through the CDS-3310 RS-
232 port. The IP address you want to assign may be entered as a 4 byte number delimited by commas
(industry standard uses periods) or a signed 32 bit number. (Ex. IA 124,51,29,31 or IA 2083724575)
Type in BN to save the IP address to the controller’s non-volatile memory.
NOTE:
Galil strongly recommends that the IP address selected is not one that can be accessed across
the Gateway. The Gateway is an application that controls communication between an internal network
and the outside world. To decide on an IP address, find the address of the computer the controller will
be connecting to, then find the computer’s Subnet Mask. (In Windows, open a DOS prompt and type
ipconfig). The fields of the subnet mask that contain a “255” require that the corresponding fields in
the IP address of the controller be the same as the IP address of the PC. For instance, if the Subnet
Mask of the PC is 255.255.0.0, and the IP address is 192.168.100.10 – then the controller’s IP address
should be set to 192.168.nnn.nnn where nnn can be anything from 0-255.
The third level of Ethernet addressing is the UDP or TCP port number. The Galil controller does not
require a specific port number. The port number is established by the client or master each time it
connects to the controller.
Communicating with Multiple Devices (Handles)
The CDS-3310 is capable of supporting multiple masters and slaves. The masters may be multiple
PC’s that send commands to the controller. The slaves are typically peripheral I/O devices that receive
commands from the controller.
NOTE:
The term “Master” is equivalent to the internet “client”. The term “Slave” is equivalent to the
internet “server”.
An Ethernet handle is a communication resource within a device. The CDS-3310 can have a
maximum of 8 Ethernet handles open at any time. The TH command may be used to indicate which
handles are currently connected to and which are currently free. When using TCP/IP, each master or
slave uses an individual Ethernet handle. In UDP/IP, one handle may be used for all the masters, but
each slave uses one. (Pings and ARP’s do not occupy handles.) If all 8 handles are in use and a 9
th
master tries to connect, it will be sent a “reset packet” that generates the appropriate error in its
windows application.
When the Galil controller acts as the master, the IH command is used to assign handles and connect to
its slaves. The IP address may be entered as a 4 byte number separated with commas (industry
standard uses periods) or as a signed 32 bit number. A port number may also be specified, but if it is
not, it will default to 1000. The protocol (TCP/IP or UDP/IP) to use must also be designated at this
time. Otherwise, the controller will not connect to the slave. (Ex. IHB=151,25,255,9<179>2 This
will open handle B and connect to the IP address 151.25.255.9, port 179, using TCP/IP).
Summary of Contents for CDS-3310
Page 26: ...18 i Chapter 2 Getting Started CDS 3310 THIS PAGE LEFT PLANK INTENTIONALLY...
Page 32: ...24 i Chapter 3 Connecting I O CDS 3310 THIS PAGE LEFT PLANK INTENTIONALLY...
Page 124: ...CDS 3310 Chapter 8 Hardware Software Protection i 63 THIS PAGE LEFT PLANK INTENTIONALLY...
Page 138: ...CDS 3310 Chapter 10 Theory of Operation i 77 THIS PAGE LEFT BLANK INTENTIONALLY...