Skip to content

Commit da1a3e0

Browse files
committed
Tutorial content update
1 parent 470b591 commit da1a3e0

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ hardware:
2020

2121
The Portenta Machine Control boasts adaptable, high-quality industrial hardware and offers a diverse array of connection options. Its capabilities are further amplified by the Arduino PLC IDE software, optimizing the device for robust field operations. Moreover, the Portenta Machine Control is compatible with Modbus protocols, and with the Arduino PLC IDE, their integration is made straightforward.
2222

23+
![Portenta Machine Control with Modbus RTU Overview ](assets/pmc_plcide_general_system.png)
24+
2325
In this tutorial, you will discover how to establish Modbus RTU communication between two Portenta Machine Control devices through the Arduino PLC IDE.
2426

2527
## Goals
@@ -193,13 +195,15 @@ The following sections will demonstrate how to set up each Portenta Machine Cont
193195
#### Modbus RTU Server Portenta Machine Control
194196
<br></br>
195197

196-
To configure the Portenta Machine Control as a Modbus RTU Server, navigate to the `RS485 SerialPort` tab in the `Resources` panel within the PLC IDE. It will open a `Modbus Configuration` window where you should choose the `Modbus RTU Slave` setting. For the purpose of the tutorial example, we will employ the following properties for the client Portenta Machine Control:
198+
To configure the Portenta Machine Control as a Modbus RTU Server, navigate to the `RS485 SerialPort` tab in the `Resources` panel within the PLC IDE. It will open a `Modbus Configuration` window where you should choose the `Modbus RTU Slave` setting. For the purpose of the tutorial example, we will employ the following properties for the server Portenta Machine Control:
197199

198200
- Port type: `RS485`
199201
- Baud Rate: 19200 b/s
200202
- Serial Mode: N,8,1 (No parity, 8 data bits, 1 stop bit)
201203
- Slave settings (Modbus address): 10
202204

205+
![Arduino PLC IDE - Portenta Machine Control Server Modbus Configuration](assets/pmc_plcide_server_modbus.png)
206+
203207
Alternative values can be used per requirements if needed.
204208

205209
The subsequent image displays the `Status variables (volatile)` window. Within this window, we will define the `cnt` variable, specifying its access address and data type for Modbus RTU transmission.
@@ -262,6 +266,8 @@ To configure the Portenta Machine Control as a Modbus RTU Client, navigate to th
262266
- Baud Rate: 19200 b/s
263267
- Serial Mode: N,8,1 (No parity, 8 data bits, 1 stop bit)
264268

269+
![Arduino PLC IDE - Portenta Machine Control Client Modbus Configuration](assets/pmc_plcide_client_modbus.png)
270+
265271
Alternative values can be used per requirements if needed.
266272

267273
To establish communication with the pre-configured Modbus RTU Server Portenta Machine Control, add a Modbus node by right-clicking the `RS485 SerialPort` tab within the `Resources` section. Once ready, you will see an 'Add' option. Use this to insert a 'Generic Modbus' node. For this example, configure the node with the following parameters:
@@ -296,7 +302,7 @@ In this tutorial's demonstration, the client Portenta Machine Control is configu
296302

297303
The image below shows how it should look within the PLC IDE interface:
298304

299-
![Arduino PLC IDE - Portenta Machine Control Client OBJECT Table](assets/pmc_plcide_client_ledSet.svg)
305+
![Arduino PLC IDE - Portenta Machine Control Client OBJECT Table](assets/pmc_plcide_device_localDO.png)
300306

301307
The OBJECT also needs labels to reference it later in the main PLC code. A table displaying the variable names designated for OBJECT can be seen below:
302308

0 commit comments

Comments
 (0)