Skip to content

Commit 3bcd9c8

Browse files
authored
Merge pull request #2371 from arduino/sync/taddy/plcide-resources-version107-update
[PXCT-108] PLC IDE: Documentation Resources Update for 1.0.7 Version
2 parents 08cc78d + 3e3d3d6 commit 3bcd9c8

34 files changed

+119
-252
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/pmc-modbus-tcp-plc-ide/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ With this overview complete, we can now create an example.
9090

9191
### Setting Up the Arduino PLC IDE
9292

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`**.
9494

9595
![Arduino PLC IDE Software Download Section](assets/plcide_software_download.png)
9696

@@ -122,7 +122,7 @@ We highly recommend reviewing [this tutorial](https://docs.arduino.cc/tutorials/
122122

123123
#### Portenta Machine Control Basic Configuration
124124

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.
126126

127127
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.
128128

content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/pmc-opta-modbus-tcp/content.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,20 +204,15 @@ Go to the **sketch editor** and uncomment the library and setup function code li
204204
In this case the following configurations are used:
205205

206206
```arduino
207-
// Enable usage of EtherClass, to set static IP address and other
208-
#include <PortentaEthernet.h>
209-
arduino::EthernetClass eth(&m_netInterface);
210-
211207
void setup()
212208
{
213209
// 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);
218214
// 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);
221216
}
222217
```
223218
![Network settings for Modbus TCP](assets/ip-setup-opta.png)

0 commit comments

Comments
 (0)