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
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -293,27 +293,29 @@ Use the configuration model applied to the Modbus RTU Server Portenta Machine Co
293
293
294
294
After setting up the Modbus node for the client Portenta Machine Control,we need to specify the Modbus function responsible for retrieving the counter (`cnt`) data from the server Portenta Machine Control. Right-click on `PMC_RTU_1` or any other name you set with, to see the 'Add' option, which will bring forth a device catalog window showcasing all available Modbus functions:
295
295
296
-

296
+

297
297
298
298
To retrieve the counter data from the server Portenta Machine Control, select the 'Modbus FC-04 (Read Input Registers)' function. Configure the 'General' tab with the following parameters to ensure correct data access:
299
299
300
300
* Start address: 25000
301
301
* Polling time: 0 ms (Continuous Read)
302
302
* Timeout: 1000 ms
303
303
304
+

305
+
304
306
Next, you will need to designate a variable to hold the counter data captured from the server Portenta Machine Control. To do this, go to the `Input Reg.` tab located in the Modbus function configuration menu. Create a variable named `counter_rec` to store the data sent via the protocol.
305
307
306
308
The following image shows a visual representation of the anticipated configuration:
307
309
308
-

310
+

309
311
310
-
In this tutorial's demonstration, the client Portenta Machine Control is configured to use WIP
312
+
In this tutorial's demonstration, the client Portenta Machine Control is configured to use digital programmable I/Os and digital outputs.
311
313
312
-
The image below shows how it should look within the PLC IDE interface:
314
+
The image below shows how digital outputs configuration should look within the PLC IDE interface:
313
315
314
316

315
317
316
-
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:
318
+
The digital programmable I/Os also needs labels to reference it later in the main PLC code. A table displaying the variable names designated for digital programmable I/Os can be seen below:
317
319
318
320

0 commit comments