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
+2-2
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

96
96
@@ -122,7 +122,7 @@ We highly recommend reviewing [this tutorial](https://docs.arduino.cc/tutorials/
122
122
123
123
#### Portenta Machine Control Basic Configuration
124
124
125
-
Identify the IP address assigned to each Portenta Machine Control device to establish Modbus TCP communication. Connecting the Portenta Machine Control to a computer via an RJ-45 cable and an Ethernet port with standard settings will automatically assign an IP address from an external *DHCP* server. Tools like this [scanner](https://angryip.org/) can be useful for locating these auto-assigned IP addresses.
125
+
Identify the IP address assigned to each Portenta Machine Control device to establish Modbus TCP communication. Connecting the Portenta Machine Control to a network infrastructure via an RJ-45 cable and an Ethernet port with standard settings will automatically assign an IP address from an external *DHCP* server. Tools like this [scanner](https://angryip.org/) can be useful for locating these auto-assigned IP addresses.
126
126
127
127
You can also assign a custom IP address to the Portenta Machine Control using the **Ethernet.begin()** method. This is helpful when you need specific addresses because of operational needs. To do this, we will use the sketch available in the `Resources` tab of the PLC IDE. The image below provides an overview of the setup options within the sketch.
Copy file name to clipboardExpand all lines: content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/pmc-opta-modbus-tcp/content.md
+5-10
Original file line number
Diff line number
Diff line change
@@ -204,20 +204,15 @@ Go to the **sketch editor** and uncomment the library and setup function code li
204
204
In this case the following configurations are used:
205
205
206
206
```arduino
207
-
// Enable usage of EtherClass, to set static IP address and other
208
-
#include <PortentaEthernet.h>
209
-
arduino::EthernetClass eth(&m_netInterface);
210
-
211
207
void setup()
212
208
{
213
209
// Configure static IP address
214
-
IPAddress ip(10, 0, 0, 227); // Opta IP address
215
-
IPAddress dns(10, 0, 0, 1); // gateway IP address
216
-
IPAddress gateway(10, 0, 0, 1); // gateway IP address
217
-
IPAddress subnet(255, 255, 255, 0);
210
+
IPAddress ip(10, 0, 0, 227);
211
+
IPAddress dns(10, 0, 0, 1);
212
+
IPAddress gateway(10, 0, 0, 1);
213
+
IPAddress subnet(255, 255, 255, 0);
218
214
// If cable is not connected this will block the start of PLC with about 60s of timeout!
219
-
eth.begin(ip, dns, gateway, subnet);
220
-
215
+
Ethernet.begin(ip, dns, gateway, subnet);
221
216
}
222
217
```
223
218

Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/opta_plcide_hardware_connection.svg
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/opta_plcide_hardware_connection_eth.svg
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/opta_plcide_modbustcp_overview.svg
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
Address of the device: from 1 to 247. It can not be repeated within the same Modbus net.
96
91
97
92
#### Modbus Node Configuration
98
-
<br></br>
99
93
100
-
Once you have configured your device as a **Modbus Master** you can attach some blocks to configure it, you can see them while you have the **RS485 SerialPort** on the **Catalog Tile Window**
94
+
Once you have configured your device as a **Modbus Master** you can attach some blocks to configure it, you can see them while you have the **RS485 SerialPort** on the **Catalog Tile Window**:
95
+
101
96

102
97
103
98
* Generic Modbus
@@ -127,11 +122,14 @@ Then you can attach some functions to the Generic Modbus item, they will appear
0 commit comments