Skip to content

Commit 36ff3c8

Browse files
committed
Tutorial content post feedback update
1 parent 737d032 commit 36ff3c8

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed
Loading
Loading

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The entire procedure is divided into three distinct stages:
8282

8383
The diagram highlights the consistency of Modbus TCP configuration across Arduino devices using the PLC IDE. A key feature of this system is its flexibility. The PLC program operates independently of the Modbus TCP settings, ensuring interoperability and versatility in various scenarios.
8484

85-
Furthermore, the programming language is flexible when developing the PLC script. PLC IDE follows the IEC61131-3 standard, allowing development in any of the supported languages and making it easy for program development.
85+
Furthermore, the programming language is flexible when developing the PLC script. PLC IDE follows the *IEC61131-3* standard, allowing development in any of the supported languages and making it easy for program development.
8686

8787
With this overview complete, we can now create an example.
8888

@@ -130,9 +130,7 @@ You can also assign a custom IP address to the Portenta Machine Control using th
130130

131131
***The __Ethernet.begin(ip, dns, gateway, subnet)__ method will delay initialization for 60 seconds if either the RJ-45 cable is not connected or the Ethernet properties, like the IP address, are misconfigured. This behavior can be modified with the __Ethernet.begin(NULL, ip, dns, gateway, subnet, connection_timeout)__ method by adjusting the `connection_timeout` argument. This parameter defines the timeout for establishing a Data Layer connection.***
132132

133-
The IP address set for the Portenta Machine Control is essential for establishing and developing in the Arduino PLC IDE environment. To pair with the Portenta Machine Control device, activate the Modbus RTU feature and select the highest secondary USB port number by navigating to `On-line -> Set up communication`.
134-
135-
TODO Update GIF animation
133+
The virtual serial port will establish communication between the computer and the Portenta Machine Control to develop in the Arduino PLC IDE environment. To pair with the Portenta Machine Control device, activate the Modbus RTU feature and select the highest secondary USB port number by navigating to `On-line -> Set up communication`.
136134

137135
![Arduino PLC IDE - Device Connection Procedure](assets/pmc_plcide_device_connection.gif)
138136

@@ -179,7 +177,7 @@ With the prerequisites in place and the tools for configuring Modbus TCP on the
179177

180178
In this example, we will make a small adjustment to the default example code using the counter (`cnt`) variable. The counter value will be transmitted, enabling real-time handshake verification between the two devices. For this tutorial, we will manually assign Ethernet properties to each device.
181179

182-
The `Modbus TCP Server Portenta Machine Control` will provide the counter data, while the 'Modbus TCP Client Portenta Machine Control' will manage the programmable digital I/Os and digital outputs. Each device will focus on specific tasks using these elements. You will learn how to assign the Modbus TCP role to each Portenta Machine Control device in the following sections.
180+
The `Modbus TCP Server Portenta Machine Control` will provide the counter data, while the `Modbus TCP Client Portenta Machine Control` will manage the programmable digital I/Os and digital outputs. Each device will focus on specific tasks using these elements. You will learn how to assign the Modbus TCP role to each Portenta Machine Control device in the following sections.
183181

184182
For those ready to begin, the complete example project is available for download [here](assets/ModbusTCP_PMC_Example.zip). It includes all the necessary configurations and components, making it ready to compile and upload to the corresponding Portenta Machine Control device.
185183

@@ -218,7 +216,7 @@ The `cnt` status variable uses the following parameters:
218216
* _Name_: cnt
219217
* _PLC type_: INT
220218

221-
To begin configuring, go to **Resources -> Portenta Machine Control**, select the correct port, and start the `Manual sketch download`. Then, navigate to **On-line -> Set up Communication** and activate Modbus TCP using the assigned IP address for the Portenta Machine Control.
219+
To begin configuring, go to **Resources -> Portenta Machine Control**, select the corresponding port, and start the `Manual sketch download`. Then, navigate to **On-line -> Set up Communication** and activate the Modbus RTU protocol with the highest secondary USB port number for the Portenta Machine Control.
222220

223221
![Arduino PLC IDE - Device Connection Procedure](assets/pmc_plcide_device_connection_server.gif)
224222

@@ -270,7 +268,7 @@ To deploy the main PLC code to the Portenta Machine Control, click **`Download P
270268

271269
To configure the Portenta Machine Control as a Modbus TCP Client, go to the `Ethernet` section in the Resources panel of the PLC IDE. Select the Modbus TCP Client checkbox. This step will assign the Portenta Machine Control as a Client. The Server option that appears greyed out can be ignored.
272270

273-
To begin communicating with the Modbus TCP Server on the Portenta Machine Control, right-click the Ethernet section in the Resources panel and click Add. Then, introduce a Generic Modbus node with the following specific parameters for this example:
271+
To begin communicating with the Modbus TCP Server on the Portenta Machine Control, right-click the `Ethernet` section in the `Resources` panel and click **`Add`**. Then, introduce a Generic Modbus node with the following specific parameters for this example:
274272

275273
* _Name_: PMC_TCP_1
276274
* _IP address_: 192.168.1.2
@@ -285,7 +283,7 @@ When defining the Modbus node for the Client Portenta Machine Control, it is imp
285283

286284
![Arduino PLC IDE - Modbus Functions](assets/pmc_plcide_modbus_functions.png)
287285

288-
To retrieve counter information from the server Portenta Machine Control, choose the 'Modbus FC-04 (Read Input Registers)' function. To ensure correct data access, set up the 'General' tab using the subsequent parameters:
286+
To retrieve counter information from the server Portenta Machine Control, choose the **`Modbus FC-04 (Read Input Registers)`** function. To ensure correct data access, set up the `General` tab using the subsequent parameters:
289287

290288
* _Start address_: 25000
291289
* _Polling time_: 0 ms (Continuous Read)

0 commit comments

Comments
 (0)