Speed Regulation Card and Ethernet Gateway

Transcripción

Speed Regulation Card and Ethernet Gateway
Speed Regulation Card and Ethernet Gateway
USER’S MANUAL v1.0
INDEX
01 INTRODUCTION ........................................................................................................................ 3
01.01 NETWORK PROTOCOLS ....................................................................................................... 3
01.01.01 PACKING ALGORITHMS .................................................................................................. 3
01.01.02 ETHERNET (MAC) ADDRESS............................................................................................ 3
01.01.03 INTERNET PROTOCOL (IP) ADDRESS............................................................................... 3
01.01.04 PORT NUMBER ............................................................................................................... 3
02 INSTALLATION .......................................................................................................................... 4
02.01 PRODUCT DESCRIPTION ...................................................................................................... 4
02.01.01 NETWORK INTERFACE .................................................................................................... 4
02.01.02 PRODUCT INFORMATION LABEL .................................................................................... 4
02.02 INSTALLING THE CARD ........................................................................................................ 4
03 GETTING STARTED .................................................................................................................... 6
03.01 DEFAULT IP ADDRESS .......................................................................................................... 6
03.02 IP ADDRESS CONFIGURATION ............................................................................................. 7
03.02.01 NETWORK PORT LOGIN (1) ............................................................................................ 7
03.02.02 NETWORK PORT LOGIN (2) ............................................................................................ 9
04 CONFIGURATION .................................................................................................................... 10
04.01 NETWORK CONFIGURATION ............................................................................................. 11
04.01.01 USING A WEB BROWSER .............................................................................................. 11
04.01.02 USING A TELNET CONNECTION .................................................................................... 13
04.02 CONFIGURATION PARAMETERS ........................................................................................ 13
05 PROTOCOLO MODBUS ........................................................................................................... 16
05.01 INTRODUCTION ................................................................................................................. 16
05.02 ERROR CODES .................................................................................................................... 16
05.03 IMPLEMENTED COMMANDS............................................................................................. 17
05.04 MODBUS FRAMES EXAMPLES ........................................................................................... 17
05.04.01 READ RELAYS OR INPUTS ............................................................................................. 17
05.04.02 READ REGISTERS........................................................................................................... 18
05.04.03 WRITE REGISTERS ......................................................................................................... 19
05.04.04 SYSTEM REGISTERS....................................................................................................... 20
05.04.05 OPERATING MODE CODES ........................................................................................... 21
05.04.06 PANEL STATUS .............................................................................................................. 22
06 CONTACT INFORMATION ....................................................................................................... 23
07 PINOUTS ................................................................................................................................. 23
07.01 ETHERNET CONNECTOR .................................................................................................... 23
07.02 ETHERNET WIRES .............................................................................................................. 23
08 UPDATING FIRMWARE ........................................................................................................... 25
08.01 OBTAINING FIRMWARE ..................................................................................................... 25
08.02 RELOADING FIRMWARE .................................................................................................... 25
08.02.01 VIA TFTP ....................................................................................................................... 25
09 TECHNICAL SPECIFICATIONS .................................................................................................. 26
10 IP ADDRESSING ....................................................................................................................... 26
Page 2 de 58
01 INTRODUCTION
The card device server connects the monoxide system to Ethernet networks using the IP
protocol family (TCP for connection-oriented stream applications and UDP for datagram
applications).
01.01 NETWORK PROTOCOLS
The card uses IP protocol for network communications. The supported protocols are ARP, UDP,
TCP, ICMP, Telnet, TFTP, DHCP, HTTP, and SNMP. For connections to the serial port, TCP, UDP
or Telnet protocols are used. Firmware updates can be performed using TFTP. The Internet
Protocol (IP) defines addressing, routing, and data block handling over the network. The
Transmission Control Protocol (TCP) assures that no data is lost or duplicated, and that
everything sent to the connection arrives correctly at the target. For typical datagram
applications in which devices interact with other devices without maintaining a point-to-point
connection, User Datagram Protocol (UDP) is used.
01.01.01 PACKING ALGORITHMS
Two software selectable packing algorithms define how and when packets are sent to the
network. The standard algorithm is optimized for applications in which the card is used in a
local environment, allowing for very small delays for single characters while keeping the packet
count low. The alternate packing algorithm minimizes the packet count on the network, and is
especially useful in applications in a routed Wide Area Network (WAN). Adjusting parameters
in this mode can economize the network data stream.
01.01.02 ETHERNET (MAC) ADDRESS
The Ethernet address is also referred to as the hardware address or the MAC address. The first
three bytes of the Ethernet Address are fixed. The fourth, fifth, and sixth bytes are unique
numbers assigned to each TCP2RS.
Table 1.1.2: Sample Ethernet address
00-20-4A-14-01-18 ó 00:20:4A:14:01:18
01.01.03 INTERNET PROTOCOL (IP) ADDRESS
Every device connected to an IP network must have a unique IP address. This address is used
to reference the specific card. See paragraph 10 for more information on IP Addressing.
01.01.04 PORT NUMBER
Every TCP connection and every UDP datagram is defined by a destination IP address and a
port number. For example, a Telnet application commonly uses port number 23. A port
number is similar to an extension on a PBX system.
Página 3 de 58
02 INSTALLATION
This chapter describes the card and shows how to install it on a basic network.
02.01 PRODUCT DESCRIPTION
02.01.01 NETWORK INTERFACE
The card contains an RJ45 10Base-T Ethernet port that supports up to 10 Mbps or 100Base-TX
Ethernet port that supports up to 100 Mbps.
Figure 2.1.2: Network interface
02.01.02 PRODUCT INFORMATION LABEL
A product information label is located on the underside of the card, and contains the following
information about your specific unit:
- Ethernet Address (also referred to as Hardware Address or MAC Address)
02.02 INSTALLING THE CARD
This section defines the steps to take to install the systems properly. The installer must read
the whole manual before starting to install the system. Not following the instructions in this
manual can damage the unit..
The card installation requires the following steps:
1.- Disconnect the monoxide system from the mains.
2.- Remove all modules of monoxide, removing the 4 screws and the connector plugged into
the connector JP14. (Fig. 2.2.1)
3.- Locate and fix the expansion card using the same screws that came with the motherboard.
(Fig.2.2.2). After fixing the card, connect the connectors that you had removed for the JP14
connector, connectors IN1, IN2, IN3 for the regulation card.
4.- Reattaching the monoxide modules system, one to one, connecting the hoses JP13, JP14,
JP15 at JP6 connector of each module.
5.- Connect the cable from the connector on the expansion card, marked OUT 28V, and the
power connectors JP14 of the monoxide modules.
6.- f you want that the system to work with batteries connect the battery cable to the
connector on the card labeled BAT.
7.- If you are installing the card with the Ethernet Gateway do not forget to connect an
Ethernet cable to the RJ45 (10BASE-T / 100Base-TX port).
Página 4 de 58
Figure 2.2.1
Figure 2.2.2
Página 5 de 58
Figure.2.2.3
03 GETTING STARTED
This chapter convers the required steps to get the card on-line and working. There are two
basic methods used to log into the card and setup the IP address:
- Network port login (1): Make a Telnet connection to the network port (port 9999)
- Network port login (2): Using the software DeviceInstaller provided for the manufacturer for
the Embedded Ethernet Device Server (XPort®). http://www.lantronix.com/
It is important to consider the following points before logging into and configuring the card:
- The card’s IP address must be configured before a network connection is available.
- Only one person at a time may be logged into the configuration port (port 9999). This
eliminates the possibility of several people simultaneously attempting to configure the card.
- Network port logins cannot be disabled. The system manager will always be able to access
the unit. However, this port can be password protected.
03.01 DEFAULT IP ADDRESS
Provided a DHCP server exists on the network, it will supply the card with an IP address,
gateway address and subnet mask when the card boots up.
Página 6 de 58
03.02 IP ADDRESS CONFIGURATION
The card’s IP address must be configured before a network connection is available. If the IP
address was not set automatically via DHCP, set it now using a network port login and the
setup (configuration) menu.
03.02.01 NETWORK PORT LOGIN (1)
The easiest way for setting up the IP direction of the card is using the utility called
DeviceInstaller. It can be downloaded in the manufacturer’s web page.
http://www.lantronix.com/
First of all we will write down Ethernet address that comes printed on every device label. This
address is unique and different from other network devices. It’s the hardware address that
every interface has (something like 00-20-4A-A5-C6-A2).
Into the CD that comes with the converter, there is an utility called TCP2RSSetup. This utility is
made for configuring the IP address of the converter. Steps:
1. Start the program
2. The software shows all devices avalaibles in the network and the IP address for each one.
Figure 3.2.1.1
Página 7 de 58
3. Select one device and check that the MAC o “Hardware Address” is the same that the IP
address to change.
Figure 3.2.1.2
4. Press the bottom “Assign IP” to run the device IP configuration wizard.
Figure 3.2.1.3
Página 8 de 58
03.02.02 NETWORK PORT LOGIN (2)
The ARP method is available under UNIX and Windows-based systems. If the card has no IP
address, it will set its address from the first directed TCP/IP packet it receives.
1. On a UNIX host, create an entry in the host’s ARP table using the intended IP address and
the hardware address og the card, which is found on the product label.
Figure 3.2.2.1: ARP on UNIX
arp –s 192.168.1.200 00:20:4A:xx:xx:xx
In order for the ARP command to work on Windows, the ARP table on the PC must have at
least one IP address defined other than its own. If the ARP table is empty, the command will
return an error message. Type “arp –a” at the DOS command prompt to verify that there is at
least one entry in the ARP table.
If the local machine is the only entry, ping another IP address on your network to build a new
entry in the ARP table; the IP address must be a host other than the machine on which you are
working. Once there is at least one additional entry in the ARP table, use the following
command to ARP an IP address to the card:
Figure 3.2.2.2: ARP on Windows
arp -s 191.12.3.77 00-20-4a-xx-xx-xx
2. Now open a Telnet connection to port 1. The connection will fail quickly, but the card will
temporarily change its IP address to the one designated in this step.
Figure 3.2.2.3: Telnet to port 1
telnet 191.12.3.77 1
3. Finally, open a Telnet connection to port 9999 and set all required parameters.
Figure 3.2.2.4: Telnet to port 9999
telnet 191.12.3.77 9999
Note: This IP address is temporary and will revert to the default vale when the card’s power is
reset, unless you log into the card and store the changes permanently.
Página 9 de 58
04 CONFIGURATION
Certain parameters must be configured before the card can function on a network. The card
can be locally or remotely configured using the following procedures:
- Use a standard web browser to access the card’s internal web pages and configure the unit
over the network. This is the easiest and preferred method.
- Use a Telnet connection to configure the unit over the network.
- The card’s configuration is stored in non-volatile memory (NVRam), and is retained without
power. The configuration can be changed at any time. The card’s performs a reset after the
configuration has been changed and stored.
Página 10 de 58
04.01 NETWORK CONFIGURATION
04.01.01 USING A WEB BROWSER
If your card already has an IP address (see Chapter 3, Getting Started), you can log into it using
a standard Web browser with Java enabled.
1. Type the card’s IP address into the web browser’s URL (Address/Location) field.
2. Once you have connected to the card, you will see the device web manager interface.
Figure 4.1.1: Web manager interface
Página 11 de 58
Section 1: Converter information.
- Product: Device name.
- Name: Device description.
- Firmware version: Internal program version number.
- Hardware address: Hardware address or MAC address.
Section 2: Network parameters.
- IP address : Direction IP that will be assigned to the converter.
- Subnet mask: Mask of network (equal to the network where the converter will be connected)
- Gateway address: Gateway (in case it is connected to an external network).
- Port: Converter port number
Section 3: Password (It allows to establish a password to the internal web page)
- Password: Password of the internal web page.
- Retype password: To repeat password for verification.
Section 4: Mode (operation mode according to program or customized).
- Quickaccess/Cirmemory-K
- Cirpark SP2
- Cirpark SP3
- Personalizado
Section 5: Aditional parameters.
- Speed: Transmission speed.
- Character size: Data bits.
- Parity: Parity.
- Stopbits: Stop bits.
- Serial protocol: Full-duplex or Half-duplex.
- Connection: Network protocol (TCP or UDP).
- Remote IP address: Remote converter IP address.
- Remote port: Remote converter port number.
- Startup: Beginning of communication between two converters (only TCP connection).
- Packing time (ms): 0, 12, 52, 250, 5000. Delay time before sending of characters.
Press the button “Send configuration” to save the configuration inside the card.
Página 12 de 58
04.01.02 USING A TELNET CONNECTION
To configure the card over the network, establish a Telnet connection to port 9999. For
Windows, open a MSDOS command window and enter the following command:
Figure 4.1.2: Network login using Telnet
telnet x.x.x.x 9999
04.02 CONFIGURATION PARAMETERS
After entering Setup Mode (confirm by typing Enter), you can configure the parameters by
entering one of the numbers on the Change Setup Menu, or you can confirm default values by
typing Enter. Be sure to store the new configurations when you are finished. The card will then
perform a power reset.
Figure 4.2.1: Setup mode screen
Página 13 de 58
Figure 4.2.2: Setup mode screen
Figure 4.2.3: Setup mode screen (Continue)
Página 14 de 58
Figure 4.2.4: Setup mode screen (Continue)
Figure 4.2.5: Setup mode screen (Continue)
Página 15 de 58
05 PROTOCOLO MODBUS
05.01 INTRODUCTION
The Modbus protocol is a communications standard in the industry that allows to connect
multiple devices. Modbus has a fixed communications format, from commands up to the
frames of the messages. There are three different implementations of Modbus protocol:
Modbus RTU, Modbus ASCII y Modbus/TCP (RTU o ASCII).
A typical Modbus RTU message has the following format:
Address
1 bytes
Command
1 bytes
Tabla 5.1
Data
n bytes
CRC
2 bytes
The data field depends on the function implemented.
05.02 ERROR CODES
In case of error the MODBUS frame get a response like to the following format:
Address
1 byte
Table 5.2.1
Error message
0x81 0x02
CRC
2 bytes
The error message will consist in two bytes where the first is an “AND” between 0x80 and the
command code (if function 1 -> 0x81, function 5 -> 0x85, 0x10 function -> 0x90, etc..) and the
second byte will be a general identifier of the type of error:
ERROR
1
2
Name
Command
Address data
3
4
5
Data value
Device failure
ACK
6
Device busy
Table 5.2.2
Description
The function code is not available
The address of the data is incorrect or does not match with the
data viewable or modifiable
The value of the data is not correct
The device has failed to make the request
The device has accepted the request but it cannot answer at
this time. It should not be retried.
The device is making the request and it cannot replay a new
one. It should be retried.
Página 16 de 58
05.03 IMPLEMENTED COMMANDS
The Modbus protocol commands implemented in the CO control panel are:
- Command 01 (0x01): Read relay or inputs.
- Command 04 (0x04): Read registers.
- Command 16 (0x10): Write multiple registers.
05.04 MODBUS FRAMES EXAMPLES
In the following lines we will see examples of the Modbus protocol frames. Frames to read and
frames to write. Also frames to write the internal registers.
05.04.01 READ RELAYS OR INPUTS
Request modbus frame:
Address
0x01
Command
0x01
Table 5.4.1.1
Dirección (2 Bytes) Data (2 bytes)
0x00 0x00
0x00 0x03
CRC (2 bytes)
0x7C 0x0B
Reply modbus frame. One bit for each input. ON Status = 1 and OFF Status = 0.
Address
0x01
Command
0x01
Num. Bytes
0x01
Table 5.4.1.2
Data
0x03
CRC
0x90 0x48
The value 0x03 will indicate that the input 1 and 2 are enabled (0x03 corresponds to the binary
code 00000011).
Example application mbus
mbus u192.168.1.200 p10001 01.01.00.00.00.03
010100000003 7C0B
01010104 504B 100.00%
Página 17 de 58
05.04.02 READ REGISTERS
Request modbus frame:
Address
0x01
Table 5.4.2.1
Command Register (2 Bytes)
Number of registers (2 bytes)
0x04
0x00 0x04
0x00 0x01
CRC (2 bytes)
0x70 0x0B
For each register the protocol has two bytes. In the device’s answer you will receive two bytes
for each register.
Address
0x01
Command
0x04
Table 5.4.2.2
Num. Bytes (1 Byte)
Data (N bytes)
0x02
0x00 0x05
CRC (2 bytes)
0x79 0x33
In this case we can see that the register 0x04 has two bytes with value 0x00 0x05 (That’s
means that you have 5 alarms in the alarm log).
Example application mbus
mbus u192.168.1.200 p10001 01.04.00.04.00.01
010400040001 700B
0104020002 38F1 100.00%
Página 18 de 58
05.04.03 WRITE REGISTERS
Request modbus frame:
Address
0x01
Command Register (2
Bytes)
0x10
0x00 0x0E
Table 5.4.3.1
N. registers (2
bytes)
0x00 0x01
N. Bytes
(1 byte)
0x02
Data
CRC (2 bytes)
0x00 0x64
0xA6 0x95
In the reply you will receive the start register and the number of register requested.
Address
0x01
Command
0x10
Table 5.4.3.2
Register (2 Bytes)
N. registers (2 bytes)
0x00 0x0E
0x00 x01
CRC (2 bytes)
0x60 0x0A
In this example we write in the address 0x00 0x0E one register (2 bytes) with 0x00 0x64 in the
data field. The correct answer is 0x00 0x0F (We have written inside the register 0x00 0x0F the
data 100, trigger level).
Example application mbus
mbus u192.168.1.200 p10001 01.10.00.12.00.01.02.00.01
011000120001020001 64E2
011000120001 A1CC 100.00%
Página 19 de 58
05.04.04 SYSTEM REGISTERS
Address
0x0002
Registers
1
Bytes
2
0x0004
0x0007
0x0008
0x000A
0x000B
0x000C
0x000F
1
1
1
1
1
1
1
2
2
2
2
2
2
2
Table 5.4.4
Description
MB Table version /
Number of detectors
Alarm Counter
Extractor 1 counter
Extractor 2 counter
Maximum CO
Average CO
Minimum CO
Alarm level
0x0010
1
2
Extraction level 2
R/W
0x0011
1
2
Extraction level 1
R/W
0x0012
1
2
Working Mode
R/W
0x0013
0x0015
1
1
2
2
CO Panel Status
PWM speed
R
R
(W/R)
R
R
R
R
R
R
R
R/W
Format
Version (HI) #detectios(LO)
Higher than extraction
level 2. 250 ppm maximum
(Higher than extraction
level 2, lower than alarm)
250 ppm maximum
(Lower than extraction
level 2)
OFF / ON / Maximum /
Average
0x00(HI) – PWM (LO)
Página 20 de 58
05.04.05 OPERATING MODE CODES
Register 0x0012
Table 5.4.5
Modo
Code
OFF
0
ON
1
Maximum
2
Average
3
Example application mbus
mbus u192.168.1.200 p10001 01.10.00.12.00.01.02.00.01
011000120001020001 64E2
011000120001 A1CC 100.00%
Página 21 de 58
05.04.06 PANEL STATUS
Register 0x0013
The CO control panel state is represented as a bit field, where each bit has the following
indications:
Table 5.4.6
Status
Indication
Module without devices
0x40
One device (or more) has a COMM error
0x20
One device (or more) has a sensor error
0x10
Alarm Relay Active
0x08
Extraction relay 1 active
0x02
Extraction relay 2 active
0x04
Module muted
0x01
Example application mbus
mbus u192.168.1.200 p10001 01.04.00.13.00.01
010400130001 C00F
0104020006 3932 100.00%
Página 22 de 58
06 CONTACT INFORMATION
If you are experiencing an error or if you are unable to fix the error, there are a number of
other troubleshooting options:
- Look on the distributor’s Web site for technical FAQs and documentation updates.
- For information pertaining to your system’s configuration, refer to your system’s
documentation or technical support. For example, for specific questions about the Microsoft
Windows Operating System, refer to the Microsoft Knowledge Base Web site at
www.support.microsoft.com/directory.
- Contact your distributor.
07 PINOUTS
07.01 ETHERNET CONNECTOR
Figure C-2: Network interface
07.02 ETHERNET WIRES
Standard Ethernet wire
Connections diagram, of a Cat.5 Ethernet wire, for connecting any Ethernet device (like card)
to a HUB.
(We will connect each wire ends with the same colours configuration, trying to take pins 1 and
2 (ex. Orange - Orange/White) and pins 3 and 6 (ex. Green – Green/White) like a twisted pair)
Example:
1- Orange
2- Orange/White
3- Green
4- Blue
5- Blue/White
6- Green/White
7- Brown
8- Brown/White
Página 23 de 58
Direct Ethernet wire
Connections Diagram of a Cat.5 Ethernet wire for connecting any Ethernet device (like card)
directly to another like a PC.
(What we have to do is to take the transmission wires of one end, and link it with the
reception pins of the other end. Pins 1 and 2 are for transmission, and pins 3 and 6 for
reception. We will connect 1 and 2 of one end (ex. Orange –Orange/White) with 3 and 6 of the
other end, and 3 and 6 of the first end (ex. Green – Green/White) with pins 1 and 2 of the
other end). We had to try to take a twisted pair for transmission and another for reception.
Example:
WIRE END 1
1- Orange
2- Orange/White
3- Green
4- Blue
5- Blue/White
6- Green/White
7- Brown
8- Brown/White
WIRE END 2
1- Green
2- Green/White
3- Orange
4- Blue
5- Blue/White
6- Orange/White
7- Brown
8- Brown/White
Página 24 de 58
08 UPDATING FIRMWARE
08.01 OBTAINING FIRMWARE
Current firmware files are available on the distributor web site.
08.02 RELOADING FIRMWARE
You can also update the internal card Web interface via TFTP.
08.02.01 VIA TFTP
From the MS-DOS command line with the tftp.exe command, available in versions 2000, XP
and NT of Windows, can be sent firmware to the converter. They must type following
commands-line:
tftp -i 192.168.1.200 put xpt03_6602.rom AU
tftp -i 192.168.1.200 put circontrol1.cob WEB1
tftp -i 192.168.1.200 put circontrol2.cob WEB2
The card performs a power reset after the configuration has been changed and stored (wait 5
seconds for the card to reboot).
Example application mbus
mbus u192.168.1.200 p10001 01.04.00.0F.00.03
mbus u192.168.1.200 p10001 02.04.00.0F.00.03
mbus u192.168.1.200 p10001 03.04.00.0F.00.03
Página 25 de 58
09 TECHNICAL SPECIFICATIONS
Network interface
Interface
Connector
Protocols
Ethernet 10Base-T / 100Base-TX (auto-sensing)
RJ45
MODBUS/TCP, ARP, ICMP, SNMP, TFTP, DHCP, BOOTP, HTTP y AutoIP
10 IP ADDRESSING
Every device connected to a TCP/IP network must have a unique IP (Internet Protocol) address.
This address is used to reference the specific device; for example, to build a connection to the
card.
An IP address is a 32-bit value divided into four octets of eight bits each. The standard
representation is four decimal numbers (0-255) divided by dots (decimal dot notation).
Figure 10: Sample IP address
192.2.12.123 (or 192.002.012.123)
The IP address is divided into two parts: network and host. To support different needs, three
network classes have been defined. In the following, "x" stands for the host part of the IP
address.
10.01 CLASS A NETWORK
IP address 1.x.x.x to 127.x.x.x
The first byte defines the host, and the last three bytes define the network. Only 127 different
Class A networks exist, and each can consist of up to 16,777,216 devices.
Figure 10.1: Sample Class A network IP address
10.0.0.1 (Network 10, host 0.0.1)
10.02 CLASS B NETWORK
IP address 128.0.x.x to 191.255.x.x
The first two bytes define the host, and the last two bytes define the network. Class B
networks are typically used for large company networks, and each can consist of up to 65,534
devices.
Figure 10.2: Sample Class B network IP address
172.1.3.2 (Network 172.1, host 3.2)
Página 26 de 58
10.03 CLASS C NETWORK
IP address 192.0.0.x to 223.255.255.x
The first three bytes define the host, and the last byte defines the network. Class C networks
are the most common and are often used in smaller companies. Each network can consist of
up to 254 hosts.
Figure 10.3: Sample Class C network IP address
192.7.1.9 (Network 192.7.1, host 9)
10.04 CLASS D NETWORK
IP address 224.x.x.x to 239.x.x.x
These addresses are used as multicast addresses.
10.05 CLASS E NETWORK
IP address 239.x.x.x to 254.x.x.x
These addresses are reserved.
10.06 NETWORK ADDRESS
A host address with all host bits set to 0 addresses the network as a whole (for example, in
routing entries).
Figure 10.6: Sample network address
192.168.0.0
10.07 DIRECCIONES DE BROADCAST
A host address with all host bits set to 1 is the broadcast address, meaning for “for every
station.”
Figura 10.7: Dirección ejemplo de broadcast
192.168.0.255
Network and broadcast addresses must not be used as a host address; for example,
192.168.0.0 identifies the Entire network, and 192.168.0.255 identifies the broadcast address.
Página 27 de 58
10.08 IP NETMASK
A netmask divides IP address differently than the standards defined by the classes A, B, and C.
A netmask defines the number of bits to be taken from the IP address as the network or host
sections.
The card prompts for the number of host bits to be entered and then calculates the netmask,
which is displayed in standard decimal-dot notation (for example, 255.255.255.0) when saved
parameters are displayed.
Table10.8.1: Standard IP network netmasks
Network class Network bits Host bits
A
8
24
B
16
16
C
24
8
Netmask
255.0.0.0
255.255.0.0
255.255.255.0
Table 10.8.2: Netmask examples
Netmask
Host bits
255.255.255.252
2
255.255.255.248
3
255.255.255.240
4
255.255.255.224
5
255.255.255.192
6
255.255.255.128
7
255.255.255.0
8
255.255.254.0
9
255.255.252.0
10
255.255.248.0
11
... ...
255.128.0.0
23
255.0.0.0
24
Página 28 de 58
10.09 PRIVATE IP NETWORKS AND INTERNET
If your network is not and will not be connected to the Internet, you may use any IP address. If
your network is connected or will be connected to the Internet, or if you intend to operate the
card on an intranet, you should use one of the reserved sub-networks. Consult your network
administrator with questions about IP address assignment.
10.10 NETWORK RFCS
For more information about IP addresses, refer to the following documents, which can be
located on the World Wide Web using one of the following directories or indices:
- RFC 950 Internet Standard Subnetting Procedure
- RFC 1700 Assigned Numbers
- RFC 1117 Internet Numbers
- RFC 1597 Address Allocation for Private Networks
Página 29 de 58
Tarjeta Regulación Velocidad y Pasarela Ethernet
MANUAL DE INSTRUCCIONES v1.0
Página 30 de 58
INDICE
01 INTRODUCCIÓN ........................................................................................................................ 3
01.01 PROTOCOLOS DE RED.......................................................................................................... 3
01.01.01 ALGORITMOS DE EMPAQUETADO ................................................................................. 3
01.01.02 DIRECCIÓN HARDWARE (MAC) ...................................................................................... 3
01.01.03 DIRECCIÓN IP.................................................................................................................. 3
01.01.04 NÚMERO DE PUERTO ..................................................................................................... 3
02 INSTALACIÓN ............................................................................................................................ 4
02.01 DESCRIPCIÓN DEL EQUIPO .................................................................................................. 4
02.01.01 INTERFACE DE RED ......................................................................................................... 4
02.01.02 ETIQUETA DE INFORMACIÓN DEL PRODUCTO .............................................................. 4
02.02 INSTALANDO LA TARJETA .................................................................................................... 4
03 PUESTA EN MARCHA ................................................................................................................ 6
03.01 DIRECCIÓN IP POR DEFECTO ............................................................................................... 6
03.02 CONFIGURACIÓN DE LA DIRECCIÓN IP................................................................................ 7
03.02.01 LOGIN POR EL PUERTO DE RED (1)................................................................................. 7
03.02.02 LOGIN POR EL PUERTO DE RED (2)................................................................................. 9
04 CONFIGURACIÓN.................................................................................................................... 10
04.01 CONFIGURACIÓN POR RED ............................................................................................... 11
04.01.01 USANDO UN NAVEGADOR WEB................................................................................... 11
04.01.02 USANDO EL TELNET ...................................................................................................... 13
04.02 PARÁMETROS DE CONFIGURACIÓN.................................................................................. 13
05 PROTOCOLO MODBUS ........................................................................................................... 16
05.01 INTRODUCCION ................................................................................................................. 16
05.02 CODIGOS DE ERROR .......................................................................................................... 16
05.03 FUNCIONES IMPLEMENTADAS .......................................................................................... 17
05.04 EJEMPLOS DE TRAMAS MODBUS ...................................................................................... 17
05.04.01 LECTURA DE RELES COMPACTADOS O ENTRADAS ...................................................... 17
05.04.02 LECTURA DE REGISTROS ............................................................................................... 18
05.04.03 ESCRITURA DE REGISTROS ........................................................................................... 19
05.04.04 REGISTROS DEL SISTEMA ............................................................................................. 20
05.04.05 CODIFICACION PARA EL MODO DE FUNCIONAMIENTO .............................................. 21
05.04.06 CODIFICACION PARA EL ESTADO DE LA CENTRAL ........................................................ 22
06 INFORMACIÓN DE CONTACTO ............................................................................................... 23
07 PINOUTS ................................................................................................................................. 23
07.01 CONECTOR ETHERNET ....................................................................................................... 23
07.02 CABLES ETHERNET ............................................................................................................. 23
08 ACTUALIZANDO EL FIRMWARE .............................................................................................. 25
08.01 OBTENIENDO EL FIRMWARE ............................................................................................. 25
08.02 ACTUALIZACIÓN DEL FIRMWARE ...................................................................................... 25
08.02.01 VÍA TFTP ....................................................................................................................... 25
09 ESPECIFICACIONES TÉCNICAS ................................................................................................. 26
10 DIRECCIONAMIENTO IP .......................................................................................................... 26
Página 31 de 58
01 INTRODUCCIÓN
La tarjeta conecta el sistema de monóxido a una red Ethernet usando el protocolo IP
(MODBUS/TCP para comunicaciones orientadas a conexión).
01.01 PROTOCOLOS DE RED
La tarjeta utiliza el protocolo IP para las comunicaciones en red. Los protocolos soportados son
ARP, MODBUS/TCP, ICMP, Telnet, TFTP, DHCP, HTTP y SNMP. Para conexiones al puerto serie,
se usan protocolos MODBUS/TCP o Telnet. Para actualizar el software interno del equipo se
puede hacer usando el protocolo TFTP.
El protocolo IP define el direccionamiento, enrutado y manipulación de datos a través de la
red. El protocolo MODBUS/TCP asegura que no se pierdan o dupliquen datos, y que todo lo
que es enviado llega a su destino correctamente.
01.01.01 ALGORITMOS DE EMPAQUETADO
Mediante software, podemos elegir 2 algoritmos de empaquetado distintos, los cuales
definirán como y cuando son enviados los paquetes a la red. El algoritmo estándar está
optimizado para aplicaciones en las que la tarjeta es usada en pequeñas redes locales,
permitiendo esperas muy bajas y manteniendo el envío de paquetes muy constante. El otro
algoritmo de empaquetado minimiza la frecuencia de envío de los paquetes en la red, y está
especialmente diseñado para aplicaciones en redes WANs o enrutadas. Ajustando los
parámetros en este modo, podemos optimizar la red.
01.01.02 DIRECCIÓN HARDWARE (MAC)
La dirección Ethernet es la dirección hardware del equipo o también llamada dirección MAC.
Esta dirección viene fijada de fábrica y en cada equipo es diferente. Los bytes cuarto, quinto y
sexto son los que definen cada tarjeta.
Tabla 1.1.2: Dirección Ethernet ejemplo
00-20-4A-14-01-18 ó 00:20:4A:14:01:18
01.01.03 DIRECCIÓN IP
Cada equipo conectado a una red IP debe tener una única dirección IP. Esta dirección es usada
para distinguir cada equipo. Mirar apartado 10 para más información acerca del
direccionamiento IP.
01.01.04 NÚMERO DE PUERTO
Cada conexión MODBUS/TCP está definido por una dirección IP destino y un número de
puerto. Por ejemplo, un telnet generalmente utiliza el puerto 23.
Página 32 de 58
02 INSTALACIÓN
Este capítulo describe la tarjeta y muestra como instalarlo en una red. La instalación del equipo
se realiza dentro de la central de monóxido, quedando todas las conexiones en el interior de
esta.
02.01 DESCRIPCIÓN DEL EQUIPO
02.01.01 INTERFACE DE RED
La tarjeta tiene un puerto Ethernet RJ45 de 10 Mbps (10Base-T) o de 100 Mbps (100Base-TX).
Figura 2.1.1: Interface de red
02.01.02 ETIQUETA DE INFORMACIÓN DEL PRODUCTO
En la parte lateral de la tarjeta existe una etiqueta de información, y contiene los siguientes
datos del equipo:
- Dirección Ethernet (también llamada dirección Hardware o dirección MAC)
02.02 INSTALANDO LA TARJETA
Este capítulo define los pasos a seguir para una correcta instalación de las tarjetas. El
instalador debe leer todo el manual antes de empezar la instalación del sistema. No seguir las
instrucciones de este manual puede ocasionar daños al equipo.
La instalación de la tarjeta requiere los pasos siguientes:
1.- Desconectar el sistema de monóxido de la red.
2.- Desmontar todos los módulos de CO del sistema de monóxido, extrayendo los 4 tornillos
por módulo y el conector enchufado en el conector JP14. (Fig. 2.2.1)
3.- Ubicar y fijar la tarjeta de expansión mediante los tornillos de fijación que se suministran
junto con la placa. (Fig.2.2.2). Una vez fijada la tarjeta, conecte los conectores que ha extraído
del conector JP14 de los módulos, a los conectores IN1, IN2, IN3 de la tarjeta de regulación.
4.- Volver a fijar los módulos del sistema de monóxido, uno a uno, conectando las mangueras
JP13, JP14, JP15 en el conector JP6 de cada módulo.
5.- Conectar el cable entre el conector de la tarjeta de expansión marcado como OUT 28V y los
conectores de alimentación de los módulos de monóxido JP14.
6.- Si se quiere que el sistema funcione con baterías conectar el cable de la batería al conector
de la tarjeta de expansión marcado como BAT.
7.- Si se está instalando la tarjeta con pasarela Ethernet, conectar un cable Ethernet al puerto
RJ45 (10Base-T / 100Base-TX).
Página 33 de 58
Figura 2.2.1
Figura 2.2.2
Página 34 de 58
Figura 2.2.3
03 PUESTA EN MARCHA
Este capítulo describe los pasos necesarios para poner en marcha la tarjeta. Existen dos
métodos para comunicar con el conversor de la tarjeta y configurar la dirección IP:
- Acceso por red (1): Haciendo un telnet al puerto 9999.
- Acceso por red (2): Utilizando el programa DeviceInstaller facilitado por el fabricante del
Embedded Ethernet Device Server (XPort®). http://www.lantronix.com/
Es importante tener en cuenta los siguientes puntos antes de empezar a configurar la tarjeta:
- La dirección IP de la tarjeta tiene que ser configurada antes de que se pueda establecer una
conexión por red.
- Sólo se puede establecer una conexión al puerto 9999 a la vez. Se elimina la posibilidad de
que varias personas intenten configurar la tarjeta simultáneamente.
- No se puede desactivar el acceso a este puerto, pero se puede proteger con contraseña.
03.01 DIRECCIÓN IP POR DEFECTO
La tarjeta viene configurada en DHCP. Si se dispone de un servidor DHCP, este asignará
automáticamente una dirección IP, puerta de enlace y máscara de subred a la tarjeta cuando
éste se reinicie.
Página 35 de 58
03.02 CONFIGURACIÓN DE LA DIRECCIÓN IP
La dirección IP de la tarjeta debe ser configurada para que se pueda acceder a través de red. Si
la dirección IP no ha sido asignada automáticamente por DHCP, se tendrá que configurar
usando un puerto de red.
03.02.01 LOGIN POR EL PUERTO DE RED (1)
El método más sencillo para configurar la dirección IP es mediante el programa DeviceInstaller.
Este puede descargarse en la web del fabricante. http://www.lantronix.com/
Empezaremos apuntando la dirección Ethernet que viene en la etiqueta de cada equipo, la cual
es única y distinta en todos los dispositivos de red. Es la dirección Hardware que toda interface
de red tiene (ésta será del tipo 00-20-4A-A5-C6-A2).
DeviceInstaller configurará de forma permanente la dirección IP del conversor. Los pasos a
seguir son los siguientes:
1. Ejecutar el programa.
2. El programa mostrara los dispositivos disponibles en nuestra red y la dirección IP que estos
tienen dentro de la misma.
Figura 3.2.1.1
Página 36 de 58
3. Seleccionar un dispositivo y verificar que la dirección MAC o “Hardware Address” es la
dirección IP que queremos modificar.
Figura 3.2.1.2
4. Pulsar el botón “Assign IP” para ejecutar el asistente de configuración IP del dispositivo.
Figura 3.2.1.3
Página 37 de 58
03.02.02 LOGIN POR EL PUERTO DE RED (2)
Utilizaremos el ARP, del que se dispone bajo UNIX y Windows. Si la tarjeta no tiene dirección
IP, éste configurará su dirección con el primer paquete IP que reciba.
1. En UNIX, se tiene que crear una entrada en la tabla de ARP del host, usando la IP que
queramos configurar en la tarjeta y la dirección hardware de éste, la cual se puede encontrar
en la etiqueta del producto.
Figura 3.2.2.1: ARP en UNIX
arp –s 192.168.1.200 00:20:4A:xx:xx:xx
En cuanto al comando ARP de Windows, la tabla de ARP del PC tiene que tener como mínimo
una dirección IP definida además de la suya propia. Si la tabla de ARP está vacía, el comando
retornará un mensaje de error. Se tiene que escribir “arp -a” en una ventana de DOS para
verificar que existe como mínimo una entrada en la tabla ARP.
Si no existe la tabla de ARP o la máquina que se usa es la única en la tabla, se tiene que hacer
un ping a cualquier otra dirección IP existente en la red para generar una nueva entrada en la
tabla de ARP. Una vez realizado esto, se utilizará el siguiente comando para asignar una
dirección IP la tarjeta:
Figura 3.2.2.2: ARP en Windows
arp -s 192.168.1.200 00-20-4a-xx-xx-xx
2. Ahora se realizará un telnet al puerto 1. El intento de conexión fallará rápidamente, pero de
esta forma la tarjeta cambiará su IP a la que le habíamos asignado anteriormente.
Figura 3.2.2.3: Telnet al puerto 1
telnet 192.168.1.200 1
3. Finalmente, se realizará un telnet al puerto 9999 y se configurarán todos los parámetros
requeridos. A continuación ya se podrá iniciar la configuración de la tarjeta (ver capítulo 4)
Figure 3.2.2.4: Telnet al puerto 9999
telnet 192.168.1.200 9999
Nota: Esta IP que hemos configurado es temporal, y volverá a su estado original cuando a la
tarjeta se le quite la alimentación. Esto sucederá a menos que se acceda a los parámetros del
conversor la tarjeta y se guarden los cambios de forma permanente. Consultar el capítulo 4
para instrucciones acerca de cómo configurar la dirección IP permanentemente.
Página 38 de 58
04 CONFIGURACIÓN
Antes de empezar a utilizar la tarjeta se deben configurar ciertos parámetros. La tarjeta se
puede configurar local o remotamente con alguno de los siguientes pasos:
- Usando un navegador web cualquiera para acceder a la página web interna de la tarjeta y
configurar la unidad a través de la red. Éste es el método más fácil y recomendable.
- Hacer un telnet para configurar la unidad a través de la red.
- La configuración de la tarjeta es guardada en una memoria no volátil (NVRam), por lo que no
se perderá aunque se interrumpa la alimentación. La configuración puede ser modificada en
cualquier momento. La tarjeta hace un reset cada vez que se modifica y almacena la
configuración.
Página 39 de 58
04.01 CONFIGURACIÓN POR RED
04.01.01 USANDO UN NAVEGADOR WEB
Si su conversor ya dispone de una dirección IP (ver capítulo 3, Puesta en marcha), se puede
acceder fácilmente usando un navegador web con soporte para Java.
1. Introducir la dirección IP de la tarjeta en el navegador web.
2. Una vez conectado a la tarjeta, aparecerá el interface web del equipo.
Figura 4.1.1: Interface web
Página 40 de 58
Apartado 1: Información del equipo -MODBUS/TCP.
- Producto: Nombre del equipo.
- Nombre: Descripción del equipo.
- Versión de firmware: Número de versión del programa interno.
- Dirección hardware: Dirección Hardware o dirección MAC.
Apartado 2: Parámetros de red.
- Dirección IP: Dirección IP que se asignará al conversor.
- Máscara de red: Máscara de red (igual a la red donde se conectará el conversor).
- Puerta de enlace: Puerta de enlace (en caso que se conecte a una red externa).
- Puerto: Puerto de red del conversor (en caso que se conecte a una red externa).
Apartado 3: Contraseña (Permite establecer una contraseña a la página web interna).
- Contraseña: Contraseña de la página web interna.
- Repite contraseña: Repetir contraseña para verificación.
Apartado 4: Modo (Permite establecer el modo de funcionamiento).
- Quickaccess/Cirmemory-K
- Cirpark SP2
- Cirpark SP3
- Personalizado
Apartado 5: Parámetros adicionales.
- Velocidad: Velocidad de transmisión. Por defecto, 19200.
- Tamaño del byte: Bits de datos. Por defecto, 8.
- Paridad: Paridad. Por defecto, No.
- Bits de stop: Bits de parada. Por defecto, 1.
- Protocolo serie: Full-Duplex o Half-Duplex. Por defecto, Full-Duplex.
- Conexión: Conexión mediante protocolo TCP o UDP.
- Dirección IP remota: Dirección IP asignada al equipo remoto.
- Puerto remoto: Puerto de red del equipo remoto.
- Startup: Inicio de la comunicación entre dos convertidores (sólo conexión TCP).
- Inactividad (ms): 0, 12, 52, 250, 5000. Tiempo de retardo antes de enviar de caracteres
Una vez realizada la nueva configuración pulsar el botón “Enviar configuración”.
Página 41 de 58
04.01.02 USANDO EL TELNET
Para configurar la tarjeta a través de la red, se puede que establecer una conexión mediante
telnet al puerto 9999. En entorno Windows, abrir una ventana de MS-DOS e introducir la
siguiente línea de comandos:
Figura 4.1.2: Acceso por red usando telnet
telnet x.x.x.x 9999
04.02 PARÁMETROS DE CONFIGURACIÓN
Una vez dentro del modo de configuración (confirmar pulsando Enter), se pueden modificar los
parámetros pulsando el número correspondiente o aceptar los existentes pulsando Enter. Es
preciso asegurarse de guardar la configuración una vez modificada. La tarjeta realizará un
reset.
Figura 4.2.1: Setup mode screen
Página 42 de 58
Figura 4.2.2: Pantalla de configuración
Figura 4.2.3: Pantalla de configuración (Continuación)
Página 43 de 58
Figura 4.2.4: Pantalla de configuración (Continuación)
Figura 4.2.5: Pantalla de configuración (Continuación)
Página 44 de 58
05 PROTOCOLO MODBUS
05.01 INTRODUCCION
El protocolo Modbus es un estándar de comunicaciones en la industria que permite la
conexión en red de múltiples equipos. Modbus fija el formato de comunicaciones, desde los
comandos hasta la trama de los mensajes. Existen tres implementaciones diferentes del
protocolo Modbus: Modbus RTU, Modbus ASCII y Modbus/TCP (RTU o ASCII).
Un mensaje típico de Modbus RTU tiene el siguiente formato:
Dirección
1 bytes
Función
1 bytes
Tabla 5.1
Datos
n bytes
CRC
2 bytes
El campo de datos dependerá de la función implementada.
05.02 CODIGOS DE ERROR
En caso de producirse un error en el tratamiento de la trama modbus obtendremos una
respuesta similar a la siguiente:
Dirección
1 byte
Tabla 5.2.1
Mensaje error
0x81 0x02
CRC
2 bytes
El mensaje de error estará formado por dos bytes donde el primero será una “AND” entre 0x80
y el código de la función (si función 1 -> 0x81, función 5 -> 0x85, función 0x10 -> 0x90, etc.) y el
segundo byte será un identificador general del tipo de error:
Error
1
2
3
4
5
6
Nombre
Función
Dirección
datos
Valor datos
Fallo de
dispositivo
ACK
Dispositivo
ocupado
Tabla 5.2.2
Descripción
El código de función no está disponible.
La dirección de los datos no es correcta o no corresponde con
datos visualizables o modificables.
El valor de los datos no es correcto.
El dispositivo ha fallado al realizar la petición.
El dispositivo ha aceptado la petición pero no puede servirse en
este momento. No se debería reintentar.
El dispositivo está realizando una petición y no puede servir
nuevas. Debería reintentarse.
Página 45 de 58
05.03 FUNCIONES IMPLEMENTADAS
Las funciones del protocolo Modbus implementadas en la central de CO son las siguientes:
- Función 01 (0x01): Lectura de relees o entradas.
- Función 04 (0x04): Lectura de registros.
- Función 16 (0x10): Escritura de múltiples registros.
05.04 EJEMPLOS DE TRAMAS MODBUS
En los siguientes puntos veremos ejemplos de tramas en protocolo Modbus tanto para lectura
como escritura. En concreto veremos lectura / escritura de relees o entradas y lectura /
escritura de registros.
05.04.01 LECTURA DE RELES COMPACTADOS O ENTRADAS
La petición modbus será similar a la siguiente:
Dirección
0x01
Función
0x01
Tabla 5.4.1.1
Dirección (2 Bytes) Datos (2 bytes)
0x00 0x00
0x00 0x03
CRC (2 bytes)
0x7C 0x0B
En la respuesta del equipo obtendremos un bit de los datos por entrada. El estado está
indicado como 1 = ON y 0 = OFF.
Dirección
0x01
Función
0x01
Num. Bytes
0x01
Tabla 5.4.1.2
Datos
0x03
CRC
0x90 0x48
El valor 0x03 nos indicará que la entrada 1 y la 2 están activadas (0x03 corresponde en binario
a 00000011).
Ejemplo aplicación mbus
mbus u192.168.1.200 p10001 01.01.00.00.00.03
010100000003 7C0B
01010104 504B 100.00%
Página 46 de 58
05.04.02 LECTURA DE REGISTROS
La petición modbus será similar a la siguiente:
Dirección
0x01
Función
0x04
Tabla 5.4.2.1
Registro (2 Bytes)
Número registros (2 bytes)
0x00 0x04
0x00 0x01
CRC (2 bytes)
0x70 0x0B
Cada registro está compuesto por dos bytes por lo que en la respuesta del equipo
obtendremos el número de registros multiplicado por 2.
Dirección
0x01
Función
0x04
Tabla 5.4.2.2
Num. Bytes (1 Byte)
Datos (N bytes)
0x02
0x00 0x05
CRC (2 bytes)
0x79 0x33
En este caso podemos ver que el registro 0x04 contiene dos bytes con valor 0x00 0x05
(disponemos de 5 alarmas en el histórico de alarmas)
Ejemplo aplicación mbus
mbus u192.168.1.200 p10001 01.04.00.04.00.01
010400040001 700B
0104020002 38F1 100.00%
Página 47 de 58
05.04.03 ESCRITURA DE REGISTROS
La petición modbus será similar a la siguiente:
Dirección
Función
0x01
0x10
Registro (2
Bytes)
0x00 0x0E
Tabla 5.4.3.1
N. registros (2
bytes)
0x00 0x01
N. Bytes
(1 byte)
0x02
Datos
CRC (2 bytes)
0x00 0x64
0xA6 0x95
En la respuesta del equipo obtendremos el registro de inicio de petición de escritura y el
número de registros que se han escrito.
Dirección
0x01
Función
0x10
Tabla 5.4.3.2
Registro (2 Bytes)
N. registros (2 bytes)
0x00 0x0E
0x00 x01
CRC (2 bytes)
0x60 0x0A
En este ejemplo escribimos en la dirección 0x00 0x0E un registro (2 bytes) con valor 0x00 0x64
y se nos responde de manera correcta (hemos escrito en el registro 0x00 0x0F el valor 100 de
nivel de disparo).
Ejemplo aplicación mbus
mbus u192.168.1.200 p10001 01.10.00.12.00.01.02.00.01
011000120001020001 64E2
011000120001 A1CC 100.00%
Página 48 de 58
05.04.04 REGISTROS DEL SISTEMA
Dirección
0x0002
Registros
1
Bytes
2
0x0004
0x0007
0x0008
0x000A
1
1
1
1
2
2
2
2
0x000B
1
2
0x000C
1
2
0x000F
1
2
Tabla 5.4.4
Descripción
Versión de la tabla /
Número de detectores
Contador de alarmas
Contador extractor 1
Contador extractor 2
Máxima de CO
instantánea
Promedio CO
instantánea
Mínima de CO
instantánea
Nivel de alarma
0x0010
1
2
Nivel de extracción 2
R/W
0x0011
1
2
Nivel de extracción 1
R/W
0x0012
1
2
Modo funcionamiento
R/W
0x0013
0x0015
1
1
2
2
Estado central CO
Velocidad del PWM
(W/R)
R
Formato
Versión (HI) Num_detect(LO)
R
R
R
R
R
R
R/W
R
R
Comprobar que está por
encima de extracción 2.
Máximo 250 ppm
Comprobar que está por
encima de extracción 1, y
por debajo de alarma.
Máximo 250 ppm
Comprobar que está por
debajo de extracción 2.
Paro / disparo / máximo /
promedio
0x00(HI) – PWM (LO)
Página 49 de 58
05.04.05 CODIFICACION PARA EL MODO DE FUNCIONAMIENTO
Dirección 0x0012
Tabla 5.4.5
Modo
Código
Paro
0
Disparo
1
Máximo
2
Promedio
3
Ejemplo aplicación mbus
mbus u192.168.1.200 p10001 01.10.00.12.00.01.02.00.01
011000120001020001 64E2
011000120001 A1CC 100.00%
Página 50 de 58
05.04.06 CODIFICACION PARA EL ESTADO DE LA CENTRAL
Dirección 0x0013
El estado de la central se representa como un campo de bits, que tiene las siguientes
indicaciones:
Tabla 5.4.6
Estado
Indicación
Módulo sin sensores
0x40
Algún detector tiene error de
comunicación
0x20
Algún detector tiene error en el sensor
0x10
El rele de alarma está activo
0x08
El rele de extracción 1 está activo
0x02
El rele de extracción 2 está activo
0x04
El módulo está silenciado
0x01
Ejemplo aplicación mbus
mbus u192.168.1.200 p10001 01.04.00.13.00.01
010400130001 C00F
0104020006 3932 100.00%
Página 51 de 58
06 INFORMACIÓN DE CONTACTO
Si se encuentra con algún error o si no consigue solucionar el error, realice los siguientes
pasos:
Mirar en la página web del distribuidor para ver las preguntas más frecuentes y
actualizaciones.
Para más información acerca de la configuración del sistema, dirigirse a la documentación o
soporte técnico del mismo. Por ejemplo se tiene alguna duda acerca del sistema operativo
Windows, diríjase a la base de datos de Microsoft (Microsoft Knowledge) vía web
www.support.microsoft.com/directory.
Contactar con su distribuidor.
07 PINOUTS
07.01 CONECTOR ETHERNET
Figura 7.1: Interface de red
07.02 CABLES ETHERNET
Cable Ethernet típico
Esquema de conexiones de un cable Ethernet Categoría 5 para conectar cualquier dispositivo
Ethernet (como la tarjeta) a un HUB.
(Se conectará los 2 extremos del cable con la misma configuración de colores, intentando que
los pins 1 y 2 sean un par trenzado, por ejemplo Naranja - Naranja/Blanco y que los pins 3 y 6
sean otro par trenzado, por ejemplo Verde - Verde/Blanco).
Ejemplo:
1- Naranja
2- Naranja/Blanco
3- Verde
4- Azul
5- Azul/Blanco
6- Verde/Blanco
7- Marrón
8- Marrón Blanco
Página 52 de 58
Cable Ethernet directo
Esquema de conexiones de un cable Ethernet Categoría 5 para conectar cualquier dispositivo
Ethernet (como la tarjeta) directamente a otro como un PC.
(Se tendrá que cruzar los cables de transmisión y recepción. Puesto que para transmitir se usan
el pin 1 y 2, y para recibir el 3 y 6, conectaremos el 1 y 2 de un extremo, por ejemplo Naranja –
Naranja/Blanco, con el 3 y 6 del otro extremo, y el 3 y 6 del primer extremo, por ejemplo
Verde – Verde/Blanco, con el 1 y 2 del otro extremo. Intentar que los cables de los pines 1 y 2
sean un par (trenzados entre sí) y los cables de los pines 3 y 6 otro par.
Ejemplo:
EXTREMO1
1- Naranja
2- Naranja/Blanco
3- Verde
4- Azul
5- Azul/Blanco
6- Verde/Blanco
7- Marrón
8- Marrón Blanco
EXTREMO 2
1- Verde
2- Verde/Blanco
3- Naranja
4- Azul
5- Azul/Blanco
6- Naranja/Blanco
7- Marrón
8- Marrón/Blanco
Página 53 de 58
08 ACTUALIZANDO EL FIRMWARE
08.01 OBTENIENDO EL FIRMWARE
Los archivos del firmware actuales están la página web del distribuidor.
08.02 ACTUALIZACIÓN DEL FIRMWARE
Es posible actualizar también el interface web interno de la tarjeta vía TFTP.
08.02.01 VÍA TFTP
Desde la línea de comandos de MS-DOS el comando tftp.exe, disponible en las versiones 2000,
XP y NT de Windows, se puede enviar el firmware al conversor. Se tienen que escribir las
siguientes líneas de comandos:
tftp -i 192.168.1.200 put xpt03_6602.rom AU
tftp -i 192.168.1.200 put circontrol1.cob WEB1
tftp -i 192.168.1.200 put circontrol2.cob WEB2
La tarjeta realiza un reset después de que la configuración haya sido enviada y actualizada
(esperar 5 segundos para que el equipo se reinicie).
Ejemplo aplicación mbus
mbus u192.168.1.200 p10001 01.04.00.0F.00.03
mbus u192.168.1.200 p10001 02.04.00.0F.00.03
mbus u192.168.1.200 p10001 03.04.00.0F.00.03
Página 54 de 58
09 ESPECIFICACIONES TÉCNICAS
Interface de red
Interface
Conector
Protocolos
Ethernet 10Base-T / 100Base-TX (autodetectable)
RJ45
MODBUS/TCP, ARP, ICMP, SNMP, TFTP, DHCP, BOOTP, HTTP y AutoIP
10 DIRECCIONAMIENTO IP
Cada equipo conectado a una red TCP/IP debe tener una única dirección IP (Internet Protocol).
Esta dirección es utilizada para dirigirse a este equipo; por ejemplo, para establecer una
conexión a la tarjeta.
Una dirección IP es un valor de 32-bits dividido en cuatro octetos de ocho bits. La
representación estándar son 4 números decimales (0-255) divididos por puntos.
Figura 10: Dirección IP ejemplo
192.2.12.123 (ó 192.002.012.123)
La dirección IP está dividida en 2 partes: la red y el host. Existen tres clases de red para abarcar
las distintas necesidades. En los siguientes apartados, las "x" simbolizan la parte de los host de
la dirección IP.
10.01 REDES DE CLASE A
Dirección IP de 1.x.x.x a 127.x.x.x
El primer byte define la red, los tres últimos bytes definen los hosts. Sólo existen 127 redes de
clase A distintas, y cada una de ellas puede tener hasta 16.777.216 de equipos.
Figura 10.1: Dirección IP ejemplo de Clase A
10.0.0.1 (red 10, host 0.0.1)
10.02 REDES DE CLASE B
Dirección IP de 128.0.x.x a 191.255.x.x
Los dos primeros bytes definen la red, los dos últimos definen los hosts. Las redes de clase B
son típicamente usadas para redes de grandes compañías, y pueden contener hasta 65.534
equipos.
Figura 10.2: Dirección IP ejemplo de Clase B
172.1.3.2 (red 172.1, host 3.2)
Página 55 de 58
10.03 REDES DE CLASE C
Dirección IP de 192.0.0.x a 223.255.255.x
Los tres primeros bytes definen la red, y el último byte define los host. Las redes de clase C son
las más comunes, y generalmente usadas en pequeñas compañías. Cada red puede contener
hasta 254 hosts.
Figura 10.3: Dirección IP ejemplo de Clase C
192.7.1.9 (red 192.7.1, host 9)
10.04 REDES DE CLASE D
Dirección IP de 224.x.x.x a 239.x.x.x
Estas direcciones son usadas como direcciones de multidifusión.
10.05 REDES DE CLASE E
Dirección IP de 239.x.x.x a 254.x.x.x
Estas direcciones IP están reservadas.
10.06 DIRECCIÓN DE RED
La dirección de un host con todos los bits del host a 0 indica cual es la dirección de red.
Figura 10.6: Ejemplo de dirección de red
192.168.0.0
10.07 DIRECCIONES DE BROADCAST
Una dirección de host con todos los bits de host a 1 es la dirección de broadcast, conocida por
todas las estaciones.
Figura 10.7: Dirección ejemplo de broadcast
192.168.0.255
La dirección de red y de broadcast no pueden ser utilizadas como direcciones de un host; por
ejemplo la IP 192.168.0.0 identifica toda la red y la 192.168.0.255 identifica la dirección de
broadcast.
Página 56 de 58
10.08 MÁSCARA DE RED
La máscara de red (Netmask) divide la dirección IP de forma distinta a la definida por las clases
A,B,C. Esta define el número de bits que se tomarán de la dirección IP para hosts y los que se
tomarán como dirección de red.
La tarjeta pide el número de bits de host y entonces calcula la máscara de red, la cual es
mostrada en notación decimal estándar separada por puntos (por ejemplo, 255.255.255.0)
cuando los parámetros salvados son mostrados.
Tabla 10.8.1: Máscaras de red estándar
Tipo de red
Bits de red
Bits de host
Clase A
8
24
Clase B
16
16
Clase C
24
8
Máscara de red
255.0.0.0
255.255.0.0
255.255.255.0
Tabla 10.8.2: Ejemplos de máscaras de red
Máscara de red
Bits de host
255.255.255.252
2
255.255.255.248
3
255.255.255.240
4
255.255.255.224
5
255.255.255.192
6
255.255.255.128
7
255.255.255.0
8
255.255.254.0
9
255.255.252.0
10
255.255.248.0
11
... ...
255.128.0.0
23
255.0.0.0
24
Página 57 de 58
10.09 INTERNET Y LAS REDES IP PRIVADAS
Si la red que se usa no está conectada a Internet, se puede usar cualquier dirección IP. Si está
conectada o se quiere usar la tarjeta en una intranet, se debe usar alguna de las subredes
reservadas. Por esto, será necesario consultar al administrador de la red para asuntos
referentes a la asignación de la dirección IP.
10.10 RFCS DE LAS REDES
Para más información acerca del direccionamiento IP, buscar los siguientes documentos en
internet usando las siguientes referencias:
- RFC 950 Internet Standard Subnetting Procedure.
- RFC 1700 Assigned Numbers.
- RFC 1117 Internet Numbers.
- RFC 1597 Address Allocation for Private Networks.
Página 58 de 58

Documentos relacionados