Skip to content

Commit 51a4290

Browse files
committed
Tutorial content update
1 parent 7f6c545 commit 51a4290

File tree

8 files changed

+8
-36
lines changed

8 files changed

+8
-36
lines changed
Loading
Loading
Loading

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

Lines changed: 0 additions & 10 deletions
This file was deleted.
Loading

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

Lines changed: 0 additions & 14 deletions
This file was deleted.

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

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ void setup()
206206
{
207207
// Configure static IP address
208208
IPAddress ip(192, 168, 1, 2);
209-
IPAddress dns(192, 168, 1, 23);
209+
IPAddress dns(192, 168, 1, 23);
210210
IPAddress gateway(192, 168, 1, 23);
211211
IPAddress subnet(255, 255, 255, 0);
212-
// If cable is not connected this will block the start of PLC with about 60s of timeout!
213-
Ethernet.begin(ip, dns, gateway, subnet);
212+
// If cable is not connected this will block the start of PLC with about 60s of timeout!
213+
Ethernet.begin(ip, dns, gateway, subnet);
214214
}
215215
```
216216

@@ -220,7 +220,7 @@ Upon starting a new project file in the PLC IDE, some crucial lines within the s
220220

221221
The subsequent image presents the `Status variables (volatile)` window. In this window, the `cnt` variable will be defined, where its access address and datatype will be specified for Modbus TCP communication.
222222

223-
![Arduino PLC IDE - Portenta Machine Control Server Status Variable](assets/pmc_plcide_server_statVar.svg)
223+
![Arduino PLC IDE - Portenta Machine Control Server Status Variable](assets/pmc_plcide_server_statVar.png)
224224

225225
The `cnt` status variable uses the following parameters:
226226

@@ -270,15 +270,11 @@ END_IF;
270270

271271
The main role of the Portenta Machine Control server is to operate a binary counter, programmed using digital outputs determined by a sub-counter variable, `cnt`. This variable operates within an 8-Bit value range. The counter's speed is modulated through `counter_buffer` and `delay_buffer`, using as adjustable timing parameters. For the client Portenta Machine Control, the shared Modbus counter variable known as `counter_stack` is used.
272272

273-
![Arduino PLC IDE - Portenta Machine Control Server Global Variables](assets/pmc_plcide_server_mainCode.svg)
273+
![Arduino PLC IDE - Portenta Machine Control Server Global Variables](assets/pmc_plcide_server_globalVars.png)
274274

275275
To integrate the `counter_buffer` and `delay_buffer` variables, access the `New Variable` option by right-clicking on `Global_vars`. While `counter_buffer` can be designated as an `automatic` variable, `delay_buffer` was originally defined as a `constant` variable with a set value.
276276

277-
For deploying the main PLC code to the Portenta Machine Control, choose `Download PLC code` or simply press `F7`. With everything set up correctly, a successful upload should resemble the following image.
278-
279-
![Arduino PLC IDE - Portenta Machine Control Server Main Code](assets/pmc_plcide_server_mainCode.svg)
280-
281-
Upon completing these instructions, you will have set up the Portenta Machine Control device as a Modbus TCP Server. The subsequent section will walk you through the process of configuring another Portenta Machine Control as a Modbus TCP Client.
277+
For deploying the main PLC code to the Portenta Machine Control, choose `Download PLC code` or simply press `F7`. Upon completing these instructions, you will have set up the Portenta Machine Control device as a Modbus TCP Server. The subsequent section will walk you through the process of configuring another Portenta Machine Control as a Modbus TCP Client.
282278

283279
#### Modbus TCP Client Portenta Machine Control
284280
<br></br>
@@ -288,7 +284,7 @@ To configure the Portenta Machine Control as a Modbus TCP Client, start by acces
288284
To begin communication with the configured Modbus TCP Server Portenta Machine Control, you can add a Modbus node. Right-click on the 'Ethernet' section within the 'Resources' panel. It will reveal the 'Add' button. Click on it to introduce a 'Generic Modbus' node. For this example, we can set the node using these specific parameters:
289285

290286
* Name: PMC_TCP_1
291-
* IP address: 192.168.1.5
287+
* IP address: 192.168.1.2
292288
* Minimum polling time: 1 ms
293289
* Address type: Modbus
294290

@@ -424,7 +420,7 @@ Furthermore, through a practical example, you have learned how to ensure that th
424420

425421
### Next Steps
426422

427-
Now that you have learned to implement the Modbus TCP between Portenta Machine Control devices using Arduino PLC IDE, try expanding the setup by integrating additional Modbus TCP compatible devices into the communication network.
423+
Now that you have learned to implement the Modbus TCP between Portenta Machine Control devices using Arduino PLC IDE, try expanding the setup by integrating additional Modbus TCP compatible devices into the communication network. You can enhance this setup further with Opta™. Learn more about it by watching this [video](https://youtu.be/reBrbCq86uQ).
428424

429425
Additionally, you can explore the possibilities by leveraging the onboard features of the Portenta Machine Control device combined with the Modbus TCP communication network. This combination offers a robust enhancement solution for industrial management systems.
430426

0 commit comments

Comments
 (0)