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/plc-ide-setup-license/content.md
+27-15Lines changed: 27 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -21,29 +21,41 @@ The **Arduino PLC IDE** offers the possibility to use **IEC IEC61131-3** program
21
21
22
22
## Goals
23
23
24
-
- Install the Arduino PLC IDE
25
-
- Upload the PLC IDE bootloader to the board.
26
-
- Connect to the device through the IDE
27
-
- Activate the product license
24
+
- Install the Arduino PLC IDE and the Arduino PLC IDE Tools
25
+
- Upload the PLC IDE bootloader to the board
26
+
- Connect the computer to the device through the IDE
27
+
- Activate the device license
28
28
- Test the connection
29
29
30
30
### Required Hardware and Software
31
31
32
32
- Board compatible with the PLC IDE (Portenta Machine Control)
33
33
- Arduino PLC IDE ([Official Website](https://www.arduino.cc/pro/software-plc-ide))
34
-
- Unique PLC IDE License key for your device
34
+
- Unique PLC IDE License key for your device (https://store.arduino.cc/products/plc-key-portenta-machine-contro)
35
35
36
-
***To get the Arduino PLC IDE and the PLC IDE License, please visit https://www.arduino.cc/pro/software-plc-ide, and the [store page](https://store.arduino.cc/plc-key-portenta-machine-control)***
36
+
***To get the Arduino PLC IDE and the PLC IDE License for your device, please visit the [Arduino software page](https://www.arduino.cc/pro/software-plc-ide), and the [store page](https://store.arduino.cc/plc-key-portenta-machine-control)***
37
37
38
38
## Instructions
39
39
40
-
### 1. Arduino PLC IDE Installation
40
+

41
41
42
-
Go to the [Arduino PLC IDE official website](https://www.arduino.cc/pro/software-plc-ide), click the download button, download the two executables, ones is to get the needed libraries and cores, the other one is the program installer, as usual follow the instructions to install it on your computer. Once the installation is done, run the program, you will see the welcome screen.
42
+
To use the Arduino PLC IDE software, go to the [Arduino PLC IDE official website](https://www.arduino.cc/pro/software-plc-ide) and click on the download button. Download the following two executables:
43
+
44
+
* The Arduino PLC IDE Tools
45
+
* The Arduino PLC IDE
46
+
47
+
The first one will install all the required drivers, libraries and cores that you are going to need, while the second one will install the IDE software.
48
+
49
+
### 1. Arduino PLC IDE Tools
50
+
51
+
TODO
52
+
### 2. Arduino PLC IDE Installation
53
+
54
+
TODO
43
55
44
56

45
57
46
-
### 2. Project Setup
58
+
### 3. Project Setup
47
59
48
60
Create a new project by clicking the middle **New project ...** button or **File > New Project**
49
61
@@ -55,15 +67,15 @@ After creating the project, there are some new windows on the screen, click on t
The board needs to run a program (runtime) in order to interact with the **PLC IDE**. Go to the **"Other"** section below the **"Device Info"** block.
61
73
62
74
Plug your device and select the Serial Port of your board and click the **Download** button.
63
75
64
76
***The device will show up two Serial Ports, the default one (generally with lowest number) is the usual Serial Port, the secondary one (usually with highest number) is a virtual port for ModBus communication from the device to your computer. Take note of the port number assigned to the secondary port (virtual port for Modbus) as it will be needed in a second step.***
65
77
66
-
### 4. Connect to the Device
78
+
### 5. Connect to the Device
67
79
68
80
After the runtime is up and running, set up the communication by going to **On-line > Set up communication**.
69
81
@@ -81,7 +93,7 @@ Click ok to save the settings and press the connect button on **On-line > connec
81
93
82
94

83
95
84
-
### 5. License Activation
96
+
### 6. License Activation
85
97
86
98
If the communication is successful the main panel will show the license section to be filled in and a status indicator.
87
99
@@ -99,20 +111,20 @@ Once the board has been activated:
99
111
- Go to **Tools** > **Port** to select the proper port (the default one shown before in the PLC IDE inside the **Arduino PMC Configuration** > **Other** section)
100
112
- Go to **Tools** > **Serial Monitor** and reset the board. Look at the end of the boot report to find the "Hardware-ID" and store it in a safe place
101
113
102
-
### 6. Download A Program
114
+
### 7. Download a Program
103
115
104
116
The default program that is included on a project is a counter, to upload that program to your PLC, it is needed to compile the program and send it to the target device.
105
117
106
118

107
119
108
-
### 7. Communication Test
120
+
### 8. Communication Test
109
121
110
122
Open the **Watch** window by clicking on "View > Tool Windows > Watch", it will attach a new window on the right side called **Watch**, this window shows the real time variables value.
111
123
112
124
To add a new variable to be watched you can click the **Insert new item** button inside the window, it will open a popup window, on the name label insert "cnt", and on the location "main", click OK and it will add the variable `cnt` from the `main` program on the table or drag and drop the cnt variable from the **Project** tree or from the **Main** program.
113
125
Select the **Watch** window and click on the **Start/Stop watch button** unless if the value of the variable is already getting updated.
114
126
115
-
## Conclusion
127
+
## Conclusions
116
128
117
129
In this tutorial we went through how to setup the Portenta Machine Control with the Arduino IDE lab, learning how to connect the board to the program though MODBUS, activating the hardware license of your product, and creating a simple sketch with on variable that went compiled and downloaded inside the board. Finally we learned how to see the values of the variables in real-time using the **Watch** windows.
0 commit comments