background image

11. Modbus Interface

11.1. General Description

The Modbus protocol is an application-layer messaging protocol developed by Modicon in 1979. It is used to
establish master-slave/client-server communication between intelligent devices over different types of buses or
networks. The Intesis gateway supports Modbus TCP and RTU.

Modbus is a request/reply protocol and offers services specified by function codes. Modbus function codes are
elements of Modbus request/reply PDUs (Protocol Data Unit).

11.2. Modbus Server Interface

11.3. Description

The gateway acts as a server device in its Modbus interface, which can be:

• The Ethernet port for Modbus TCP.
• The EIA-485/EIA.232 ports for Modbus RTU.

NOTICE

Modbus RTU and TCP modes can be active in the gateway one at a time or both simultaneously.

To access the gateway's points and resources from a Modbus client device, you must specify as Modbus register
addresses those configured inside the gateway corresponding to the signals on the field device protocol.

11.4. Functions Supported

NOTICE

This part is common for both Modbus TCP and Modbus RTU.

Table 6. Modbus functions

#

Function

Read/Write

01

Read Coils

R

02

Read Discrete Inputs

R

03

Read Holding Registers

R

04

Read Input Registers

R

05

Write Single Coil

W

06

Write Single Register

W

15

Write Multiple Coils

W

16

Write Multiple Registers

W

If poll records are used to read or write more than one register, the range of addresses requested must contain
valid addresses; if not, the Intesis gateway will return the corresponding Modbus error code.

All registers are of 2 bytes, even if they are associated with signals of bit type on theKNX side. Its content is
expressed in MSB .. LSB.

1

Modbus error codes are fully supported. They are sent whenever a non-valid Modbus action or address is
required.

1

MSB: most significant bit; LSB: less significant bit

Modbus Interface

IN701-KNX Series

USER MANUAL Version 1.0

Page 15 of 44

Summary of Contents for Intesis IN701-KNX Series

Page 1: ...IN701 KNX Series INTESIS PROTOCOL TRANSLATOR WITH KNX SERIAL AND IP SUPPORT USER MANUAL Version 1 0 Publication date 2022 10 27 ENGLISH ...

Page 2: ...f the wide range of possible applications of the product and because of the many variables and requirements associated with any particular implementation HMS Networks cannot assume responsibility or liability for actual use based on the data examples or illustrations included in this document nor for any damages incurred during installation of the product Those responsible for the use of the produ...

Page 3: ...cific Introduction 10 7 2 Functionality 10 8 ASCII Server to KNX 11 8 1 Specific Introduction 11 8 2 Functionality 11 9 Gateway Capacity 13 10 KNX Interface 14 10 1 Description 14 10 2 Points Definition 14 11 Modbus Interface 15 11 1 General Description 15 11 2 Modbus Server Interface 15 11 3 Description 15 11 4 Functions Supported 15 11 5 Modbus RTU 16 11 6 Modbus TCP 16 11 7 Modbus Server Interf...

Page 4: ... Connection to KNX 34 15 4 Connection to BACnet 34 15 5 Connection to Modbus 35 15 6 Connection to ASCII 36 15 7 Console and USB Connections 38 16 Set up Process with the Configuration Tool 39 16 1 Prerequisites 39 16 2 Intesis MAPS Configuration and Monitoring Tool 39 16 2 1 Introduction 39 16 2 2 Template Selection 40 16 2 3 Connection Tab 40 16 2 4 Configuration Tab 41 16 2 5 Signals Tab 41 16 ...

Page 5: ...NBACKNX1K20000 INKNXBAC1K20000 IN701KNX3K00000 INMBSKNX3K00000 INKNXMBM3K00000 INBACKNX3K00000 INKNXBAC3K00000 INASCKNX3K00000 PRODUCT NAME ORDER CODE DESCRIPTION INTESIS MAPS TEMPLATE APPLICATION IN701 KNX IN701KNXxxx 0000 Intesis Protocol Translator with KNX Serial and IP Support IN MBS KNX KNX to Modbus server IN KNX MBM Modbus client to KNX IN BAC KNX KNX to BACnet server IN KNX BAC BACnet cli...

Page 6: ...ded and communication must only be connected to networks with indoor wiring All communication ports are considered for indoor use and must only be connected to SELV circuits Disconnect power wires before manipulating and connecting them to the gateway Use SELV rated NEC class 2 or limited power source LPS power supply Supply always a correct voltage to power the gateway see Technical Specification...

Page 7: ...ions NOTICE Remarkable Information 2 4 Terminology Some terms generalize specific nomenclature to clarify some explanations Term Description Intesis gateway Gateway General term for this device Application Specific configuration that allows the gateway to emulate a particular protocol translator Device or installation What you re about to integrate Control system System that controls the mechanica...

Page 8: ... common to all applications while others highlight specific differences capacities or limitations In general terms you must have a KNX installation or device on one side and a BACnet Modbus or ASCII installation or device on the other side only one at a time IMPORTANT The Intesis gateway can act as a server or client for BACnet and Modbus but only as a server for ASCII As always the configuration ...

Page 9: ...signals and stores the received values in its memory ready to be served to the Modbus system when requested It also listens for any KNX telegram related to the internal points configured in it and acts accordingly to the configuration of the related points From the Modbus system point of view after starting it the gateway listens for any read or write request serves any read request or performs an...

Page 10: ...is gateway continuously reads the Modbus RTU service devices updating all the points values received in its memory From the KNX system point of view after starting the gateway or performing a KNX bus reset the Intesis gateway polls the KNX signals and stores the received values in its memory ready to be served to the Modbus system when requested It also listens for any KNX telegram related to the ...

Page 11: ...ces if a non response is detected the corresponding virtual signal inside the gateway will be activated to indicate the communication error as a KNX group address Functionality IN701 KNX Series USER MANUAL Version 1 0 Page 7 of 44 ...

Page 12: ...gnals and stores the received values in its memory ready to be served to the BACnet system when requested It also listens for any KNX telegram related to the internal points configured in it and acts accordingly to the configuration of the related points From the BACnet system point of view after starting it the gateway listens for any subscription COV request serves any polling request or perform...

Page 13: ...ated in the KNX part can be read from the KNX system at any moment Any point with the Ri flag activated in the KNX part will be read after every reset of the gateway Functionality IN701 KNX Series USER MANUAL Version 1 0 Page 9 of 44 ...

Page 14: ...way subscribes to configured BACnet points or reads them continuously from their respective BACnet server devices updating in its memory the received value of their Present_Value property Each Present_Value is associated with a KNX group object that in turn is associated with one or more KNX group addresses When a KNX object changes it is transmitted to the KNX system with its corresponding group ...

Page 15: ...ionality From the KNX system point of view after starting the gateway or performing a KNX bus reset the Intesis gateway polls the KNX signals and stores the received values in its memory ready to be served to the ASCII system when requested It also listens for any KNX telegram related to its configured internal points and acts accordingly to the configuration of the related point From the ASCII sy...

Page 16: ...ives a telegram from a KNX group address associated with an ASCII point it sends a message to the corresponding ASCII device to perform the related action IN701 KNX Series Functionality Page 12 of 44 USER MANUAL Version 1 0 ...

Page 17: ...version 600 version 1200 version 3000 version Maximum number of BACnet objects 100 250 600 1200 3000 Maximum number of BACnet subscriptions COV requests 200 500 1200 2400 6000 Maximum number of KNX main group addresses 100 250 600 1200 3000 Maximum number of KNX associations 200 500 1200 2400 6000 Type of BACnet devices supported Those supporting communication with BACnet IP and MS TP Table 4 For ...

Page 18: ...t facilitates the identification of the signal DPT KNX data type used to code the signal value It will depend on the type of signal associated with the external system in every case In some integrations it is selectable while in others it is fixed due to the intrinsic characteristics of the signal Group KNX group to which the point is associated It is also the group to which the read R write W tra...

Page 19: ...ice you must specify as Modbus register addresses those configured inside the gateway corresponding to the signals on the field device protocol 11 4 Functions Supported NOTICE This part is common for both Modbus TCP and Modbus RTU Table 6 Modbus functions Function Read Write 01 Read Coils R 02 Read Discrete Inputs R 03 Read Holding Registers R 04 Read Input Registers R 05 Write Single Coil W 06 Wr...

Page 20: ...nto TCP IP frames which allows faster communication and a longer distance between client and server devices in comparison with RTU communication over a serial line Another benefit is using common TCP IP infrastructure in buildings and transmitting over WAN or the internet It also allows the coexistence of one or more clients and of course one or more server devices in a given network all interconn...

Page 21: ...the Modbus TCP network Modbus RTU client or both IMPORTANT Other Modbus devices connected to the network communicating with the gateway must always be server devices The gateway supports communication with up to five Modbus TCP server devices For every defined point belonging to a particular Modbus TCP server device a server address from 0 to 255 can also be freely configured This feature offers g...

Page 22: ...ignal is also available from the field device interface Function code Read func Write func 01 Read Coils 02 Read Discrete Inputs 03 Read Holding Registers 04 Read Input Registers 05 Write Single Coil 15 Write Single Register 06 Write Multiple Coils 16 Write Multiple Register Bits Number of bits to be used by this signal Data coding format 16 32 48 64 bits unsigned 16 32 48 64 bits signed one s com...

Page 23: ...er status information of the BACnet device Value objects are bidirectional Every object has different properties The most meaningful one is the Present_Value property which indicates the real value of the object Also the gateway uses this property to read and write values Every object of the same type in a device is identified with its associated object instance 12 2 BACnet Client 12 3 Description...

Page 24: ...atus Multistate Output Present Value Multistate signal Multistate Value Present Value Multistate signal for example Working mode command Accumulator Present Value Loop Present Value Every signal is identified with its associated Device Object Type Object Instance IMPORTANT Though BACnet IP and BACnet MSTP physical layers are supported only one physical layer can be used at a time i e if communicat...

Page 25: ...state Output MV Multistate Value LOOP Loop ACUM Accumulator IMPORTANT Please read the documentation of the BACnet devices you re willing to integrate to know their object types BACnet object instance BACnet object instance for the point on the external BACnet device IMPORTANT Please read the documentation of the BACnet devices you re willing to integrate to know their object types 12 5 BACnet Serv...

Page 26: ...the BACnet server side a read and write object can be a value object type etc NOTICE The configuration tool provides default templates that make this signals assignment process easier Also you only have to click the Check table button on the bottom right corner of the window to know if everything is correct or if there s some mistake The project is also automatically checked before you transfer it...

Page 27: ...to associate the gateway with a MAC address within the MSTP network segment Baud rates supported for MSTP line are 9600 19200 38400 76800 115200 or Autobauding autodetect Standard wiring guidelines for EIA 485 apply to the BACnet MSTP line IMPORTANT BACnet MSTP and BACnet IP communication can not be used simultaneously BACnet MSTP IN701 KNX Series USER MANUAL Version 1 0 Page 23 of 44 ...

Page 28: ...configured to send these spontaneous messages If it doesn t the new value will remain available in the gateway for a later poll of the ASCII system You can configure this behavior for every gateway point through the configuration tool 13 2 ASCII Serial The ASCII interface and the ASCII master device serial connection type must be the same 13 3 ASCII TCP The Intesis gateway allows the configuration...

Page 29: ...is directly set when selecting the current BACnet type object Type Analog Digital BACnet object Analog input Analog output Analog value Multistate input Multistate output Multistate value Loop Accumulator Binary input Binary output Binary value 13 6 Messages The ASCII side communicates through simple ASCII messages NOTE You can configure these messages to match the ASCII master device using the co...

Page 30: ...ious poll for the point ASCII_String vv r Where ASCII_String is the string indicating the point address inside the Intesis gateway is the character used to indicate where the point data starts vv is the current point value r is the carriage return character HEX 0x0D DEC 13 IN701 KNX Series Messages Page 26 of 44 USER MANUAL Version 1 0 ...

Page 31: ...net Ensure the gateway has sufficient clearances for all connections when mounted see Dimensions page 44 DIN rail mounting The rear panel has a groove to fit the gateway to the DIN rail using two static tabs top side and a mobile clip bottom side 1 Push down the mobile clip until you hear a click 2 Fasten the gateway to the DIN rail 3 Push up the clip again to lock the gateway to the rail Mounting...

Page 32: ...Pin out A4 B1 B A3 B2 A A1 and A2 NA B3 SNGD 15 1 Power Supply NOTE The way to supply power to the gateway is the same for all applications IMPORTANT Only use NEC class 2 or limited power source LPS and SELV rated power supply A wrong connection may cause earth loops that can damage the Intesis gateway and or any other system equipment If using a DC power supply IMPORTANT Observe polarity on the p...

Page 33: ...Diagrams for each Application Look for the appropriate diagram depending on your application Figure 6 Modbus server to KNX Connection Diagrams for each Application IN701 KNX Series USER MANUAL Version 1 0 Page 29 of 44 ...

Page 34: ...Figure 7 KNX to Modbus client IN701 KNX Series Connection Diagrams for each Application Page 30 of 44 USER MANUAL Version 1 0 ...

Page 35: ...Figure 8 BACnet server to KNX Connection Diagrams for each Application IN701 KNX Series USER MANUAL Version 1 0 Page 31 of 44 ...

Page 36: ...Figure 9 KNX to BACnet client IN701 KNX Series Connection Diagrams for each Application Page 32 of 44 USER MANUAL Version 1 0 ...

Page 37: ...Figure 10 ASCII server to KNX Connection Diagrams for each Application IN701 KNX Series USER MANUAL Version 1 0 Page 33 of 44 ...

Page 38: ...f there is no response from the BACnet devices to the frames sent by the gateway Check that they are operative and reachable from the network connection used by the gateway Check the gateway Ethernet interface sending Pings to its IP address using a PC connected to the same Ethernet network Contact the network admin to be sure there are no limitations regarding UDP communication or ports blocked I...

Page 39: ...e IMPORTANT If the termination resistor is enabled and you install the gateway at one of the ends of the bus do not install an additional termination resistor at that end 15 5 Connection to Modbus Ethernet port for Modbus TCP and Console connection Connect the communication cable from the Modbus TCP network to the Ethernet port of the gateway IMPORTANT Use a straight Ethernet UTP FTP CAT5 or highe...

Page 40: ...tall an additional termination resistor at that end Port B EIA 232 Connect the serial cable EIA 232 from the external serial device to the EIA 232 connector of the gateway Port B NOTE This is a DB9 male DTE connector that only uses the TX RX and GND IMPORTANT Respect the maximum distance of 15 meters 15 6 Connection to ASCII Ethernet port for ASCII TCP Connect the communication cable from the ASCI...

Page 41: ...can be enabled using the DIP switches Position 1 ON 120 Ω termination active OFF 120 Ω termination inactive Position 2 3 ON Polarization active OFF Polarization inactive If the termination resistor is enabled and you install the gateway at one of the ends of the bus do not install an additional termination resistor at that end Port B EIA 232 for ASCII serial Connect the serial cable EIA 232 from t...

Page 42: ...ol you can configure and monitor the gateway NOTE If your computer has an Ethernet port you can also use the Ethernet port of the gateway to connect both USB port TIP You can connect a USB storage device to the USB port of the gateway to store logs IMPORTANT The USB port doesn t support HDD devices IN701 KNX Series Console and USB Connections Page 38 of 44 USER MANUAL Version 1 0 ...

Page 43: ...running Intesis MAPS You can download this configuration tool from https www intesis com products intesis maps Intesis MAPS is a Windows compatible software explicitly developed to monitor and configure Intesis gateways NOTE The following sections provide some primary and general information to configure this gateway Although Intesis MAPS is an easy to manage user friendly tool you may need more s...

Page 44: ...onnection Tab 1 On the Connection Type parameter select the way you connected the gateway to your PC Select IP if you are using the Ethernet port of the Intesis gateway IMPORTANT Make sure you have an internet connection NOTE When using IP connection the device s name is listed in black if it s compatible with the selected template and red if it s not Select USB Port if you are using the Console p...

Page 45: ...nfiguration to the gateway Follow these steps 1 Click the Send button a If the gateway is still factory set you will be prompted to save the project on your PC Once you save it the configuration is automatically sent to the gateway b If you have already saved the project the configuration is automatically sent to the gateway 2 Connect again with the gateway after sending the file NOTICE The gatewa...

Page 46: ...ection to Check the current hardware status of the gateway Save communication logs to a ZIP file for diagnostic purposes Get information on the gateway Reset the gateway Viewers Intesis MAPS provides several viewers A generic console viewer for general information about communications and the gateway status A viewer for both protocols to check their current status A signals viewers to simulate the...

Page 47: ...0VDC isolation from other ports except Port B EIA 485 1 x serial EIA 485 green plug in screw terminal block 3 poles 1500VDC isolation from other ports except Port B EIA 232 SW B 1 x DIP switch for serial EIA 485 configuration Position 1 ON 120 Ω termination active OFF 120 Ω termination inactive Position 2 3 ON polarization active OFF polarization inactive default Battery Size coin 20mm x 3 2mm Cap...

Page 48: ...18 Dimensions Figure 13 Gateway dimensions Figure 14 Space needed for connections IN701 KNX Series Dimensions Page 44 of 44 USER MANUAL Version 1 0 ...

Reviews: