background image

   

Industrial

 

Electronic Devices 

 

 

 ADFweb.com S.r.l. 

 

User Manual   

Modbus TCP Slave / Modbus Master

 

 

Document code: MN67508_ENG     Revision 1.100    Page 22 of 28 

 

Example 1: 

 

If you want, from TCP network, write a data it the RTU 
network on the device at: 

 

Address 5; 

 

Through Gateway WORD 100  (Address RTU); 

 

Address TCP 1000. 

 
In the above scenario: 
 
Specify the type of data between:  

 

Coil Status (bit in read write); 

 

Input Status (bit in read); 

 

Holding Register (word in read and write); 

 

Input Register (word in read). 

 

From the side of the MODBUS TCP: 

 

Address of data to read. 

 
From the side of the MODBUS RTU: 

 

Address of the device to interrogate; 

 

Address of data to read on device. 

 

 
 

 

Note:  
    If the RTU slave responds with an exception, that exception code will be transmitted to the TCP Master. If the RTU slave does not 

respond within the estimated time defined by the Timeout parameter, an exception response will be given on TCP side: error code $0B. 

Modbus TCP

 

Master

Modbus TCP 10/100

HD67508

Modbus RTU up to 115200

Module Modbus RTU

 

Slave

Address 5

Request to the gateway, from the “holding 

register” in address 1000 

(step 1)

Request by the gateway, from the “holding register” in 

address 100 to the device in address 5 

(step 2)

Return to the gateway, from the variable 

100 of the device in address 5 

(step 3)

Return to the TCP Master, from the variable 100 of the 

device in address 5 

(step 4)

Содержание HD67508-A1-232

Страница 1: ...cts see also the following links RS232 RS485 USB Ethernet www adfweb com Product HD67118 RS232 RS485 Converter www adfweb com Product HD67119 USB RS485 Converter www adfweb com Product HD67038 RS485 RS232 Ethernet Converter CAN CANopen Modbus Modbus TCP www adfweb com Product HD67001 CANopen Modbus Master Converter www adfweb com Product HD67502 CANopen Modbus Slave Converter www adfweb com Produc...

Страница 2: ...ON Dear customer we thank you for your attention and we remind you that you need to check that the following document is Updated Related to the product you own To obtain the most recently updated document note the document code that appears at the top right hand corner of each page of this document With this Document Code go to web page www adfweb com download and search for the corresponding code...

Страница 3: ...The device 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 of this equipment and who have appropriate qualifications for their job RESIDUAL RISKS The device is state of the art and is safe The instruments can represent a potential hazard if they are ina...

Страница 4: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Slave Modbus Master Document code MN67508_ENG Revision 1 100 Page 4 of 28 EXAMPLES OF CONNECTION ...

Страница 5: ...ustrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Slave Modbus Master Document code MN67508_ENG Revision 1 100 Page 5 of 28 CONNECTION SCHEME Figure 1a Connection scheme for HD67508 A1 232 ...

Страница 6: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Slave Modbus Master Document code MN67508_ENG Revision 1 100 Page 6 of 28 Figure 1b Connection scheme for HD67508 A1 485 ...

Страница 7: ...Industrial Electronic Devices ADFweb com S r l User Manual Modbus TCP Slave Modbus Master Document code MN67508_ENG Revision 1 100 Page 7 of 28 Figure 1c Connection scheme for HD67508 A1 422 ...

Страница 8: ...5mm Rail DIN Wide power supply input range 8 24V AC or 12 35V DC Temperature range 40 C 85 C 40 F 185 F This device is able to manage a maximum of ten simultaneous connections from Ethernet side It can be used in two operative ways In the Routing Mode the command Modbus is forwarded on the serial line using the same requested addresses In the Natting Mode the device addresses and data are altered ...

Страница 9: ...Page 9 of 28 POWER SUPPLY The devices can be powered at 8 24V AC and 12 35V DC The consumption depends to the code of the device For more details see the two tables below VAC VDC Vmin Vmax Vmin Vmax 8V 24V 12V 35V Consumption at 24V DC Device Consumption W VA HD67508 A1 xxx 3 5 Warning Not reverse the polarity power HD67508 A1 xxx ...

Страница 10: ...ing of the position of the Dip2 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 for upload the Project and or Firmware For the operations to follow for the updating see UPDATE DEVICE section According to the functioning mode the LEDs will have specifics functions see LEDS se...

Страница 11: ...odbus comm green Blinks when a Modbus response is received Blinks quickly Boot state Blinks very slowly 0 5Hz update in progress 2 Device state green Blinks slowly 1Hz Blinks quickly Boot state Blinks very slowly 0 5Hz update in progress 3 Ethernet1 Tx green Blinks quickly for a short time when sends Ethernet frames Blinks quickly Boot state Blinks very slowly 0 5Hz update in progress 4 Ethernet2 ...

Страница 12: ...hould 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 a Hub Switch the use of a straight cable is recommended To connect the device to a PC PLC other the use of a cross cable is recommended RS232 The connection from a RS232 socket to a serial port example one from a personal computer must be made with a NULL MODEM ...

Страница 13: ...t dip 1 ON 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 82842 2x 24AWG stranded twisted pairs conductor foil shield braid shield Tasker p n C521 1x 24AWG twisted pair conductor foil shield braid shield Tasker p n C522 2x 24AWG twisted pairs conductor f...

Страница 14: ...ve Modbus Master Document code MN67508_ENG Revision 1 100 Page 14 of 28 RS422 For terminate the RS422 line with a 120Ω resistor it is necessary to put ON dip 1 for T line and or put ON dip 2 for R line like in figure The maximum length of the cable should be 1200m 4000 feet ...

Страница 15: ...hat runs with Windows called SW67508 It is downloadable on the site www adfweb com and its operation is described in this document This manual is referenced to the last version of the software present on our web site The software works with MSWindows XP Vista Seven 8 10 11 32 64bit When launching the SW67508 the window below appears Fig 2 Note It is necessary to have installed Net Framework 4 Figu...

Страница 16: ...figuration A device s configuration can also be imported or exported To clone the configurations of a programmable Modbus TCP Slave Modbus Master Converter in order to configure another device in the same manner it is necessary to maintain the folder and all its contents To clone a project in order to obtain a different version of the project it is sufficient to duplicate the project folder with a...

Страница 17: ...ange 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 to check if there are some updatings of the software compositor in ADFweb com website Checking the option Check Software Update at Start of Program the SW67508 check automatically if there are upd...

Страница 18: ...his feature is used for going out of the net In the field Port the port used for Modbus TCP communication is defined Checking Enable UDP Port field it is possible to do a Broadcast request This request must be made at Port 64223 FADF with these six byte of data 53 45 41 52 43 48 Each device in response sends a total of 10 Bytes These bytes are four for the IP and the other for the MAC address Exam...

Страница 19: ...rate of Modbus RTU is defined In the field Parity the parity of Modbus RTU is defined In the field Stop bits the number of Stop Bit of Modbus RTU is defined In the field Data bits the number of Data Bit of Modbus RTU is defined In the field Timeout the maximum time that the converter attends for the answer from the Modbus slave interrogated is defined In the field Communication Idle Time ms the de...

Страница 20: ...ng the last byte of the MBAP header it is possible to carry out the routing from a requested Modbus TCP toward a serial line using the address from the slave which is specified by the byte unit identifier Example A requested Modbus TCP made in the device as the address 192 168 0 200 for the holding register address 2000 which is MBAP unit identifier has the value of 2 It will be followed by the re...

Страница 21: ...red In the field Address Device TCP insert the virtual address of the device on the TCP Modbus that contains the data In the field Address TCP insert the virtual address of the present data in a device in the TCP Modbus In the field Address Device RTU insert the address of the device on the RTU Modbus that contains the data In the field Address RTU insert the address of the data on the RTU device ...

Страница 22: ... Address of the device to interrogate Address of data to read on device Note If the RTU slave responds with an exception that exception code will be transmitted to the TCP Master If the RTU slave does not respond within the estimated time defined by the Timeout parameter an exception response will be given on TCP side error code 0B Modbus TCP Master Modbus TCP 10 100 HD67508 Modbus RTU up to 11520...

Страница 23: ...pear Press the Next button 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 Dip Switch A in OFF position Turn ON the device If you know the actual IP address of the device you have to use this procedure Turn on the Device with the Ethernet cable inserted Insert the actual IP of the Con...

Страница 24: ...updating Try with another PC Try to restart the PC Check the LAN settings Check the Wi Fi 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 privileges In case you have to program more than one device using the UDP Update you have to cancel the ARP table every ...

Страница 25: ...Electronic Devices ADFweb com S r l User Manual Modbus TCP Slave Modbus Master Document code MN67508_ENG Revision 1 100 Page 25 of 28 MECHANICAL DIMENSIONS Figure 7 Mechanical dimensions scheme for HD67508 A1 xxx ...

Страница 26: ...odbus Master Converter Order Code HD67508 A1 232 Modbus TCP Slave Modbus Master Converter Ethernet Switch Inside for enter exit connection RS232 for Modbus RTU communication Order Code HD67508 A1 485 Modbus TCP Slave Modbus Master Converter Ethernet Switch Inside for enter exit connection RS485 for Modbus RTU communication Order Code HD67508 A1 422 Modbus TCP Slave Modbus Master Converter Ethernet...

Страница 27: ...llection 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 recycling of electrical and electronic equipment If the product is disposed correctly you will help prevent potential negative environmental factors and impact of human health which could otherwise b...

Страница 28: ...ase do 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 the address provided with the PRN having prepaid the shipping costs shipment costs billed to us will not be accepted If the product is within the warranty of twelve months it will be repaired or ...

Отзывы: