User Manual for aspar models including: RS485 8 Analogue Universal Inputs, RS485, 8 Analogue Universal Inputs, Analogue Universal Inputs, Universal Inputs, Inputs

Ampero MODBUS I/O Modules MOD-16O-PNP - All-DAQ

RS485 MODBUS Module 16O - ASPAR

RS485 MODBUS Module 16O User Manual 2.3. Dimensions of the product Look and dimensions of the module are shown below. The module is mounted directly to the rail in the DIN industry standard.


File Info : application/pdf, 16 Pages, 773.45KB

PDF preview unavailable. Download the PDF instead.

16O en
RS485 MODBUS Module 16O

Expansion Module ­ 16 digital outputs
Version 1.3

User Manual

Manufactured for

RS485 MODBUS Module 16O
User Manual

Thank you for choosing our product. This manual will help you with proper support and proper operation of the device. The information contained in this manual have been prepared with utmost care by our professionals and serve as a description of the product without incurring any liability for the purposes of commercial law. This information does not release you from the obligation of own judgment and verification. We reserve the right to change product specifications without notice. Please read the instructions carefully and follow the recommendations contained therein.
WARNING! Failure to follow instructions can result in equipment damage or impede the use of the hardware or software.

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

2 / 16

RS485 MODBUS Module 16O
User Manual
1. Safety rules
· Before first use, refer to this manual · Before first use, make sure that all cables are connected properly · Please ensure proper working conditions, according to the device specifications
(eg: supply voltage, temperature, maximum power consumption) · Before making any modifications to wiring connections, turn off the power supply

2. Module Features
2.1. Purpose and description of the module
16O Module is an innovative device that provides a simple and cost-effective extension of the number of outputs in popular PLCs.
The module has 16 digital outputs. All inputs and outputs are isolated from the logic of using optocouplers.
The module is produced in two versions with PNP and NPN outputs:

Mark

Output type

16O-PNP PNP

16O-NPN NPN
This module is connected to the RS485 bus with twisted-pair wire. Communication is via MODBUS RTU or MODBUS ASCII. The use of 32-bit ARM core processor provides fast processing and quick communication. The baud rate is configurable from 2400 to 115200.
The module is designed for mounting on a DIN rail in accordance with DIN EN 5002.
The module is equipped with a set of LEDs used to indicate the status of outputs useful for diagnostic purposes and helping to find errors.
Module configuration is done via USB by using a dedicated computer program. You can also change the parameters using the MODBUS protocol.

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

3 / 16

RS485 MODBUS Module 16O
User Manual

2.2. Technical Specifications

Power Supply Digital Outputs Temperature Connectors
Size Interface

Voltage Maximum Current* No of outputs Max Voltage Max current Output Type Work Storage Power Supply Communication Outputs Quick connector Configuration Height Length Width RS485

10-38VDC; 10-28VAC 180 mA @ 12V / 100 mA @ 24V 16 30V 500mA PNP or NPN (depends on version) -10 °C - +50°C -40 °C - +85°C 2 pin 3 pin 10 pin IDC10 Mini USB 120 mm 101 mm 22,5 mm Up to 128 devices

* Maximum current with active Modbus transmission, all outputs on and high state on all inputs

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

4 / 16

RS485 MODBUS Module 16O
User Manual
2.3. Dimensions of the product
Look and dimensions of the module are shown below. The module is mounted directly to the rail in the DIN industry standard. Power connectors, communication and IOs are at the bottom and top of the module. USB connector configuration and indicators located on the front of the module.

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

5 / 16

RS485 MODBUS Module 16O
User Manual
3. Communication configuration 3.1. Grounding and shielding
In most cases, IO modules will be installed in an enclosure along with other devices which generate electromagnetic radiation. Examples of these devices are relays and contactors, transformers, motor controllers etc. This electromagnetic radiation can induce electrical noise into both power and signal lines, as well as direct radiation into the module causing negative effects on the system. Appropriate grounding, shielding and other protective steps should be taken at the installation stage to prevent these effects. These protective steps include control cabinet grounding, module grounding, cable shield grounding, protective elements for electromagnetic switching devices, correct wiring as well as consideration of cable types and their cross sections.
3.2. Network Termination
Transmission line effects often present a problem on data communication networks. These problems include reflections and signal attenuation.
To eliminate the presence of reflections from the end of the cable, the cable must be terminated at both ends with a resistor across the line equal to its characteristic impedance. Both ends must be terminated since the direction of propagation is bidirectional. In the case of an RS485 twisted pair cable this termination is typically 120 .
3.3. Setting Module Address in RS485 Modbus Network
The following table shows how to set switch to determine the address of the module. The module address is set with the switches in the range of 0 to 31. Addresses From 32 to 255 can by set via RS485 or USB.
Adr SW5 SW4 SW3 SW2 SW1 Adr SW5 SW4 SW3 SW2 SW1 Adr SW5 SW4 SW3 SW2 SW1 0 OFF OFF OFF OFF OFF 11 OFF ON OFF ON ON 22 ON OFF ON ON OFF 1 OFF OFF OFF OFF ON 12 OFF ON ON OFF OFF 23 ON OFF ON ON ON 2 OFF OFF OFF ON OFF 13 OFF ON ON OFF ON 24 ON ON OFF OFF OFF 3 OFF OFF OFF ON ON 14 OFF ON ON ON OFF 25 ON ON OFF OFF ON 4 OFF OFF ON OFF OFF 15 OFF ON ON ON ON 26 ON ON OFF ON OFF 5 OFF OFF ON OFF ON 16 ON OFF OFF OFF OFF 27 ON ON OFF ON ON 6 OFF OFF ON ON OFF 17 ON OFF OFF OFF ON 28 ON ON ON OFF OFF 7 OFF OFF ON ON ON 18 ON OFF OFF ON OFF 29 ON ON ON OFF ON 8 OFF ON OFF OFF OFF 19 ON OFF OFF ON ON 30 ON ON ON ON OFF 9 OFF ON OFF OFF ON 20 ON OFF ON OFF OFF 31 ON ON ON ON ON 10 OFF ON OFF ON OFF 21 ON OFF ON OFF ON

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

6 / 16

RS485 MODBUS Module 16O
User Manual

3.4. Types of Modbus Registers

There are 4 types of variables available in the module

Type

Beginning address

Variable

Access

Modbus Command

1

00001

Digital Outputs

Bit Read & Write

1, 5, 15

2

10001

Digital Inputs

Bit Read

2

3

30001

Input Registers

Registered Read

3

4

40001

Output Registers

Registered Read & Write

4, 6, 16

3.5. Communication settings

The data stored in the modules memory are in 16-bit registers. Access to registers is via MODBUS RTU or MODBUS ASCII.

3.5.1. Default settings

You can restore the default configuration by the switch SW6 (see 3.5.2 - Restore the default configuration)

Baud rate Parity Data bits Stop bits Reply Delay [ms] Modbus Type

19200 No 8 1 0 RTU

3.5.2. Restore the default configuration
To restore the default configuration: · turn off the power
· turn on the switch SW6
· turn on the power
· when power and communication LED flash turn off the switch SW6 Caution! After restoring the default configuration all values stored in the registers will be cleared as well.

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

7 / 16

RS485 MODBUS Module 16O
User Manual

3.5.3. Configuration registers

Modbus Dec Hex Address
40003 2 0x02

40005 4 0x04

40004
40004 40006 40007

3 0x03
3 0x03 5 0x05 6 0x06

Name
Baud rate
Parity Stop Bits LSB Data Bits MSB Response delay Modbus Mode

Values
0 ­ 2400 1 ­ 4800 2 ­ 9600 3 ­ 19200 4 ­ 38400 5 ­ 57600 6 ­ 115200 other ­ value * 10
0 ­ none 1 ­ odd 2 ­ even 3 ­ always 1 4 ­ always 0
1 ­ one stop bit 2 ­ two stop bits
7 ­ 7 data bits 8 ­ 8 data bits
Time in ms
0 ­ RTU 1 ­ ASCII

3.5.4. Watchdog function
This 16-bit register specifies the time in milliseconds to watchdog reset. If module does not receive any valid message within that time, all Digital and Analog Outputs will be set to the default state.
This feature is useful if there is an interruption in data transmission and for security reasons. Output states must be set to the appropriate state in order to assure the safety of persons or property.
The default value is 0 milliseconds which means the watchdog function is disabled.

Range: 0-65535 ms

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

8 / 16

4. Indicators

RS485 MODBUS Module 16O
User Manual
Outputs state 9 ­ 16

ON1 2 3 4 5 6

Power Supply Communication Outputs State 1 ­ 8

Indicator

Description

Power supply LED indicates that the module is correctly powered.

Communication The LED lights up when the unit received the correct packet and sends the answer.

Outputs state LED indicates that the output is on.

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

9 / 16

RS485 MODBUS Module 16O
User Manual
5. Module Connection ­ PNP outputs

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

10 / 16

RS485 MODBUS Module 16O
User Manual
6. Module Connection ­ NPN outputs

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

11 / 16

7. Switches

RS485 MODBUS Module 16O
User Manual

Switch 1 2 3 4 5

Function Module address +1 Module address +2 Module address +4 Module address +8 Module address +16

6 Restoring default settings

Description
Setting module address from 0 to 31
Restoring default settings (see 3.5.1 - Default settings and 3.5.2 - Restore the
default configuration).

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

12 / 16

RS485 MODBUS Module 16O
User Manual

8. Modules Registers 8.1. Registered access

Modbus Dec Hex

Register Name

30001 0 0x00 Version/Type

30002 1 0x01 Switches

40003 2 0x02 Baud rate

40004 3 0x03 Stop Bits & Data Bits

40005 4 0x04 Parity

40006 5 0x05 Response Delay

40007 6 0x06 Modbus Mode

40009 8 0x08 Watchdog

Access Read Read Read & Write Read & Write Read & Write Read & Write Read & Write Read & Write

40013 12 0x0C Default Output State Read & Write

40033 40034 40035 40036 40037 40038 40052

32 0x20 Received packets LSB Read & Write

33 0x21 Received packets MSB Read & Write

34 0x22 Incorrect packets LSB Read & Write

35 0x23 Incorrect packets MSB Read & Write

36 0x24 Sent packets LSB

Read & Write

37 0x25 Sent packets MSB

Read & Write

51 0x33 Outputs

Read & Write

Description Version and Type of the device
Switches state RS485 baud rate No of Stop bits & Data Bits (see 3.5.3)
Parity bit Response delay in ms Modbus Mode (ASCII or RTU)
Watchdog Default output state (after power on or
watchdog reset)
No of received packets
No of received packets with error
No of sent packets
Output state

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

13 / 16

RS485 MODBUS Module 16O
User Manual

8.2. Bit access

Modbus Dec

Hex

Address Address Address

Register name

Access

193

192 0x0C0 Default state of output 1 Read & Write

194

193 0x0C1 Default state of output 2 Read & Write

195

194 0x0C2 Default state of output 3 Read & Write

196

195 0x0C3 Default state of output 4 Read & Write

197

196 0x0C4 Default state of output 5 Read & Write

198

197 0x0C5 Default state of output 6 Read & Write

199

198 0x0C6 Default state of output 7 Read & Write

200

199 0x0C7 Default state of output 8 Read & Write

201

200 0x0C8 Default state of output 9 Read & Write

202

201 0x0C9 Default state of output 10 Read & Write

203

202 0x0CA Default state of output 11 Read & Write

204

203 0x0CB Default state of output 12 Read & Write

205

204 0x0CC Default state of output 13 Read & Write

206

205 0x0CD Default state of output 14 Read & Write

207

206 0x0CE Default state of output 15 Read & Write

208

207 0x0CF Default state of output 16 Read & Write

817

816 0x330 Output 1

Read & Write

818

817 0x331 Output 2

Read & Write

819

818 0x332 Output 3

Read & Write

820

819 0x333 Output 4

Read & Write

821

820 0x334 Output 5

Read & Write

822

821 0x335 Output 6

Read & Write

823

822 0x336 Output 7

Read & Write

824

823 0x337 Output 8

Read & Write

825

824 0x338 Output 9

Read & Write

826

825 0x339 Output 10

Read & Write

827

826 0x33A Output 11

Read & Write

828

827 0x33B Output 12

Read & Write

829

828 0x33C Output 13

Read & Write

830

829 0x33D Output 14

Read & Write

831

830 0x33E Output 15

Read & Write

832

831 0x33F Output 16

Read & Write

Description
Default state of output 1 Default state of output 2 Default state of output 3 Default state of output 4 Default state of output 5 Default state of output 6 Default state of output 7 Default state of output 8 Default state of output 9 Default state of output 10 Default state of output 11 Default state of output 12 Default state of output 13 Default state of output 14 Default state of output 15 Default state of output 16
Output 1 state Output 2 state Output 3 state Output 4 state Output 5 state Output 6 state Output 7 state Output 8 state Output 9 state Output 10 state Output 11 state Output 12 state Output 13 state Output 14 state Output 15 state Output 16 state

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

14 / 16

RS485 MODBUS Module 16O
User Manual
9. Configuration software
Modbus Configurator is software that is designed to set the module registers responsible for communication over Modbus network as well as to read and write the current value of other registers of the module. This program can be a convenient way to test the system as well as to observe real-time changes in the registers.
Communication with the module is done via the USB cable. The module does not require any drivers.
Configurator is a universal program, whereby it is possible to configure all available modules.

Expansion Module­ 16 digital outputs
User Manual

Version 1.3

15 / 16

RS485 MODBUS Module 16O
User Manual
Table of content
1. Safety rules......................................................................................................................................3 2. Module Features..............................................................................................................................3
2.1. Purpose and description of the module....................................................................................3 2.2. Technical Specifications..........................................................................................................4 2.3. Dimensions of the product.......................................................................................................5 3. Communication configuration.........................................................................................................6 3.1. Grounding and shielding..........................................................................................................6 3.2. Network Termination...............................................................................................................6 3.3. Setting Module Address in RS485 Modbus Network..............................................................6 3.4. Types of Modbus Registers......................................................................................................7 3.5. Communication settings..........................................................................................................7
3.5.1. Default settings................................................................................................................7 3.5.2. Restore the default configuration.....................................................................................7 3.5.3. Configuration registers.....................................................................................................8 3.5.4. Watchdog function...........................................................................................................8 4. Indicators.........................................................................................................................................9 5. Module Connection ­ PNP outputs...............................................................................................10 6. Module Connection ­ NPN outputs...............................................................................................11 7. Switches.........................................................................................................................................12 8. Modules Registers.........................................................................................................................13 8.1. Registered access...................................................................................................................13 8.2. Bit access...............................................................................................................................14 9. Configuration software..................................................................................................................15

Expansion Module­ 16 digital outputs
User Manual

Manufactured for: Aspar s.c.
ul. Oliwska 112 80-209 Chwaszczyno
Poland
ampero@ampero.eu www.ampero.eu
Tel. +48 58 351 39 89; +48 58 732 71 73

Version 1.3

16 / 16



References

Writer LibreOffice 6.2