Skip to content

Commit 357331d

Browse files
committed
First commit - WIP
1 parent 89d971c commit 357331d

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/plc-ide-setup-license/content.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,41 @@ The **Arduino PLC IDE** offers the possibility to use **IEC IEC61131-3** program
2121

2222
## Goals
2323

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
2828
- Test the connection
2929

3030
### Required Hardware and Software
3131

3232
- Board compatible with the PLC IDE (Portenta Machine Control)
3333
- 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)
3535

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)***
3737

3838
## Instructions
3939

40-
### 1. Arduino PLC IDE Installation
40+
![Welcome screen](assets/IdeDownloadPage.png)
4141

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
4355

4456
![Welcome screen](assets/welcome.png)
4557

46-
### 2. Project Setup
58+
### 3. Project Setup
4759

4860
Create a new project by clicking the middle **New project ...** button or **File > New Project**
4961

@@ -55,15 +67,15 @@ After creating the project, there are some new windows on the screen, click on t
5567

5668
![Board configuration page](assets/projectWelcome.png)
5769

58-
### 3. Download the Runtime
70+
### 4. Download the Runtime
5971

6072
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.
6173

6274
Plug your device and select the Serial Port of your board and click the **Download** button.
6375

6476
***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.***
6577

66-
### 4. Connect to the Device
78+
### 5. Connect to the Device
6779

6880
After the runtime is up and running, set up the communication by going to **On-line > Set up communication**.
6981

@@ -81,7 +93,7 @@ Click ok to save the settings and press the connect button on **On-line > connec
8193

8294
![Connect to the board](assets/connect.png)
8395

84-
### 5. License Activation
96+
### 6. License Activation
8597

8698
If the communication is successful the main panel will show the license section to be filled in and a status indicator.
8799

@@ -99,20 +111,20 @@ Once the board has been activated:
99111
- 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)
100112
- 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
101113

102-
### 6. Download A Program
114+
### 7. Download a Program
103115

104116
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.
105117

106118
![Send the program to the device (download)](assets/downloadCode.png)
107119

108-
### 7. Communication Test
120+
### 8. Communication Test
109121

110122
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.
111123

112124
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.
113125
Select the **Watch** window and click on the **Start/Stop watch button** unless if the value of the variable is already getting updated.
114126

115-
## Conclusion
127+
## Conclusions
116128

117129
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.
118130

0 commit comments

Comments
 (0)