Danaher Motion
06/2005
Overview
There are several ways to set the IP address of the controller. By default, the
MC boots without a valid IP address. The following options are available to
set the IP address of the controller:
Static IP address setting
Use SYS.IPADDRESSMASK in the Config.prg file to assign the IP
address and Subnet mask:
SYS.IPADDRESSMASK=”212.25.84.109:255.255.255.128”
Dynamic address setting by Windows API
API assigns an IP address to the MC when it establishes TCP
communication with the controller. The IP address and Subnet mask
are taken out of a pre-defined address pool. BASIC Moves uses this
address assigning method. Refer to the
BASIC Moves Development
Studio
®
User Manual
and
SERVOSTAR
®
MC Reference Manual
for
detailed information.
DHCP
IP address is assigned by the DHCP server. If your network does not
support DHCP, the controller tries to get the address from the DHCP
server and times out after few minutes. During that time, communication
with the controller is not possible.
SYS.IPADDRESSMASK=”dhcp”
If DHCP is used, select
Automatic
connection method as shown below:
Get the controller’s IP address
Use
SYS.IPADDRESSMASK
to query the IP address and Subnet mask
of the MC.
-->?SYS.IPADDRESSMASK
172.30.3.11:255.255.0.0
NOTE
The MC has several IP interfaces: Ethernet, IP over serial and IP
over DPRAM. However
SYS.IPADDRESSMASK
is only valid for
Ethernet interfaces. Others have fixed IP addresses, which
cannot be changed.
PING
tests that a remote host is reachable. The remote host must
support ICMP echo request.
?PING(”212.25.84.109”)
1.8.2.2. MC A
S
TCP C
LIENT
When acting as a client, the MC tries to connect to a remote server until a
time out value expires or the connection is rejected. Use
CONNECT
when
the MC acts as a client.
M-SS-005-03 Rev
E
7