Advertisement

Quick Links

I/O Controller 2 Manual
HW group
I/O Controller 2
MANUAL
www.HW-group.com
1/ 42

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the I/O Controller 2 and is the answer not in the manual?

Questions and answers

Summary of Contents for HW Group I/O Controller 2

  • Page 1 I/O Controller 2 Manual HW group I/O Controller 2 MANUAL www.HW-group.com 1/ 42...
  • Page 2: Safety Information

    I/O Controller 2 Manual HW group Safety information The device complies with regulations and industrial standards in force in the Czech Republic and the European Union. The device has been tested and is supplied in working order. To keep the device in this condition, it is necessary to adhere to the following safety and maintenance instructions.
  • Page 3: Basic Features

    HW group I/O Controller 2 Ethernet – RS-232/485 + inputs and outputs I/O Controller 2 is an Ethernet-enabled device with 8 digital inputs, 8 digital outputs and a RS-232/485 serial interface. All interfaces are accessible over TCP/IP using a M2M protocol.
  • Page 4: Technical Specifications

    I/O Controller 2 Manual HW group Technical specifications RS-232 serial port + Data bits 7 or 8 or 9 + Stop bits, parity 1 or 2, None / Odd / Even / Mark / Space parity 50..115.2 kBd – entire range...
  • Page 5 I/O Controller 2 Manual HW group www.HW-group.com 5/ 42...
  • Page 6: Connector Pinout

    I/O Controller 2 Manual HW group Connectors Connector pinout RS-232 Port Signal 1 <- 2 <- Power LINK 3 -> 4 -> 5 -- RS-485 Port 6 <- 7 -> Signal 8 <- + (A>B) 9 <- Cannon 9 - Male www.HW-group.com...
  • Page 7 I/O Controller 2 Manual HW group DIP 1 DIP 2 Function RS-232 Setup mode (9600 8N1) Ethernet is disabled Serial port in the RS-232 mode Serial port in the RS-485 mode check the &R and &H parameters (recommended: &R3 &H1) LEDs: Power –...
  • Page 8 I/O Controller 2 Manual HW group Digital Inputs & Outputs wiring GND – device ground. • PWR – device power (max. 200 mA). • The device can be powered from barrel power connector (front panel) or from the I/O connector PWR + GND pins (200 mA internal fuse = suitable only for testing purposes).
  • Page 9: Quick Setup

    I/O Controller 2 Manual HW group Quick SETUP Connecting the cables • Connect the supplied power adapter to an electrical outlet. • Set DIP1 and DIP2 to OFF. • Connect the device to the Ethernet. • Connect the power adapter to the power connector at the device.
  • Page 10 I/O Controller 2 Manual HW group Configuring the device over WWW In the UDP Setup tab, click the correct MAC address and press Open in the WEB browser. Default login: ▪ admin ▪ 1234 You need to log in to access the configuration.
  • Page 11 I/O Controller 2 Manual HW group Setting up the device using TCP Setup • Change to the “TCP Client” tab and enter the configured IP address. Set the TCP Port to 99. • Click “Connect”. The listing on the left displays the “WEB51>” prompt. Click inside this pane and press ENTER.
  • Page 12 I/O Controller 2 Manual HW group Quick control of inputs and outputs This chapter shows how to read a digital input and set a digital output to a desired value. We assume that a test board supplied with device samples is used.
  • Page 13 I/O Controller 2 Manual HW group Setting up the device – Frequently Asked Questions • Ethernet no longer works but LINK is lit. Perhaps the device was left in the “RS-232 Setup” mode that is activated by setting DIP1 = ON? In this mode, the Ethernet does not respond.
  • Page 14 I/O Controller 2 Manual HW group HW VSP – virtual serial port Virtual serial port driver is a software tool that adds a virtual serial port (e.g. COM5) to the operating system and redirects data from this port via the Ethernet network to another hardware interface.
  • Page 15 I/O Controller 2 Manual HW group HW VSP settings TEA Key pane You can use TEA authentication to secure TCP/IP access. The same TEA key must be set and enabled at both sides of the communication. NVT pane Enables RFC2217 and detection of our remote ports. Remember to activate NVT support on the remote device as well.
  • Page 16 I/O Controller 2 Manual HW group I/O Controller configuration – Command description The description of the settings combines WWW-based configuration and TCP/serial setup. Some functions are only available in serial/TCP setup (TEA security settings, QUIT mode). I/O Controller status page Shows an overview of the basic device parameters.
  • Page 17 I/O Controller 2 Manual HW group Network parameters + TCP Setup Mode www.HW-group.com 17/ 42...
  • Page 18 I/O Controller 2 Manual HW group www.HW-group.com 18/ 42...
  • Page 19 I/O Controller 2 Manual HW group MAC Address 00:0A:59:00:95:6C MAC address is a unique device address in the Ethernet network and it is always factory-preset. You can find it on the label inside the device. Using this address, individual devices can be distinguished for example in the UDP section of the setup program.
  • Page 20 I/O Controller 2 Manual HW group ====== Out IP Setup ====== S: Send to IP 192.168.0.252 Port configuration in UDP mode U: Port When UDP communication is If the address in the S option is different from 0.0.0.0, the I/O used, the remote address must be specified here.
  • Page 21 I/O Controller 2 Manual HW group T: IP mode Switches between the TCP and UDP protocols. UDP communication is faster but prone to lost packets or out-of-order delivery; therefore, it is only suitable for communication on a local network segment in a request-response mode, usually to convert RS485 communication.
  • Page 22: Serial Port Parameters

    I/O Controller 2 Manual HW group Serial port parameters ====== Serial Setup ====== &B: Speed 9600 Sets the communication speed for the serial line. Any speed from 50 to 115,200 Bd can be set. To set 9600 Bd, enter “&B9600”. The resolution depends on the speed. Up to about 1000 Bd, 1 Bd steps can be used.
  • Page 23 I/O Controller 2 Manual HW group &P: Parity NONE Parity of the serial asynchronous communication. For example, to configure communication without parity, enter “&PN”. N: none / O: odd / E: even / M: mark / S: space &V: Variable Parity Parity Supplemental function for 9-bit protocols.
  • Page 24 I/O Controller 2 Manual HW group &I: RS485/RS422 control Off For RTS or downstream RS485 converters that use RTS to toggle transmission/reception. For the built-in RS-485 driver, the “HW echo” option applies, meaning that the device reads back the data sent to the RS- 485 line and generates an echo from the actual RS-485 bus.
  • Page 25 I/O Controller 2 Manual HW group Configuring the control of inputs and outputs TCP/IP mode needs to be configured and NVT (Network virtual terminal) enabled in order to work with the digital inputs and outputs. Otherwise, the commands are not even displayed.
  • Page 26 I/O Controller 2 Manual HW group ======= I/O Control Setup ======= #T: Trigger AND mask Defines inputs whose changes are automatically transmitted to the remote side (IP address S=X.X.X.X and port U) and synchronized with its outputs, if they change.
  • Page 27 I/O Controller 2 Manual HW group #A: Power Up INIT A decimal value from 0 to 255 that is written to the output register after device reset (or power failure), before the I/O Controller attempts to establish a connection with the remote unit and synchronize their digital inputs and outputs.
  • Page 28 I/O Controller 2 Manual HW group Data synchronization in normal operation: OUTPUT = ((PrevOut AND #X) OR (RxData AND #Y) OR #Z) XOR #W - PrevOut = previous output state - RxData = received remote data Note: The previous formula is only used when two I/O Controllers are connected to each other back-to-back.
  • Page 29: Setup Examples

    I/O Controller 2 Manual HW group Periodic data synchronization in normal operation: Output = ((PrevOut AND #K) OR (RxData AND #L) OR #M) XOR #N - PrevOut = previous output state - RxData = received remote data Keep I/O – (#K, #L, #M, #N parameters) – I/O Controller periodically sends the states of its inputs to the remote side.
  • Page 30 I/O Controller 2 Manual HW group I/O TCP/IP Connection Umožní nastavit výstupy při ztrátě či obnovení TCP spojení do požadovaného stavu #1 AND mask for Opened TCP Connection #2 OR mask for Opened TCP Connection #3 XOR mask for Opened TCP Connection...
  • Page 31 I/O Controller 2 Manual HW group ------- I/O control ------- #E: GPIO control from UDP #J: Port When enabled, commands to change output states can be sent to the I/O Controller over UDP as well as over TCP. #J defines the UDP port where the I/O commands need to be sent.
  • Page 32: Change Password

    I/O Controller 2 Manual HW group 0: Restores settings from slot 1 1: Restores settings from slot 2 2: Stores current settings to slot 1 3: Stores current settings to slot 2 R: Reboot Software restart. Necessary e.g. when the IP address is changed. Recommended after changing parameters in TCP Setup.
  • Page 33 I/O Controller 2 Manual HW group UDP/IP mode settings When “T: IP mode UDP” is chosen, the device will communicate with the remote party using UDP packets. Also, the following menu appears in the Setup. www.HW-group.com 33/ 42...
  • Page 34 I/O Controller 2 Manual HW group ==== Trigerring Setup ===== *L: Trigger Length Number of bytes for the packet start and packet end triggering condition. Allowed values are 0 to 4. If the lengths of your start and end conditions differ, use the trigger condition mask and remember to include the masked characters in the length of the triggering condition, even though they contain actual frame data.
  • Page 35 I/O Controller 2 Manual HW group Parameters unavailable in the WWW interface Security ===== Security Setup ====== 0: TEA authentication Off %A: TCP autorisation 1: TEA authentication On Activates TEA authentication (one-time exchange and password verification to allow the TCP connection to be established) – requested from the remote side after the connection is established.
  • Page 36 I/O Controller 2 Manual HW group What's new in the WEB interface IO Control – Read inputs and control outputs Outputs can be controlled either by entering a decimal value 0–255 corresponding to the output states, or by toggling the switches at the WWW page.
  • Page 37: Firmware Upgrade

    I/O Controller 2 Manual HW group Firmware upgrade Upgrades the current device firmware. This operation may change some settings. www.HW-group.com 37/ 42...
  • Page 38: Default Settings

    I/O Controller 2 Manual HW group Default settings *** HW-group.com HW 6.0 SW 3.1.u #01 *** PortBox I/O MAC Address 00:0A:59:01:F5:F4 =========== IP Setup ============ I: Address 192.168.1.41 J: Port M: Mask 255.255.255.0 G: Gateway 192.168.1.254 ===== In IP access filter...
  • Page 39 I/O Controller 2 Manual HW group Practical configuration examples The following examples show the configuration of essential parameters for typical applications. 2x I/O Controller connected to each other (Box-2-Box) Virtual extension of the serial port + 8 inputs and 8 outputs over TCP/IP.
  • Page 40 I/O Controller 2 Manual HW group • To permit communication with only one address, set N:255.255.255.255 and W:IP address of the remote device. • To use 9-bit communication, enable &V1 = &V: Variable Parity On at both devices. • To enhance security, disable TCP Setup at port 99 with %S0 = %S: TCP/IP setup Off at both devices.
  • Page 41 I/O Controller 2 Manual HW group Controlling inputs and outputs via NVT The following is a short overview of controlling the I/O Controller via the M2M NVT protocol. It is an extract from the detailed description of NVT that is available at our website: http://www.hw-group.com/support/nvt/index_en.html...
  • Page 42 I/O Controller 2 Manual HW group Description of GPIO control commands – 50, 51, 52 (32 .. 34 hex) For direct control of I/O pins, a fixed double byte GPIO sub-command is used – 50 or 51, preceded by the COM-PORT-OPTION 44 command and followed by the sub-option sequence.
  • Page 43 I/O Controller 2 Manual HW group NVT control examples Most NVT commands have a fixed length. So, for example, if a value has a 4-byte format, and the current setting can be read by “setting” a value of 0, this zero needs to be sent as 00 00 00 00 hex.
  • Page 44 I/O Controller 2 Manual HW group Changing the RS-232 / RS-485 serial port baudrate Request to change the serial port communication speed. The current port speed can be retrieved by sending the value of 00 00 00 00 (the response contains the current speed).

Table of Contents