You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-Wire with either specification for RS-485 connection (x3):
38
+
-Cable with either specification for RS-485 connection (x3):
39
39
- STP/UTP 24-18AWG (Unterminated) 100-130Ω rated
40
40
- STP/UTP 22-16AWG (Terminated) 100-130Ω rated
41
41
42
42
### Software Requirements
43
43
44
44
-[Arduino PLC IDE Installer](https://www.arduino.cc/en/software#arduino-plc-ide)
45
-
- If you have an Opta™, you do not need any license key to activate your product. Go to section [__License Activation With Pre-Licensed Products (Opta™)__](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#7-license-activation-with-pre-licensed-products-opta) to know more.
45
+
- If you have an Opta™, you do not need any license key to activate your product. Learn more about this in [License Activation With Pre-Licensed Products (Opta™)](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#7-license-activation-with-pre-licensed-products-opta).
46
46
-[Opta™ Modbus RTU PLC IDE Project Example File](assets/ModbusRTU_Opta_Example.zip)
47
47
48
48
## Modbus Protocol
49
49
50
-
Modbus is a client/server architecture-based serial communication protocol that is open and free of licensing restrictions. It is commonly employed in industrial electrical equipment, particularly in Building Management Systems (BMS) and Industrial Automation Systems (IAS).
50
+
Modbus is an open, client/server architecture-based serial communication protocol free of licensing restrictions. It is commonly employed in industrial electrical equipment, particularly in Building Management Systems (BMS) and Industrial Automation Systems (IAS).
51
51
52
-
It was released by Modicon (now Schneider Electric) in 1979. It has since become the de facto industry standard for industrial electronic devices when communicating with PLCs.
52
+
It was released by Modicon (now Schneider Electric) in 1979. Since then, it has become the de facto industry standard for industrial electronic devices communicating with PLCs.
53
53
54
54
In Supervisory Control and Data Acquisition (SCADA) systems, a Remote Terminal Unit (RTU) and a supervisory device are frequently connected via the Modbus communication protocol. Modbus messages have a straightforward 16-bit format and a Cyclic-Redundant Checksum (CRC) when communicating with electronic equipment.
55
55
56
-
***For more information regarding the Modbus RTU protocol implementation on an Opta™, it may interest you to check out["Getting Started with Modbus RTU on Opta™"](https://docs.arduino.cc/tutorials/opta/getting-started-with-modbus-rtu) tutorial.***
56
+
***For more information regarding the Modbus RTU protocol implementation on an Opta™, you may want to check out the [the "Getting Started with Modbus RTU on Opta™"](https://docs.arduino.cc/tutorials/opta/getting-started-with-modbus-rtu) tutorial.***
57
57
58
58
## Modbus RTU & PLC IDE
59
59
60
-
This tutorial will guide you through setting up two Opta™ devices with Modbus RTU using the Arduino PLC IDE. The present tutorial will help us understand the overall process of implementation.
60
+
This tutorial will guide you through setting up two Opta™ devices with Modbus RTU using the Arduino PLC IDE and help us understand the overall implementation process.
61
61
62
-
The following diagram illustrates a concise visualization of how Opta™ is configured and deployed with Modbus RTU:
62
+
The following diagram illustrates how Opta™ is configured and deployed with Modbus RTU:
63
63
64
64

65
65
@@ -77,7 +77,7 @@ The entire procedure is divided into three distinct stages:
77
77
78
78
*__System Operation__ represents the anticipated outcome post the Modbus RTU configuration and the execution of the PLC program based on the developer's designed logic. Consequently, we can observe the device communicating with other devices through Modbus RTU.
79
79
80
-
The diagram presented shows the uniformity of the Modbus RTU setup across devices like Opta™ and Portenta Machine Control using the PLC IDE. One main advantage of this system is its adaptability. Regardless of the specifics of the Modbus RTU setup, the PLC program consistently performs effectively. Its design ensures that it can be used in many different environments.
80
+
The diagram presented shows the uniformity of the Modbus RTU setup across devices like Opta™ and the Portenta Machine Control using the PLC IDE. One main advantage of this system is its adaptability. Regardless of the specifics of the Modbus RTU setup, the PLC program consistently performs effectively. Its design ensures that it can be used in many different environments.
81
81
82
82
In addition, when developing the PLC code, there is no limitation to a single language. The system adheres to the IEC61131-3 standard, allowing one to select from the languages outlined in this standard. It ensures a balance between user convenience and accurate code development.
83
83
@@ -93,13 +93,13 @@ To get the Arduino PLC IDE software, go to the [official software website of the
93
93
94
94
The software requires **Windows 10** or a newer operating system version for the x64 architecture.
95
95
96
-
The Arduino PLC IDE installer contains the IDE and all the required drivers, libraries, and cores. The continuing sections will help you install the Arduino PLC IDE software properly.
96
+
The Arduino PLC IDE installer contains the IDE and all the required drivers, libraries, and cores. The following sections will help you install the software properly.
97
97
98
98
***For more details regarding Arduino PLC IDE setup, please take a look at [Arduino PLC IDE Setup and Board's License Activation](https://docs.arduino.cc/tutorials/portenta-machine-control/plc-ide-setup-license) tutorial.***
99
99
100
100
### Hardware Setup
101
101
102
-
The two Opta™ devices will communicate using Modbus RTU. It is enabled by using the RS-485 interface for both devices. The following image shows the connection diagram to work with two Opta™ devices.
102
+
The two Opta™ devices will communicate using Modbus RTU, which is enabled by using the RS-485 interface for both devices. The following image shows the connection diagram for working with two Opta™ devices.
103
103
104
104

105
105
@@ -109,9 +109,9 @@ The Modbus RTU communication network can be scaled up by integrating additional
109
109
110
110
### Workspace Pre-Configuration
111
111
112
-
Some considerations must be considered beforehand to properly enable and use Modbus RTU on Opta™ using PLC IDE for appropriate Modbus RTU operation. The following subsections will help briefly explain such aspects.
112
+
Some considerations must be made before properly enabling and using Modbus RTU on Opta™ using PLC IDE for appropriate Modbus RTU operation. The following subsections will explain such aspects.
113
113
114
-
***It is recommendable to check out[this tutorial](https://docs.arduino.cc/tutorials/portenta-machine-control/plc-ide-setup-license#3-project-setup)to familiarize with Arduino PLC IDE environment.***
114
+
***Check out[this tutorial](https://docs.arduino.cc/tutorials/portenta-machine-control/plc-ide-setup-license#3-project-setup)to familiarize yourself with the Arduino PLC IDE environment.***
115
115
116
116
#### Opta™ Basic Configuration
117
117
@@ -131,7 +131,7 @@ Opta™ set as a Modbus RTU Client will provide 'Baud Rate' and 'Serial Mode' se
131
131
132
132
On the other hand, Opta™ set as a Modbus RTU Server requires an additional configuration called 'Slave Settings'. It will ask you to define the Modbus address with a range between `1 .. 247`.
133
133
134
-
If you decide to disable Modbus RTU for Opta™, you can select the option 'none'. It will hide every Modbus RTU configuration parameter, turning off the protocol mode for Opta™.
134
+
If you disable Modbus RTU for Opta™, you can select the option `none`. This option hides every Modbus RTU configuration parameter, turning off the protocol mode for Opta™.
135
135
136
136
#### General Modbus Node Configuration
137
137
@@ -151,13 +151,13 @@ This information will help identify and correctly communicate with the target de
151
151
152
152
#### PLC IDE Modbus Custom Editor
153
153
154
-
The Modbus Custom Editor allows you to define a Modbus node with pre-defined parameters and variables. It can be later added using the 'Add' option under 'RS485 SerialPort'.
154
+
The Modbus Custom Editor allows you to define a Modbus node with predefined parameters and variables. You can later add it using the `Add` option under `RS485 SerialPort`.
155
155
156
156
To open the Modbus Custom Editor window, go to `Tools -> Run Modbus Custom Editor` on PLC IDE.
157
157
158
158

159
159
160
-
It is a helpful feature to have frequently deployed device configurations stored that are compatible with the Modbus protocol.
160
+
It is helpful to have frequently deployed device configurations stored that are compatible with the Modbus protocol.
161
161
162
162
### Project Overview
163
163
@@ -167,7 +167,7 @@ The example project will slightly modify its default example code to incorporate
167
167
168
168
Based on the counter data it receives from the "Modbus RTU Server Opta™," the "Modbus RTU Client Opta™" will activate the relay and the status LED. Using the role-specific sections, you may learn how to configure the Modbus RTU role for each Opta™ device.
169
169
170
-
You may access the entire example project[here](assets/ModbusRTU_Opta_Example.zip) if you want to test it immediately. Every setting and component is ready to be assembled and uploaded to the corresponding Opta™.
170
+
You may access the entire example project[here](assets/ModbusRTU_Opta_Example.zip)to test it immediately. Every setting and component is ready to be assembled and uploaded to the corresponding Opta™.
171
171
172
172
The following sections will demonstrate how to set up each Opta™ according to its function in a Modbus RTU connection.
173
173
@@ -183,7 +183,7 @@ To set Opta™ as a Modbus RTU Server, navigate to the `RS485 SerialPort` tab in
183
183
184
184
Alternative values can be used per requirements if needed.
185
185
186
-
The following image shows the `Status variables (volatile)` window. Here, we will define the `cnt` variable, assigning its access address and datatype for Modbus RTU transmission.
186
+
The following image shows the `Status variables (volatile)` window. Here, we will define the `cnt` variable and assign its access address and datatype for Modbus RTU transmission.
187
187
188
188

189
189
@@ -193,7 +193,7 @@ The `cnt` status variable uses the following parameters:
193
193
***Name**: cnt
194
194
***PLC type**: INT
195
195
196
-
With these settings ready, you need to go to `Resources -> Opta`, select the corresponding port, and begin the `Manual sketch download` process. Then you need to go to `On-line -> Set up Communication` and activate Modbus RTU with the higher USB port number assigned for Opta™.
196
+
With these settings ready, you **must go** to `Resources -> Opta,` select the corresponding port, and begin the `Manual sketch download` process. Then you **must go** to `On-line -> Set up Communication` and activate Modbus RTU with the higher USB port number assigned for Opta™.
197
197
198
198

199
199
@@ -254,7 +254,7 @@ To retrieve counter information from the server Opta™, select the 'Modbus FC-0
254
254
255
255

256
256
257
-
Subsequently, you need to define a variable to store the counter data retrieved from the server Opta™. To do this, navigate to the Modbus function configuration interface's `Input Reg.` tab. Introduce a variable named `counter_rec` to capture the data transmitted through the protocol.
257
+
Subsequently, you must define a variable to store the counter data retrieved from the server Opta™. To do this, navigate to the Modbus function configuration interface's `Input Reg.` tab. Introduce a variable named `counter_rec` to capture the data transmitted through the protocol.
258
258
259
259
The following image shows a visual representation of the anticipated configuration:
260
260
@@ -309,7 +309,7 @@ IF counter >= 2500 THEN
309
309
END_IF;
310
310
```
311
311
312
-
The variable`counter`serves as a global reference for the client Opta™. While `counter_rec`is the Modbus-specific variable that stores data fetched from the server Opta™. This variable was defined during configuring the 'Read Input Registers' Modbus function.
312
+
The variable`counter`serves as a global reference for the client Opta™. At the same time, `counter_rec`is the Modbus-specific variable that stores data fetched from the server Opta™. This variable was defined when configuring the `Read Input Registers` Modbus function.
313
313
314
314
Upon successful compilation and downloading of the main PLC code, the complete interface for the client Opta™ should resemble the image provided below:
315
315
@@ -341,6 +341,6 @@ In this tutorial, you have learned to configure the workspace environment to wor
341
341
342
342
### Next Steps
343
343
344
-
Now that you have learned to implement the Modbus RTU between Opta™ devices using Arduino PLC IDE try adding additional Modbus RTUcompatible devices and create a Modbus RTU communication network.
344
+
Now that you have learned to implement the Modbus RTU between Opta™ devices using Arduino PLC IDE try adding additional Modbus RTU-compatible devices and creating a Modbus RTU communication network.
345
345
346
346
Further, explore the possibilities by combining the Opta™ device's onboard features with the Modbus RTU communication network and deploy it as an enhancement solution for industrial management systems.
0 commit comments