Difference between revisions of "Modbus Master"
(→Configuration) |
|||
(24 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
= Introduction = | = Introduction = | ||
Line 7: | Line 8: | ||
<span style="font-size:medium;">Modbus Service is a Windows/Linux system service for WISE Agent to read sensor data from Modbus device or write data into Modbus device. After sensor data are acquired, WISE Agent will upload the data to the WISE-PaaS Cloud.</span> | <span style="font-size:medium;">Modbus Service is a Windows/Linux system service for WISE Agent to read sensor data from Modbus device or write data into Modbus device. After sensor data are acquired, WISE Agent will upload the data to the WISE-PaaS Cloud.</span> | ||
+ | | ||
− | + | | |
− | |||
= Features = | = Features = | ||
Line 24: | Line 25: | ||
*<span style="font-size:medium;">Support Modbus Coil, Descrete input, Input register & Holding register data.</span> | *<span style="font-size:medium;">Support Modbus Coil, Descrete input, Input register & Holding register data.</span> | ||
*<font size="3">Support maximal 10 links, 5 devices for each link, and 10 sensors for each device.</font> | *<font size="3">Support maximal 10 links, 5 devices for each link, and 10 sensors for each device.</font> | ||
− | |||
= How to = | = How to = | ||
− | == | + | == Login == |
− | + | Step 1. Launch a web browser (Google Chrome, Microsoft Edge ...) and open iEdge local web '''[http://127.0.0.1:8081 http://127.0.0.1:8081]''' | |
− | + | Step 2. Login iEdge local web: | |
− | + | Account: '''root''' | |
− | + | Password: '''P@ssw0rd''' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | [[File:Ros2-iedge-plugin-config-01.png|frameless|900x520px|Ros2-iedge-plugin-config-01.png]] | ||
+ | | ||
== Configuration == | == Configuration == | ||
− | |||
=== How to config Model === | === How to config Model === | ||
Line 53: | Line 48: | ||
Step 1. Go to "Plug-ins" / Plugin Config to select Modbus-Master Plug-in | Step 1. Go to "Plug-ins" / Plugin Config to select Modbus-Master Plug-in | ||
− | [[File:Modbus config bQUoHri.png|800x480px|Modbus config bQUoHri.png]] | + | [[File:Modbus config bQUoHri.png|border|800x480px|Modbus config bQUoHri.png]] |
Setp 2. From Modbus-Master Configuration, open Model Management tab, click "+" to add new Model. | Setp 2. From Modbus-Master Configuration, open Model Management tab, click "+" to add new Model. | ||
− | [[File:Modbus config qpMUDCj.png|800x480px|modbus_config_qpMUDCj.png]] | + | [[File:Modbus config qpMUDCj.png|border|800x480px|modbus_config_qpMUDCj.png]] |
Setp 3. Input Model name and Description for new Model. | Setp 3. Input Model name and Description for new Model. | ||
− | [[File:Modbus config XLSJYyn.png|800x480px|modbus_config_XLSJYyn.png]] | + | [[File:Modbus config XLSJYyn.png|border|800x480px|modbus_config_XLSJYyn.png]] |
− | Step 4. Click "+" to add Sensor - Input Sensor Name - Select Address Space, Access mode, Data Type, Data Format and input Address, Data Length, Minimal/Maximal Value for new sensor's attributes. - Input below timing attributes | + | Step 4. Click "+" to add Sensor - Input Sensor Name - Select Address Space, Access mode, Data Type, Data Format and input Address, Data Length, Minimal/Maximal Value for new sensor's attributes. - Input below timing attributes: Period (second) . Delay (ms, range: 0~1000ms) and Retry (range: 0~5) |
*Click "Save" button to save the new sensor. | *Click "Save" button to save the new sensor. | ||
− | [[File:Modbus config qsox6hM.png|800x480px|modbus_config_qsox6hM.png]] | + | [[File:Modbus config qsox6hM.png|border|800x480px|modbus_config_qsox6hM.png]] |
Step 5. Repeat Step 4 to add another sensor. | Step 5. Repeat Step 4 to add another sensor. | ||
− | [[File:Modbus config DPdBICk.png|800x480px|modbus_config_DPdBICk.png]] | + | [[File:Modbus config DPdBICk.png|border|800x480px|modbus_config_DPdBICk.png]] |
Step 6. Click "Save" button to save the new sensors. | Step 6. Click "Save" button to save the new sensors. | ||
− | [[File:Modbus config oXbCCsc.png|800x480px|modbus_config_oXbCCsc.png]] | + | [[File:Modbus config oXbCCsc.png|border|800x480px|modbus_config_oXbCCsc.png]] |
Step 5. Click "Save" button to save the new model. | Step 5. Click "Save" button to save the new model. | ||
− | [[File:Modbus config kXoLU5M.png|800x480px|modbus_config_kXoLU5M.png]] | + | [[File:Modbus config kXoLU5M.png|border|800x480px|modbus_config_kXoLU5M.png]] |
<br/> | <br/> | ||
Line 87: | Line 82: | ||
Step 1. From Modbus-Master Configuration, open Link Management tab, click "+" to add a new Link. | Step 1. From Modbus-Master Configuration, open Link Management tab, click "+" to add a new Link. | ||
− | [[File:Modbus config Sz3fL8f.png|800x480px|modbus_config_Sz3fL8f.png]] | + | [[File:Modbus config Sz3fL8f.png|border|800x480px|modbus_config_Sz3fL8f.png]] |
Step 2. Input Link Name, Link Type for the new Link. | Step 2. Input Link Name, Link Type for the new Link. | ||
Line 97: | Line 92: | ||
Click "+" icon to add a new device. | Click "+" icon to add a new device. | ||
− | [[File:Modbus config Dvkgjc2.png|800x480px|modbus_config_Dvkgjc2.png]] | + | [[File:Modbus config Dvkgjc2.png|border|800x480px|modbus_config_Dvkgjc2.png]] |
Step 3. Input Device Name, Station Id and select Model Profile for the new device. Model Profile should be added by upper Model Management steps. | Step 3. Input Device Name, Station Id and select Model Profile for the new device. Model Profile should be added by upper Model Management steps. | ||
Line 103: | Line 98: | ||
Click "Save" button to save the new device. | Click "Save" button to save the new device. | ||
− | [[File:Modbus config CkZoH3H.png|800x480px|modbus_config_CkZoH3H.png]] | + | [[File:Modbus config CkZoH3H.png|border|800x480px|modbus_config_CkZoH3H.png]] |
Step 4. Click "Save" button to save the new link. | Step 4. Click "Save" button to save the new link. | ||
− | [[File:Modbus config jGIBhIa.png|800x480px|modbus_config_jGIBhIa.png]] | + | [[File:Modbus config jGIBhIa.png|border|800x480px|modbus_config_jGIBhIa.png]] |
Step 5. Click "Apply" button to apply the new link. | Step 5. Click "Apply" button to apply the new link. | ||
− | [[File:Modbus config YudsLa4.png|800x480px|modbus_config_YudsLa4.png]] | + | [[File:Modbus config YudsLa4.png|border|800x480px|modbus_config_YudsLa4.png]] |
Apply new settings Successfully | Apply new settings Successfully | ||
− | [[File:Modbus config 7rvJoo5.png|800x480px|modbus_config_7rvJoo5.png]] | + | [[File:Modbus config 7rvJoo5.png|border|800x480px|modbus_config_7rvJoo5.png]] |
Step 6. Go to Plugin List and select Modbus-Master plugin, the new sensor will be shown in this page | Step 6. Go to Plugin List and select Modbus-Master plugin, the new sensor will be shown in this page | ||
− | [[File:Modbus config Sys1ZZH.png|800x480px|modbus_config_Sys1ZZH.png]] | + | [[File:Modbus config Sys1ZZH.png|border|800x480px|modbus_config_Sys1ZZH.png]] |
<br/> | <br/> | ||
Line 127: | Line 122: | ||
Step 1. Click Import button from Modbus-Master Configuration | Step 1. Click Import button from Modbus-Master Configuration | ||
− | [[File:Modbus config T6zjSoj.png|800x480px|modbus_config_T6zjSoj.png]] | + | [[File:Modbus config T6zjSoj.png|border|800x480px|modbus_config_T6zjSoj.png]] |
Step 2. Select target file you like to import | Step 2. Select target file you like to import | ||
− | [[File:Modbus config ZYeZTw5.png|800x480px|modbus_config_ZYeZTw5.png]] | + | [[File:Modbus config ZYeZTw5.png|border|800x480px|modbus_config_ZYeZTw5.png]] |
Import successful | Import successful | ||
− | [[File:Modbus config k3N8BQO.png|800x480px|modbus_config_k3N8BQO.png]] | + | [[File:Modbus config k3N8BQO.png|border|800x480px|modbus_config_k3N8BQO.png]] |
Step 3. Click APPLY to use imported configuration | Step 3. Click APPLY to use imported configuration | ||
− | [[File:Modbus config JTgo9CB.png|800x480px|modbus_config_JTgo9CB.png]] | + | [[File:Modbus config JTgo9CB.png|border|800x480px|modbus_config_JTgo9CB.png]] |
Apply new settings Successfully | Apply new settings Successfully | ||
− | [[File:Modbus config WZGsmXR.png|800x480px|modbus_config_WZGsmXR.png]] | + | [[File:Modbus config WZGsmXR.png|border|800x480px|modbus_config_WZGsmXR.png]] |
<br/> | <br/> | ||
Line 151: | Line 146: | ||
Step 1. Click Export button from Modbus-Master Configuration | Step 1. Click Export button from Modbus-Master Configuration | ||
− | [[File:Modbus config tH3zFyI.png|800x480px|modbus_config_tH3zFyI.png]] | + | [[File:Modbus config tH3zFyI.png|border|800x480px|modbus_config_tH3zFyI.png]] |
Step 2. Explore the exported file | Step 2. Explore the exported file | ||
− | [[File:Modbus config IU83MxX.png|800x480px|modbus_config_IU83MxX.png]] | + | [[File:Modbus config IU83MxX.png|border|800x480px|modbus_config_IU83MxX.png]] |
<br/> | <br/> | ||
Line 167: | Line 162: | ||
| | ||
+ | | ||
==== Config Modbus simulator ==== | ==== Config Modbus simulator ==== | ||
Line 188: | Line 184: | ||
*Click "Auto Simulation" | *Click "Auto Simulation" | ||
− | [[File:Modbus config PaxcEE3.png| | + | [[File:Modbus config PaxcEE3.png|320x200px|Modbus config PaxcEE3.png]] |
Step4. Set simulation parameters: | Step4. Set simulation parameters: | ||
Line 199: | Line 195: | ||
*High Limit: 20 | *High Limit: 20 | ||
− | [[File:Modbus config maLqhtS.png| | + | [[File:Modbus config maLqhtS.png|600x320px|Modbus config maLqhtS.png]] |
Step5. Do the same step for the address 30002 and set simulation parameter as below: | Step5. Do the same step for the address 30002 and set simulation parameter as below: | ||
Line 209: | Line 205: | ||
*High Limit: 80 | *High Limit: 80 | ||
− | [[File:Modbus config K98RWgN.png| | + | [[File:Modbus config K98RWgN.png|600x320px|Modbus config K98RWgN.png]] |
Step6. Set Connection to Modbus/TCP Svr: | Step6. Set Connection to Modbus/TCP Svr: | ||
Line 220: | Line 216: | ||
Step7. Config Modbus-Master | Step7. Config Modbus-Master | ||
− | *Config Modbus-Master plugin as upper steps to complete the settings. | + | *Config Modbus-Master plugin as upper steps to complete the settings. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |
Latest revision as of 03:30, 7 January 2025
Contents
Introduction
Modbus enables communication among many devices connected to the same network, for example, a system that measures temperature and humidity and communicates the results to a computer. Modbus is often used to connect a supervisory computer with a remote terminal unit (RTU) in supervisory control and data acquisition (SCADA) systems.
Many of the data types are named from its use in driving relays: a single-bit physical output is called a coil, and a single-bit physical input is called a discrete input or a contact.
Modbus Service is a Windows/Linux system service for WISE Agent to read sensor data from Modbus device or write data into Modbus device. After sensor data are acquired, WISE Agent will upload the data to the WISE-PaaS Cloud.
Features
EdgeSense Modbus-Master aims to collect data from Modbus Slave.
Feature:
- Support connection with multiple Modbus slave.
- Support access both Modbus TCP and RTU in one service.
- Support individual read interval by connection.
- Configurable sensor alias.
- Support byte swap.
- Support Modbus Coil, Descrete input, Input register & Holding register data.
- Support maximal 10 links, 5 devices for each link, and 10 sensors for each device.
How to
Login
Step 1. Launch a web browser (Google Chrome, Microsoft Edge ...) and open iEdge local web http://127.0.0.1:8081
Step 2. Login iEdge local web:
Account: root
Password: P@ssw0rd
Configuration
How to config Model
Step 1. Go to "Plug-ins" / Plugin Config to select Modbus-Master Plug-in
Setp 2. From Modbus-Master Configuration, open Model Management tab, click "+" to add new Model.
Setp 3. Input Model name and Description for new Model.
Step 4. Click "+" to add Sensor - Input Sensor Name - Select Address Space, Access mode, Data Type, Data Format and input Address, Data Length, Minimal/Maximal Value for new sensor's attributes. - Input below timing attributes: Period (second) . Delay (ms, range: 0~1000ms) and Retry (range: 0~5)
- Click "Save" button to save the new sensor.
Step 5. Repeat Step 4 to add another sensor.
Step 6. Click "Save" button to save the new sensors.
Step 5. Click "Save" button to save the new model.
How to config Link
Step 1. From Modbus-Master Configuration, open Link Management tab, click "+" to add a new Link.
Step 2. Input Link Name, Link Type for the new Link.
for Modbus-TCP link, set parameters: - IP - Port
for Modbus-RTU link, set parameters: - COM port - Baudrate - Data bits - Stop bits - Parity mode
Click "+" icon to add a new device.
Step 3. Input Device Name, Station Id and select Model Profile for the new device. Model Profile should be added by upper Model Management steps.
Click "Save" button to save the new device.
Step 4. Click "Save" button to save the new link.
Step 5. Click "Apply" button to apply the new link.
Apply new settings Successfully
Step 6. Go to Plugin List and select Modbus-Master plugin, the new sensor will be shown in this page
How to import plugin settings
Step 1. Click Import button from Modbus-Master Configuration
Step 2. Select target file you like to import
Import successful
Step 3. Click APPLY to use imported configuration
Apply new settings Successfully
How to export plugin settings
Step 1. Click Export button from Modbus-Master Configuration
Step 2. Explore the exported file
Use case
Connect and upload data for Modbus Temperature and Humidity sensor
Use Modsim32 to simulate a modbus TCP device with a temperature sensor and a humidity sensor, config Modbus-Master to read these two sensors and upload iEdge cloud.
Config Modbus simulator
Step1. Open Modbus Simulator: Launch ModSim32 and click "New" in program menu to create a new simulator page.
Step2. Set parameter as below:
- Device Id: 1
- Address: 0001
- Length: 2
- Modbus Point Type: INPUT REGISTER
Step3. Enable Auto Simulation:
- Double click on the sensor address 30001
- Click "Auto Simulation"
Step4. Set simulation parameters:
- Check "Enable"
- Simulation Type: Increment
- Change Interval (secs): 5
- Step VAlue: 1
- Low Limit: 10
- High Limit: 20
Step5. Do the same step for the address 30002 and set simulation parameter as below:
- Simulation Type: Decrement
- Change Interval (secs): 5
- Step VAlue: 1
- Low Limit: 60
- High Limit: 80
Step6. Set Connection to Modbus/TCP Svr:
- Click Connection
- Click Modbus/TCP Svr to simulate Modbus TCP connection
Step7. Config Modbus-Master
- Config Modbus-Master plugin as upper steps to complete the settings.