ADF Web HD67935-B2 User Manual Download Page 33

   

Industrial

 

Electronic Devices 

 

 

 ADFweb.com S.r.l.           

User Manual   

Modbus TCP Master / MQTT

 

 

Document code: MN67935_ENG     Revision 1.001   Page 33 of 37

 

 

MODBUS WRITING WITH SYNCHRONOUS MODE 

 
If “Synchronous” mode is selected, in order to send the Modbus writing requests it is necessary to use a specific MQTT 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: 
 

  "ip address":$ip address$, 
  "port":$port$, 
  "slave id":$SOURCE$, 
  "fc":$FC$, 
  "address":$ADDRESS$, 
  "npoint":$NPOINT$, 
  "value":"$VALUE$" 

 
Where: 
 

 

ip address: IP Address of the Modbus TCP slave to write 

 

port: TCP port to use for the connection 

 

SOURCE: ID of the Modbus slave 

 

FC: Function code 

 

ADDRESS: Modbus register 

 

NPOINT: Number of consecutive Modbus registers 

 

VALUE: value of the Modbus variable (hex format) 

 

 

Note: 
    If a field is missing or wrong JSON is sent, the Modbus writing request is not sent by the converter

Summary of Contents for HD67935-B2

Page 1: ...Master www adfweb com Product HD67934 Modbus Slave www adfweb com Product HD67936 Modbus TCP Slave www adfweb com Product HD67937 BACnet Master www adfweb com Product HD67938 BACnet Slave www adfweb c...

Page 2: ...ISCLAIMER 36 OTHER REGULATIONS AND STANDARDS 36 WARRANTIES AND TECHNICAL SUPPORT 37 RETURN POLICY 37 UPDATED DOCUMENTATION Dear customer we thank you for your attention and we remind you that you need...

Page 3: ...evice 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...

Page 4: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Master MQTT Document code MN67935_ENG Revision 1 001 Page 4 of 37 EXAMPLE OF CONNECTION...

Page 5: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Master MQTT Document code MN67935_ENG Revision 1 001 Page 5 of 37 CONNECTION SCHEME Figure 1a Connection scheme for HD67935 B2...

Page 6: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Master MQTT Document code MN67935_ENG Revision 1 001 Page 6 of 37 Figure 1b Connection scheme for HD67935 GPRS B2...

Page 7: ...lation between Ethernet and Power Supply 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 S...

Page 8: ...1 001 Page 8 of 37 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 24V DC Device C...

Page 9: ...f 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...

Page 10: ...y 0 5Hz update in progress 2 Modbus communication yellow Blinks when Modbus TCP communication is running Blinks quickly Boot state Blinks very slowly 0 5Hz update in progress 3 MQTT status yellow ON M...

Page 11: ...east a Category 5E cable The maximum length of the cable should not exceed 100m The cable has to conform to the T568 norms relative to connections in cat 5 up to 100 Mbps To connect the device to an H...

Page 12: ...Converter use the available software that runs with Windows called SW67935 It is downloadable on the site www adfweb com and its operation is described in this document The software works with MS Win...

Page 13: ...iguration A device s configuration can also be imported or exported To clone the configurations of a Programmable Modbus TCP Master MQTT Converter in order to configure another device in the same mann...

Page 14: ...the 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 t...

Page 15: ...dbus TCP Master MQTT Document code MN67935_ENG Revision 1 001 Page 15 of 37 In the section Software Settings it is possible to enable disable some keyboard s commands for an easier navigation inside t...

Page 16: ...the Set Communication button from the main window for SW67935 Fig 2 the window Set Communication appears Fig 3 The window is divided in different sections in order to define the different parameters...

Page 17: ...upled The converter manages by itself the Modbus TCP polling MODBUS TCP MASTER This section is used to define the main parameters of Modbus TCP line The means of the fields are In the field IP Address...

Page 18: ...Client hold the last MQTT messages and in case of incorrect disconnection 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...

Page 19: ...ot 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 Poin...

Page 20: ...ined 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...

Page 21: ...he field Client Authentication is checked the authentication of the Client using TLS is enabled If enabled o in the field Client Certificate the certificate from the Client is defined o in the field C...

Page 22: ...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 wi...

Page 23: ...ed 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 o...

Page 24: ...nabled 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 by...

Page 25: ...ad is defined 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...

Page 26: ...the field Slave IP Address the IP address of the Modbus TCP device to read is defined In the field Port the TCP port used for the communication is defined In the field Slave ID the address of the Modb...

Page 27: ...1 001 Page 27 of 37 In the field Start Bit the starting bit of the first byte of the field Position is defined If the field Swap is checked the data from the Modbus registers are swapped If the field...

Page 28: ...ield NPoint the number of consecutive registers to be written is defined In the field Poll Time the delay time to make the request is defined If the field On Change is checked the converter sends the...

Page 29: ...net 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...

Page 30: ...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 have the administrator privil...

Page 31: ...rmat or a JSON format 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 Th...

Page 32: ...s 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 Functio...

Page 33: ...and compose the Modbus request It is necessary to use a JSON format described below ip address ip address port port slave id SOURCE fc FC address ADDRESS npoint NPOINT value VALUE Where ip address IP...

Page 34: ...com S r l User Manual Modbus TCP Master MQTT Document code MN67935_ENG Revision 1 001 Page 34 of 37 Figure 10a Mechanical dimensions scheme for HD67935 B2 Figure 10b Mechanical dimensions scheme for H...

Page 35: ...2 Fixed Screw Terminal Enclosure Type B Modulbox 4M 35mm DIN Rail mounting MQTT port None Ethernet GPRS Ethernet GPRS Device Family HD67935 Modbus TCP Master MQTT Converter Order Code HD67935 B2 Modbu...

Page 36: ...ion 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 recy...

Page 37: ...o 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...

Reviews: