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
Copy file name to clipboardExpand all lines: content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/pmc-modbus-tcp-plc-ide/content.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ With this overview complete, we can now create an example.
90
90
91
91
### Setting Up the Arduino PLC IDE
92
92
93
-
To get the Arduino PLC IDE software, go to the [official software website](https://www.arduino.cc/pro/software-plc-ide)and choose to download the PLC IDE installer file. The software is named **`Arduino PLC IDE Installer`**.
93
+
To get the Arduino PLC IDE software, go to the [official software website](https://www.arduino.cc/pro/software-plc-ide)and choose to download the PLC IDE installer file. The software is named **`Arduino PLC IDE Installer`**.
94
94
95
95

Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/plcide_software_download.svg
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/content.md
+11-15
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,13 @@ Having provided an overview of the entire process, we can now delve into the spe
90
90
91
91
### Setting Up the Arduino PLC IDE
92
92
93
-
Access the Arduino PLC IDE software by following [Arduino PLC IDE official website](https://www.arduino.cc/pro/software-plc-ide). You will have to download two executable files for proper software installation:
93
+
To get the Arduino PLC IDE software, go to the [official software website](https://www.arduino.cc/pro/software-plc-ide) and choose to download the PLC IDE installer file. The software is named **`Arduino PLC IDE Installer`**.

96
96
97
-

97
+
The software requires **Windows 10** or a newer operating system version for the x64 architecture.
98
98
99
-
The installation wizard will provide all the required drivers, libraries, and cores for development and install the **Arduino PLC IDE**.
99
+
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.
100
100
101
101
***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.***
102
102
@@ -139,19 +139,15 @@ Opta™ can also be configured manually with a specific IP address using __Ether
139
139
140
140
***The __Ethernet.begin(ip, dns, gateway, subnet)__ method postpones initialization for 60 seconds when the RJ45 cable is found to be disconnected or when Ethernet settings, such as the IP address, are improperly configured. The __Ethernet.begin(NULL, ip, dns, gateway, subnet, connection_timeout)__ method can be used to extend initialization process and tweak the `connection_timeout` value. This parameter sets the timeout period for the Data Layer connection to be established.***
141
141
142
-
If the IP address for Opta™ is set manually, it is necessary to configure the Ethernet interface on your computer by introducing a manual IP address setting under *IPv4*. The information set under the IPv4 configuration follows the gateway setting. A stable connection with Opta™ using the PLC IDE is essential for project development. The following image shows a configuration example on Windows 11 operating system:
142
+
The virtual serial port will establish communication between the computer and Opta™ to develop in the Arduino PLC IDE environment. To pair with Opta™ device, activate the Modbus RTU feature and select the highest secondary USB port number by navigating to `On-line -> Set up communication`.
143
143
144
-

144
+

145
145
146
-
The configured IP address for Opta™ also serves to connect and develop within the Arduino PLC IDE environment. The Modbus TCP option must be activated and set with Opta™ device's assigned IP address by going to `On-line -> Set up communication`. The connection between Opta™ and the development environment can be verified with the`ping <Opta™ IP Address>` command using a terminal.
147
-
148
-

149
-
150
-
Keep in mind that the correct configuration is key to work with PLC IDE and Opta™. Once the properties of the Opta™ devices are correctly set, we will be able to seamlessly connect to Opta™ and monitor the states of both devices.
146
+
Remember that proper setup is vital when interfacing with the PLC IDE and Opta™. Once the Opta™ properties are all set, you can connect and monitor the status of both devices.
151
147
152
148
#### Modbus TCP Client and Server Mode
153
149
154
-
The image below shows the interface we'll encounter when accessing the Modbus TCP configuration panel in the PLC IDE.
150
+
The image below shows the interface we will encounter when accessing the Modbus TCP configuration panel in the PLC IDE.
155
151
156
152

157
153
@@ -160,9 +156,9 @@ There are two options on the Modbus TCP configuration panel:
160
156
- Modbus TCP Master
161
157
- Modbus TCP Slave always enabled. Unit Identifier: 255
162
158
163
-
If the "Modbus TCP Master" option remains unchecked, the role of a Modbus TCP Server with its designated Unit Identifier is automatically adopted by the Opta™ device. No attention needs to be given to the Unit Identifier in such cases. It is because communication with the appropriate Opta™ device is ensured by the configured IP address, even when the same Unit Identifier is shared among multiple devices.
159
+
If the **Modbus TCP Master** option remains unchecked, the role of a Modbus TCP Server with its designated Unit Identifier is automatically adopted by the Opta™ device. No attention needs to be given to the Unit Identifier in such cases. It is because communication with the appropriate Opta™ device is ensured by the configured IP address, even when the same Unit Identifier is shared among multiple devices.
164
160
165
-
When "Modbus TCP Master" is checked, both Client and Server roles are taken on by the Opta™ device. In this mode, precedence is given to the Client role. As a consequence, under the `Ethernet` configuration tab, the introduction of a *General Modbus Node* option can be observed, as will be detailed in the section that follows.
161
+
When **Modbus TCP Master** is checked, both Client and Server roles are taken on by the Opta™ device. In this mode, precedence is given to the Client role. As a consequence, under the `Ethernet` configuration tab, the introduction of a *General Modbus Node* option can be observed, as will be detailed in the section that follows.
166
162
167
163
#### General Modbus Node Configuration
168
164
@@ -232,7 +228,7 @@ The `cnt` status variable uses the following parameters:
232
228
233
229
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 TCP with the assigned IP address for Opta™.
234
230
235
-

231
+

236
232
237
233
Proceed with `On-line -> Connect` and it will establish communication between your computer and the Opta™ server. If everything is fine, you will be able to observe the message found at the lower right corner of the PLC IDE software stating that it is connected.
0 commit comments