R 8AI 8DIDO User Manual

Download as pdf or txt
Download as pdf or txt
You are on page 1of 58

USER MANUAL

R-8AI-8DIDO
R-8AI-8DIDO-P
MULTIPROTOCOL INDUSTRIAL ETHERNET I/O MODULE

SENECA S.r.l.
Via Austria 26 – 35127 – Z.I. - PADOVA (PD) - ITALY
Tel. +39.049.8705355 – 8705355 Fax +39 049.8706287
www.seneca.it

ORIGINAL INSTRUCTIONS
User Manual R-8AI-8DIDO SERIES

Introduction
The content of this documentation refers to products and technologies described in it.
All technical data contained in the document may be changed without notice.
The content of this documentation is subject to periodic review.
To use the product safely and effectively, read the following instructions carefully before use.
The product must be used only for the use for which it was designed and manufactured: any other use is
under the full responsibility of the user.
Installation, programming and set-up are allowed only to authorized, physically and intellectually suitable
operators.
Set-up must be performed only after correct installation and the user must follow all the operations described
in the installation manual carefully.
Seneca is not responsible for failures, breakages and accidents caused by ignorance or failure to apply the
stated requirements.
Seneca is not responsible for any unauthorized modifications.
Seneca reserves the right to modify the device, for any commercial or construction requirement, without the
obligation to promptly update the reference manuals.
No liability for the contents of this document can be accepted.
Use the concepts, examples and other content at your own risk.
There may be errors and inaccuracies in this document that could damage your system, so proceed with
caution, the author(s) will not take responsibility for it.
Technical specifications are subject to change without notice.

CONTACT US
Technical support [email protected]
Product information [email protected]

This document is the property of SENECA srl.


Copies and reproduction are prohibited unless authorised.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 2
User Manual R-8AI-8DIDO SERIES

Document revisions
DATE REVISION NOTES AUTHOR
17/02/2021 0 First revision MM

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 3
User Manual R-8AI-8DIDO SERIES

TABLE OF CONTENTS

1. INTRODUCTION ........................................................................................................... 6
1.1. DESCRIPTION ..........................................................................................................................................................................6
1.2. COMMUNICATION PORT SPECIFICATIONS .........................................................................................................................7

2. CONNECTION OF THE DEVICES TO A NETWORK (ONLY R-8AI-8DIDO MODEL) . 8


2.1. CONNECTION OF THE DEVICE TO A NETWORK ................................................................................................................8
2.2. USING EASY SETUP 2 TO CONFIGURE DEVICES ...............................................................................................................8

3. I/O COPY USING THE PEER TO PEER FUNCTION WITHOUT WIRING (ONLY R-
8AI-8DIDO MODEL) .......................................................................................................... 10

4. MODBUS PASSTHROUGH (ONLY R-8AI-8DIDO MODEL) ...................................... 11

5. INPUT UPDATE TIME ................................................................................................ 12


5.1. ANALOGUE INPUT UPDATE TIME ......................................................................................................................................12
5.2. DIGITAL INPUT UPDATE TIME .............................................................................................................................................12

6. WEBSERVER (ONLY R-8AI-8DIDO MODEL)............................................................ 13


6.1. ACCESS TO THE WEBSERVER ...........................................................................................................................................13
6.2. DEVICE CONFIGURATION ...................................................................................................................................................14
6.2.1. SETUP SECTION ..............................................................................................................................................................14
6.2.2. SETUP AIN 1. 8 SECTION ................................................................................................................................................16
6.2.3. DIGITAL I/O SETUP SECTION..........................................................................................................................................18
6.2.4. EVENT SETUP SECTION .................................................................................................................................................19
6.2.5. P2P CONFIGURATION .....................................................................................................................................................19
6.2.5.1. P2P CLIENT SECTION .................................................................................................................................................20
6.2.5.2. P2P SERVER SECTION ...............................................................................................................................................22
6.2.5.3. P2P CONFIGURATION EXAMPLE ...............................................................................................................................23
6.2.5.4. P2P EXECUTION TIME ................................................................................................................................................24
6.3. FW/CONFIGURATION UPDATE SECTION ..........................................................................................................................24

7. USB CONNECTION (R-8AI-8DIDO MODEL ONLY) .................................................. 25

8. RESETTING THE DEVICE TO FACTORY CONFIGURATION .................................. 25

9. SUPPORTED MODBUS COMMUNICATION PROTOCOLS (MODEL R-8AI-8DIDO


ONLY)................................................................................................................................ 26
9.1. SUPPORTED MODBUS FUNCTION CODES........................................................................................................................26

10. MODBUS REGISTER TABLE (R-8AI-8DIDO MODEL ONLY) ............................... 27


10.1. R-8AI-8DIDO: MODBUS 4X HOLDING REGISTERS TABLE (FUNCTION CODE 3) ..........................................................27

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 4
User Manual R-8AI-8DIDO SERIES

10.2. R-8AI-8DIDO: TABLE OF MODBUS REGISTERS 0x COIL STATUS (FUNCTION CODE 1) .............................................33
10.3. R-8AI-8DIDO: TABLE OF MODBUS REGISTERS 1x INPUT STATUS (FUNCTION CODE 2) ...........................................33

11. SEARCH AND MODIFICATION OF THE DEVICE IP WITH SENECA DISCOVERY


TOOL (R-8AI-8DIDO MODEL ONLY) ............................................................................... 34

12. PROFINET IO (R-8AI-8DIDO-P MODEL ONLY) ..................................................... 35


12.1. STEP BY STEP CREATION OF A PROJECT WITH SIEMENS PLC (TIA PORTAL 16) .....................................................35
12.1.1. INSTALLING THE GSD FILE ........................................................................................................................................35
12.1.2. INSERTION OF THE SIEMENS PLC IN THE PROJECT .............................................................................................36
12.1.3. INSERTION OF THE PROFINET SENECA IO .............................................................................................................40
12.1.4. CONFIGURATION OF THE PARAMETERS OF THE SENECA IO ..............................................................................42
12.1.5. COMPILATION AND SENDING OF THE PROJECT TO THE SIEMENS PLC.............................................................43
12.1.6. READING AND WRITING OF THE SENECA IO FROM TIA PORTAL .........................................................................45
12.2. STEP-BY-STEP PROJECT CREATION WITH CODESYS 3.5 PLC .....................................................................................49
12.2.1. INSERTION OF THE CODESYS PLC IN THE PROJECT ............................................................................................50
12.2.2. INSTALLING THE GSD .................................................................................................................................................52
12.2.3. INSTALLATION OF THE SENECA PROFINET IO .......................................................................................................53
12.2.4. CONFIGURATION OF THE PARAMETERS OF THE SENECA IO ..............................................................................55
12.2.5. READING AND WRITING THE SENECA IO FROM CODESYS ..................................................................................56

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 5
User Manual R-8AI-8DIDO SERIES

1. INTRODUCTION

ATTENTION!
This user manual extends the information from the installation manual to the configuration of the
device. Use the installation manual for more information.

ATTENTION!
In any case, SENECA s.r.l. or its suppliers will not be responsible for the loss of data/revenue or
consequential or incidental damages due to negligence or bad/improper management of the device,
even if SENECA is well aware of these possible damages.
SENECA, its subsidiaries, affiliates, group companies, suppliers and distributors do not guarantee that
the functions fully meet the customer's expectations or that the device, firmware and software should
have no errors or operate continuously.

1.1. DESCRIPTION

The R series is based on devices equipped with two Ethernet switch ports that allow a chain connection to the
next Ethernet device (daisy chain), so expensive industrial Ethernet switches are not required and wiring is
simplified.
The hardware present in the devices allows the internal switch to work even if the device is faulty or not
powered for up to 4 days (LAN function with bypass in case of failure).
Another important function is the possibility of copying inputs on remote outputs of R series products without
the aid of a master device (peer 2 peer function) (only for R-8AI-8DIDO version).

Model Description Communication protocols


R-8AI-8DIDO Remote ethernet I/O with 2 Ethernet Modbus TCP-IP
ports and Modbus RTU
8 Universal Analog Inputs / 8 digital Seneca P2P I/O Mirror with
inputs/outputs broadcast (UDP based)

R-8AI-8DIDO -P Remote ethernet I/O with 2 Ethernet Profinet IO


ports and
8 Universal Analog Inputs / 8 digital
inputs/outputs

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 6
User Manual R-8AI-8DIDO SERIES

1.2. COMMUNICATION PORT SPECIFICATIONS

ETHERNET COMMUNICATION PORTS


Number 2
Type 100 Mbits
Configuration Switch

RS485 COMMUNICATION PORTS


(ONLY R-8AI-8DIDO MODEL)
Number 1
Baudrate From 1200 to 115200 bit/s configurable
Parity, Data bit, Stop bit Configurable
Protocol Can be configured between
Modbus RTU Slave or
Modbus TCP-IP to Modbus RTU Passthrough

USB COMMUNICATION PORT


(ONLY R-8AI-8DIDO MODEL)
Number 1
Communication parameters 115200 bit/s, 8 bits, No parity, 1 stop bit, station address 1
Protocol Modbus RTU Slave

R-8AI-8DIDO COMMUNICATION PROTOCOLS SUPPORTED


Modbus RTU From RS485 and USB port
Modbus TCP-IP From Ethernet 1 and 2
Seneca IO Mirror From Ethernet 1 and 2

R-8AI-8DIDO-P COMMUNICATION PROTOCOLS SUPPORTED


Profinet IO From Ethernet 1 and 2

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 7
User Manual R-8AI-8DIDO SERIES

2. CONNECTION OF THE DEVICES TO A NETWORK (ONLY R-8AI-8DIDO MODEL)

2.1. CONNECTION OF THE DEVICE TO A NETWORK

The factory configuration of the IP address is:

Static address: 192.168.90.101

Therefore, multiple devices must not be inserted on the same network with the same static IP.
If you want to connect multiple devices on the same network, you need to change the IP address configuration
using the Easy Setup 2 software.

ATTENTION!
DO NOT CONNECT 2 OR MORE FACTORY-CONFIGURED DEVICES ON THE SAME NETWORK,
OR THE ETHERNET INTERFACE WILL NOT WORK
(192.168.90.101 IP ADDRESS CONFLICT)

If the addressing mode with DHCP is activated and an IP address is not received within 1 minute, the device
will set an IP address with a fixed error:

169.254.x.y

Where x.y are the last two values of the MAC ADDRESS.
This way it is possible to install more I/O of the R series and then configure the IP with the Easy Setup 2
software even on networks without a DHCP server.

2.2. USING EASY SETUP 2 TO CONFIGURE DEVICES

The Easy Setup 2 software allows:

 Configuring R series devices via the USB port


 Searching and configuring Seneca R-series devices on an Ethernet network

In the case of a first installation we recommend following these steps:

1) Install the Easy Setup 2 software


2) Power and connect the device to the PC via the USB port

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 8
User Manual R-8AI-8DIDO SERIES

3) Configure the device with the IP address and the desired configuration

4) Install the device


If many devices are installed using the USB port:
1) Power and connect the device to the PC via the USB port
2) Configure the automatic address via DHCP from the search window
3) Install all the devices in the network
4) If there is no DHCP server in the network, after 1 minute the devices will set a fail IP address (see
chapter 2.1)
5) Wait for all the device STS LEDs to be on steady.
6) At this point, using Easy Setup 2, create a new Ethernet project and find all the devices with the
"search" button, then reconfigure the devices with the most appropriate work addresses.
In case of many devices using the Ethernet port:
1) Power and connect the first device to the PC via the Ethernet port
2) Perform the search
3) Change the address of the device with IP 192.168.90.101 from the search window
4) Connect the second device in Daisy Chain, search and return to step 2) until all devices are
configured
The search software included in Easy Setup 2 works at Ethernet Layer 2 level (through the Seneca Discovery
protocol) and it is therefore not necessary to have an Ethernet configuration compatible with the device you
are looking for to change its IP. For the general configuration of the device it is necessary to have compatible
configuration.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 9
User Manual R-8AI-8DIDO SERIES

3. I/O COPY USING THE PEER TO PEER FUNCTION WITHOUT WIRING (ONLY R-8AI-
8DIDO MODEL)

The "R" series devices can be used to copy and update in real time an input channel on a remote output
channel without the aid of a master controller.

For example, a digital input can be copied to a remote digital output device:

Note that no controller is required because the communication is managed directly by the R series devices.
It is possible to make a more sophisticated connection, for example it is possible to copy the inputs to different
R-series remote devices (from Device 1 Input 1 to Device 2 Output1, Device 1 Input 2 to Device 3 Output 1 etc
...)
It is also possible to copy an input to an output of multiple remote devices:

Each R-series device can send and receive a maximum of 32 inputs.

For further information, see chapter 6.2.5.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 10
User Manual R-8AI-8DIDO SERIES

4. MODBUS PASSTHROUGH (ONLY R-8AI-8DIDO MODEL)

Thanks to the Modbus Passthrough function it is possible to extend the amount of I/O available in the device
via the RS485 port and the Modbus RTU slave protocol, for example by using the Seneca Z-PC series
products.
In this mode the RS485 port stops working as Modbus RTU slave and the device becomes a Modbus TCP-IP
gateway to Modbus RTU serial:

Each Modbus TCP-IP request with station address other than that of the R series device is converted into a
serial packet on the RS485 and, in the case of a reply, it is turned over to TCP-IP.
Therefore, it is no longer necessary to purchase gateways to extend the I/O number or to connect already
available Modbus RTU I/O.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 11
User Manual R-8AI-8DIDO SERIES

5. INPUT UPDATE TIME

5.1. ANALOGUE INPUT UPDATE TIME

The sampling time of the analogue inputs depends on the ADC sampling time.
If an analogue input is disabled, its acquisition time must not be counted.

The refresh time of an analogue channel is:

𝑇𝑟𝑒𝑓𝑟𝑒𝑠ℎ [𝑚𝑠] = (𝑁𝑎𝑐𝑡 + 1) ∗ (2 ∗ 𝑇𝐴𝐷𝐶 [𝑚𝑠] + 10𝑚𝑠)

Where:
𝑁𝑎𝑐𝑡 𝑟𝑎𝑝𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑎 𝑖𝑙 𝑛𝑢𝑚𝑒𝑟𝑜 𝑑𝑖 𝑐𝑎𝑛𝑎𝑙𝑖 𝑎𝑛𝑎𝑙𝑜𝑔𝑖𝑐𝑖 𝑎𝑡𝑡𝑖𝑣𝑖

𝑇𝐴𝐷𝐶 [𝑚𝑠] 𝑟𝑎𝑝𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑎 𝑖𝑙 𝑡𝑒𝑚𝑝𝑜 𝑑𝑖 𝑐𝑎𝑚𝑝𝑖𝑜𝑛𝑎𝑚𝑒𝑛𝑡𝑜 𝑑𝑒𝑙𝑙 ′ 𝐴𝐷𝐶 𝑖𝑛 𝑚𝑠

If, for example, the sampling time of the ADC is set at 50ms and all 8 analogue inputs are active, we have:

T refresh = 9 * (2*50 +10ms) = 9*110ms = 990 ms

5.2. DIGITAL INPUT UPDATE TIME

The sampling time of the digital inputs takes place between the sampling of one channel and the other so the
I/O update takes place every:

𝑇𝑟𝑒𝑓𝑟𝑒𝑠ℎ 𝑑𝑖𝑔𝑖𝑡𝑎𝑙 [𝑚𝑠] = (2 ∗ 𝑇𝐴𝐷𝐶 [𝑚𝑠] + 10𝑚𝑠)

If, for example, the sampling time of the ADC is set to 50ms, the refresh of the digital I/Os is:

T refresh = (2*50 +10ms) = 110ms

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 12
User Manual R-8AI-8DIDO SERIES

6. WEBSERVER (ONLY R-8AI-8DIDO MODEL)

6.1. ACCESS TO THE WEBSERVER

Access to the web server takes place using a web browser and entering the IP address of the device.
To find out the IP address of the device, use the "search" function of the “Easy Setup 2" software (see chapter
11).

On first access the user name and password will be requested.


The default values are:

Username: admin
Password: admin

ATTENTION!
AFTER THE FIRST ACCESS CHANGE USER NAME AND PASSWORD IN ORDER TO PREVENT
ACCESS TO THE DEVICE TO UNAUTHORIZED PEOPLE.

ATTENTION!
IF THE PARAMETERS TO ACCESS THE WEBSERVER HAVE BEEN LOST, IT IS NECESSARY TO
RESET THE FACTORY-SET CONFIGURATION (SEE CHAPTER 8)

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 13
User Manual R-8AI-8DIDO SERIES

6.2. DEVICE CONFIGURATION


To configure the device, access the web server and select the section you are interested in.
After a modification to the configuration has been made, the changes must be confirmed with the "APPLY"
button and the device will restart autonomously.
The Reboot button reboots the device (not necessary in the event of a configuration change).
The Default button returns all the page parameters to the default settings.
6.2.1. SETUP SECTION
DHCP (ETH) (default: Disabled)
Sets the DHCP client to get an IP address automatically.
IP ADDRESS STATIC (ETH) (default: 192.168.90.101)
Sets the device static address. Careful not to enter devices with the same IP address into the same network.
IP MASK STATIC (ETH) (default: 255.255.255.0)
Sets the mask for the IP network.
GATEWAY ADDRESS STATIC (ETH) (default: 192.168.90.1)
Sets the gateway address.
PROTECT CONFIGURATION (default: Disabled)
Allows you to enable or disable password protection for reading and writing the configuration (including the IP
address) using the Easy Setup 2 software or Seneca Discovery Tool. The password is the same one that
allows accessing the web server.

ATTENTION!
IF THE CONFIGURATION PROTECTION IS ENABLED IT WILL BE IMPOSSIBLE TO READ/WRITE THE
CONFIGURATION OF THE DEVICE WITHOUT KNOWING THE PASSWORD.
IN THE EVENT OF LOSING THE PASSWORD IT WILL BE POSSIBLE TO RETURN THE DEVICE TO THE
FACTORY CONFIGURATION (SEE CHAPTER 8)

MODBUS SERVER PORT (ETH) (default: 502)


Sets the communication port for the ModBus TCP-IP server.
MODBUS SERVER STATION ADDRESS (ETH) (default: 1)
Active only if Modbus Passthrough is also active, it sets the station address of the Modbus TCP-IP server.

ATTENTION!
THE MODBUS SERVER WILL ANSWER ANY STATION ADDRESS ONLY IF THE MODBUS
PASSTHROUGH MODE IS DISABLED.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 14
User Manual R-8AI-8DIDO SERIES

MODBUS PASSTHROUGH (ETH) (default: disabled)


Sets the conversion mode from Modbus TCP-IP to Modbus RTU serial (see chapter 4).
MODBUS TCP-IP CONNECTION TIMEOUT [sec] (ETH) (default: 60)
Sets the TCP-IP connection timeout for the Modbus TCP-IP server and Passthrough modes.
P2P SERVER PORT (default: 50026)
Sets the communication port for the P2P server.
WEBSERVER USER NAME (default: admin)
Sets the user name to access the web server.
CONFIGURATION/WEBSERVER PASSWORD (default: admin)
Sets the password to access the web server and to read/write the configuration (if enabled).
WEBSERVER PORT (default: 80)
Sets the communication port for the web server.
BAUDRATE MODBUS RTU (SER) (default: 38400 baud)
Sets the baud rate for the RS485 communication port.
DATA MODBUS RTU (SER) (default: 8 bit)
Sets the number of bits for the RS485 communication port.
PARITY MODBUS RTU (SER) (default: None)
Sets the parity for the RS485 communication port.
STOP BIT MODBUS RTU (SER) (default: 1 bit)
Sets the number of stop bits for the RS485 communication port.
MODBUS PASSTHROUGH SERIAL TIMEOUT (default: 100ms)
Active only if passthrough mode is activated, sets the maximum waiting time before sending a new packet
from TCP-IP to the serial port. It must be set according to the longest response time of all the devices present
on the RS485 serial port.
CHANNEL SAMPLE TIME [ms] (default: 100ms)
Sets the sampling time of each analogue input.

ATTENTION!
THE USB PORT CONFIGURATION PARAMETERS CANNOT BE MODIFIED AND ARE BAUDRATE:
115200
DATA: 8 BIT
PARITY: NONE
STOP BIT: 1
MODBUS RTU PROTOCOL

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 15
User Manual R-8AI-8DIDO SERIES

6.2.2. SETUP AIN 1. 8 SECTION

This section allows the configuration of the analogue inputs present in the device.

ATTENTION!
THE DEVICE CAN DETECT THE COLD JOINT TEMPERATURE FROM THE INTERNAL SENSORS OR
FROM ANALOGUE INPUT 1 (THROUGH EXTERNAL PT100-TYPE SENSOR).
IN THIS CASE ALL THE DETECTIONS OF THE INTERNAL SENSORS WILL BE REPLACED BY THE
READING OF ANALOGUE INPUT 1.

ANALOGUE INPUT MODE (default +-30V)


Set the type of measurement for the selected input.

It is possible to choose between the following types of input:

+-30V
+-100mV
+-20 mA
Thermocouple
PT100 2 wires (for use as a cold junction and only for input 1)
PT100 3 wires (for use as a cold junction and only for input 1)

If the"IN2..8 CJ PT100" type of measurement is selected for input 1, this will automatically be used as a
measurement of the cold junction for all inputs configured by thermocouple between IN2 and IN8 included.

ANALOGUE INPUT 1 PT100 WIRE RESISTANCE [Ohm] (default 0 Ohm)


(Only for analogue input 1) allows to compensate the cable resistance in case of 2-wire connection to the
PT100.

ANALOGUE INPUT TC TYPE (default J)


In the case of thermocouple measurement, it allows to select the type of thermocouple between:
J, K, R, S, T, B, E, N, L

ANALOGUE INPUT TEMPERATURE OFFSET (default 0°C)


Sets a temperature offset in °C for thermocouple measurements

ANALOGUE INPUT ONBOARD COLD JUNCTION (default ENABLED)


In the case of thermocouple measurement, it enables or disables the automatic cold junction offset of the
device.
If channel 1 has been configured as PT100 cold junction measurement, this sensor will be used for the offset
and not the one inside the instrument.
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 16
User Manual R-8AI-8DIDO SERIES

ANALOGUE INPUT COLD JUCTION VALUE [°C] (default 0°C)


In the case of thermocouple measurement, if the automatic measurement of the cold junction has been
deactivated, it is possible to manually enter the cold junction temperature.

ANALOGUE INPUT BURNOUT MODE (default FAIL VALUE)


In the case of thermocouple measurement, it selects the behaviour in case of sensor failure:
In the case of "Last Value" the value is stopped at the last valid value, in the case of "Fail Value" the "Burnout"
value is loaded in the registers.

ANALOGUE INPUT BURNOUT VALUE (default 10000°C)


In the case of thermocouple measurement, if the ANALOGUE INPUT BURNOUT MODE = “FAIL VALUE”
mode is activated and the sensor is in the “burn” state, it allows you to set a value in °C to be taken by the
measurement register.

ANALOGUE INPUT UNIT MEASURE (default °C)


In the case of thermocouple measurement, it allows you to set the measurement unit of the measurement
register between °C, K, °F and mV.

ANALOGUE INPUT FILTER [samples] (default 0)


Allows you to set the moving average filter with the selected number of samples. If the value is “0” the filter is
disabled.

ANALOGUE INPUT START SCALE


Represents the start of the electrical scale of the analogue measurement used for the register of the
engineering measurement.

ANALOGUE INPUT STOP SCALE


Represents the electrical full scale of the analogue measurement used for the engineering measurement
register.

ANALOGUE INPUT ENG START SCALE


Represents the value of the engineering measurement register when the input reaches the value shown in the
ANALOGUE INPUT START SCALE parameter.
For example if:
ANALOGUE INPUT START SCALE = 4mA
ANALOGUE INPUT STOP SCALE = 20mA
ANALOGUE INPUT ENG STOP SCALE = -200 metres
ANALOGUE INPUT ENG START SCALE = 200 metres

With a 12 mA input the engineering value will be 0 metres.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 17
User Manual R-8AI-8DIDO SERIES

ANALOGUE INPUT ENG STOP SCALE


Represents the value of the engineering measurement register when the input reaches the value shown in the
ANALOGUE INPUT STOP SCALE parameter.

For example if:


ANALOGUE INPUT START SCALE = 4mA
ANALOGUE INPUT STOP SCALE = 20mA
ANALOGUE INPUT ENG STOP SCALE = -200 metres
ANALOGUE INPUT ENG START SCALE = 200 metres

With a 12 mA input the engineering value will be 0 metres.

6.2.3. DIGITAL I/O SETUP SECTION

This section allows the configuration of the digital I/Os present in the device.

DIGITAL I/O MODE (default Input)


Selects whether the chosen terminal will work as an input or output.

DIGITAL INPUT NORMALLY HIGH/LOW (default Normally Low)


If selected as digital input, it configures whether the input is normally high or low.

DIGITAL OUTPUT NORMALLY STATE (default Normally Open)


If selected as digital output, it configures whether the output is normally open or closed.

DIGITAL OUTPUT WATCHDOG (default Disabled)


If selected as digital output, it sets the output watchdog mode.
If “Disabled”, it disables the watchdog function for the selected output.
If "Enabled on Modbus Communication" the output goes into "Watchdog state" if there has been no generic
Modbus communication within the set time.
If "Enabled on Modbus Digital Output Writing" the output goes into "Watchdog state" if there has been no
writing of the output within the set time.

DIGITAL OUTPUT WATCHDOG STATE (default Open)


Sets the value that the digital output must adopt if the watchdog has been triggered.

DIGITAL OUTPUT WATCHDOG TIMEOUT [s] (default 100s)


Represents the watchdog time of the digital output in seconds.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 18
User Manual R-8AI-8DIDO SERIES

6.2.4. EVENT SETUP SECTION

This section allows the configuration of events to send analogue values with the P2P protocol.
EVENT AIN MODE (Default: DISABLED)
Represents the event condition for sending packets linked to the analogue inputs in the P2P protocol.
It may be:
"Disabled" the sending event of the analogue packet is disabled
"Event when AIN > HIGH THRESHOLD" the packet sending event occurs when the analogue input exceeds
the "High" threshold set.

"Event when AIN < LOW THRESHOLD" the packet sending event occurs when the analogue input is lower
than the "Low" threshold set.

EVENT AIN HIGH THRESHOLD (Default: 0)


Threshold value linked to the “High” event.

EVENT AIN LOW THRESHOLD (Default: 0)


Threshold value linked to the “Low” event.

EVENT AIN HISTERESYS


Hysteresis value for the reset of the "event" condition.
For example, if the event is configured in "Event when AIN > HIGH THRESHOLD" mode, when the analogue
input exceeds the threshold value, the packet will be sent, to send the next packet it will be necessary for the
analogue value to fall below the value (EVENT AIN HIGH THRESHOLD + EVENT AIN HYSTERESIS) and
then to rise above the HIGH value again.

6.2.5. P2P CONFIGURATION

In the P2P Client section it is possible to define which local events to send to one or more remote devices.
This way it is possible to send the status of the inputs to the remote outputs and obtain the input-output
replication without wiring. It is also possible to send the same input to several outputs simultaneously.

In the P2P Server section it is instead possible to define which inputs must be copied to the outputs.

The "Disable all rules" button places all the rules in a disabled status (default).
The "APPLY" button allows you to confirm and then save the set rules in the non-volatile memory.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 19
User Manual R-8AI-8DIDO SERIES

6.2.5.1. P2P CLIENT SECTION

The "Automatic configuration" button allows you to prepare the rules for sending all the inputs available in
the device in use.

En.
Selects whether the copy rule is active or not.

Loc. Ch.
Selects the status of which channel should be sent to the remote device(s).

Remote IP
Selects the IP address of the remote device to which the status of that input channel is to be sent.
If the channel has to be sent simultaneously to all the devices (broadcast), enter the broadcast address
(255.255.255.255) as the IP address.

Remote Port

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 20
User Manual R-8AI-8DIDO SERIES

Selects the communication port for sending the status of the inputs. It must coincide with the P2P SERVER
PORT parameter of the remote device.

En
Selects operation in "Only Timed" or "Timed+Event" mode.
In "Only Timed" mode, the status of the inputs is sent on each "tick [ms]" and then refreshed continuously
(cyclic sending).
In the “Timed+Event” mode, the status of the inputs is sent to a digital event (change of status).
The "Timed+Event" mode is only possible for the digital event on the analogue input but not on the analogue
input itself.

Tick [ms]
Sets the cyclical sending time of the input status.

ATTENTION!
IN CASE OF ENABLED WATCHDOG OF DIGITAL OUTPUTS THE RULE'S TICK TIME MUST BE LOWER
THAN THE WATCHDOG TIMEOUT SET

ATTENTION!
IT IS ALSO POSSIBLE TO COPY SOME I/O OF THE SAME DEVICE (FOR EXAMPLE, COPY THE I01
INPUT TO D01) BY ENTERING THE IP OF THE DEVICE AS REMOTE IP

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 21
User Manual R-8AI-8DIDO SERIES

6.2.5.2. P2P SERVER SECTION

The "Automatic configuration" button allows you to prepare the rules to receive all the inputs on the outputs
of the device in use.

En.
Selects whether the copy rule is active or not.

Rem. Ch.
Selects the status of which remote channel should be received by the local device.

Remote IP
Selects the IP address of the remote device from which to receive the input status.
If the channel must be received simultaneously by all the devices (broadcast), enter the broadcast address
(255.255.255.255) as the IP address.

Loc. Ch.
Selects the copy destination of the remote input value.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 22
User Manual R-8AI-8DIDO SERIES

ATTENTION!
IT IS ALSO POSSIBLE TO COPY SOME I/O OF THE SAME DEVICE (FOR EXAMPLE, COPY THE I01
INPUT TO D01) BY ENTERING THE IP OF THE DEVICE AS REMOTE IP. HOWEVER, THE ETHERNET
PORT MUST BE CORRECTLY CONNECTED.

ATTENTION!
THE ANALOGUE EVENT LINKED TO A THRESHOLD IN THE P2P PROTOCOL IS IDENTIFIED AS A
DIGITAL INPUT. IN PARTICULAR:
THE EVENT ON AIN1 IS IDENTIFIED AS A CHANGE OF STATUS ON THE VIRTUAL DIN9 INPUT
THE EVENT ON AIN2 IS IDENTIFIED AS A CHANGE OF STATUS ON THE VIRTUAL DIN10 INPUT

THE EVENT ON AIN8 IS IDENTIFIED AS A CHANGE OF STATUS ON THE VIRTUAL DIN16 INPUT

6.2.5.3. P2P CONFIGURATION EXAMPLE

In the following example we have No.2 devices and we want to copy the status of digital input 1 of the first to
the digital output of the second.
The IP address of Device 1 is 192.168.1.10
The IP address of Device 2 is 192.168.1.11

Let's move to device 1 with IP address 192.168.1.10 and select the sending of digital input 1 to the remote
address 192.168.1.11 of device 2 this way:

DEVICE 1

Now let's move on to device 2 and first configure the P2P server communication port on 50026:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 23
User Manual R-8AI-8DIDO SERIES

And we now configure the P2P server, the channel to be received from 192.168.1.10 is Di_1 and must be
copied to Do_1:
DEVICE 2

With this configuration, each time digital input 1 of device 1 (192.168.1.10) changes status, a packet will be
sent to device 2 (192.168.1.11) which will copy it to digital output 1.
After 1 second, the same packet will be sent cyclically.

6.2.5.4. P2P EXECUTION TIME


The switching time depends on the client device model and the server device model in addition to the
congestion of the ethernet network.
For example, for the R-16DI8DO model, the switching time of the remote digital output as a response to an
incoming event into another R-16DI8DO is about 20 ms (daisy chain connection of 2 devices, 1 set rule).
As regards the R-8AI-8DIDO model, the refresh time of the digital inputs/outputs and analogue inputs typical of
the device must also be considered (see chapter 5).

6.3. FW/CONFIGURATION UPDATE SECTION


The “Configure” section allows you to save or open a complete configuration of the device.
The “Firmware” section allows you to update the device firmware in order to obtain new functions.

ATTENTION!
NOT TO DAMAGE THE DEVICE DO NOT REMOVE THE POWER SUPPLY DURING THE FIRMWARE
UPDATE OPERATION.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 24
User Manual R-8AI-8DIDO SERIES

7. USB CONNECTION (R-8AI-8DIDO MODEL ONLY)

The front USB port allows a simple connection using the Modbus RTU slave protocol, the communication
parameters for the USB port cannot be modified:

Baud rate: 115200


Address of the Modbus RTU station: 1
Data Bit: 8
Stop bit: 1

Drivers for Windows PC can be downloaded from the device's web page.
The drivers are anyway present in the installation of the "Easy Setup 2" software.

8. RESETTING THE DEVICE TO FACTORY CONFIGURATION

It is possible to reset the device to the factory configuration using the following procedure:

1) With the device off, set dip switch SW3 dip 1 and 2 to ON
2) Power up the device and wait 10 seconds
3) Turn off the device
4) With the device off, set dip switch SW3 dip 1 and 2 to OFF
5) Power up the device
6) The device has now been reset to the factory configuration

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 25
User Manual R-8AI-8DIDO SERIES

9. SUPPORTED MODBUS COMMUNICATION PROTOCOLS (MODEL R-8AI-8DIDO


ONLY)

The Modbus communication protocols supported are:

 Modbus RTU Slave (from the RS485 and USB ports)


 Modbus TCP-IP Server (from Ethernet ports) 8 clients max

For more information on these protocols, see the website:


http://www.modbus.org/specs.php.

9.1. SUPPORTED MODBUS FUNCTION CODES

The following Modbus functions are supported:

 Read Holding Register (function 3)


 Read Coil Status (function 1)
 Write Coil (function 5)
 Write Single Register (function 6)
 Write Multiple Registers (function 16)
 Read/Write Multiple Registers (function 23) (from firmware version 1035)

ATTENTION!
All 32-bit values are contained in 2 consecutive registers

ATTENTION!
Any registers with RW* (in flash memory) can be written up to 10000 times
The PLC/Master Modbus programmer must not exceed this limit

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 26
User Manual R-8AI-8DIDO SERIES

10. MODBUS REGISTER TABLE (R-8AI-8DIDO MODEL ONLY)

The following abbreviations are used in the register tables:

MS = More significant
LS = Less significant
MSW = 16 most significant bits
LSW = 16 least significant bits
RO = Register in read-only
RW = Read/write register
RW * = Register in reading and writing contained in flash memory, writable a maximum of 10000 times.
Unsigned 16 bit = unsigned integer register, can take values from 0 to 65535
Signed 16 bit = signed integer register can take values from -32768 to +32767
Float 32 bits = Single-precision floating point register with 32 bits (IEEE 754)
https://en.wikipedia.org/wiki/IEEE_754
BIT = Boolean registry, can be 0 (false) or 1 (true)

10.1. R-8AI-8DIDO: MODBUS 4X HOLDING REGISTERS TABLE (FUNCTION CODE 3)

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)
UNSIGNED
40001 0 MACHINE-ID - Device ID RO
16 BIT
FIRMWARE
UNSIGNED
40002 1 REVISION - FW revision RO
16 BIT
(Maior/Minor)
FIRMWARE
UNSIGNED
40003 2 REVISION - FW revision RO
16 BIT
(Fix/Build)
UNSIGNED
40004 3 FW CODE - FW code RO
16 BIT
UNSIGNED
40005 4 RESERVED - - RO
16 BIT
UNSIGNED
40006 5 RESERVED - - RO
16 BIT
UNSIGNED
40007 6 BOARD-ID - HW revision RO
16 BIT
BOOT REVISION UNSIGNED
40008 7 - FW Bootloader revision RO
(Maior/Minor) 16 BIT
BOOT REVISION UNSIGNED
40009 8 - FW Bootloader revision RO
(Fix/Build) 16 BIT
UNSIGNED
40010 9 RESERVED - - RO
16 BIT
UNSIGNED
40011 10 RESERVED - - RO
16 BIT
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 27
User Manual R-8AI-8DIDO SERIES

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)
UNSIGNED
40012 11 RESERVED - - RO
16 BIT
UNSIGNED
40013 12 RESERVED - - RW
16 BIT
UNSIGNED
40014 13 RESERVED - - RW
16 BIT
UNSIGNED
40015 14 RESERVED - - RW
16 BIT
UNSIGNED
40016 15 RESERVED - - RW
16 BIT
Supported command list:
UNSIGNED
40017 16 COMMAND - 49568 decimal to perform RW
16 BIT
a Reboot
Bit 0: Thermocouple AIN1
Burnout status (0 = OK, 1 =
BURN)
Bit 1: TC AIN2 Burnout
status (0 = OK, 1 = BURN)
Bit 2: TC AIN3 Burnout
status (0 = OK, 1 = BURN)
Bit 3: TC AIN4 Burnout
status (0 = OK, 1 = BURN)
Bit 4: TC AIN5 Burnout UNSIGNED
40018 17 STATUS - RW
status (0 = OK, 1 = BURN) 16 BIT
Bit 5: TC AIN6 Burnout
status (0 = OK, 1 = BURN)
Bit 6: TC AIN7 Burnout
status (0 = OK, 1 = BURN)
Bit 7: TC AIN8 Burnout
status (0 = OK, 1 = BURN)
Bit 8-15: AIN[8..1] current
measurement dipswitch
status
UNSIGNED
40019 18 RESERVED - - RW
16 BIT
UNSIGNED
40020 19 RESERVED - - RW
16 BIT

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 28
User Manual R-8AI-8DIDO SERIES

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)

Digital input/output status


For inputs:
0 = Low input
1 = High input
For outputs:
0 = Inactive output
1 = Active output
THE LEAST
SIGNIFICANT BIT UNSIGNED
40021 20 DIGITAL I/O [8…1] RW
RELATES TO IO1 16 BIT
EXAMPLE:
5 decimal = 0000
0000 0000 0101
binary =>
IO1=High/Active
IO2=Low/Not Active
IO3=High/Active
IO4..IO8=Low/Not Active

Bit 0: Outputs in watchdog


timeout (0 = OK, 1 =
Timeout)
Bit 7: No power for digital
outputs (0 = OK, 1 = No
power)
Bit 8: At least one TC
UNSIGNED
40022 21 STATUS 2 sensor in burnout status ( RW
16 BIT
0 = OK, 1 = Burnout
sensor)
Bit 9: Voltage/current
switch set wrongly with
regard to the configured
measurement ( 0 = OK, 1 =
FAIL)

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 29
User Manual R-8AI-8DIDO SERIES

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)
Digital input/output status
For inputs:
0 = Low input
1 = High input
For outputs:
0 = Inactive output
1 = Active output
THE LEAST
SIGNIFICANT BIT
RELATES TO IO1
EXAMPLE: UNSIGNED
40023 22 DIGITAL I/O (READ) RO
5 decimal = 0000 16 BIT
0000 0000 0101
binary =>
IO1=High/Active
IO2=Low/Not Active
IO3=High/Active
IO4..IO8=Low/Not Active
Unlike the I/O STATUS
register, it is read-only and
shows the real status of
the outputs
Channel
40101 100 measurement (unit of RO FLOAT 32
measurement depending
on the type of
CHANNEL VALUE 1
measurement or
40102 101 configuration) [V] or [mV] RO FLOAT 32
or [mA] or [°C] o [K] or
[°F])
Channel
40103 102 measurement (unit of RO FLOAT 32
measurement depending
on the type of
CHANNEL VALUE 2
measurement or
40104 103 configuration) [V] or [mV] RO FLOAT 32
or [mA] or [°C] o [K] or
[°F])
Channel
40105 104 CHANNEL VALUE 3 measurement (unit of RO FLOAT 32
measurement depending

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 30
User Manual R-8AI-8DIDO SERIES

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)
on the type of
measurement or
40106 105 configuration) [V] or [mV] RO FLOAT 32
or [mA] or [°C] o [K] or
[°F])
Channel
40107 106 measurement (unit of RO FLOAT 32
measurement depending
on the type of
CHANNEL VALUE 4
measurement or
40108 107 configuration) [V] or [mV] RO FLOAT 32
or [mA] or [°C] o [K] or
[°F])
Channel
40109 108 measurement (unit of RO FLOAT 32
measurement depending
on the type of
CHANNEL VALUE 5
measurement or
40110 109 configuration) [V] or [mV] RO FLOAT 32
or [mA] or [°C] o [K] or
[°F])
Channel
40111 110 measurement (unit of RO FLOAT 32
measurement depending
on the type of
CHANNEL VALUE 6
measurement or
40112 111 configuration) [V] or [mV] RO FLOAT 32
or [mA] or [°C] o [K] or
[°F])
Channel
40113 112 RO FLOAT 32
measurement (unit of
measurement depending
on the type of
CHANNEL VALUE 7
measurement or
40114 113 RO FLOAT 32
configuration) [V] or [mV]
or [mA] or [°C] o [K] or
[°F])
Channel
40115 114 CHANNEL VALUE 8 measurement (unit of RO FLOAT 32

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 31
User Manual R-8AI-8DIDO SERIES

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)
measurement depending
on the type of
measurement or
40116 115 RO FLOAT 32
configuration) [V] or [mV]
or [mA] or [°C] o [K] or
[°F])
Channel measurement SIGNED 16
40117 116 ENG. VALUE 1 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40118 117 ENG. VALUE 2 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40119 118 ENG. VALUE 3 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40120 119 ENG. VALUE 4 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40121 120 ENG. VALUE 5 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40122 121 ENG. VALUE 6 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40123 122 ENG. VALUE 7 RO
scaled in engineering units BIT
Channel measurement SIGNED 16
40124 123 ENG. VALUE 8 RO
scaled in engineering units BIT
Measurement of the cold
40125 124
NTC TEMP 1 junction internal RO FLOAT 32
40126 125 sensor temperature in [°C]
40127 126 Measurement of the cold
NTC TEMP 2 junction internal RO FLOAT 32
40128 127 sensor temperature in [°C]
40129 128 Measurement of the cold
NTC TEMP 3 junction internal RO FLOAT 32
40130 129
sensor temperature in [°C]
40131 130 Measurement of the cold
NTC TEMP 4 junction internal RO FLOAT 32
40132 131
sensor temperature in [°C]
Measurement of the cold
40133 132
NTC TEMP 5 junction internal RO FLOAT 32
40134 133 sensor temperature in [°C]
40135 134
Measurement of the cold
NTC TEMP 6 junction internal RO FLOAT 32
40136 135
sensor temperature in [°C]

40137 136 Measurement of the cold


NTC TEMP 7 junction internal RO FLOAT 32
40138 137 sensor temperature in [°C]

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 32
User Manual R-8AI-8DIDO SERIES

OFFSET
ADDRESS CHANN
ADDRESS REGISTER DESCRIPTION W/R TYPE
(4x) EL
(4x)
40139 138 Measurement of the cold
NTC TEMP 8 junction internal RO FLOAT 32
40140 139 sensor temperature in [°C]

10.2. R-8AI-8DIDO: TABLE OF MODBUS REGISTERS 0x COIL STATUS (FUNCTION CODE 1)

ADDRESS (0x) OFFSET ADDRESS (0x) REGISTER CHANNEL DESCRIPTION W/R TYPE
DIGITAL DIGITAL
1 0 1 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
2 1 2 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
3 2 3 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
4 3 4 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
5 4 5 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
6 5 6 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
7 6 7 RW BIT
INPUT/OUTPUT INPUT/OUTPUT
DIGITAL DIGITAL
8 7 8 RW BIT
INPUT/OUTPUT INPUT/OUTPUT

10.3. R-8AI-8DIDO: TABLE OF MODBUS REGISTERS 1x INPUT STATUS (FUNCTION CODE 2)

ADDRESS (1x) OFFSET ADDRESS (1x) REGISTER CHANNEL DESCRIPTION W/R TYPE
DIGITAL DIGITAL
10001 0 1 RO BIT
INPUT INPUT/OUTPUT
DIGITAL DIGITAL
10002 1 2 RO BIT
INPUT INPUT/OUTPUT
DIGITAL DIGITAL
10003 2 3 RO BIT
INPUT INPUT/OUTPUT
DIGITAL DIGITAL
10004 3 4 RO BIT
INPUT INPUT/OUTPUT
DIGITAL DIGITAL
10005 4 5 RO BIT
INPUT
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 33
User Manual R-8AI-8DIDO SERIES

INPUT/OUTPUT
DIGITAL DIGITAL
10006 5 6 RO BIT
INPUT INPUT/OUTPUT
DIGITAL DIGITAL
10007 6 7 RO BIT
INPUT INPUT/OUTPUT
DIGITAL DIGITAL
10008 7 8 RO BIT
INPUT INPUT/OUTPUT
11. SEARCH AND MODIFICATION OF THE DEVICE IP WITH SENECA DISCOVERY TOOL
(R-8AI-8DIDO MODEL ONLY)

The search and modification of a device can be performed directly in the Easy Setup 2 software.
If Seneca devices that are not part of the R series are also used, it is more convenient to set the addresses
with a single software.

When in the R series device the STS LED is on steady, it is possible to obtain the IP address which has been
set using the "Seneca Discovery" tool too.

The software can be downloaded from:

https://www.seneca.it/en/linee-di-prodotto/software/easy/sdd

Pressing the "search" button starts the search for all Seneca devices present in the network even if with IP
addresses not compatible with the current PC configuration:

It is now possible to change the address by pressing the "Assign" button:


ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 34
User Manual R-8AI-8DIDO SERIES

The software works at layer 2 level and it is therefore not necessary to have an Ethernet configuration
compatible with the device you are looking for.

12. PROFINET IO (R-8AI-8DIDO-P MODEL ONLY)


Type of protocol: Class A Device, Cyclic Real-time (RT) and Acyclic Data

The device has been tested using the following PLCs:


SIEMENS S7 1200 and 1500 (Tia Portal 16)
CODESYS Runtime 3.5 (Codesys 3.5)

12.1. STEP BY STEP CREATION OF A PROJECT WITH SIEMENS PLC (TIA PORTAL 16)

Creating a new project:

12.1.1. INSTALLING THE GSD FILE

Install the GSD file of the Seneca product:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 35
User Manual R-8AI-8DIDO SERIES

Point to the directory where the file is and press OK, then the list of GSD files in the folder will appear:

Click on "install".

12.1.2. INSERTION OF THE SIEMENS PLC IN THE PROJECT

Now insert the Siemens PLC (in our example a SIEMATIC S7 1200), click on "Add new device ...":

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 36
User Manual R-8AI-8DIDO SERIES

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 37
User Manual R-8AI-8DIDO SERIES

Confirm and the PLC will be added to the rack:

Now click on the PLC and select Profinet interface -> Ethernet addresses

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 38
User Manual R-8AI-8DIDO SERIES

Set the IP you want (in this case 192.168.90.44) and the PLC subnet:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 39
User Manual R-8AI-8DIDO SERIES

Move on to the network view:

12.1.3. INSERTION OF THE PROFINET SENECA IO

On the right, select "Hardware Catalogue" and then under "Additional Field Device" -> PROFINET IO -> I/O ->
Seneca R-Series-> Header module (in the example an R-16DI-8DO device is shown):

Drag the device to the network view:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 40
User Manual R-8AI-8DIDO SERIES

Now associate it to the PLC by clicking with the left mouse on "Not assigned" and then select the PLC:

Click twice on the Seneca device and configure the IP address here too (for example 192.168.90.48):

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 41
User Manual R-8AI-8DIDO SERIES

In Profinet the devices are identified by their name, so right click on the Seneca device and select "Assign
device name"

Scan the network with "Update list" and set (if necessary) the device name with "Assign name".

12.1.4. CONFIGURATION OF THE PARAMETERS OF THE SENECA IO

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 42
User Manual R-8AI-8DIDO SERIES

It is also possible to directly configure the device IO without any external software.
To configure the device, click on the IO so that the "Unit parameters" appear:

At the next start, the PLC will send the desired configuration to the device.

12.1.5. COMPILATION AND SENDING OF THE PROJECT TO THE SIEMENS PLC

Now that the devices are configured, all that remains is to compile and send the configuration to the PLC.
The first icon compiles while the second sends the project:

Before sending the project to the PLC, you are asked to select the ethernet interface and start the search, in
order to select the PLC and press "Load".

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 43
User Manual R-8AI-8DIDO SERIES

Once the project has been sent, RUN the PLC:

And go ON-Line so as to check if there are any errors:

If everything is correct you will get a green icon next to the Seneca device:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 44
User Manual R-8AI-8DIDO SERIES

12.1.6. READING AND WRITING OF THE SENECA IO FROM TIA PORTAL

It is also possible to read and write the Seneca IO (for debugging purposes) directly from the TIA portal.
Define the PLC tags directly in the "standard tag table":

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 45
User Manual R-8AI-8DIDO SERIES

Add the tags related to the IO (in the example it is an R-16DI-8DO that is 16 digital inputs and 8 digital
outputs). The addresses are written here:

So bytes I1 and I2 contain the 16 inputs, byte Q1 the 8 outputs:

After this operation, define a new control table:

Click on "Add new control table" and then insert the variables

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 46
User Manual R-8AI-8DIDO SERIES

Since you have already defined them previously, just select the ones we want to monitor from the list:

Once you have added all of them you will get:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 47
User Manual R-8AI-8DIDO SERIES

Now compile, send the project and go online with the PLC (all operations seen previously):

Once online, press the glasses icon to update the status of the variables:

Under the "Control value" column you can read the I/O value in real time.
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 48
User Manual R-8AI-8DIDO SERIES

To control the outputs, it is necessary to enter "TRUE" in the "Command value" column and then press the
icon with the lightning bolt to order the writing:

In the "Control value" column, the outputs are now correctly read to "True".

12.2. STEP-BY-STEP PROJECT CREATION WITH CODESYS 3.5 PLC

Create a new standard project:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 49
User Manual R-8AI-8DIDO SERIES

12.2.1. INSERTION OF THE CODESYS PLC IN THE PROJECT

Configure the PLC by selecting it in the tree on the left and then browsing the network:

Select the PLC after scanning the network:

The PLC is now connected to the system:

Now that the PLC has been detected, move on to insert a Profinet port on standard ethernet:
Right click on device and "add device":
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 50
User Manual R-8AI-8DIDO SERIES

Then add the Profinet IO Master:

Double click on Ethernet, set the Ethernet port and the IP address of the PLC (in this case use 192.168.90.44):

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 51
User Manual R-8AI-8DIDO SERIES

Set also the address range for the Profinet peripheral, double click on PN_Controller:

12.2.2. INSTALLING THE GSD

Now you need to connect the Seneca slave device PROFINET IO to the Profinet master (controller).
First install the GSD file of the Seneca IO.
Select Tools->Device Repository:

Now import the GSD file by selecting Profinet IO Slave and then Install:
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 52
User Manual R-8AI-8DIDO SERIES

Now point to the correct folder and press OK.


Codesys has now added the GSD file correctly.

At this point you can scan the network in search of Slave devices (Device).
First compile the project and log in to the PLC:

12.2.3. INSTALLATION OF THE SENECA PROFINET IO

Now that you are connected to the PLC, run the scan to find the devices:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 53
User Manual R-8AI-8DIDO SERIES

In the list of devices, select the Seneca IO and then "Copy to project":

At this point you have added the device to the project:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 54
User Manual R-8AI-8DIDO SERIES

12.2.4. CONFIGURATION OF THE PARAMETERS OF THE SENECA IO

If you want to change the IO configuration parameters, you can set them from here:

Check that everything is correct by compiling and running the PLC.


The PLC (Raspberry-pi) is quite slow and not real time, consequently it cannot manage the Profinet at
maximum speed so we modify the values by setting safety parameters:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 55
User Manual R-8AI-8DIDO SERIES

12.2.5. READING AND WRITING THE SENECA IO FROM CODESYS

Now see how it is possible to read and write IO on the Seneca device.
To write and read the status of the IO you have to insert a few code lines under PRG.
In the program, read the inputs from the %IB0 and %IB1 addresses and write in the %QB0 address as it is
obtained from here:

Declare two 8-bit (Byte) variables for the 16 inputs and one byte for the 8 outputs.
In the program, instead, read the inputs from %IB0 and %IB1 and write the outputs on %QB0:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 56
User Manual R-8AI-8DIDO SERIES

Go into login and start:

You read the current states of the IOs here:

while to write the outputs you just set the byte value in the "prepared value" column, for example by writing
0xFF (255 decimal = 11111111 binary) all the outputs will be brought to 1:

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 57
User Manual R-8AI-8DIDO SERIES

And then with "Write values" all the outputs are activated correctly.

ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY


BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc: MI-00566-0-IT Page 58

You might also like