WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 User Manual WI-GTWY-9-xxx Wireless Gateway Weidmuller Inc., 821 Southlake Blvd., Richmond, VA 23236 Tel: (804) 794-2877 Fax: (804) 897-4136 Web: www.weidmuller.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 Thank you for your selection of the WI-GTWY-9 module. We trust it will give you many years of valuable service. ATTENTION! Incorrect termination of supply wires may cause internal damage and will void warranty. To ensure your WI-GTWY-9 enjoys a long life, double check ALL your connections with the user’s manual before turning the power on.
WI-GTWY-9-xxx Wireless Gateway FCC Notice: User Manual V1.18 WI-I/O 9-x Wireless I/O Module This user’s manual is for the WI-GTWY-9-xxx radio telemetry module. This device complies with Part 15.247 of the FCC Rules. Operation is subject to the following two conditions: 1) This device may not cause harmful interference and 2) This device must accept any interference received, including interference that may cause undesired operation. This device must be operated as supplied by Weidmuller, Inc.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 Limited Lifetime Warranty, Disclaimer and Limitation of Remedies Weidmuller, Inc. products are warranted to be free from manufacturing defects for the “serviceable lifetime” of the product. The “serviceable lifetime” is limited to the availability of electronic components. If the serviceable life is reached in less than three years following the original purchase from Weidmuller, Inc., Weidmuller, Inc.
WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 Important Notice Weidmuller, Inc.’s products are designed to be used in industrial environments, by experienced industrial engineering personnel with adequate knowledge of safety design considerations. Weidmuller, Inc. radio products are used on unprotected license-free radio bands with radio noise and interference.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 How to Use This Manual To receive the maximum benefit from your WI-GTWY-9-xxx product, please read the Introduction, Installation and Operation chapters of this manual thoroughly before using the WI-GTWY-9-xxx. Chapter Four Configuration explains how to configure the modules using the Configuration Software available. Chapter Six Troubleshooting will help if your system has problems.
WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 3.3 POWER SUPPLY 3.3.1 AC Supply 3.3.2 DC Supply 3.3.3 Solar Supply 3.4 INPUT / OUTPUT 3.4.1 Digital Inputs / Outputs 3.5 SERIAL PORT 3.5.1 RS232 Serial Port 3.5.2 RS485 Serial Port 3.6 PROFIBUS PORT 3.7 ETHERNET PORT 3.8 MODBUS PLUS PORT 3.9 DEVICENET PORT CHAPTER 4 CONFIGURATION 4.1 INTRODUCTION 4.2 CONFIGURATION PROGRAM 4.2.1 Program Operation 4.2.2 Security 4.3 UPLOADING AND DOWNLOADING 4.3.1 Loading from a WI-GTWY-9-xxx 4.
WI-GTWY-9-xxx Wireless Gateway 4.11 FIELDBUS CONFIGURATION - PROFIBUS MASTER 4.11.1 GSD File 4.11.2 Protocol and Supported Functions 4.11.3 Configuration 4.11.4 Configuration Example 4.11.5 Message Interface 4.11.6 DP Return Codes 4.12 FIELDBUS CONFIGURATION - ETHERNET 4.12.1 Setting IP Address 4.12.2 Modbus TCP 4.12.3 EtherNet/IP 4.13 FIELDBUS CONFIGURATION – DEVICENET 4.13.1 DeviceNet Introduction 4.13.2 DeviceNet Address Setting 4.13.3 EDS File 4.13.4 Protocol and Supported Functions 4.
WI-GTWY-9-xxx Wireless Gateway Chapter 1 User Manual V1.18 INTRODUCTION 1.1 Overview The Wireless Gateway products provide a wireless interface between various fieldbus protocols used in process and automation applications. The WI-GTWY-9-xxx includes an integral 900MHz license-free radio transceiver, and WI-I/O 9 transfers transducer and control signals (I/O) using a highly secure and highly reliable radio protocol.
WI-GTWY-9-xxx Wireless Gateway • Introduction v1.18 Combined networks of the above. The WI-GTWY-9-xxx has eight on-board discrete I/O. Each I/O point can be configured individually as a contact input signal, or a discrete output signal. Input signals can be sent via its fieldbus connection to a host device (PLC, DCS etc) or be transmitted by radio to other WI-I/O 9-x units. The output signals can be driven by a host device, or linked to inputs on remote WII/O 9-x units.
WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 The Modbus/DF1 WI-GTWY-9-MD1 has 4300 general-purpose I/O registers. Each discrete, analog and pulse I/O point takes up one register. 1.1.2 Profibus WI-GTWY-9-PRx The Profibus WI-GTWY-9-PR1 provides Profibus-DP Slave functionality according to EN 50170. Profibus is a popular automation fieldbus that originated in Germany and is used extensively by Siemens and other automation suppliers.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 bytes is 2000 (4000/8 + 750*2). The total number of I/O is 3250 which is less than the total limit of 4300. 1.1.3 Ethernet WI-GTWY-9-ET1 The Ethernet WI-GTWY-9-ET1 provides several different types of Ethernet functionality: ♦ Modbus TCP. Modbus TCP uses Modbus as a base protocol within an Ethernet communications structure. The WI-GTWY-9-xxx provides class 0, 1 and partially class 2 slave functionality. ♦ EtherNet IP.
WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 An “output” is a value coming into the WI-GTWY-9-DE1 via the fieldbus (that is, a value written to the WI-GTWY-9-DE1 from the DeviceNet master). An input is a value going out from the WI-GTWY-9-DE1 via the fieldbus (a value read by the DeviceNet master). So a DeviceNet WI-GTWY-9-DE1 can normally handle up to 4096 (512 x 8) discrete inputs or 512 low resolution analog inputs or 256 (512 x ½) high resolution analog inputs, or some combination in between.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 9-xxx Radio Interface. The radio port also creates the correct radio message to set outputs on the remote WI-I/O 9-x modules. The WI-I/O 9-x protocol is an extremely efficient protocol for radio communications. Radio messages can be sent using exception reporting - that is, when there is a change of an input signal - or by read/write messages. Each message can comprise a single I/O value, or multiple I/O values (termed a “block” of I/O).
WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 Where additional discrete or analog I/O is required, an external expansion I/O module can be connected to the RS485 port of the WI-GTWY-9 module. See section 4.15 for more details on this. Note: Serial Expansion modules can only be used with the WI-GTWY-9-MD1 unit under certain circumstances. • WI-GTWY-9-MD1 is configured as “Repeater-only” • WI-GTWY-9-MD1 is configured as a Modbus Master and WI-I/O-EX serial expansion modules are used as Modbus Slaves.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 WI-I/O 9-x modules can transmit input messages directly to outputs on other WI-I/O 9-x module, as well as the WI-GTWY-9-xxx. The same input can be transmitted to different addresses by entering two "mapping" configurations at the remote module. Normal WI-I/O 9-x Messages I/O registers in a WI-GTWY-9-xxx can be configured (mapped) to outputs at remote WI-I/O 9-x modules, or I/O registers in WI-GTWY-9-xxx modules.
WI-GTWY-9-xxx Wireless Gateway User Manual V1.18 WI-GTWY-9-xxx “sees” a large number of changes in its database at the one time. For example, if a host writes a block of 100 signal values to a WI-GTWY-9-xxx, and 20 of these values have changed since the last write-operation. If the block is mapped to another WIGTWY-9-xxx, then the WI-GTWY-9-xxx can transmit all 20 values in one radio message, instead of 20 messages.
WI-GTWY-9-xxx Wireless Gateway Introduction v1.18 The data concentrator network is different than using the WI-GTWY-9-xxx as a repeater. A repeater re-transmits each message in the same format. A data concentrator collects the I/O values as a block, and transmits the complete block in one transmission. 1.3.4 WI-GTWY-9-xxx Repeaters Any WI-I/O 9-x module can repeat a normal radio message, however only WI-GTWY-9-xxx modules can repeat a block message.
WI-GTWY-9-xxx Wireless Gateway Chapter 2 V1.18 OPERATION 2.1 Start-up The WI-GTWY-9-xxx operating software and the database configuration are stored in nonvolatile memory; however the database I/O register values are lost on power failure (in the same way as a PLC). On start-up, the WI-GTWY-9-xxx sends "start-up poll" messages to remote modules based on the source address of inputs configured in the database (the start-up messages can be disabled by configuration).
WI-GTWY-9-xxx Wireless Gateway V1.18 viewing and modification. For more information, refer to the Configuration section of this document. Each I/O register in the WI-GTWY-9-xxx database has a 16-bit value. It doesn’t matter if the remote I/O is digital (discrete), analog or pulse. The host protocol driver in the WI-GTWY-9xxx will convert the 16 bit value into a value that the host will understand.
WI-GTWY-9-xxx Wireless Gateway V1.18 again when the WI-GTWY-9-xxx receives a message from the remote module. The default configuration is that output updates ARE sent during comms fail conditions.
WI-GTWY-9-xxx Wireless Gateway V1.18 2.3 Database The WI-GTWY-9-xxx database (Radio Interface) has 10 000 registers, each of 16 bit size.
WI-GTWY-9-xxx Wireless Gateway V1.18 The WI-GTWY-9-xxx also monitors its battery voltage and supply voltage. These are stored in registers 4310 and 4311 respectively, as 16 bit values, scaled so that a value of 16384 decimal (hex 4000) corresponds to 8 V, and a value of 49152 (hex C000) corresponds to 40V. A low battery alarm is available at register 4308. This becomes active when the battery voltage falls below 11.3V, and clears when the battery voltage rises above 11.8V.
WI-GTWY-9-xxx Wireless Gateway V1.18 2.4 The Host - WI-GTWY-9-xxx Link For the host device, the WI-GTWY-9-xxx "looks" like a single device (or a "virtual PLC"), containing the I/O for the complete wireless I/O system. 2.4.1 Modbus / DF1 The user selects whether the WIGTWY-9-MD1 should act as a Modbus Master or Modbus Slave or DF1 device. DATA-BUS DATABASE I/O "VIRTUAL PLC" “HOST DEVICE” The data type and baud rate of the serial communications must be configured at the WI-GTWY9-xxx to match the host.
WI-GTWY-9-xxx Wireless Gateway V1.18 to the Ethernet Interface, and handles all radio communications. I/O in the Radio Interface is linked to I/O in the Ethernet Interface in a flexible way via WI Series Configuration Software. The Ethernet Interface provides a total of 2048 input bytes and 2048 output bytes. An Ethernet byte can contain 8 discrete (binary) values, or two bytes can be used for a 16-bit analog or pulse register.
WI-GTWY-9-xxx Wireless Gateway V1.18 The RSSI registers can be read by the host device, or mapped to I/O registers in other WIGTWY-9-xxx modules. The first half of the register (8 most significant bits) will be decimal 0 (hex 00) if the remote module has active communications. If a comms fail status to this address occurs, the most significant bit will be set. For example, if the last message received from #38 is –99dBm, then the 16 bit value of register 4438 will be decimal 99 or hex 0063.
WI-GTWY-9-xxx Wireless Gateway V1.18 address goes into communications failure, then the remote address comms fail status is set ("on" or 1) - every time an input with this remote address receives a radio message, then the remote address comms fail status is reset ("off" or 0). While the remote address comms fail status is set, the WI-GTWY-9-xxx disables any output messages being sent to this remote address.
WI-GTWY-9-xxx Wireless Gateway V1.18 ensure this does not occur. An additional security level using data encryption can also be selected. 3. Malicious operation, or “hacking” This is the problem most associated with security concerns - the ability for someone to access information from a radio system by “listening-in”, or to cause damage by transmitting radio messages to force outputs. A security option can be selected during the module configuration to protect against this.
WI-GTWY-9-xxx Wireless Gateway Chapter 3 V1.18 INSTALLATION 3.1 General The WI-GTWY-9-xxx module is housed in a rugged aluminum case, suitable for DIN-rail mounting. Terminals will accept wires up to 12 gauge (2.5 sqmm) in size. All connections to the module must be low voltage (SELV). Normal 110-240V mains supply should not be connected to any terminal of the WI-GTWY-9-xxx module. Refer to Section 3.3 Power Supply. Before installing a new system, it is preferable to bench test the complete system.
WI-GTWY-9-xxx Wireless Gateway V1.18 Line-of-sight paths are only necessary to obtain the maximum range. Obstructions will reduce the range, however may not prevent a reliable path. A larger amount of obstruction can be tolerated for shorter distances. For very short distances, it is possible to mount the antennas inside buildings. An obstructed path requires testing to determine if the path will be reliable refer the section 6 of this manual.
WI-GTWY-9-xxx Wireless Gateway V1.18 For information on antennas and cables for the WI-GTWY-1 licensed products, please refer to Weidmuller, Inc. or an authorized distributor. Connections between the antenna and coaxial cable should be carefully taped to prevent ingress of moisture. Moisture ingress in the coaxial cable is a common cause for problems with radio systems, as it greatly increases the radio losses.
WI-GTWY-9-xxx Wireless Gateway V1.18 Collinear and dipole antennas should be mounted vertically, preferably no less than 2 ft (0.6 metre) away from a wall or mast to obtain maximum range. The WI-ANT-DPL-0-16 dipole antenna is the preferred antenna for use in industrial plants and factories. 3.2.2 Yagi antennas. A Yagi antenna provides high gain in the forward direction, but lower gain in other directions. This may be used to compensate for coaxial cable loss for installations with marginal radio path.
WI-GTWY-9-xxx Wireless Gateway V1.18 12 – 24 volts AC RMS or 9 – 30 volts DC at the “supply” terminals, or 10.8 –15 volts DC at the “battery” terminals. The power supply should be rated at 1.5 Amps and be CSA Certified Class 2. For use in Class 1 Div 2 explosive areas (USA/Canada), the power supply must be approved for Class 1 Div 2 use. Note: Connect module to the same ground/earth point as the antenna mounting to avoid differences in earth potential during voltage surges.
WI-GTWY-9-xxx Wireless Gateway V1.18 The module may also be powered from an external 11 – 15 VDC battery supply without the need for a “normal” supply connected to “SUP1”. This external battery supply is connected to “BAT+” and “GND” terminals. The positive lead of the external supply should be protected by a 5A fuse SUP1 SUP2 GND BATTERY SUPPLY 11-15 VDC Fuse 5A BAT+ - WI-GTWY + .Upon failure of the normal supply, the module may continue to operate for several hours from a backup battery.
WI-GTWY-9-xxx Wireless Gateway V1.18 3.4 Input / Output The WI-GTWY-9-xxx has eight on-board discrete/digital I/O. These act as both discrete inputs and discrete outputs. 3.4.1 Digital Inputs / Outputs All eight of the WI-GTWY-9-xxx DIO terminals may be used as discrete inputs. These inputs are suitable for voltage free contacts (such as mechanical switches) or NPN transistor devices (such as electronic proximity switches). PNP transistor devices are not suitable.
WI-GTWY-9-xxx Wireless Gateway V1.18 3.5 Serial Port 3.5.1 RS232 Serial Port The serial port is a 9 pin DB9 female and provides for connection to a terminal or to a PC for configuration, field testing and for factory testing. It is also used by the Modbus/DF1 version for fieldbus connection. This port is internally shared with the RS485 - ensure that the RS485 is disconnected before attempting to use the RS232 port. Communication is via standard RS232 signals.
WI-GTWY-9-xxx Wireless Gateway V1.18 RS485 Serial Port RS485 should not be used with the DF1 unit. The RS485 port provides for communication between the WI-GTWY-9-xxx unit and its host device using a multi-drop cable. Up to 32 devices may be connected in each multi-drop network. Note that the RS485 port is shared internally with the RS232 port - make sure that the RS232 port is disconnected before using the RS485 port.
WI-GTWY-9-xxx Wireless Gateway V1.18 3.6 Profibus Port The Profibus RS485 connector is a D9 connector in the top end-plate of the module (see below). WI-GTWY-9-PR1 (Profibus Slave) End Plate: PROFIBUS D9 CONNECTOR RS485 TERMINATION SWITCH SELECTOR SWITCHES DIAGNOSTIC LED’s CONFIGURATION ENABLE ANTENNA CONNECTION Note: If the “Use Rotary Switch Address” option in configuration software is selected, the two rotary switches are used to specify the Profibus Node Address in the range 0 – 99.
WI-GTWY-9-xxx Wireless Gateway Pin Description 1 Not connected 2 Not connected 3 +ve RS485 (Positive) 4 RTS (request to send) 5 GND - Isolated GND from RS485 side 6 +5V - Isolated 5V from RS485 side 7 Not connected 8 -ve RS485 (Negative) 9 Not connected V1.18 3.7 Ethernet Port For WI-GTWY-9-ET1 modules only. The Ethernet connection uses a standard RJ45 connector on the top end-plate of the module. The selector switches should all be “off” (in the diagram below, “off” is up).
WI-GTWY-9-xxx Wireless Gateway V1.18 3.8 Modbus Plus Port For WI-GTWY-9-M+1 modules only. Connection to the Modbus Plus Network is via the 9-pin D-SUB connector located at the antenna end of the module. Pin-outs are outlined in the table below. D9 MODBUS PLUS CONNECTION SELECTOR SWITCHES DIAGNOSTIC LED’s CONFIGURATION ENABLE ANTENNA CONNECTION See section on configuration for description of selector switches.
WI-GTWY-9-xxx Wireless Gateway V1.18 3.9 DeviceNet Port For WI-GTWY-9-DE1 modules only. Connection to the DeviceNet Network is via the 5-pin plugable screw terminal connector located at the antenna end of the module. Pin-outs are specified below.
WI-GTWY-9-xxx Wireless Gateway Chapter 4 V1.18 CONFIGURATION 4.1 Introduction A Windows program is provided to configure the WI-I/O 9-x system. The configuration is done on a system basis - referred to as a “project” in the program. After the system configuration is entered, the configuration file can be loaded into each module via the RS232 port.
WI-GTWY-9-xxx Wireless Gateway V1.18 All of these steps must be performed to configure the WI-GTWY-9-xxx module. 4.2 Configuration Program The configuration software is available on a CD, and needs to be installed on your PC before you can use it. The CD contains a setup file called setup.exe. Select the configuration software window on the Product CD and an installation Wizard will guide you through the installation procedure.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.2.1 Program Operation Start the software by either clicking on the start bar and navigating to the Configuration menu or by running WI SERIES.EXE in the directory selected in the setup stage. The Initial screen will appear. From the initial screen, , you can select an existing project, or start a new project. The name of the project will create a new folder which will eventually contain the configuration files for the modules in this system.
WI-GTWY-9-xxx Wireless Gateway V1.18 can also change password at any time by over-typing the passowrd. If you are starting a new project, you have the option of “Enabling Security”. This option enables encryption of the data sent over the radio. please read Section 4.2.2 and the associated warnings before using this option. To proceed with the configuration, doubleclick on the project name on the menu on the left side of the screen. “Units” will appear.
WI-GTWY-9-xxx Wireless Gateway V1.18 The default name for a unit will include the unit address. For example, “WI-GTWY#10” is a WI-GTWY-9-xxx module with unit address 10. You can change the name of a unit - for example, you could replace the default name with “Pump Station 14”.
WI-GTWY-9-xxx Wireless Gateway V1.18 Deleting a Unit A module can be deleted from the configuration by highlighting the unit and selecting “Delete Unit”. 4.2.2 Security There are two security features available. You can enter a password to protect the configuration files, and you can enable security encryption of the radio transmissions. The password can be between 6 and 256 characters. The password is case sensitive and any ASCII characters can be used.
WI-GTWY-9-xxx Wireless Gateway V1.18 • If you do not enable security, there will be no data encryption of the radio messages. This is the default setting. • If a security key has been entered, this key is downloaded into each module as part of the configuration download process. You can download another configuration at any time - if the security key is different, or if there is no security key in the new configuration, the old key will be over-written.
WI-GTWY-9-xxx Wireless Gateway V1.18 The archived configuration files cannot be changed, downloaded or uploaded without the password. If you lose the configuration files, you can regenerate these by uploading the configuration from every module in the system into a new project with a new security key. After uploading each module, download the configuration with the new security key.
WI-GTWY-9-xxx Wireless Gateway 4.3.1 V1.18 Loading from a WI-GTWY-9-xxx If you load a configuration from a WI-GTWY-9-xxx into a “blank” or new project, then the program will not be able to display the mappings from remote modules (as the program does not know what the remote modules are).
WI-GTWY-9-xxx Wireless Gateway V1.18 4.4 Mappings WI-GTWY-9-xxx to WI-I/O 9-x I/O Modules To transfer remote input signals to a WI-GTWY-9-xxx, or transfer a value to a remote output from a WI-GTWY-9xxx, you set up “I/O mappings”. You enter mappings into the source unit, not the destination unit. That is, you configure a mapping at the “input” module. If you want to transfer an input signal at a WI-I/O 9-x module to a WIGTWY-9-xxx register, you enter a mapping at the WI-I/O 9x I/O module.
WI-GTWY-9-xxx Wireless Gateway V1.18 For each “remote input” configured to a WI-GTWY-9-xxx, there is a comms-fail time parameter in the WI-GTWY-9-xxx. If the WI-GTWY-9-xxx does not receive a message destined to that I/O register within the “comms fail” time, then the “comms fail” status for that I/O register will be set - the most significant bit of the status register will be set to 1. The comms fail time should be more than the corresponding update time at the remote input.
WI-GTWY-9-xxx Wireless Gateway V1.18 Change Sensitivities Radio messages to remote modules can be change messages (when the value of the I/O register changes) or update messages (when the update time has elapsed). If a change message is sent, the update period restarts. You can configure the amount of change required to trigger a change message - this is called the change sensitivity. Sensitivities are configured for blocks of I/O registers - that is, each I/O register does not have a unique sensitivity.
WI-GTWY-9-xxx Wireless Gateway V1.18 Update Times To change the update times of output mappings, select the Update Times option. Any I/O registers that have already been mapped to remote outputs will automatically be listed. The default update time is 10 minutes. Changing Multiple Settings You can change the Comms Fail Times or Update Times of several I/O points simultaneously by using the Select feature.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.4.4 Startup Polls You can enter start up polls for remote modules by using the “New Poll Mapping” box. This function is the same as for the WI-I/O 9-x I/O modules. A start-up poll is a special message sent when the WI-GTWY-9-xxx starts up. When the remote module receives a start-up poll, it will immediately respond with update messages for all its inputs that are mapped to the WI-GTWY-9xxx. This allows the WI-GTWY-9-xxx to have correct values on start-up. 4.4.
WI-GTWY-9-xxx Wireless Gateway V1.18 To get around this problem, it is possible to configure “block mappings”. With a block mapping, multiple registers (a “block of registers”) can be transferred together in the one radio message. This improves the efficiency of the radio communications. Read/Write Mappings The mappings can be “read” or “write” mappings. A Read mapping is a request sent to another WI-GTWY-9-xxx to return a block of values.
WI-GTWY-9-xxx Wireless Gateway 4.5.1 V1.18 Entering a Block Mapping Select the “source” WI-GTWY-9-xxx on the left hand menu - select “Block Mappings” and then “New Block Mapping” from the right-hand display. The Block Mapping Configuration display will appear. Select the “Command Type” from the pop-down window in the centre of the display. The red arrow will confirm the direction of the block transfer. Now select the destination module - only the WI-GTWY-9-xxx modules already configured will be shown.
WI-GTWY-9-xxx Wireless Gateway V1.18 Each mapping entered is allocated a status register - the register number appears on the right hand of the Block Mapping display. These registers store relevant status information about the block mapping - the structure of the Block Mapping status registers is shown in Appendix 1. In the above example, the status register for the block mapping has been automatically assigned to register 9500.
WI-GTWY-9-xxx Wireless Gateway V1.18 Each block mapping that is configured is allocated a status register in the range 9500 – 9999 (i.e. one status register for a maximum of 500 possible block mappings). The status register for a given block mapping is shown on the right hand side of the Block Mapping display (under the heading “Status Lcn”). Bit 13 of the associated status register is the “Force bit” - if Bit 13 is turned “on”, then the associated mapping is forced, or triggered.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.5.4 Real-Time The block mapping message can be sent at a real-time by setting the “Period” value. In this example, “period” is set to 6 minutes - the message will be sent every 6 minutes starting at the beginning of each hour. That is, the message will be sent at XX:00, XX:06, XX:12, XX:18, XX:24 …. XX:54 - where XX represents any hour of the day. If “Period” was set to 1 minute, then the message would be sent every minute, on the minute.
WI-GTWY-9-xxx Wireless Gateway V1.18 Setting the Clock The clock within the WI-GTWY-9-xxx can be set by the host device, and read by the host device. The WI-GTWY-9-xxx provides four clock registers for days/hours/minutes/seconds - the registers are 4330 – 4333. On power-up, these registers are set to zero. Reg 4333 increments each second, Reg 4332 increments each minute, Reg 4331 each hour and Reg 4330 each day. The clock registers are used by the WI-GTWY-9-xxx for the real-time-clock trigger.
WI-GTWY-9-xxx Wireless Gateway 4.5.5 V1.18 Change-of-State If a value in the block changes by more than the sensitivity amount, then the block message will be sent (this can only occur for Write mappings). The sensitivity values are set under the “Sensitivity” option as per section 4.6. A delay time can be entered to reduce the number of change triggers in active systems.
WI-GTWY-9-xxx Wireless Gateway V1.18 In the above example WI-GTWY-9#1 is performing a Block Read Request to WI-GTWY-9#2. WI-GTWY-9#1 will send a block mapping request to WI-GTWY-9#2 who will then send a block mapping from its I/O registers 52 for a count of 10 to WI-GTWY-9#2 I/O registers 52 – 61. This Block read will be performed using the real time clock at 10-minute intervals.
WI-GTWY-9-xxx Wireless Gateway V1.18 The Block mapping feature will allow a Write Block Mapping to itself. This could be useful if you have a global output to indicate a comms problem from any remote module by block mapping the internal status registers to a local DIO output. 4.5.9 Comms Fail for Block Mappings Each block mapping has an associated mapping number. Up to 500 block mappings may be entered. A status register is maintained for each block mapping.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.6 Change Sensitivity & I/O Value Scaling 4.6.1 Change Sensitivity “Change” messages for both individual I/O mappings and block mappings use a sensitivity value to trigger the message. Sensitivities are configured for blocks of I/O registers - that is, each I/O register does not have a unique sensitivity. You can configure up to 50 sensitivity values - that is, there can be 50 blocks of registers with different sensitivities.
WI-GTWY-9-xxx Wireless Gateway V1.18 radio channel. A sensitivity value of 1 in 65535 is a change of 0.0015%. If the host device writes an analogue value to a WI-GTWY-9-xxx every 100msec, it will change by at least 1 bit each time. A small sensitivity value will cause a change message to be sent every 100msec. If there are many analogue values in the same situation, then there would be many change messages every 100msec.
WI-GTWY-9-xxx Wireless Gateway V1.18 Scaling is configured in the “Sensitivities” section of the configuration software. If you select a new sensitivity/scaling block, you can select/deselect sensitivity or scaling or both. There is no relationship between sensitivity and scaling we use the same configuration area as it is convenient because both features use blocks of I/O registers. In the first example, a block of I/O registers is configured for both sensitivity and scaling.
WI-GTWY-9-xxx Wireless Gateway The second example shows another I/O block (registers 81 to 1080) that has been selected for scaling only - the sensitivity function has been disabled (these registers will use the default sensitivity of 2000 configured on the main Sensitivity configuration screen). In this example, the full 16-bit range (065535) is scaled to “signed 16-bit values”. A value greater than 32767 (which will be seen as a negative value) can’t be written to the data bus.
WI-GTWY-9-xxx Wireless Gateway 4.6.3 V1.18 Unit Details Number of Transmission Retries. - Configurable value between 0 – 4, If the WI-GTWY-9 does not receive an Acknowledgment from a message it will retry up to this configured amount. Note: Setting to 0 will not allow for any retries. Not recommended for poor radio paths. 4.6.4 Number of TX only transmissions Under I/O mappings and Block mapping’s is an option for the WI-GTWY-9 to send messages as a Transmit only.
WI-GTWY-9-xxx Wireless Gateway V1.18 passed via a repeater it will buffer this message in a queue and then forward on and wait for ACK before it clears the buffer. If system is experiencing high radio message count and poor radio path creating number of retries, cases could exist that the buffers will empty. Enabling the Reset on Buffer Empty feature will reset the module and then continue to operate. 4.
WI-GTWY-9-xxx Wireless Gateway V1.18 The value of a discrete (digital) I/O point is stored in the WI-GTWY-9-xxx database as a hexadecimal ' 0000'(“off”) or hex ' FFFF'(“on”). However the WI-GTWY-9-xxx will respond with either a ‘0’ (“off”) or ‘1’ (“on”) to a digital read command from the Modbus master - these are commands 01 and 02.
WI-GTWY-9-xxx Wireless Gateway V1.18 Supported Exception Codes: Exception Name Code Description 01 Illegal function The module does not support the function code in the query 02 Illegal data address The data address received in the query is outside the initialized memory area 03 Illegal data value The data in the request is illegal 06 Busy Unable to process message 4.7.2 MODBUS Master If you use the WI-GTWY-9-xxx as a Modbus Master, then the host device/s will be Modbus Slave device/s.
WI-GTWY-9-xxx Wireless Gateway V1.18 not respond to the command, then the WI-GTWY-9-xxx will write a ‘FFFF’ value to one of its own registers, configured under “CF Register” - in this case it is register 4800. The “Command Type” selected is a write command (you can select read or write) - which means that the values are sent from the WI-GTWY-9-xxx to the Modbus Slave. The type of write command is a “Digital” write, meaning that the register values will be written as digital/binary values”.
WI-GTWY-9-xxx Wireless Gateway V1.18 The CF Register (“comms fail” register) acts as a digital alarm – the value of the register will normally be 0, and will be set to FFFF (hex) if the slave device does not positively respond to the serial command within Max Retries attempts. In the examples, the same CF Register (4327 – i.e. DOT8) has been used for both serial mappings, such that the local digital output will be activated if the slave fails to respond to either serial command.
WI-GTWY-9-xxx Wireless Gateway V1.18 signal will vary between 16384 (hex 4000) and 49152 (hex C000). A 0-20mA signal will vary between 8192 (hex 2000) and 49152 (hex C000). Pulse I/O Pulse counts from the remote WI-I/O 9-x modules are shown as a 16-bit register. When the register rolls over, from ‘FFFF’ (hex), the next value will be ‘0001’. The register will only have a value of ‘0000’ when the remote module starts up, and the previous count is lost. This value will indicate that the counter has reset.
WI-GTWY-9-xxx Wireless Gateway V1.18 device, and both devices will respond to commands from the other device. The WI-GTWY-9xxx can act as both a command initiator and a command responder. An Application Note and configuration files are available describing how to configure an AllenBradley PLC to communicate with a DF1 WI-GTWY-9-xxx. This is available from the Weidmuller, Inc. website www.weidmuller.
WI-GTWY-9-xxx Wireless Gateway V1.18 value, the new value will be transmitted to the remote WI-I/O 9-x on the radio network. Similarly, if the WI-GTWY-9-xxx receives a command to change a data value, the new value will be transmitted to the remote WI-I/O 9-x module. The DF1 commands are configured in the “Serial Mapping” screen. The serial port should be configured in the same way as the host device. If the WI-GTWY-9-xxx acts only as a command responder, no further configuration is required.
WI-GTWY-9-xxx Wireless Gateway V1.18 Discrete I/O The value of a digital I/O point is stored in the WI-GTWY-9-xxx database as a hexadecimal ' 0000' (“off”) or hex ' FFFF'(“on”). However the WI-GTWY-9-xxx will generate either a ‘0’ (“off”) or ‘1’ (“on”) to a binary file when initiating a “Typed Logical Write” command or responding to a “Typed Logical Read” command.
WI-GTWY-9-xxx Wireless Gateway V1.18 Note: If analog values are read to and written from an integer file in an SLC or Micrologix CPU, integer files contain 16 bit signed values. These represent values in the range -32768 to 32767. The data values from the WI-I/O 9-x modules are treated as 16 bit unsigned values. To convert the data from an analog input, move the data from the integer file to a long file (MOV command) then mask out the high 16 bits (MVM with mask value FFFF).
WI-GTWY-9-xxx Wireless Gateway V1.18 4.9 Fieldbus Configuration All WI-GTWY-9-xxx modules (except MD1) have separate internal hardware comprising the Fieldbus Interface, consisting of a separate microprocessor and appropriate hardware for the network connection. This Fieldbus Interface handles all fieldbus communications, and transfers I/O in the Fieldbus Interface Registers to/from the fieldbus.
WI-GTWY-9-xxx Wireless Gateway Radio Interface V1.18 Fieldbus Interface IN Area Profibus 244 Bytes Modbus/TCP 2048 Bytes Write from I/O Reg Ethernet/IP allows 6 input connections; each connection Max 512 bytes Read from Host Modbus Plus 2048 bytes DeviceNet 512 bytes 10,000 x 16-bit I/O Registers OUT Area Profibus 244 Bytes Modbus/TCP 2048 Bytes Read to I/O Reg Ethernet/IP allows 6 output connections; each connection Max 512 bytes Write from Host Modbus Plus 2048 bytes DeviceNet 512 bytes 4.9.
WI-GTWY-9-xxx Wireless Gateway V1.18 Several different configurable transfer modes are also available for fieldbus mappings to ensure the I/O is formatted according to the requirements of the particular fieldbus protocol or host device. The six possible types of Fieldbus Mapping are outlined in the table below.
WI-GTWY-9-xxx Wireless Gateway V1.18 transfer of digital I/O in cases where it is not desirable (or possible) to use a whole 16-bit register just to store a 0 or 1 value. 4.9.3 Endianess Endianness is the convention that two parties that wish to exchange information will use to send and receive this information if the information needs to be broken into smaller packets, i.e. data transmission, radio, etc.
WI-GTWY-9-xxx Wireless Gateway V1.18 For example Modbus/TCP areas start from location 1, but other fieldbuses may start at location 0. Note: • The Fieldbus Interface IN and OUT Area both number from 0 - that is, there is an input 0 as well as an output 0 (an offset may apply for some protocols).
WI-GTWY-9-xxx Wireless Gateway V1.18 Three Fieldbus Mappings are illustrated in the example above. Note that “Word Address Mode” is selected, meaning that the Fieldbus Interface IN and OUT Areas will be treated as wordaddressed arrays by configuration software. The parameters for each fieldbus mapping were setup using the mapping configuration screen as described above.
WI-GTWY-9-xxx Wireless Gateway V1.18 BIT transfer, that each individual bit in the Fieldbus Interface is transferred to an entire 16-bit I/O Register. Note also that there is a word-location 1 for both the Fieldbus OUT and IN areas. The third mapping is another “Read BIT” mapping, reading 8 bits from Fieldbus OUT Area word-location 1 to I/O Registers 4320 – 4327 (i.e. local DOT 1 – 8). Note here that we are again reading from Fieldbus OUT Area word-location 1 (as with the previous mapping).
WI-GTWY-9-xxx Wireless Gateway V1.18 A status location (4500) may be used to give the host device status information about the Fieldbus Interface. This register will be value 0x0000 if the Fieldbus Interface is “on-line” and communicating with the fieldbus, or value 0xFFFF if it is “off-line”. If you wish to use a status register, select the “Enable Status Location” box. This register could be mapped to a remote module or local output as an alarm. 4.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.11 Fieldbus Configuration - Profibus Master The WI-GTWY-9-xxx-PR2 implements a complete Profibus-DPV0/DPV1 master. The hardware is optimized for high throughput and can be used in mono or multi master networks up to 12 Mbit/s. Up to 125 slaves with a total max of 2048 byte input and 2048 byte output data can be connected. 4.11.1 GSD File Each device in a Profibus network is associated with a GSD file, containing all necessary information about the device.
WI-GTWY-9-xxx Wireless Gateway V1.18 the fieldbus interface for I/O on the Profibus network. I/O in the fieldbus interface must be linked with I/O in the radio interface via appropriate fieldbus mappings (see 4.8 Fieldbus Configuration above) for I/O transfer with the radio network. Configuration of the Profibus network is through the Profibus Network Config tab in WI Series Configuration Software.
WI-GTWY-9-xxx Wireless Gateway V1.18 configuration list). The above example shows a slave device being added to the network at node address 7. Slave Address To change the node address of a slave already configured on the network, locate the slave in the network listview and drag it to the position in the list corresponding to the desired address. Alternately, the slave address can be modified from the module properties page (see below).
WI-GTWY-9-xxx Wireless Gateway V1.18 Group Assignment If the slave supports sync/freeze functionality, it can be assigned to the masters sync/freeze groups by clicking on the checkboxes. The sync/freeze assignment of the groups is also displayed (these can be changed via the master properties dialog). Parameter Assignment A slaves user-specific parameters can be changed via the parameter assignment page.
WI-GTWY-9-xxx Wireless Gateway V1.18 Adding I/O to a Slave The possible I/O combinations for a given slave may be fixed or configurable (i.e. modular) depending on the GSD file for the device. When the I/O configuration is fixed, the fixed I/O are always defined whenever the device is added to the network. However, for modular devices, the I/O configuration must be assigned manually.
WI-GTWY-9-xxx Wireless Gateway V1.18 I/O modules may also have associated user parameter data defined by the corresponding GSD file. The meaning of these parameters (if applicable) is specific to the slave implementation, and may be altered via the Parameter Assignment tab of the Module Properties form. Configuration software also provides an additional I/O module to all slaves that is not defined in the GSD files, which is the Universal Module.
WI-GTWY-9-xxx Wireless Gateway V1.18 network. The User Defined profile allows the bus parameters to be manually configured for special network configurations and should only be used if the user is familiar with the individual Profibus parameters (see Bus Parameters Tab below). The storage format determines if word values are stored in big endian (Motorola – most significant byte has lowest address) or little endian (Intel – Least significant byte has lowest address) format.
WI-GTWY-9-xxx Wireless Gateway V1.18 Tqui The quiet time is the time a modulator needs after recognizing a send frame to switch from send to receive. 0 t_bit <= Tqui <= MIN(31 t_bit, Min. Tsdr - 1) Gap Factor The Gap Factor determines how many token rounds occur before a new active node (master) can be added to the token ring. 1 <= Gap Factor <= 100 Retry Limit The Retry Limits determines the number of attempts (repeated message frames) allowed to access a node.
WI-GTWY-9-xxx Wireless Gateway V1.18 This value can be set for multi master networks with the selected profile Multi Master. Delta Ttr is added to the calculated Ttr to increase the Ttr for using multiple masters in a network. 256 t_bit <= Ttr <= 16.776.960 t_bit Non-adjustable bus parameters Ttr The target rotation time determines the maximum available time for a token pass. During this time all active nodes (masters) obtain the token one time to send data.
WI-GTWY-9-xxx Wireless Gateway V1.18 Profibus Network Configuration Once the GSD file for the Profibus slave has been installed, the slave device can be added to the Profibus network (see Configuration section above). For this example, the slave is a modular device, therefore we add the necessary I/O modules to the slave.
WI-GTWY-9-xxx Wireless Gateway V1.
WI-GTWY-9-xxx Wireless Gateway V1.18 1) Radio Configuration To complete the configuration, the I/O that has now been transferred to the radio interface must be mapped over the radio network. The analog input from the slave is mapped to an analog output at a remote WI-I/O 9-x-1, the 8 x digital output at the Profibus slave will be activated in this example via appropriate mapping from 8 x digital input at a remote WI-I/O 9-x-4 (see below). 4.11.
WI-GTWY-9-xxx Wireless Gateway V1.18 In addition to cyclic data exchange with slave devices, the WI-GTWY-9-xxx Profibus Master also supports a number of acyclic services that may be triggered via a special Message Interface. The message interface is by default disabled, but will become enabled by also enabling a “Status Location” via the fieldbus configuration tab in configuration software.
WI-GTWY-9-xxx Wireless Gateway V1.18 Offset: Register: 0 Message ID 1 Message Information 2 Command Number 3 Data Size 4 Extended Word 1 5 Extended Word 2 6 Extended Word 3 7 Extended Word 4 8 Extended Word 5 9 Extended Word 6 10 Extended Word 7 11 Extended Word 8 12 Message Data ::: (up to 139 256 Bytes) Message ID The Message ID register contains a 16-bit integer identifier for the command.
WI-GTWY-9-xxx Wireless Gateway V1.
WI-GTWY-9-xxx Wireless Gateway I/O Register Purpose 4550 - 4689 Message IN Area (i.e. Messages to send to Profibus Interface) 4700 - 4839 Message OUT Area (i.e. Messages from Profibus Interface) 4850 - 4899 Spontaneous Message OUT Area (i.e. Alarm Messages from Profibus) 4900 – 4949 Spontaneous Alarm ACK IN Area (i.e. ACK to above) V1.
WI-GTWY-9-xxx Wireless Gateway V1.
WI-GTWY-9-xxx Wireless Gateway • V1.18 Control Command This parameter specifies the command to send.
WI-GTWY-9-xxx Wireless Gateway V1.18 Get Slave Diagnostics GET_SLAVE_DIAG: Command Number = 0004h This command reads diagnostic data from a specified slave. Note: The response data size depends on the actual slave implementation. Range 6 -244.
WI-GTWY-9-xxx Wireless Gateway • V1.18 Master Address Address of the master that parameterized the slave • Ident Number Unique ID assigned by the Profibus User Organization • Extended Diagnostic Data Slave user specific diagnostic data. Consult the documentation for the actual slave for further information. • Fault Information &Extended Fault Information If ‘Invalid Other ’is returned in the Message Information word in the header of the response, information about the fault can be found here.
WI-GTWY-9-xxx Wireless Gateway V1.18 Set Slave Address SET_SLAVE_ADDRESS: Command Number = 0006h This command makes it possible to set the node address of a specified slave, provided that the slave supports this feature. Note: The message data size depends on the actual slave implementation; range 0 -240 bytes.
WI-GTWY-9-xxx Wireless Gateway 00h: V1.18 Change of address is still possible at a later stage 01h-FFh: Change of address only possible after the initial address (i.e. default address = 126) • Error Code [1 ...4 ] If ‘Return Code ’ equals 8030h (‘Negative indication from lower layer ’), status values according to the DP-specification are available in ‘Error Code 1 ’. Error Codes 2 ...3 are reserved. (See "Return Codes" and "Error Codes" in section 4.10.5 below.
WI-GTWY-9-xxx Wireless Gateway V1.18 Get Live List GET_LIVE_LIST: Command Number = 0018h This command returns 127 bytes of information about the nodes on the network.
WI-GTWY-9-xxx Wireless Gateway V1.18 DPV1 Acyclic Read MSAC1_READ: Command Number = 0020h This command initiates a DPV1 Class 1 acyclic read request. Consult EN50170 (DPV1) for more information. Command and response layout: Command Response (ID) (ID) Message Information 4002h 0002h Command Number 0020h 0020h Data Size 0000h (Size of data) Message ID Extended Word 1 Slave Add Slot No. Slave Add Slot No.
WI-GTWY-9-xxx Wireless Gateway • V1.18 Data [1 ...n] Returned data • Return Code See "Return Codes" in section “DP Error Codes ” below. • Fault Information If ‘Invalid Other ’is returned in the Message Information word in the header of the response, information about the fault can be found here. • 0001h: Address out of range 000Ah: Failed to execute MSAC1_Alarm_Ack request 000Bh: Remote station failure 0010h: Remote Station DPV1 Failure (see ‘Error Decode’ below).
WI-GTWY-9-xxx Wireless Gateway V1.18 DPV1 Acyclic Write MSAC1_WRITE: Command Number = 0021h This command initiates a DPV1 Class 1 acyclic write request. Consult EN50170 (DPV1) for more information. Command and response layout: Command Response (ID) (ID) Message Information 4002h 0002h Command Number 0021h 0021h (Size of data) (Size of data) Message ID Data Size Extended Word 1 Slave Add Slot No. Slave Add Slot No.
WI-GTWY-9-xxx Wireless Gateway • V1.18 Data [ 1 ...n ] Data that should be written. • Fault Information If ‘Invalid Other ’is returned in the Message Information word in the header of the response, information about the fault can be found here. • 0001h: Address out of range 000Ah: Failed to execute MSAC1_Alarm_Ack request 000Bh: Remote station failure 0010h: Remote Station DPV1 Failure (see ‘Error Decode’ below).
WI-GTWY-9-xxx Wireless Gateway V1.18 Alarm Indication MSAL1_ALARM_IND: Command Number = 0022h This message indicates that a DPV1 slave has transferred an Alarm message to the master. This message is sent spontaneously by the WI-GTWY-9-xxx, i.e. the module itself initiates the message instruction in the “Spontaneous Message OUT Area” (see “Message Interface Addressing” above). Detailed information about the alarm cause is presented in extended words 1-3 and the message data field, see below.
WI-GTWY-9-xxx Wireless Gateway V1.18 Range 0 -254 • Seq Number Unique identification number of the alarm. Range 0 -31 • Alarm Spec Ack Gives additional information about the Alarm, such as an error appears, or disappears. It also indicates whether the slave needs additional acknowledge from the Master (Example: Writing to a certain memory area with an Acyclic Write request). Range 0 -7 • Alarm Type Identifies the alarm type, such as Process Alarm, Plug Alarm etc.
WI-GTWY-9-xxx Wireless Gateway V1.18 Alarm Confirmation FB_ABM_MSAL1_ALARM_CON: Command Number = 0023h This message indicates that a slave has confirmed a previous MSAC1_Alarm_Ack, see “Alarm Indication (MSAL1_ALARM_IND)” above. This message is sent spontaneously by the WIGTWY-9-xxx, i.e. the module itself initiates the message instruction in the “Spontaneous Message OUT Area” (see “Message Interface Addressing” above).
WI-GTWY-9-xxx Wireless Gateway • V1.18 Alarm Spec Ack Gives additional information about the Alarm, such as an error appears, or disappears. It also indicates whether the slave needs additional acknowledge from the Master (Example:Writing to a certain memory area with an Acyclic Write request) Range 0 -7 • Alarm Type Identifies the alarm type, such as Process Alarm, Plug Alarm etc.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.11.6 DP Return Codes Possible DP error codes in Message Data word ‘Return Code ’ Return Name Code Meaning 8010h DPMC_ERR_V1C_CLOSED Internal DPMC instance no longer exists.
WI-GTWY-9-xxx Wireless Gateway V1.18 Error Codes If return code indicates ‘DPMC_ERR_V1C_REQ_NEG ’, the status values according to the DPstandard may be available in ‘Error Code 1 ’ (See below). Consult the Profibus DP specification for information on how to interpret these status values.
WI-GTWY-9-xxx Wireless Gateway V1.
WI-GTWY-9-xxx Wireless Gateway 4.12 V1.18 Fieldbus Configuration - Ethernet The WI-GTWY-9-xxx provides the following Ethernet functionality: 1. Modbus/TCP. The module supports the Modbus/TCP protocol and conforms to the Modbus/TCP specification 1.0 (full information on this protocol can be obtained from http://www.modicon.com/openmbus/index.html). Refer to section 4.12.2 below for configuration details. 2. EtherNet/IP.
WI-GTWY-9-xxx Wireless Gateway V1.18 255) separated by periods, where each integer represents the binary value of one byte in the IP address. This is called dotted-decimal notation. Example: 169.254.100.175 Subnet Mask An IP Address is divided into two main parts subnet ID and host ID. All devices on the same local network must have the same subnet ID, but a unique host ID. To separate these two parts a subnet mask is used.
WI-GTWY-9-xxx Wireless Gateway V1.18 amount of time, the WI-GTWY-9-xxx will timeout and disconnect that connection. Note that there can be several active connections at the same time - only the inactive connection will be disconnected. Enable Ethernet Debug Select this box if you wish to enable Ethernet Diagnostics on the WI-GTWY-9-xxx via configuration software (see section 6.3 for details).
WI-GTWY-9-xxx Wireless Gateway V1.18 Modbus/TCP Addressing The IN and OUT areas of the Ethernet interface are addressed under Modbus/TCP according to the tables below. Since Modbus uses a 16-bit format, “Word (16-bit) Address Mode” will be automatically applied whenever the “Modbus/TCP” checkbox is checked. If Ethernet/IP is also enabled, the “Disable I/O Instance” option must be selected for each fieldbus mapping to which Modbus/TCP Addressing is to apply.
WI-GTWY-9-xxx Wireless Gateway V1.18 WI-GTWY-9-ETH1 #1 Appropriate Modbus prefixes may need to be added to the Modbus Address depending on the host device. For example, a “word write” fieldbus mapping in the WI-GTWY-9-xxx to Modbus location 10, can be read by a host device as 30010 (30000 for an input register + 10 as the address).
WI-GTWY-9-xxx Wireless Gateway V1.18 locations 16385 – 16392 into I/O registers 4300 – 4307 (DOT 1-8). The Modbus/TCP host device would write to these as Modbus addresses 016385 – 016392 (using the 0x prefix to denote output coils). Connect Timeout The Connect Timeout parameter in the Modbus TCP section of the display refers to the Modbus TCP functionality of the module.
WI-GTWY-9-xxx Wireless Gateway V1.18 WI-GTWY-9-ETH1 #5 the required I/O registers to the Fieldbus Interface, as described above in the Profibus and Modbus/TCP sections. An “I/O Instance” for each fieldbus link must also be specified so that the configured I/O data is made available to one of the six possible Ethernet connections. In this example, 40 I/O Registers (80 bytes) are transferred to I/O Input Instance 1 (i.e. Ethernet connection 1).
WI-GTWY-9-xxx Wireless Gateway V1.18 Assembly Object, Class 04h The Assembly Object binds all mapped I/O data. This data is used for I/O connections. This object is set-up dynamically via fieldbus mappings through configuration software.
WI-GTWY-9-xxx Wireless Gateway V1.18 I/O Data Input Mapping Object, Class A0h This object is setup dynamically via fieldbus read mappings through configuration software. This data is also available as vendor specific Instance Attributes (64h to 69h) in the Assembly Object.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.13 Fieldbus Configuration – DeviceNet 4.13.1 DeviceNet Introduction DeviceNet is a broadcast-oriented communications protocol based on the Controller Area Network (CAN). The physical fieldbus is a shielded copper cable composed of one twisted pair and two cables for the external power supply. The baud rate can be changed between 125k, 250k, and 500kbit/s via Configuration Software or DIP-switch.
WI-GTWY-9-xxx Wireless Gateway V1.18 Each device in a DeviceNet network is associated with an EDS file, containing all necessary information about the device. This file is used by the network configuration tool during network configuration. The EDS file can either be downloaded from the Weidmuller, Inc. website, or found on the Product CD supplied with the module. 4.13.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.14.2 Modbus Plus Addressing Modbus Plus node addressing can be set using switches or via configuration software. To use the switch address settings, the “Enable Switch Address” option in configuration software must be selected, otherwise switch settings are ignored. NOTE – software address configuration is the recommended option if use of the GDB Offset and Count parameters is required (see section 4.11.4).
WI-GTWY-9-xxx Wireless Gateway V1.18 The WI-GTWY-9-xxx Modbus Plus supports the following exception responses: - (0x01) Illegal function for the addressed slave - (0x02) Illegal data address within the information field for the addressed slave - (0x03) Illegal data value in the information field for the addressed slave The WI-GTWY-9-xxx Modbus Plus supports up to 1024 words of output data and 1024 words of input data.
WI-GTWY-9-xxx Wireless Gateway V1.18 Count” parameters. In the above example, the values of the Offset = 0 and Count = 32, indicating that the entire 32 word Global Data broadcast from the Source Unit will be read into fieldbus interface registers 41025 – 41056. Other nodes on the network can write to the remaining registers (41057 – 41072) only by using the Modbus point-to-point Write Register commands described in section 4.14.3.
WI-GTWY-9-xxx Wireless Gateway V1.18 Serial expansion modules can be connected to the RS485 port of all WI-GTWY-9 units except for the WI-GTWY-9-MD1 unit. If Serial Expansion modules are required to connect to an MD1 then it it can only be done under the following circumstances. • If the WI-GTWY is configured as a “Repeater-only” under the Protocol selection . • IF the Serial expansion module is setup as a Modbus Slave and the the Gateway module is a MD1 Master.
WI-GTWY-9-xxx Wireless Gateway V1.18 4.16 Access to Message Buffer Count The number of messages in buffers is stored in I/O registers for access from the data bus. This provides a powerful diagnostics feature for troubleshooting busy systems. The number of “free” messages is also provided - this is the amount of space available in the message buffers. I/O Reg Description 4350 – Number of Free COS (change-of-state) messages (max.
WI-GTWY-9-xxx Wireless Gateway Chapter 5 General WI-I/O 9-x Radio standards V1.18 SPECIFICATIONS FCC Part 15A, Part 15.247 902 – 928 MHz, 1W WI-I/O-1-x Radio standards FCC Part 90, Part 15, RSS- 380 – 520 MHz, 12.5 / 25KHz, 0.5 – 119 5W Housing 130 x 185 x 60mm DIN rail mount Refer section 5.1 for dimensioned drawing Powder-coated, extruded aluminium Terminal blocks Removable Suitable for 12 gauge / 2.
WI-GTWY-9-xxx Wireless Gateway V1.18 Normal Current Drain at 24VDC WI-GTWY-9-xxx-MD1 WI-GTWY-9-xxx-other 90 mA 170 mA add 3mA per active I/O Radio transmitter inrush WI-I/O 9-x 350mA @ 13.8VDC; 250mA @ 24VDC 450mA @ 13.8VDC (0.5W) 600mA @ 13.8VDC (1W) 800mA @ 13.8VDC (2W) 1.25A @ 13.
WI-GTWY-9-xxx Wireless Gateway Data transmission rate V1.18 WI-I/O 9-x 105U 19200 b/s 9600 b/s (12.5KHz); 19200 b/s (25KHz) RS232 Port DB9 male DCE RTS/CTS hardware signals provided RS485 Port 2 pin terminal block Typical distance 1 - 2 km Data rate (bit/sec) configurable 50, 75, 150, 300, 600, 1200, 2400, 4800, 9600, 19200 Byte format 7 or 8 data bits Stop/start/parity bits configurable Optically isolated Autobaud detection 9.
WI-GTWY-9-xxx Wireless Gateway Chapter 6 V1.18 DIAGNOSTICS Bfore installing a new system, it is always best to set up the system on a bench to test the system configuration. It is always easier to detect problems when the modules are together. After installation, test the radio paths, using the radio strength testing function described later in this section. Record the radio strength and background noise measurements for later reference (refer section 6.2.2 for this feature).
WI-GTWY-9-xxx Wireless Gateway V1.18 are only used for simple radio tests such as “RSSI Measurement” or “Tone Reversals”. The online diagnostics provide more powerful debugging features such as access to the internal I/O Registers and Radio Communications Monitoring while the module is running (i.e. online). When the configured protocol driver uses the shared RS232/485 port (i.e.
WI-GTWY-9-xxx Wireless Gateway V1.18 • Put the WI-GTWY-9-xxx into configuration mode by pressing the small pushbutton switch in the end plate of the module for 5 seconds (as per section 4.9) until the ACT LED flashes then release (then the ACT is off and the Serial TX LED flashes once every second); • Type ‘m’ in the terminal window to get the off-line diagnostics menu. The module will stop normal operations and a menu like the following will appear on the PC screen for all WI-GTWY-9-xxx versions.
WI-GTWY-9-xxx Wireless Gateway V1.18 for the measured values to continually change - the radios are continually changing frequency. Calculate the best average for both the noise and signal. For reliable operation, the average signal strength should be better than –98dBm (that is, 90dBm, not –100dBm) provided the average background noise is less than –108dBm (between – 108 and –130 dBm).
WI-GTWY-9-xxx Wireless Gateway • V1.18 For Ethernet, Profibus, Modbus Plus, or DeviceNet protocol drivers, simply press "Enter" to display the menu. If the module was previously in configuration mode or the offline menu, then first reset power to the module. A menu like the following will appear on the PC screen for the all models, however WI-GTWY Debug Menu V1.42 16:46:22 Jun 10 2003 Modbus/DF1 model will not have options h) through k).
WI-GTWY-9-xxx Wireless Gateway V1.18 40 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 Note that I/O Image locations are specified in decimal, whereas register values are displayed and specified in hexadecimal. If you want the WI-GTWY-9-xxx to stop the host device writing values to the I/O database at the same time, then select option i) Disable Fieldbus Write Area. Press “Enter” to go back to the menu.
WI-GTWY-9-xxx Wireless Gateway V1.18 You can display the register values in Decimal by selecting “Dec” at the bottom of the screen. If you select “Dig”, the values will be displayed as a 0 or 1 digital value (1 if the 16-bit value is greater than 50% - that is, the most significant bit is 1). If you select “Anlg”, the value will be displayed as a 4-20mA range. To stop the decoding of “comms logging”, select the “Stop Comms” button.
WI-GTWY-9-xxx Wireless Gateway V1.18 address these messages will not be displayed if you choose this option. This option is useful where there is more than one system in the same area so that only the radio messages relevant to the desired system will be displayed. Option g) Display Configured Protocol Driver This option displays the configured Protocol Driver for this unit e.g.
WI-GTWY-9-xxx Wireless Gateway V1.18 To write to a register double click with mouse on the register and a pop up box will appear as shown below. Enter value and press ‘OK’. You can disable the links between the I/O registers and the Ethernet interface by selecting “Disable Read Area” and “Disable Write Area” - if you do this, remember to re-enable before you leave the diagnostics screen. Settings You can change your TCP Connection setting i.e. IP address and port.
WI-GTWY-9-xxx Wireless Gateway V1.18 6.4 Fieldbus Indicating LEDs All WI-GTWY-9-xxx modules (except MD1) are equipped with four fieldbus indication LED' s located in the module end plate, used for diagnostics purposes. The meaning of the LED’s for each fieldbus is described below. 6.4.1 Ethernet Indicating LED’s The WI-GTWY-9-ET1 module can communicate Modbus TCP or EtherNet IP based protocols. The LED sequence will vary depending on Protocol being used and Ethernet Board firmware.
WI-GTWY-9-xxx Wireless Gateway 6.4.2 V1.18 Profibus Slave Indicating LED’s LED No Indication Description 1 - Not Used 2 Green Module is On-Line and data exchange is possible. 2 Off Module is not On-Line 3 Red Module is Off-Line and no data exchange is possible. 3 Off Module is not Off-Line 4 Flashing Red 1 Hz Error in configuration: IN and/or OUT length set during initialization of the module is not equal to the length set during configuration of the network.
WI-GTWY-9-xxx Wireless Gateway 6.4.3 V1.18 Profibus Master Indicating LED’s LED No Indication Description 1. Master Status Green Operate mode Green, flashing Clear mode 2. Database Status Red Stop mode Off Offline Green Database OK Green, flashing Database download in progress 3. Communication Status 4.
WI-GTWY-9-xxx Wireless Gateway 6.4.4 V1.18 Modbus Indicating LED’s LED No Indication Description 1 - Not Used 2 Active Red ERROR; This LED indicates that communication is not OK. 3 Green 4 Active Green MBP Active; This LED flashes in different patterns depending on the module’s health (see below). Flash every 160 ms; on 80ms, then off 80 ms. Normal operation, the node is receiving and passing token. Flash every 1 s: This node is in MONITOR_OFFLINE state.
WI-GTWY-9-xxx Wireless Gateway 6.4.5 V1.18 DeviceNet Indicating LED’s LED No Color State Description 1 - - Reserved for future use 2 - Off Not powered / Not online 2 Green Steady Link OK, On line, Connected 2 Green Flashing On line, Not connected 2 Red Flashing Connection timeout 2 Red Steady Critical link failure 2 Green/Red Flashing Power on self-test.
WI-GTWY-9-xxx Wireless Gateway V1.18 Configure the modules to the same system address, and on each module, configure DI1 to DO2 on the other module. At the fixed module, wire DO2 to DI1 such that DI1 will turn ON when DO2 turns ON. Connect a switch to DI1 on the mobile unit. When the modules are close to each other, test the system - close the switch, forcing the mobile unit to transmit.
WI-GTWY-9-xxx Wireless Gateway V1.18 1. Increasing the height of the antenna at either module, or at both modules can significantly improve the result. Sometimes moving the antenna to the side helps, if there is an obvious obstruction in the radio path. 2. Change one or both antennas to a higher gain if regulations allow. 3. Use a shorter coaxial cable between the antenna and the WI-I/O 9-x.(this may involve moving WI-I/O 9-x nearer to antenna mounting), or use a different coaxial cable with lower loss.
WI-GTWY-9-xxx Wireless Gateway V1.18 system address only or “No” for all System addresses. 11. Tick the “Time stamps” option and then select “Log to File” and type in the name of the log file. 12. From now on everything that is received will be logged to this file with a time stamp. 13. The data frames can be decoded by selecting a message and then viewing the panel below the Terminal windows. (See Below).
WI-GTWY-9-xxx Wireless Gateway V1.18 should now see “Type ‘m’ for menu......” press “m” and a Configuration Menu will appear. 5. From this menu type the letter corresponding to “Initialize and Enter Debug Menu” on the menu. (It may be different for some versions). This will then display a “Debug Menu” 6. From this menu type the letter corresponding to “Enable Comms Logging”. (Again it may be different on some versions). 7.
WI-GTWY-9-xxx Wireless Gateway V1.18 To check firmware version 1. Start W-Series Configuration Utility and open up the appropriate project. 2. Select from the module you wish to monitor comms at. 3. Press the “Diagnostic” button on the right hand side of the configuration screen and a new window will open headed “Communications Log”. 4. Hold down the indented black button (on the end of the module) until the ACT LED flashes (about 5 seconds), release button and you should now see “Type ‘m’ for menu......
WI-GTWY-9-xxx Wireless Gateway Chapter 7 V1.18 WARRANTY We are pleased that you have purchased this product. Weidmuller, Inc. products are warranted to be free from manufacturing defects for the “serviceable lifetime” of the product. The “serviceable lifetime” is limited to the availability of electronic components. If the serviceable life is reached in less than three years following the original purchase from Weidmuller, Inc. , Weidmuller, Inc.
WI-GTWY-9-xxx Wireless Gateway User Manual Appendix 1 Status Registers I/O Status Registers 5000 - 9499 Bit Information Meaning 15 Communications failure For inputs, this bit is set (“on”) if no message has been received from the remote address within the timeout period configured for this input. The bit is reset ("off") when a message is received. For outputs, this bit is set (“on”) if transmission to the remote was unsuccessful after five attempts.
Appendix 1 Bit Information Meaning 15 Communication s failure For read commands – Read Bits and Read Words – This bit is set if no response is received to the read command after a timeout, or if a communication fail response is received to a read. For Write Commands this bit is set if a communication failure response is received to the write command. For a Poll command, this bit should not be set. 14 Startup This bit is set initially, and remains set until the first time the command executes.
WI-GTWY-9-xxx Wireless Gateway Appendix 2 User Manual IT Functionality WI-GTWY-9-xxx-ET1 Ethernet module only Filesystem The filesystem is a fixed-size storage area with a hierarchical directory structure. Any user- or application data can be stored in files within the filesystem. Files can be grouped in directories for increased readability. The filesystem features two security levels. Depending on security level, different users can have access to different files and directories.
Appendix 2 • IT Functionlity Admin Mode Admin users have full access to the filesystem through FTP and Telnet. This enables the user to access areas of the filesystem that are restricted or inaccessible in Normal mode. The Admin user accounts are defined in the file ‘ad_pswd.cfg’. If no admin password file (See “System Files”) is found or Admin Mode is set by configuration software, the module will run in Admin Mode; i.e. all users will have Admin access rights.
WI-GTWY-9-xxx Wireless Gateway User Manual web_accs.cfg To protect a directory from web access, a file called ‘web_accs.cfg’ must be placed in the directory to protect. This file shall contain a list of users that are allowed to browse the protected directory and its subdirectories. Multiple of these password files may be present in the system, allowing different users to access different files and directories. The file format is the same as for the ‘ad_pswd.cfg’ and ‘sys_pswd.
Appendix 2 IT Functionlity 10.10.12.* [All] *.*.*.* The above example will allow all IP addresses beginning with 10.10.12 to access all protocols in the module. Addresses beginning with 10.10.13 will be able to access the web server, but not the FTP and Telnet servers. The Modbus/TCP and Ethernet/IP servers will accept connections from any IP address. The contents of this file can be redirected by placing the line ‘[File path]’ on the first row, and a file path on the second.
WI-GTWY-9-xxx Wireless Gateway User Manual NOTE: In the current firmware implementation “IP Address”, “Subnet Mask”, “Gateway Address”, and “SMTP Address” will always be overridden by the values used in configuration software (i.e. those values cannot be set by writing to this file). The contents of this file can be redirected by placing the line ‘[File path]’ on the first row, and a file path on the second. This procedure is exactly the same as with the system file “ip_accs.cfg” (see above).
Appendix 2 IT Functionlity Virtual File System The module also contains a virtual file system containing a set of files used to build the default configuration webpage. The virtual file system can be overwritten or disabled, but not erased; A file with the same name in the file system replaces the file in the virtual file system until it is removed. The entire virtual file system can be disabled using configuration software on the Ethernet Settings page.
WI-GTWY-9-xxx Wireless Gateway User Manual This function returns the currently used IP address. DisplaySubnet Syntax: --#exec cmd_argument=’DisplaySubnet’--> This function returns the currently used Subnet mask DisplayGateway Syntax: --#exec cmd_argument=’DisplayGateway’--> This function returns the currently used Gateway address DisplayDNS1 Syntax: --#exec cmd_argument=’DisplayDNS1’--> This function returns the address of the primary DNS server.
Appendix 2 IT Functionlity This function returns the username used for SMTP authentication. DipslaySMTPPswd Syntax: --#exec cmd:argument=’DisplaySMTPPswd’--> This function returns the password used for SMTP authentication. GetText (Note - This function cannot be used within email messages) Syntax: --#exec cmd arbgument=’GetText( "ObjName", OutWriteString ( offset ), n )’--> This SSI function gets the text from an object and stores it in the OUT area. ObjName - Name of object.
WI-GTWY-9-xxx Wireless Gateway • • User Manual A number, the precision, that specifies the maximum number of characters to be printed from a string, or the number of digits to be printed after the decimal point for e, E, or F conversions, or the number of significant digits for g or G conversion, or the minimum number of digits to be printed for an integer (leading 0s will be added to make up the necessary width) A length modifier h, l, or L.
Appendix 2 IT Functionlity The arguments that can be passed to the SSI function printf are: Argument Description InReadSByte(offset) Reads a signed byte from position offset in the IN area InReadUByte(offset) Reads an unsigned byte from position offset in the IN area InReadSWord(offset) Reads a signed word (short) from position offset in the IN area InReadUWord(offset) Reads an unsigned word (short) from position offset in the IN area InReadSLong(offset) Reads a signed longword (long) from posi
WI-GTWY-9-xxx Wireless Gateway User Manual Character Input data, Argument Type d Decimal number; byte, short i Number, byte, short. The number may be in octal (leading 0(zero)) or hexadecimal (leading 0x or 0X) o Octal number (with or without leading zero); byte, short u Unsigned decimal number; unsigned byte, unsigned short x Hexadecimal number (with or without leading 0x or 0X); byte, short c Characters; char*. The next input characters (default 1) are placed at the indicated spot.
Appendix 2 IT Functionlity This SSI function saves the contents of a passed form to a file. The passed name/value pair will be written to the file "File name" separated by the "Separator" string. The contents can either be Appended to the file or overwrite the current content of the file. Default output: Success - Form saved to file Failure - Failed to save form Web Server The module features a complete web server with SSI functionality.
WI-GTWY-9-xxx Wireless Gateway Parameter User Manual Description Area Source Fieldbus Interface Area. Possible values are ‘IN’ or ‘OUT’ Offset Source offset in Fieldbus Area, shall be written in decimal or hexadecimal. Type Source data type. Possible values are ‘byte’, ‘word’, and ‘long’ Match Value Value to compare with the source data. Shall be written in decimal or hexadecimal.
Appendix 2 IT Functionlity Note: If the [Register] or [Register match] information is changed, a reset is required for changes to take effect. Other changes will take effect directly without a reset. Note: Hexadecimal values must be written in the format 0xN where ‘N’ is the hexadecimal value. SSI in Email Messages For predefined emails it is possible to include data in the mails. This is done in a similar way as data is added to web pages with SSI includes.
WI-GTWY-9-xxx Wireless Gateway User Manual help Syntax: help [general|diagnostic|filesystem] version This command will display version information, serial number and MAC ID exit This command closes the Telnet session.
Appendix 2 IT Functionlity Syntax: cd [path] Changes current directory. format Formats the filesystem. This is a privileged command and can only be called in administration mode. del Syntax: del [[path][filename]] Deletes a file. ren Syntax: ren [[path][old name]] [[path][new name]] Renames a file or directory. move Syntax: move [[source path][source file]] [[destination path]] This command moves a file or directory from the source location to a specified destination.