Skip to content

Commit eb9461a

Browse files
committed
Content update- Missing image
1 parent 357331d commit eb9461a

File tree

1 file changed

+38
-23
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/plc-ide-setup-license

1 file changed

+38
-23
lines changed

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

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ software:
1717

1818
## Overview
1919

20-
The **Arduino PLC IDE** offers the possibility to use **IEC IEC61131-3** programming languages (*LD, SFC, FBD, ST, IL*) with the **Portenta Machine Control**. The **PLC IDE** offers a wide set of standard features commonly used in the industrial automation. This tutorial will show you how to connect the **Portenta Machine Control** with the **Arduino PLC IDE**, learning how to activate the software license and the basic setup to have your board up and running with the **Arduino PLC IDE**.
20+
The **Arduino PLC IDE** offers the possibility to use **IEC IEC61131-3** programming languages (*LD, SFC, FBD, ST, IL*) with the **Portenta Machine Control**. The **PLC IDE** offers a wide set of standard features commonly used in the industrial automation. This tutorial will show you how to connect the **Portenta Machine Control** to the **Arduino PLC IDE**, learning how to activate the software license and the basic setup to have your board up and running with the **Arduino PLC IDE**.
2121

2222
## Goals
2323

2424
- Install the Arduino PLC IDE and the Arduino PLC IDE Tools
2525
- Upload the PLC IDE bootloader to the board
26-
- Connect the computer to the device through the IDE
26+
- Connect the computer to your device through the IDE
2727
- Activate the device license
2828
- Test the connection
2929

3030
### Required Hardware and Software
3131

32-
- Board compatible with the PLC IDE (Portenta Machine Control)
32+
- Board compatible with the Arduino 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 (https://store.arduino.cc/products/plc-key-portenta-machine-contro)
34+
- Unique PLC IDE License key for your device (https://store.arduino.cc/products/plc-key-portenta-machine-control)
3535

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

@@ -48,10 +48,19 @@ The first one will install all the required drivers, libraries and cores that yo
4848

4949
### 1. Arduino PLC IDE Tools
5050

51-
TODO
51+
Before installing the Arduino PLC IDE you need to install all the required tools to make it work on your computer. Once you have downloaded the Arduino PLC IDE Tools executable, double-click on it and follow the installation instructions.
52+
53+
Once the installation is finished, all the required drivers, libraries and arduino cores will be installed and ready to be used. Your computer is now ready to install the Arduino PLC IDE.
54+
55+
***It is possible that during the installation some windows terminals will be opened and closed by the installation program. Do not worry about it, those windows are required by the program to install all the tools that your computer needs**
56+
5257
### 2. Arduino PLC IDE Installation
5358

54-
TODO
59+
Once the Arduino PLC IDE Tools are installed, double-click on the executable of the Arduino Pro IDE that you downloaded. Follow the installation instructions and, once the process is done, click on finish.
60+
61+
***In case you have any problem, perform a reboot to be sure that all the drivers, libraries and dependencies are working and up to date.***
62+
63+
Open the Arduino PLC IDE program to see the welcome screen.
5564

5665
![Welcome screen](assets/welcome.png)
5766

@@ -63,17 +72,17 @@ Create a new project by clicking the middle **New project ...** button or **File
6372

6473
![Create new project](assets/newProject.png)
6574

66-
After creating the project, there are some new windows on the screen, click on the left panel and switch it to the **Resources tab**, inside the window on the tree structure, click on your board and it will open the **Boards configuration page**.
75+
After creating the project, there are some new windows on the screen, click on the left panel and switch it to the **Resources tab**, inside the window on the tree structure. Now click on your board and it will open the **Boards configuration page**.
6776

6877
![Board configuration page](assets/projectWelcome.png)
6978

7079
### 4. Download the Runtime
7180

72-
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.
81+
The board needs to run a specific program (runtime) in order to interact with the **PLC IDE**. Go to the **"Other"** section below the **"Device Info"** block.
7382

74-
Plug your device and select the Serial Port of your board and click the **Download** button.
83+
Plug your device to the computer, select the Serial Port of your board and click the **Download** button.
7584

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.***
85+
***The device will show up two Serial Ports, the default one (generally with the lowest number) is the usual Serial Port, the secondary one (usually with the 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.***
7786

7887
### 5. Connect to the Device
7988

@@ -89,7 +98,7 @@ Make sure the Modbus protocol is using the secondary Serial port number, the Mod
8998

9099
![Setting up the modbus protocol](assets/onlineSetupProperties.png)
91100

92-
Click ok to save the settings and press the connect button on **On-line > connect**
101+
Click OK to save the settings and press the connect button on **On-line > connect**.
93102

94103
![Connect to the board](assets/connect.png)
95104

@@ -101,31 +110,37 @@ To use your product license, fill it in on the form and press the **Activate** b
101110

102111
![Connection success](assets/licenseActivation.png)
103112

104-
After you click the activate button, it will use the license and attach it to the board. A popup telling you to reboot the target (which is the device connected to the PLC IDE) will show up once the attachment finishes.
113+
After you click the **Activate** button, it will use the license and attach it to the board. A popup telling you to reboot the target (which is the device connected to the PLC IDE) will show up once the attachment finishes. Press the reset button of your device to perform the reboot.
105114

106115
![Activation succeed](assets/connectedAndActivated.png)
107116

108-
Once the board has been activated:
117+
### 7. Getting the Hardware-ID of your device
118+
119+
Once the board has been activated, it is recommended to get the **Hardware-ID** of your device. To do it follow the next steps:
120+
- Be sure that your device is disconnected from the Arduino PLC IDE.
109121
- Open the **Arduino IDE** software
110122
- Go to **Tools** > **Board** > **Arduino Mbed OS Portenta Boards** > **Arduino Portenta H7 (M7 Core)**
111123
- 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)
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
124+
- 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.
113125

114-
### 7. Download a Program
126+
### 8. Download a Program
115127

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.
128+
Let's download and run the first program on your device. We are going to use the default program that is included in a project: a counter. To upload that program to your PLC, it is needed to compile the program and send it to the target device.
117129

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

120-
### 8. Communication Test
132+
### 9. Communication Test
133+
134+
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.
135+
136+
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.
121137

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.
138+
TODO: ADD SCREEN SHOT(check folder) or GIF animation
123139

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

127142
## Conclusions
128143

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.
144+
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 through Modbus, activating the hardware license of your product, and creating a simple sketch with one 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** window.
130145

131-
Now that your board is up and running with the Arduino PLC IDE, you can start to create your own professional solution.
146+
Now that your board is up and running with the Arduino PLC IDE, you can start to create your own professional solutions.

0 commit comments

Comments
 (0)