1.1 BC0087 1.1.1 General information For Modbus/TCP and Modbus/UDP, Ethernet TCP/IP was permitted as an additional transfer method for the Modbus protocol, which has been around since 1979. Today, Modbus/TCP is an open internet draft standard that Schneider Automation has introduced to the IETF (Internet Engineering Task Force), the organization responsible for Internet standardization. The Modbus services and the object model that have been preserved since the original have been kept unchanged for use with TCP/IP as the transfer medium. Modbus/UDP differs from Modbus/TCP through the use of connectionless communication via UDP/IP. The advantage of the faster and easier communication with UDP/IP brings with it the disadvantage of requiring error detection and -handling in the application layer. The BC0087 bus controller makes it possible to connect X2X Link I/O nodes to Modbus via Ethernet. The bus controller can be run on B&R controllers when using Automation Studio 3 or third-party systems with Modbus/TCP or -UDP master function. Fieldbus: Modbus/TCP, Modbus/UDP I/O configuration via the fieldbus DHCP capable Integrated 2x switch for efficient cabling Configurable I/O cycle (0.5-4 ms) Response time: <1-8 ms (depending on load on integrated switch) Validity check for command sequences before execution Information: Only the default function model is supported (see respective module description) when the bus controller automatically configures multi-function modules. All other function models are supported when configured accordingly (see Modbus/TCP User's Manual). The easy-to-use B&R FieldbusDESIGNER can help in this regard and is available for free download from www.br-automation.com/designer. 1
1.1.2 Order data Model number Short description Figure X20BC0087 X20TB12 X20PS9400 X20PS9402 X20BB80 Bus controller X20 bus controller fieldbus interface, 1 Modbus/TCP or Modbus/UDP interface, integrated 2x switch, status indicator LEDs, 2x RJ45 connection Required accessories X20 terminal block, 12-pin, 24 V coded X20 supply module for bus controller and internal I/O supply, X2X Link bus supply X20 supply module for bus controller and internal I/O supply, X2X Link bus supply, supply feed not electrically isolated X20 bus base, for X20 base module (BC, HB, etc.) and X20 supply module, X20 end plates (left and right) X20AC0SL1/X20AC0SR1 included 1.1.3 Technical data Table 1: BC0087 - Order data Product ID Short description Bus controller Fieldbus Type Design Cable length Transfer rate General information Status indicators Diagnostics Module status Bus function BC0087 Modbus/TCP, Modbus/UDP Ethernet Internal 2x switch, 2x shielded RJ45 port Max. 100 m between two stations (segment length) 100 MBit/s Full-duplex / half-duplex Auto negotiation Auto-MDI/MDIX Module status, bus function Yes, with status LED and software status Yes, with status LED and software status Table 2: BC0087 - Technical data 2
Product ID Electrical isolation Fieldbus - X2X bus Fieldbus - I/O Power consumption of the bus Certification Operating conditions Operating temperature Horizontal installation Vertical installation Relative humidity Mounting orientation Installation at altitudes above sea level 0-2000 m >2000 m Protection type Storage and transport conditions Temperature Relative humidity Mechanical characteristics Spacing 1) Comment BC0087 Yes Yes 2.0 W CE, C-UL-US, GOST-R 0 C to +55 C 0 C to +50 C 5 to 95%, non-condensing Horizontal or vertical No derating Reduction of ambient temperature by 0.5 C per 100 m IP20-25 C to +70 C 5 to 95%, non-condensing 37.5 +0.2 mm Order terminal block 1x X20TB12 separately Order 1x X20PS9400 or X20PS9402 supply module separately Order 1x X20BB80 bus base separately 1) The spacing is based on the width of the X20BB80 bus base. An X20PS9400 or X20PS9402 supply module is also always required for the bus controller. 1.1.4 Additional technical data Table 2: BC0087 - Technical data (cont.) Product ID BC0087 Fieldbus Controller MAC Processor 32-bit RISC processor Memory 512 KByte General information B&R ID code $227C Table 3: BC0087 - Additional technical data 3
1.1.5 Status LEDs Figure LED Color Status Description S/E 1) Green Permanently There is at least one client connection. green 2 pulses No client connection exists. 4 pulses The controller is waiting for an address from the DHCP server. Blinking Initialization of the connected I/O modules. Red 2 pulses Watchdog timeout. 3 pulses Faulty I/O module configuration data. 4 pulses The controller detected an IP address used twice. 5 pulses Missing, defective or incorrect I/O module. 6 pulses Error reading or writing flash memory. Permanently red Irrecoverable hardware error. L/A IFx Green Blinking The respective LED blinks when Ethernet activity is present on the corresponding RJ45 port (IF1, IF2). Permanently on There is a connection (link), however no communication is taking place. Off No physical Ethernet connection exists. Table 4: BC0087 - Status indicators 1) The Status/Error LED is a green/red dual LED. The LED blinks red several times immediately after startup. However, this is not an error, it is a boot message (see Modbus/TCP User's Manual). 1.1.6 Operating and connection elements LED status indicators Network address switches Terminal block for bus controller and I/O supply Modbus/TCP connection with 2x RJ45 for easy wiring Figure 1: BC0087 - Operating and connection elements 4
1.1.7 RJ45 ports Please note the following section: 9.1.2 "Wiring guidelines for X20 bus controller with Ethernet cable" on page 265 RJ45 Port 1 (IF1) RJ45 Port 2 (IF2) Figure 2: BC0087 - RJ45 ports Pin Assignment 1 RXD 2 RXD\ 3 TXD 4 Termination 5 Termination 6 TXD\ 7 Termination 8 Termination Table 5: BC0087 - Pin assignments - RJ45 port RXD...Receive Data TXD...Transmit Data 5
1.1.8 Modbus/TCP network address switches Figure 3: BC0087 - Network address switches Setting the IP address (default value) Changes to the network address switches are only applied after a restart (power cycle). If the bus controller is restarted with the address $FF, it is initialized with the IP address 192.168.100.1. This address is also the default address upon delivery. The port number is set to 502 (reserved for Modbus). This IP can be used to establish a connection to the bus controller. The internationally unique MAC address is listed on the housing side of the bus controller. The combination of "br" and the MAC address results in a unique name (primary NetBIOS name) that also makes it possible to access the bus controller. Example for the primary NetBIOS names: MAC address: 00-60-65-00-49-02 Resulting NetBIOS name: br006065004902 This means that, without additional parameter changes, either the default IP address 192.168.100.1 or the NetBIOS name "br+mac" can be used to communicate with the controller. The bus controller can only be accessed via this name if there are no intermediary routers or gateways because the NetBIOS method is used. 6
Automatic IP assignment from a DHCP server At an address between $80 and $EF, the bus controller attempts to request an IP address from the DHCP server. To query this IP address, simply run a "ping" command with the host name. The bus controller registers this host name on the DHCP server, which should forward it to a DNS server. Example: The host name (DNS name) is made up of three elements: "br" + "mb" + address (three decimal places) This means that the following host name is generated for an address of e. g. $D7 (dec. 215): "brmb215" If DNS service is not available on the network, the bus controller's two NetBIOS names can also be used for access. The secondary NetBIOS name is identical to the host name; at address $00, it is identical with the primary NetBIOS name. The bus controller can only be reached via its NetBIOS name if no other routers or gateways are in the way. Changing the IP address with the network address switches The address switches can be used to change the last position (octet) in the IP address that was configured in the bus controller. The IP address saved in the flash memory is not changed. If the address switches are set to $00, the bus controller applies the IP address last saved to flash memory. Addresses between $01 and $7F cause the last position of the IP address (the lowest byte) to be overwritten by the value of the address switches. This gives the user a simple and quick way to address a large number of bus controllers. This basically means that the IP address of a bus controller can be selected between 192.168.100.1 and 192.168.100.127 using the address switches without needing any additional software configuration. Saving an IP address in flash memory The IP parameters in the flash memory can be changed via the Modbus protocol (see User's Manual), the ModbusTCP toolbox or the Telnet interface. The ModbusTCP toolbox is available as download from the B&R web portal. The IP address, the Subnet and the Gateway are all defined in the address range $1003 - $100E. Each has a length of 4 words. The data is applied by writing the constant $C1 to the address $1140 ("Write Single Register" fc6, addr. $1140, data $C1 - see Modbus/TCP User's Manual). The new settings are applied after the bus controller is restarted. 7
Overview of addresses Switch position Description $00 This is the switch setting defined upon delivery. The network address switches don't have any effect on the system parameter. The bus controller parameters in the flash memory are used (IP address and port number). The bus controller is started with factory default values if valid flash data is not present. $01 to $7F The last position of the IP address saved in flash memory is changed to the address. The IP address saved in the flash memory is not changed. The port number is read from flash memory. $80 to $EF The bus controller runs in this range in DHCP mode. The DNS server is informed of the current host name. A host name is generated according to the setting of the network address switches. Example: The generated host name is made up of three elements: "br" + "mb" + address (three decimal places) This means that the following host name is generated for an address of e.g. $D7 (dec. 215): "brmb215" $F0 to $FD Reserved (same function as position $FF). $FE All bus controller parameters are initialized with default values during the boot procedure. No values are read from the flash. The communication parameters are equal to the values as with the switch setting $FF. $FF All communication parameters are initialized with default values. All other bus controller parameters are read from the flash. The default parameters: IP address: 192.168.100.1 Network mask: 255.255.255.0 Gateway: 192.168.100.254 Primary NetBIOS name: "br" + MAC address Secondary NetBIOS name: "br" + "mb" + address (decimal) Port number: 502 X2X Link configuration: 4 ms cycle time X2X Link cable length: 0 m Table 6: BC0087 - Addresses 8