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-rtu-plc-ide/content.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ hardware:
20
20
21
21
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.
22
22
23
+

24
+
23
25
In this tutorial, you will discover how to establish Modbus RTU communication between two Portenta Machine Control devices through the Arduino PLC IDE.
24
26
25
27
## Goals
@@ -193,13 +195,15 @@ The following sections will demonstrate how to set up each Portenta Machine Cont
193
195
#### Modbus RTU Server Portenta Machine Control
194
196
<br></br>
195
197
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:
197
199
198
200
- Port type: `RS485`
199
201
- Baud Rate: 19200 b/s
200
202
- Serial Mode: N,8,1 (No parity, 8 data bits, 1 stop bit)
201
203
- Slave settings (Modbus address): 10
202
204
205
+

206
+
203
207
Alternative values can be used per requirements if needed.
204
208
205
209
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
262
266
- Baud Rate: 19200 b/s
263
267
- Serial Mode: N,8,1 (No parity, 8 data bits, 1 stop bit)
264
268
269
+

270
+
265
271
Alternative values can be used per requirements if needed.
266
272
267
273
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
296
302
297
303
The image below shows how it should look within the PLC IDE interface:
298
304
299
-

305
+

300
306
301
307
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:
0 commit comments