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/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/opta_plcide_hardware_connection.svg
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/opta_plcide_hardware_connection_eth.svg
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/assets/opta_plcide_modbustcp_overview.svg
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/10.opta-modbus-tcp-plc-ide/content.md
+11-12
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ hardware:
19
19
20
20
Opta™ is distinguished by its industrial-grade hardware that ensures durability and consistent performance even in the most challenging environments. A highlight of its design is the inclusion of multiple connectivity options, notably Modbus TCP through the RJ-45 port.
21
21
22
-

22
+

23
23
24
24
In this tutorial, you will learn how to implement Modbus TCP based communication between two Opta™ devices using Arduino PLC IDE.
25
25
@@ -35,7 +35,7 @@ In this tutorial, you will learn how to implement Modbus TCP based communication
@@ -50,9 +50,9 @@ The Modbus protocol is a messaging service structure using Client/Server communi
50
50
51
51
The **Modbus TCP/IP**, often simply referred to as **Modbus TCP**, is a variant of the Modbus RTU protocol that uses the TCP/IP interface over Ethernet to exchange data between compatible devices. Here are some key elements to understand about Modbus TCP:
52
52
53
-
* The 'Transmission Control Protocol (TCP)' is responsible for the exchange of packets.
53
+
* The **Transmission Control Protocol (TCP)** is responsible for the exchange of packets.
54
54
55
-
* The 'Internet Protocol (IP)' defines the addresses for routing message destinations.
55
+
* The **Internet Protocol (IP)** defines the addresses for routing message destinations.
56
56
57
57
* A distinct feature of Modbus TCP concerns how it maintains data integrity. Since Modbus TCP encapsulates the basic data frame within the TCP frame, the usual checksum field of Modbus isn't utilized. Instead, the checksum method from the Ethernet TCP/IP layer ensures data integrity.
58
58
@@ -108,24 +108,23 @@ For Modbus TCP communication, we will use two Opta™ devices and the PLC IDE.
108
108
109
109
Set up the connection by attaching the Ethernet LAN (RJ-45) cable to both devices using the `ETH RJ45` port. The following image provides a connection diagram for both devices:
110
110
111
-

111
+

112
112
113
-
The setup incorporates an Ethernet switch that monitors both Opta™ devices using the PLC IDE. This configuration not only links both Opta™ devices using the PLC IDE but also lets you employ a profile to observe information exchanges in real-time. We recommend using the setup with the Ethernet switch for this tutorial to ensure optimal communication between devices.
113
+
The setup integrates an Ethernet switch that monitors both Opta™ devices using the PLC IDE. This configuration not only connects both Opta™ devices using the PLC IDE but also lets you integrate a profile to observe information exchanges in real-time. The Ethernet switch is *optional* and RJ-45 cable can be used to connect directly between Opta™ devices.
114
114
115
115
#### Field Deployment Setup
116
116
117
117
Once the Modbus connection is active, you can directly connect the Opta™ devices without the Ethernet switch in the field application. Furthermore, you have the flexibility to add more Modbus TCP compatible devices to the communication line, expanding the setup as needed. Refer to the following image for this configuration:
118
118
119
-

119
+

120
120
121
121
### Workspace Pre-Configuration
122
122
123
123
There are some considerations that you will need to understand beforehand for proper use of Modbus TCP on Opta™ within PLC IDE. Following subsections will help briefly explain such aspects.
124
124
125
125
#### PLC IDE Project Configuration & Licenses Management
126
-
<br></br>
127
126
128
-
In any robust development environment, understanding the intricacies of project configuration and the nuances of license management is essential. The Arduino PLC IDE provides a unique blend of features tailored for industrial automation, but to utilize them effectively, a solid foundation is indispensable.
127
+
In any robust development environment, understanding the intricacies of project configuration and the nuances of license management is essential. The Arduino PLC IDE provides a unique blend of features tailored for industrial automation, but to use them effectively, a solid foundation is indispensable.
129
128
130
129
We highly recommend reviewing [this tutorial](https://docs.arduino.cc/tutorials/portenta-machine-control/plc-ide-setup-license) before delving into the present tutorial.
131
130
@@ -141,7 +140,7 @@ Opta™ can also be configured manually with a specific IP address using __Ether
141
140
142
141
The virtual serial port will establish communication between the computer and Opta™ to develop in the Arduino PLC IDE environment. To pair with Opta™ device, activate the Modbus RTU feature and select the highest secondary USB port number by navigating to `On-line -> Set up communication`.
143
142
144
-

143
+

145
144
146
145
Remember that proper setup is vital when interfacing with the PLC IDE and Opta™. Once the Opta™ properties are all set, you can connect and monitor the status of both devices.
147
146
@@ -226,9 +225,9 @@ The `cnt` status variable uses the following parameters:
226
225
* Name: cnt
227
226
* PLC type: INT
228
227
229
-
With these settings ready, you need to go to `Resources -> Opta`, select the corresponding port, and begin the `Manual sketch download` process. Then you need to go to `On-line -> Set up Communication` and activate Modbus TCP with the assigned IP address for Opta™.
228
+
With these settings ready, you need to go to `Resources -> Opta`, select the corresponding port, and begin the `Manual sketch download` process. Then activate the Modbus RTU feature and select the highest secondary USB port number by navigating to `On-line -> Set up communication`.
230
229
231
-

230
+

232
231
233
232
Proceed with `On-line -> Connect` and it will establish communication between your computer and the Opta™ server. If everything is fine, you will be able to observe the message found at the lower right corner of the PLC IDE software stating that it is connected.
0 commit comments