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-tcp-plc-ide/content.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ The entire procedure is divided into three distinct stages:
82
82
83
83
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.
84
84
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.
86
86
87
87
With this overview complete, we can now create an example.
88
88
@@ -130,9 +130,7 @@ You can also assign a custom IP address to the Portenta Machine Control using th
130
130
131
131
***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.***
132
132
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`.
136
134
137
135

138
136
@@ -179,7 +177,7 @@ With the prerequisites in place and the tools for configuring Modbus TCP on the
179
177
180
178
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.
181
179
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.
183
181
184
182
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.
185
183
@@ -218,7 +216,7 @@ The `cnt` status variable uses the following parameters:
218
216
*_Name_: cnt
219
217
*_PLC type_: INT
220
218
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.
222
220
223
221

224
222
@@ -270,7 +268,7 @@ To deploy the main PLC code to the Portenta Machine Control, click **`Download P
270
268
271
269
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.
272
270
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:
274
272
275
273
*_Name_: PMC_TCP_1
276
274
*_IP address_: 192.168.1.2
@@ -285,7 +283,7 @@ When defining the Modbus node for the Client Portenta Machine Control, it is imp
285
283
286
284

287
285
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:
0 commit comments