background image

 

 

smartDEN

 

IP-16R-XX 

User Manual 

13 Apr 2021

 

 

-

44

 

 

 

Figure 10.1.

 

Modbus-TCP message format 

 

The MBAP header includes the following fields: 

 

Transaction Identifier 

- used for transaction pairing when multiple messages 

are sent along the same TCP connection by a client without waiting for a prior 
response; 

 

Protocol Identifier

 - this field is always set to 0 for Modbus-TCP services; 

 

Length

 

– number of bytes in the remaining fields (unit identifier byte, function 

code byte, and data fields); 

 

Unit  Identifier 

-  used  to  identify  a  remote  server  located  on  a  non  TCP/IP 

network  (for  serial  bridging).  In  a  typical  Modbus-TCP  server  application,  the 
unit ID is set to 0; 

The function code field of the message contains one byte that  specifies what kind 

of action the slave needs to take. When the server responds to the client, it echoes 
the  same  function  code  to  indicate  a  normal  (error-free)  response.  If  the  server 
cannot  process  a  request,  it  will  instead  return  an  error  function  code  (exception 
response) that is the original function code plus 80h (i.e. with its most significant bit 
set to 1). 

Modbus-

TCP  uses  a  „big-Endian‟  representation  for  addresses  and  data  fields 

(when  a  numerical  quantity  larger  than  a  single  byte  is  transmitted,  the  most 
significant byte is sent first). 

smartDEN IP-16R-MT 

acts as a Modbus-TCP slave/server device, while a typical 

master  device  is  a  host  computer  running  appropriate  application  software  (for 
example a Raspberry Pi board running Home Assistant automation platform). 

10.2.1. MODBUS Commands 

This following  table  shows  the  standard  Modbus-TCP functions  supported by  the 

smartDEN IP-16R-MT

 module: 

Table 10.6.

 Modbus commands

 

Function 

Code 

Resources 

Access 

Read Coil Status 

01 (0x01) 

Relays 1..16 

bit 

Write Single Coil 

05 (0x05) 

Relays 1..16 

bit 

Write Multiple Coils 

15 (0x0F) 

Relays 1..16 

bit 

Read Holding Registers 

03 (0x03) 

Configuration parameters 

16-bit 

Write Single Register 

06 (0x06) 

Generate pulses, 
Configuration parameters, 

16-bit 

Write Multiple Registers 

16 (0x10) 

Generate pulses, 
Configuration parameters 

16-bit 

Содержание smartDEN IP-16R Series

Страница 1: ...XX Web enabled Ethernet based 16 Relay Modules User Manual Date 13 Apr 2021 Device Short Name Integration Protocol Firmware version smartDEN IP 16R SNMPv2 v1 20 May 2017 smartDEN IP 16R MT Modbus TCP...

Страница 2: ...examples 5 4 Technical parameters 7 5 Connectors ports and led indicators 8 6 Installation 9 7 Default Settings 16 8 Web access 18 9 HTTP XML JSON access 36 10 Integration Protocols 41 11 Security co...

Страница 3: ...interface with Link Activity Led Auto MDIX 16 SPDT relays with NO and NC contacts Led for each relay Pulse function timer for every relay Real Time Clock RTC for schedule calendar stand alone work We...

Страница 4: ...IP 16R MT smartDEN IP 16R MT 12V PCB Modbus TCP model PCB version 12VDC supply voltage smartDEN IP 16R MT 24V PCB Modbus TCP model PCB version 24VDC supply voltage smartDEN IP 16R MT 12V BOX Modbus T...

Страница 5: ...utomation Watchdog monitoring of network equipment and auto reboot Internet of Things IoT Figure 3 1 smartDEN IP 16R XX supports up to 30 schedule events for controlling appliances without connection...

Страница 6: ...nces remotely for Home Automation and Industrial Automation applications using some of the supported integration protocols Figure 3 4 smartDEN IP 16R XX supports periodically sending outgoing ping req...

Страница 7: ...ize mm 203 x 82 Box weight g 420 PCB weight g 285 Power supply voltage VDC 12 or 24 depends on the model 2 Maximum current consumption at 12VDC when all relays are ON mA 600 Maximum current consumptio...

Страница 8: ...smartDEN IP 16R XX User Manual 13 Apr 2021 8 5 Connectors ports and led indicators Bellow is shown a picture with the device connectors ports and led indicators Figure 5 1 Device overview...

Страница 9: ...ounting the device connecting to an IP network connecting the relays providing power and configuring via a web browser 6 1 Box mounting Figure 6 1 Mounting the device to DIN rail smartDEN IP 16R XX ca...

Страница 10: ...ator must start blinking in 5 seconds which means the controller is running normally Figure 6 3 Connecting a LAN cable Please keep the polarity and supply voltage range smartDEN IP 16R XX does not acc...

Страница 11: ...n the technical parameters section Every relay channel has normally open NO and normally closed NC contacts connected directly to the terminals If you are connecting inductive loads to the relays an e...

Страница 12: ...martDEN IP 16R XX supports AUTO MDIX so either crossover or straight through network cable can be used Figure 6 5 Connecting smartDEN IP 16R XX to a computer directly This is the recommend initial con...

Страница 13: ...directly to the computer Next you have to change your PC s IP address You can google how to change you computer IP settings or just visit this web page http www howtochangeipaddress com changeip php F...

Страница 14: ...16R XX User Manual 13 Apr 2021 14 The next step is to enter into IPv4 properties Figure 6 8 Enter in IPv4 properties section Set the IP address of your PC to be in the same network Figure 6 9 Set the...

Страница 15: ...ype in your browser 192 168 1 100 Figure 6 10 Open the device via browser If the network settings are O K the log in page should appear Figure 6 11 Login page smartDEN IP 16R XX modules connected loca...

Страница 16: ...ed IP Address 192 168 1 100 Gateway 192 168 1 1 Subnet Mask 255 255 255 0 Primary DNS 192 168 1 1 Secondary DNS 0 0 0 0 HTTP XML JSON Access HTTP Port 80 Access IP Address 192 168 1 0 Access Mask 0 0...

Страница 17: ...turned back as those in point 6 1 from the current document Figure 7 1 Loading the default settings 1 Turn off the power supply of the device 2 Press and hold the default button 3 Turn on the power su...

Страница 18: ...1 Web access To access the setup pages run a web browser Internet Explorer Mozilla Firefox or similar and enter the smartDEN IP 16R XX IP address for example http 192 168 1 100 Figure 8 2 Open via br...

Страница 19: ...tails Note The default password is admin passwords are case sensitive Note When the password is entered it is transmitted across the network in encrypted form so eavesdropping on the data transmission...

Страница 20: ...dynamic systems because of restriction in maximum write cycles of the EEPROM usually 100 000 write erase cycles Password The password used for logging into the web admin and XML operation max 10 chars...

Страница 21: ...he smartDEN IP 16R XX It needs to be manually assigned only if DHCP is disabled With DHCP enabled this field displays the currently assigned address Gateway This specifies the IP address of the gatewa...

Страница 22: ...for your geographic location Auto Synchronization This option enables or disables automatic synchronization with the SNTP Simple Network Time Protocol server with period specified by Synchronization P...

Страница 23: ...g the IP address and subnet mask of the HTTP client Access MAC Address This field can be used to restrict the HTTP XML JSON access by specifying the MAC address of the HTTP client Session Timeout min...

Страница 24: ...settings to apply It is highly recommended to log out from the web server after finishing the parameters setup If you don t want to restrict the HTTP XML JSON access by IP address set the Access Mask...

Страница 25: ...max 7 chars Pulse ms x100 Determines if the relay works in pulse mode and if so what is the duration of the single pulse in milliseconds x 100 for example value of 10 means 1 second This parameter ca...

Страница 26: ...gh level ON via browser manually via some of the integration protocols or HTTP XML JSON it will be in high level ON for the determined time by this parameter and then set back to low level o If the ou...

Страница 27: ...failures smartDEN IP 16R XX performs a predefined reset reboot sequence of the monitored device connected to one of the 16 relays Figure 8 9 Auto reboot configuration page One of smartDEN IP 16R XX c...

Страница 28: ...Power up Pulse sec if checked the smartDEN IP 16R XX will generate a pulse at power up This for example can be used to switch on the device This parameter can be set from 1 to 3600 seconds Reboot Puls...

Страница 29: ...8 10 Monitoring and control This page provides monitoring and control of the smartDEN IP 16R XX relays From here you can control monitor the relays There is also provided information about how many re...

Страница 30: ...a new item while the bottom table shows the already defined list Outputs Select a group of relays that should be switched State Defines the state ON OFF for the selected group of relays Hour Time the...

Страница 31: ...ion between the computer and the module To delete an item select it in Existing Items table and click on Delete Selected button To set a new start date click on Update Start Date button The module has...

Страница 32: ...ion enables or disables SNMP access to the module SNMP Port UDP port number the SNMP agent receives requests on default port is 161 Read only Community1 2 Community string for client s authentication...

Страница 33: ...requests default port is 502 Idle Timeout min the length of time that a connection is idle before the connection is closed by the Modbus TCP server The timeout is disabled when its value is set to 0...

Страница 34: ...10 chars used for encrypted mode only Publish Mode o Periodically notifications are send periodically the period is defined by the Publish Period value o Edge Triggered notifications are triggered by...

Страница 35: ...as required click this button A list of sample publically accessible MQTT servers brokers iot eclipse org test mosquitto org mqtt fluux io Two configuration options are used by default Publish QoS Qua...

Страница 36: ...name value pairs with the HTTP XML JSON GET request for example http 192 168 1 100 current_state xml Relay 1 Relay2 0 Relay3 1 http 192 168 1 100 current_state json Relay 1 Relay2 0 Relay3 1 The XML J...

Страница 37: ...cation reply formats Password encryption algorithm to be implemented in custom application is available upon request 9 2 Login Non Encrypted Password In this mode the password is passed as non encrypt...

Страница 38: ...smartDEN IP 16R XX current state by a request to the page current_state xml current_state json http 192 168 1 100 current_state xml The reply contains page in XML format see Appendix 2 Application rep...

Страница 39: ...e value pairs with the HTTP GET request Valid parameters and values are shown in the bellow tables 9 5 1 smartDEN IP 16R Table 9 1 Valid smartDEN IP 16R HTTP parameters Name Value Description Relayi 0...

Страница 40: ...layi 0 1 Relayi value i 1 16 SetAll 0 65535 Set all the relays with single command PulseOni 1 65535 Generate a positive ON pulse to relay i 1 16 PulseOffi 1 65535 Generate a negative OFF pulse to rela...

Страница 41: ...uct Table 10 1 Product parameters OID Name Access Description Syntax x 6 1 1 0 Name read only Description of the module DISPLAYSTR ING x 6 1 2 0 Version read only Current firmware version DISPLAYSTR I...

Страница 42: ...Start Date dd mm yyyy DISPLAYST RING x 6 4 2 1 2 0 x 6 4 2 1 2 29 Enabled read write Week Schedule Row Enable Flag Disabled 0 Enabled 1 INTEGER no 0 yes 1 x 6 4 2 1 3 0 x 6 4 2 1 3 29 Outputs read wr...

Страница 43: ...ootPulse1E nable read write Reboot Pulse1 Enable Disabled 0 Enabled 1 INTEGER no 0 yes 1 x 6 5 10 0 RebootPulse1 read write INTEGER32 1 3600 Reboot Pulse1 sec 1 3600 x 6 5 11 0 Pulse1ToPulse 2DelayEna...

Страница 44: ...quest it will instead return an error function code exception response that is the original function code plus 80h i e with its most significant bit set to 1 Modbus TCP uses a big Endian representatio...

Страница 45: ...0x6900 1 31 System Date Month 0x6901 0x6901 1 12 System Date Year 0x6902 0x6902 2000 2099 System Time Hour 0x6903 0x6903 0 23 System Time Minutes 0x6904 0x6904 0 59 Firmware Version read only 0x6A00 0...

Страница 46: ...01 Start Address 2 Bytes 0x0003 Quantity of Coils 2 Bytes 0x000D Response The coils in the response message are packed as one coil per bit of the data field Status is indicated as 1 for ON and 0 for O...

Страница 47: ...2 Bytes 0x590B Byte Coils Status bit 7 MSB bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 LSB 1 0 Relay 11 1 Relay 10 0 Relay 9 1 Relay 8 1 Relay 7 0 Relay 6 0 Relay 5 1 Relay 4 2 0 0 0 0 Relay 16 1 Relay...

Страница 48: ...d Length Data Transaction Identifier 2 Bytes 0x0002 Protocol Identifier 2 Bytes 0x0000 Length 2 Bytes 0x0006 Unit Identifier 1 Byte 0x00 Function Code 1 Byte 0x05 Output Address 2 Bytes 0x0001 Output...

Страница 49: ...sted ON OFF states are specified by contents of the request data field A logical 1 in a bit position of the field requests the corresponding output to be ON A logical 0 requests it to be OFF Request e...

Страница 50: ...2 Bytes 0x0000 Quantity of Outputs 2 Bytes 0x0003 Response example 2 Set relay 1 to OFF and relays 2 16 to ON Table 10 19 Write Multiple Coils response example 2 Field Length Data Transaction Identifi...

Страница 51: ...ytes 0x0006 Unit Identifier 1 Byte 0x00 Function Code 1 Byte 0x03 Starting Register Address 2 Bytes 0x6100 Quantity of Registers 2 Bytes 0x0003 Response The Read Holding Registers response returns the...

Страница 52: ...nds Table 10 24 Write Single Register request Field Length Data Transaction Identifier 2 Bytes 0x0005 Protocol Identifier 2 Bytes 0x0000 Length 2 Bytes 0x0006 Unit Identifier 1 Byte 0x00 Function Code...

Страница 53: ...values Request The Write Multiple Registers request specifies the starting register address the number of registers byte count and the values to be written in ascending order Values are packed as two...

Страница 54: ...0 Function Code 1 Byte 0x10 Starting Register Address 2 Bytes 0x6100 Quantity of Registers 2 Bytes 0x0003 Error The possible error responses for function code 0x0F are Function Code 1 byte 0x90 0x80 0...

Страница 55: ...and encrypted 10 3 1 Plain non encrypted mode In this mode smartDEN IP 16R MQ uses non encrypted topics to get relays states and switch relays On Off Encrypt option in MQTT Settings page must be turn...

Страница 56: ...command under the Set GetStatus topic 1 XML format 2 JSON format See Appendix 2 Application reply formats Get Auto reboot RebootsNumber i LastReboot date time A notification when a monitored device c...

Страница 57: ...page 10 3 2 Encrypted topics and DAE aModules Android app 10 3 2 1 Commands In this mode there are used the following topics encrypted topics Admin Read Topic MQTT client Laptop smartphone DAE aModul...

Страница 58: ...duration x is in ms x 100 MQTT_COMMAND DONAMEi x Sets the name of a relay i 1 16 The length of x is 1 to 7 symbols MQTT_COMMAND DATE x Sets the date x is format dd mm yyyy MQTT_COMMAND TIME x Sets the...

Страница 59: ...es a negative OFF pulse on a single relay i 1 16 The pulse duration x is in ms x 100 10 3 2 2 Android app DAE aModules In order to control monitor the smartDEN IP 16R MQ by Android device the module s...

Страница 60: ...smartDEN IP 16R XX User Manual 13 Apr 2021 60 Figure 10 4 MQTT settings Last the notifications from the DAE aModules must be allowed in the Android Notifications management screen...

Страница 61: ...Android Notifications management settings for DAE aModules When configured the inputs to be monitored can be selected from the navigation menu Figure 10 6 Navigation menu Example monitoring screens f...

Страница 62: ...EN IP 16R XX User Manual 13 Apr 2021 62 Figure 10 7 Relays in DAE aModules Examples of status and relays state notifications published by smartDEN IP 16R MQ are shown below Figure 10 8 Status notifica...

Страница 63: ...smartDEN IP 16R XX User Manual 13 Apr 2021 63 Figure 10 9 Inputs state notifications...

Страница 64: ...he network in the open is when it is being changed and submitted in General Settings form Therefore you must set passwords in the secure environment where you can make sure that no one is eavesdroppin...

Страница 65: ...smartDEN IP 16R XX User Manual 13 Apr 2021 65 12 Appendix 1 Mechanical dimensions Figure 12 1 PCB dimensions Figure 12 2 Box dimensions...

Страница 66: ...smartDEN IP 16R XX User Manual 13 Apr 2021 66 13 Appendix 2 Application reply formats 13 1 XML reply...

Страница 67: ...smartDEN IP 16R XX User Manual 13 Apr 2021 67 13 2 JSON reply...

Отзывы: