background image

   

Industrial

 

Electronic Devices 

 

 

 ADFweb.com S.r.l.           

User Manual   

Modbus Master / MQTT

 

 

Document code: MN67933_ENG     Revision 1.001   Page 22 of 36

 

 

Figure 4: “Set MQTT Topics” window 

 

MQTT SET TOPIC (Synchronous Mode):

 

 

 

By Pressing the “

MQTT Set Topic

” button from the main window for SW67933 (Fig. 2) the window “Set MQTT Topics” appears (Fig. 4). 

This section is used to define the MQTT topics where the converter will publish the data from Modbus and the topic that the converter will 
subscribes for writing the data to Modbus. 

 

 

 

 

 

 

 

 

 

 

 

 
 

 

 

The means of the fields are: 

 

In the field “

Topic

” the MQTT topic is defined; 

 

If the field “

Retained

” is defined, the retained flag is enabled. The MQTT server will hold the last topic published; 

 

In the field “

QoS

” the QoS level is defined; 

 

In the field “

Template

” the structure of the MQTT payload is defined (only for ‘MQTT Publish’ table). With a double click on it, it is 

possible to open a window for editing it; 

 

In the field “

Mnemonic

” a description of the topic is defined. 

 

 

Note: 
    It is possible to define a single MQTT topic for subscribe. The payload of the MQTT message must be written with the structure 

defined on page 32. 

Содержание HD67933-x-B2

Страница 1: ...atures Very easy to configure Power Supply 18 35V DC and 8 24 V AC Temperature range 40 C 85 C 40 F 185 F For others MQTT products see also the following links Converter MQTT to www adfweb com Product...

Страница 2: ...4 DISCLAIMER 35 OTHER REGULATIONS AND STANDARDS 35 WARRANTIES AND TECHNICAL SUPPORT 36 RETURN POLICY 36 UPDATED DOCUMENTATION Dear customer we thank you for your attention and we remind you that you n...

Страница 3: ...ice can be used only by qualified personnel strictly in accordance with the specifications Qualified personnel are persons who are familiar with the installation assembly commissioning and operation o...

Страница 4: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus Master MQTT Document code MN67933_ENG Revision 1 001 Page 4 of 36 EXAMPLE OF CONNECTION...

Страница 5: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus Master MQTT Document code MN67933_ENG Revision 1 001 Page 5 of 36 CONNECTION SCHEME Figure 1 Connection scheme for HD67933 4 B2...

Страница 6: ...olation between Ethernet and Modbus Mountable on 35mm Rail DIN Wide power supply input range 18 35V DC and 8 24V AC Wide temperature range 40 C 85 C 40 F 185 F CONFIGURATION You need Compositor SW6793...

Страница 7: ...33_ENG Revision 1 001 Page 7 of 36 POWER SUPPLY The devices can be powered at 8 24V AC and 12 35V DC For more details see the two tables below VAC VDC Vmin Vmax Vmin Vmax 8V 24V 12V 35V Consumption at...

Страница 8: ...the position of the Dip1 of Dip Switch A The first with Dip1 of Dip Switch A at OFF position is used for the normal working of the device The second with Dip1 of Dip Switch A at ON position is used fo...

Страница 9: ...ly 0 5Hz update in progress 2 Modbus communication yellow Blinks when Modbus communication is running Blinks quickly Boot state Blinks very slowly 0 5Hz update in progress 3 MQTT status yellow ON MQTT...

Страница 10: ...p 1 like in figure The maximum length of the cable should be 1200m 4000 feet Here some codes of cables Belden p n 8132 2x 28AWG stranded twisted pairs conductor foil shield braid shield Belden p n 828...

Страница 11: ...munication The Ethernet connection must be made using Connector2 of HD67933 B2 with at least a Category 5E cable The maximum length of the cable should not exceed 100m The cable has to conform to the...

Страница 12: ...onverter use the available software that runs with Windows called SW67933 It is downloadable on the site www adfweb com and its operation is described in this document The software works with MS Windo...

Страница 13: ...iguration A device s configuration can also be imported or exported To clone the configurations of a Programmable Modbus Master MQTT Converter in order to configure another device in the same manner i...

Страница 14: ...e language of the software and check the updatings for the compositor In the section Language it is possible to change the language of the software In the section Connection Options it is possible to...

Страница 15: ...Modbus Master MQTT Document code MN67933_ENG Revision 1 001 Page 15 of 36 In the section Software Settings it is possible to enable disable some keyboard s commands for an easier navigation inside the...

Страница 16: ...sing the Set Communication button from the main window for SW67933 Fig 2 the window Set Communication appears Fig 3 The window is divided in different sections in order to define the different paramet...

Страница 17: ...Modbus and MQTT are decoupled The converter manages by itself the Modbus polling MODBUS MASTER This section is used to define the main parameters of Modbus line The means of the fields are In the fiel...

Страница 18: ...nnection or missing ACK they try to send again them since all the ACK messages are exchanged correctly valid only for QoS 1 and QoS 2 If the field Will Flag is checked the converter will publish the W...

Страница 19: ...IP Address WI FI This section is used to define the general parameters of Wi Fi It is possible to defined the type of Wi Fi communication Access Point Client The means of the fields for Access Point...

Страница 20: ...ed The means of the fields for Client configuration are If the field Obtain an IP Address automatically is checked the converter gets the IP Address using DHCP Otherwise the IP Address is defined as s...

Страница 21: ...f enabled in the field Server Certificate the certificate from the Server is defined If the field Client Authentication is checked the authentication of the Client using TLS is enabled If enabled o in...

Страница 22: ...ll subscribes for writing the data to Modbus The means of the fields are In the field Topic the MQTT topic is defined If the field Retained is defined the retained flag is enabled The MQTT server will...

Страница 23: ...g the data to Modbus MQTT PUBLISH The means of the fields are In the field Topic the MQTT topic is defined If the field Retained is defined the retained flag is enabled The MQTT server will hold the l...

Страница 24: ...bled The MQTT server will hold the last topic published In the field QoS the QoS level is defined In the field Data Type the type of data to use is defined In the field Dimension the dimension in byte...

Страница 25: ...is possible to choose between the following o Coil Status o Input Status o Holding Register o Input Register In the field Address the starting address of the register to be read is defined In the fie...

Страница 26: ...d In the field Type the data type of the register to read is defined It is possible to choose between the following o Coil Status o Input Status o Holding Register o Input Register In the field Addres...

Страница 27: ...ield Poll Time the delay time to make the request is defined If the field On Change is checked the converter sends the writing request when the data from MQTT side change value If the field On CMD is...

Страница 28: ...t cable Insert the IP 192 168 2 205 Select which operations you want to do Press the Execute update firmware button to start the upload When all the operations are OK turn OFF the Device Put Dip1 of D...

Страница 29: ...o restart the PC Check the LAN settings If you are using the program inside a Virtual Machine try to use in the main Operating System If you are using Windows Seven Vista 8 or 10 make sure that you ha...

Страница 30: ...This template is valid for the Modbus requests in reading The definition of the template can be done using Key words used to link a specific information of the Modbus requests The key words used and...

Страница 31: ...300 NPoint 1 We define a template string in this way Modbus ID SOURCE Function Code FC Modbus register ADDRESS Num of Registers NPOINT Data VALUE The output of MQTT will be Row 1 Modbus ID 1 Function...

Страница 32: ...TT payload In this way the converter can get all the info ned and compose the Modbus request It is necessary to use a JSON format described below slave id SOURCE fc FC address ADDRESS npoint NPOINT va...

Страница 33: ...trial Electronic Devices ADFweb com S r l User Manual Modbus Master MQTT Document code MN67933_ENG Revision 1 001 Page 33 of 36 Figure 10 Mechanical dimensions scheme for HD67933 4 B2 MECHANICAL DIMEN...

Страница 34: ...e 2 Fixed Screw Terminal Enclosure Type B Modulbox 4M 35mm DIN Rail mounting Serial port 2 RS232 4 RS485 Device Family HD67933 Modbus Master MQTT Converter Order Code HD67933 2 B2 Modbus Master MQTT C...

Страница 35: ...n systems This symbol on the product or on its packaging indicates that this product may not be treated as household rubbish Instead it should be taken to an applicable collection point for the recycl...

Страница 36: ...the following Obtain a Product Return Number PRN from our internet support at www adfweb com Together with the request you need to provide detailed information about the problem Send the product to th...

Отзывы: