Chapter 3: fundamentals, 1 board addressing – Sensoray 2410 API User Manual
Page 7
Sensoray 24xx Programming Guide
3
Fundamentals
Chapter 3: Fundamentals
3.1 Board Addressing
3.1.1 Board Handles
Every Model 24xx I/O module is assigned a reference number called a session handle. Many of the API functions include this
handle as an argument.
3.1.2 IP Address and Port
Each module must be configured by assigning it a unique network address and, if desired, unique port numbers. The network
address is the Internet Protocol (IP) address at which the module resides, and the port numbers specify the Telnet and HTTP ports
to use.
Every I/O module has an identical factory-configured IP address and port number. The IP address is set to
192.168.24.xx
, where
xx is the last two digits of the model number. For example, Model 7410 Digital I/O modules are set to
192.168.24.10
. All boards
are factory configured to use port 23 for Telnet and port 80 for HTTP. If the default address or port numbers are incompatible with
your network, or if the module’s IP address conflicts with another host, it will be necessary to change the module’s network
settings. If you will not be operating the I/O module on a public network, we recommend that you assign IP addresses that are
specifically reserved for private networks, such as
10.x.x.x
or
192.168.x.x
.
3.1.2.1 Configuring the Network Interface
1. Connect the module to your network with an Ethernet patch cable, Category-5 or higher. Use a crossover cable if you are
connecting the module directly to a computer, otherwise use a standard patch cable. Note: this network need not be the one the
module will operate on; it will only be used to configure the module.
2. Apply 24VDC power to the module.
3. Switch to Configuration mode. Hold down the module’s CONFIG pushbutton while you press and then release the RST
pushbutton. The blue LED under the CONFIG pushbutton will light when the module is in Configuration mode. If multiple
modules are connected to your network, ensure that only one module is in Configuration mode.
4. Assign a temporary IP address. The temporary address will only be used during configuration. It is recommended that this
temporary address not be the same as the permanent address you will be assigning to the module later. Choose a temporary
address that is unique and reachable on your configuration network.
Run ARP with this command line:
arp -s
Example:
arp -s 192.168.1.25 08-00-56-FF-FF-FF
Windows
You can do this in either of the following ways:
• Navigate to Start | Run, then type the command into the dialog box and click OK.
• Open a console window, then type the command at the shell prompt followed by Enter.
Linux
Open a shell, then type the command at the shell prompt followed by Enter.
5. Open this URL from a web browser:
http://
Example:
http://192.168.1.25/config.htm
The module’s Configuration web page should appear in your browser window.
6. Program the permanent network settings. In the designated field on the Configuration web page, enter the permanent IP