background image

 

 

smartDEN

 

IP-16R-MT

 User Manual 

7 July 2020

 

 

-

45

 

 

Function Code 

1 Byte 

0x0F 

Start Address 

2 Bytes 

0x0000 

Quantity of Outputs 

2 Bytes 

0x0010 

Error 

The possible error responses for function code 0x0F are: 

  Function Code (1 byte): 0x8F (0x80 + 0x0F) 

  Exception Codes (1 byte):  

-  0x01 

– Function code not supported 

-  0x02 

– Incorrect combination of start address and coil quantity 

Error response example: 

Table 18.

 Write Multiple Coils error response 

Field 

Length 

Data 

Transaction Identifier 

2 Bytes 

0x0003 

Protocol Identifier 

2 Bytes 

0x0000 

Length 

2 Bytes 

0x0003 

Unit Identifier 

1 Byte 

0x00 

Function Code 

1 Byte 

0x8F 

Exception Codes 

1 Byte 

0x01 or 0x02  

 

9.1.4. Read Holding Registers 

This command is used to read the contents of a contiguous block of registers. 

Request 

The  Read  Holding  Registers  request  specifies  the  starting  register  address  and 

the number of registers to be read. 

Note

:  If the sum of the start address and number of registers

 

exceeds the size of 

the accessed block of registers, an error response will be returned. 

Request example: Read Week Schedule Start Date fields: 

Table 19.

 Read Holding Registers request 

Field 

Length 

Data 

Transaction Identifier 

2 Bytes 

0x0004 

Protocol Identifier 

2 Bytes 

0x0000 

Length 

2 Bytes 

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 function code,  byte count, and 

register‟s values packed as two bytes per register. 

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

Страница 1: ...smartDEN IP 16R MT User Manual 7 July 2020 1 smartDEN IP 16R MT Web enabled 16 Relay Module with Modbus TCP User Manual Date 7 July 2020 For firmware version v1 21 July 2020...

Страница 2: ...lication examples 4 3 Technical parameters 5 4 Connectors ports and led indicators 6 5 Installation 7 6 Default Settings 14 7 Web access 16 8 HTTP XML JSON access 32 9 Modbus TCP 38 10 Security consid...

Страница 3: ...eboot network equipment automatically 10 Mb Ethernet 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 Built in...

Страница 4: ...martDEN IP 16R MT User Manual 7 July 2020 4 2 Application examples Remote control of electrical appliances Industrial automation Home automation Watchdog monitoring of network equipment and auto reboo...

Страница 5: ...ze 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 consumption...

Страница 6: ...smartDEN IP 16R MT User Manual 7 July 2020 6 4 Connectors ports and led indicators Bellow is shown a picture with the device connectors ports and led indicators Figure 1 Device overview...

Страница 7: ...mounting the device connecting to an IP network connecting the relays providing power and configuring via a web browser 5 1 Box mounting Figure 2 Mounting the device to DIN rail smartDEN IP 16R MT can...

Страница 8: ...tor must start blinking in 5 seconds which means the controller is running normally Figure 4 Connecting a LAN cable Please keep the polarity and supply voltage range smartDEN IP 16R MT does not accept...

Страница 9: ...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 ext...

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

Страница 11: ...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...

Страница 12: ...P 16R MT User Manual 7 July 2020 12 The next step is to enter into IPv4 properties Figure 9 Enter in IPv4 properties section Set the IP address of your PC to be in the same network Figure 10 Set the I...

Страница 13: ...t type in your browser 192 168 1 100 Figure 11 Open the device via browser If the network settings are O K the log in page should appear Figure 12 Login page smartDEN IP 16R MT modules connected local...

Страница 14: ...b pages Value General Settings Device Name SMARTDEN IP 16R Save Outputs No Password admin Network Settings DHCP Disabled IP Address 192 168 1 100 Gateway 192 168 1 1 Subnet Mask 255 255 255 0 Primary...

Страница 15: ...eturned back as those in point 6 1 from the current document Figure 14 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...

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

Страница 17: ...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...

Страница 18: ...onsists of the following items located in the left window frame Figure 18 Navigation menu 7 3 General Settings Figure 19 General settings Device Name The name of the module max 15 symbols Every module...

Страница 19: ...he web admin and XML operation max 10 chars When typed the password in this screen is not hidden Only in this case when the password is being changed it is transmitted across the network in the open T...

Страница 20: ...is disabled With DHCP enabled this field displays the currently assigned address Gateway This specifies the IP address of the gateway router It is used for accessing public time servers for automatic...

Страница 21: ...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...

Страница 22: ...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...

Страница 23: ...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...

Страница 24: ...efault 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 Client Stat...

Страница 25: ...what is the duration of the single pulse in milliseconds x 100 for example value of 10 means 1 second This parameter can accept values between 0 and 65535 If it is 0 then the pulse mode is disabled If...

Страница 26: ...us TCP 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 output is controlled by weekly schedule then when the output becom...

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

Страница 28: ...up Pulse sec if checked the smartDEN IP 16R MT 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 Pulse1 sec...

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

Страница 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: ...ction 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 h...

Страница 32: ...xml Relay 1 Relay2 0 Relay3 1 http 192 168 1 100 current_state json Relay 1 Relay2 0 Relay3 1 The XML JSON login process differs depending on the selected Encrypt Password option 8 1 Login Encrypted...

Страница 33: ...0 33 Step 2 Request password is sent as a parameter http 192 168 1 100 current_state xml pw 28237099263eabfd88626124a822c 64c Reply password is O K login accepted or http 192 168 1 100 current_state j...

Страница 34: ...meter with the request http 192 168 1 100 current_state xml pw admin http 192 168 1 100 current_state json pw admin Getting the LoginKey in the answer in this mode means only that the provided passwor...

Страница 35: ...in the custom application can obtain the smartDEN IP 16R MT 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...

Страница 36: ...smartDEN IP 16R MT User Manual 7 July 2020 36...

Страница 37: ...Encrypt Password option is enabled 8 5 Parameters After a login the custom application can also control the smartDEN IP 16R MT by sending parameters name value pairs with the HTTP GET request Valid p...

Страница 38: ...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...

Страница 39: ...art Date Year 0x6102 0x6102 2000 2099 Week Schedule Row Enable Flag 0x6200 0x621D 0 1 Week Schedule Row Outputs Code 0x6300 0x631D 0 65535 Week Schedule Row Outputs State 0x6400 0x641D 0 1 Week Schedu...

Страница 40: ...Start Address 2 Bytes 0x0000 Quantity of Coils 2 Bytes 0x0003 Request example 2 Read Coil Status Relays 4 16 Table 7 Read Coils Request Example 2 Field Length Data Transaction Identifier 2 Bytes 0x000...

Страница 41: ...tus Relays 4 16 Table 9 Read Coils response example 2 Field Length Data Transaction Identifier 2 Bytes 0x0001 Protocol Identifier 2 Bytes 0x0000 Length 2 Bytes 0x0004 Unit Identifier 1 Byte 0x00 Funct...

Страница 42: ...o be OFF and a value of 0xFF02 toggles the coil state All other values are illegal and will not affect the coil state Note If the address exceeds 16 an error response will be returned Request example...

Страница 43: ...and will force each coil in a sequence of coils to either ON or OFF Request The Write Multiple Coils request specifies the starting address and quantity of relays to be forced Start Address 0x0000 Rel...

Страница 44: ...rst byte of the Outputs Value field corresponds to relays 8 to 1 and the second byte to relays 16 to 9 Response The normal response returns the function code starting address and quantity of coils for...

Страница 45: ...ding Registers This command is used to read the contents of a contiguous block of registers Request The Read Holding Registers request specifies the starting register address and the number of registe...

Страница 46: ...ed 0x02 Incorrect combination of start address and number of registers Error response example Table 21 Read Holding Registers error response Field Length Data Transaction Identifier 2 Bytes 0x0004 Pro...

Страница 47: ...Unit Identifier 1 Byte 0x00 Function Code 1 Byte 0x06 Register Address 2 Bytes 0x0009 Register Value 2 Bytes 0x001E Error The possible error responses for function code 0x06 are Function Code 1 byte 0...

Страница 48: ...6100 Quantity of Registers 2 Bytes 0x0003 Byte Count 1 Byte 0x06 Start Date Day 2 Bytes 0x000A Start Date Month 2 Bytes 0x0009 Start Date Year 2 Bytes 0x07E4 Response The normal response returns the f...

Страница 49: ...al 7 July 2020 49 Field Length Data Transaction Identifier 2 Bytes 0x0003 Protocol Identifier 2 Bytes 0x0000 Length 2 Bytes 0x0003 Unit Identifier 1 Byte 0x00 Function Code 1 Byte 0x90 Exception Codes...

Страница 50: ...ross the network in encrypted form so eavesdropping on the data transmission will not reveal the password Subsequent transmissions of the password to login onto the device are encrypted and safe The o...

Страница 51: ...smartDEN IP 16R MT User Manual 7 July 2020 51 11 PCB mechanical drawing Figure 30 PCB drawings...

Страница 52: ...smartDEN IP 16R MT User Manual 7 July 2020 52 12 DIN Rail BOX dimensions Figure 31 Box dimensions...

Отзывы: