TRU Components 2973412 Operating Instructions Manual

Modbus i/o
Table of Contents

Advertisement

Quick Links

Operating Instructions
Modbus I/O
Item No. 2973412
Page 2 - 35

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 2973412 and is the answer not in the manual?

Questions and answers

Summary of Contents for TRU Components 2973412

  • Page 1 Operating Instructions Modbus I/O Item No. 2973412 Page 2 - 35...
  • Page 2: Table Of Contents

    1 Table of contents Introduction ................................4 Operating Instructions for download ........................4 Intended use ................................4 Features and functions ............................5 Delivery content ..............................5 Description of symbols ............................5 Safety instructions ...............................6 8.1 General information ............................6 8.2 Handling .................................6 8.3 Operating environment ..........................6 8.4 Operation ...............................6 8.5 Connected devices ............................6 Product overview ..............................7 9.1 Dimensions ..............................8...
  • Page 3 15.3 DO output ..............................16 15.3.1 Input count ..............................16 15.3.2 Level output ............................17 15.3.3 Pulse output ............................17 15.3.4 Follow mode ............................17 15.3.5 Reverse follow mode ..........................17 15.3.6 Trigger toggle mode ..........................17 15.3.7 Power-on state ............................17 15.4 Modbus Gateway ............................17 15.4.1 Modbus TCP/RTU protocol conversion ....................17 15.4.2 Modbus Address Filtering ........................17 15.4.3 Modbus TCP Protocol Data Frame Description ..................18 15.4.4 Modbus RTU protocol data frame description ..................18...
  • Page 4: Introduction

    2 Introduction Dear customer, Thank you for purchasing this product. If there are any technical questions, please contact: www.conrad.com/contact 3 Operating Instructions for download Use the link www.conrad.com/downloads (alternatively scan the QR code) to download the complete operating in- structions (or new/current versions if available). Follow the instructions on the web page. 4 Intended use This product is a Modbus I/O Network Module.
  • Page 5: Features And Functions

    5 Features and functions Supports standard Modbus RTU protocol and Modbus TCP protocol Supports a range of different software/PLC/Touchscreen configurations Supports the OLED display for displaying status information and configuring device settings, by using the built-in buttons 2-way analogue input (0 - 20 mA / 4 - 20 mA) 2-way digital input (DI) 4-way digital output (DO) (Form A relay); supported modes: Level mode, pulse mode, sequence mode, reverse sequence mode, trigger flip mode Supports the Modbus gateway function RS485/RJ45 acquisition control I/O...
  • Page 6: Safety Instructions

    8 Safety instructions Read the operating instructions carefully and especially observe the safety information. If you do not follow the safety instructions and information on proper handling in this manual, we assume no liability for any resulting personal injury or damage to property. Such cases will invalidate the warranty/guarantee.
  • Page 7: Product Overview

    9 Product overview Name Description TX (LED) Serial port sending LED RX (LED) Serial port receiving LED LINK (LED) Network status LED for connection NET (LED) Network status LED for sending/receiving data PWR (LED) Power LED DO1 (LED) Status LED for relay output 1 DO2 (LED) Status LED for relay output 2 DO3 (LED)
  • Page 8: Dimensions

    Relay 1 normally open contact COM1 Common connection of relay 1 Relay 2 normally open contact COM2 Common connection of relay 2 Relay 3 normally open contact COM3 Common connection of relay 3 Relay 4 normally open contact COM4 Common connection of relay 4 Ethernet Standard network connection RJ45 Analogue input 2, supporting input current of 0 - 20 mA...
  • Page 9: Product Application Topology Diagram

    10 Product Application Topology Diagram 10.1 Network interface application topology diagram 10.2 Serial port application topology diagram. 11 Device preparation The following table lists the items required for this test: Modbus I/O module 12V switching power supply USB to RS485 Cable computer network cable Several cables...
  • Page 10: Device Connection

    12 Device connection 12.1 RS485 connection Note: When the 485 bus high-frequency signal is transmitted, the signal wavelength is shorter than the transmission line, and the signal will form a reflected wave at the end of the transmission line, which will interfere with the original signal. Therefore, it is necessary to add a terminal resistor at the end of the transmission line so that the signal does not reflect after reaching the end of the transmission line. The terminal resistance should be the same as the impedance of the communication cable, the typical value is 120 ohms.
  • Page 11: Di Switch Input Connection

    12.3 DI switch input connection 12.4 Relay output connection 12.5 Simple use Wiring: The computer is connected to the RS485 interface of Modbus I/O module through USB to RS485, A is con- nected to A, and B is connected to B. Networking: Insert the network cable into the RJ45 port and connect to the PC.
  • Page 12: Parameter Configuration

    13 Parameter Configuration Step 1: Modify the IP address of the computer to be consistent with the device. Here I am modifying it to 192.168.3.100 to ensure that it is on the same network segment as the device and that the IP is different. If you cannot connect to the device after the above steps, please turn off the firewall and try again;...
  • Page 13: Control Testing

    14 Control Testing 14.1 Modbus TCP control Use the network assistant to control the first DO output of Modbus I/O module. Other functions can be tested through the commands in the table below. Function (function code) Command Pull in the first coil (0x05) 01 00 00 00 00 06 01 05 00 00 FF 00 Full open command (0x0F) 02 00 00 00 00 08 01 0F 00 00 00 04 01 0F Full close command (0x0F) 02 00 00 00 00 08 01 0F 00 00 00 04 01 00...
  • Page 14: Modbus Rtu Control

    14.2 Modbus RTU control Use the serial port assistant to control the first DO output of Modbus I/O module. Other functions can be tested through the commands in the table below. Function (function code) Command Pull in the first coil (0x05) 01 05 00 00 FF 00 8C 3A Full open command (0x0F) 01 0F 00 00 00 04 01 0F 7E 92 Full close command (0x0F) 01 0F 00 00 00 04 01 00 3E 96 Read all DI status (0x02)
  • Page 15: Ai Input

    15.2 AI Input 15.2.1 Analog range The analog input AI measures the current signal, the acquisition range is 0 - 20 mA or 4 - 20 mA, the precision is 3 ‰, and the resolution is 12 bits. The device adopts single-ended input, the sampling frequency is 10 Hz, and the input impedance is 100 Ohm. Set the sampling range of all AI channels, valid values are 1 and 0 (default 0). Configured as 0: means 0 - 20mA Configured as 1: means 4 - 20 mA Note:...
  • Page 16: Engineering Quantity Shaping Value And Engineering Quantity Floating Point Value Of Analog Input

    15.2.3 Engineering quantity shaping value and engineering quantity floating point value of analog input There are two ways to read the current signal collected by the device: (1) Read the AI engineering quantity shaping value, and directly convert to get the input current. The starting address of the AI engineering quantity shaping value register is 0x0064, the register type is an input register, and the read function code is 0x04.
  • Page 17: Level Output

    15.3.2 Level output Output according to the level set by the user, the switch characteristic of the level mode is similar to the function of a self-locking switch. 15.3.3 Pulse output After the switch output DO is turned on, the switch output DO is automatically turned off after maintaining the set pulse width time (in ms).
  • Page 18: Modbus Tcp Protocol Data Frame Description

    15.4.3 Modbus TCP Protocol Data Frame Description TCP frame format: Transaction ID Protocol ID Length Device address Function code Data segment 2 Bit 2 Bit N+2 Bit 1 Bit 1 Bit N Bit Transaction ID: It can be understood as the serial number of the message. Generally, 1 is added after each com- munication to distinguish different communication data messages.
  • Page 19: Active Upload

    15.6 Active upload The device supports the function of uploading analog input values at regular intervals. Setting the value of the cor- responding register can control the interval time and whether to upload. Devices with digital input will actively upload once after successfully connecting to the server, and then the digital input will be uploaded following the status change.
  • Page 20: Serial Port Parameters

    15.7.4 Serial Port Parameters Parameters for setting serial communication: Default parameters: Baud rate: 9600 (03) Data bit: 8 bit Stop bit: 1 bit Check digit: NONE (00) Baudrate: Baud rate code value table 0x0000 1200 0x0001 2400 0x0002 4800 0x0003 (default) 9600 0x0004 19200...
  • Page 21: Equipment Parameter Display Interface

    15.8.2 Equipment parameter display interface Press the left or right button to enter the password input interface, complete the correct password input, and display the device parameter information interface (password interface: default password: 0000. Short press the middle to verify the password; The left and right buttons can switch the password bit; Up and down keys can switch the value of the current bit.
  • Page 22: Screen Sleep

    15.8.4 Screen Sleep The device screen has a sleep function, which is off by default and can be set to on in the configuration interface. In any interface, when there is no button operation for 180 seconds, the screen will enter the sleep mode. At this time, the interface displays Ebyte robot. Press any button can exit the sleep mode. When the screen is in sleep mode, the running efficiency of device programs will be improved. 15.9 MODBUS parameter configuration 15.9.1 DI Register List Register...
  • Page 23: List Of Ai Registers

    15.9.2 List of AI Registers Register Register Register type Number Operate Data Range/Remarks Related func- function address tion code AI engineer- 0x0064 Input register 16 bit integer type, unit uA R : 0x04 ing quan- tity integer value AI engineer- 0x00C8 Input register 32-bit floating-point type...
  • Page 24: List Of Do Registers

    15.9.3 List of DO Registers Register func- Register Register Related func- Number Operate Data Range/Remarks tion address type tion code Write to change the current R : 0x01 DO status 0x0000 Coil DO state, read to obtain the W : 0x0F,0x05 current DO state R : 0x01 State when DO...
  • Page 25: Network Related Registers

    15.9.5 Network related registers Register func- Register Register Related func- Number Operate Data Range/Remarks tion address type tion code Module MAC Holding 0x0898 Device MAC parameters R : 0x03 address register R : 0x03 Local IP ad- Holding 0x089B Default: 192.168.3.7 dress register W : 0x06,0x10...
  • Page 26: Examples Of Modbus Command Operation Instructions

    15.9.6 Examples of Modbus command operation instructions 1. Read coil (DO) status Use the read coil state (01) function code to read the output coil state, for example: 00 00 00 04 3D C9 Modbus address Function code Register Number of output CRC check code first address coils read...
  • Page 27 Use 03 function code to read one or more register values, for example: 05 78 00 01 04 DF Modbus address Function code Register Number of registers CRC check code first address read After sending the above command to the device through the 485 bus, the device will return the following values: 00 00 B8 44 Modbus address...
  • Page 28: Configuration Software

    16 Configuration Software 16.1 Acquisition and Control Step 1: Connect the device to the configuration software. 1. You can configure the device by selecting the interface (serial port/network port); if you choose the network port, you must first select the network card and then search for the device. 2. If you choose a serial port, you need to select the corresponding serial port number, and the same baud rate, data bit, stop bit, parity bit and address segment search range as the device, and then search.
  • Page 29 Step 2: Select the corresponding device. Step 3: Click the device online to enter the IO monitoring. The following is the IO monitoring screen display.
  • Page 30: Parameter Configuration Interface

    16.2 Parameter configuration interface Step 1: Connect the device refer to “Acquisition and Control”. Step 2: You can configure device parameters, network parameters, DI parameters, AI parameters, DO parameters, and AO parameters (for example: if the device has no AO function, the AO parameters cannot be configured)
  • Page 31 Step 3: After configuring the parameters, click Download Parameters. After the prompt message in the log output shows that the parameters are saved successfully, click Restart the device. After the device restarts, the modified parameters will take effect.
  • Page 32: Device Default Parameters

    17 Device Default Parameters Category Name Parameters Operating mode TCP server (up to 4-way client access) Local IP 192.168.3.7 Local port Subnet mask 255.255.255.0 Gateway address 192.168.3.1 Ethernet parameters DHCP Close Native MAC Determined by the chip (fixed) Target IP 192.168.3.3 Target port DNS server 114.114.114.114 Active upload Close...
  • Page 33: Disposal

    19 Disposal This symbol must appear on any electrical and electronic equipment placed on the EU market. This symbol indicates that this device should not be disposed of as unsorted municipal waste at the end of its service life. Owners of WEEE (Waste from Electrical and Electronic Equipment) shall dispose of it separately from unsorted municipal waste.
  • Page 34: Technical Data

    20 Technical data 20.1 Power supply Power supply ........ 8 - 28 V/DC; 12 V/DC power supply unit recommended Power indicator ......Blue LED indication 20.2 Modbus I/O Interfaces ........4 relay outputs, 2 analogue inputs, 2 digital inputs (potential-free), ............
  • Page 35: Miscellaneous

    20.6 Miscellaneous Mounting ........DIN rail Operating system ......System required Windows 10/11 (configuration software) Dimensions (W x H x D) ....approx. 74 x 120 x 23 mm Weight .......... approx. 148 g 20.7 Other Operating/storage conditions ..-40 to +80°C, 10 – 95% RH (non-condensing)
  • Page 36 This is a publication by Conrad Electronic SE, Klaus-Conrad-Str. 1, D-92240 Hirschau (www.conrad.com). All rights including translation reserved. Reproduction by any method, e.g. photocopy, microfilming, or the capture in electronic data processing systems require the prior written approval by the editor. Reprinting, also in part, is prohibited. This publication represent the technical status at the time of printing.

Table of Contents