Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 63ff88b

Browse files
jcarolinaresjhansson-ard
andauthored
[PC-1274] Full stops in descriptions plus grammar improvements and typos fixes (#1067)
* Full stops in descriptions plus grammar improvements and typos fixes * Update content/software/plc-ide/tutorials/plc-programming-introduction/content.md Co-authored-by: Josefine Hansson <66409231+jhansson-ard@users.noreply.github.com> * Review feedback fixes --------- Co-authored-by: Josefine Hansson <66409231+jhansson-ard@users.noreply.github.com>
1 parent 86ae5e6 commit 63ff88b

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

‎content/software/plc-ide/tutorials/can-setup/content.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The main advantages of the CAN bus protocol are:
2929

3030
Structure of a CAN network:
3131
* **Main device:** Main controller or orchestrator of the communication. It interacts with the rest of the devices on the network, sending and receiving data from them. It usually is a controller device like the Portenta Machine control.
32-
* **Node or ECU (Electronic Control Unit):** Devices capable of interacting on the data bus. Although every device on the network can listen to the data that is being transferred on the bus each device has an unique number (ID) to communicate with that is included in every message, ignoring the messages that do not match their ID. However, all the nodes have access to the messages of the network, being possible for a node to read and use the data from another node if necessary.
32+
* **Node or ECU (Electronic Control Unit):** Devices capable of interacting on the data bus. Although every device on the network can listen to the data that is being transferred on the bus each device has a unique number (ID) to communicate with that is included in every message, ignoring the messages that do not match their ID. However, all the nodes have access to the messages of the network, being possible for a node to read and use the data from another node if necessary.
3333

3434
CAN has built-in error detection so the application can handle its own errors in case of data loss (like CRC).
3535

@@ -74,9 +74,9 @@ To configure in depth the settings you need to add the **Generic CANopen device*
7474

7575
![Add Items to CANopen's resource](assets/CAN-configuration-add.png)
7676

77-
![Item from the catalogue](assets/CAN-configuration-add-catalog.png)
77+
![Item from the catalog](assets/CAN-configuration-add-catalog.png)
7878

79-
Once the **Generic CANOpen device** has been added you can customize the configuration to comply your needs.
79+
Once the **Generic CANOpen device** has been added you can customize the configuration to comply with your needs.
8080

8181
![CANopen configuration window](assets/CAN-configuration-general.png)
8282

@@ -111,7 +111,7 @@ Modes:
111111
Modes:
112112
* User Defined Mode
113113
* Sync Mode
114-
* Evemt Mode
114+
* Event Mode
115115
-->
116116

117117
### Parametrization Tab
@@ -122,9 +122,9 @@ This window allows to create objects and set the addresses, this is called a map
122122

123123
### PDO Tables
124124

125-
This table customize the PDO (Process Data Object) dictionary, so you will set the variables for the information that you want to have usually cause they are time-critical, any device can overwrite those addresses, so it acts like shared variables.
125+
This table customizes the PDO (Process Data Object) dictionary, so you will set the variables for the information that you want to have usually cause they are time-critical, any device can overwrite those addresses, so it acts like shared variables.
126126

127-
You can edit the table by adding, removing new variables, you can also assign and unassign existing variables on your programs (Global Variables) to this table.
127+
You can edit the table by adding or removing new variables. You can also assign and unassign existing variables on your programs (Global Variables) to this table.
128128

129129
#### PDO Tx Input Tab
130130

‎content/software/plc-ide/tutorials/modbus-setup/content.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The Arduino Portenta Machine Control (PMC) is a fully-centralized, low-power, in
2929
In order to configure the Portenta Machine Control you will need to connect to the device through the Arduino PLC IDE.
3030

3131
1. Connect the device to the computer through USB
32-
2. Click "Connects to the target" button on the PLC IDE
32+
2. Click "Connect to the target" button on the PLC IDE
3333

3434
***The device needs to be activated with a license, check the steps on the [PLC IDE Set-up tutorial](./plc-ide-setup-license)***
3535

@@ -43,7 +43,7 @@ In order to configure the Portenta Machine Control you will need to connect to t
4343

4444
Inside the Arduino PLC IDE navigate to the left side panel and click on the "Resources" tab.
4545

46-
To configure the Modbus communication click on the "RS485 Serialport" label, it will open a new window on the middle to customize:
46+
To configure the Modbus communication click on the "RS485 Serialport" label, it will open a new window in the middle to customize:
4747

4848
![Arduino PLC IDE Resources panel, -> RS485 settings](assets/PLC-IDE-ModBus.png)
4949

@@ -87,7 +87,7 @@ Baud rate, options:
8787
(Only available on slave mode)
8888

8989
* Modbus address
90-
Address of the device, from 1 to 247, it can not be repeated within the same Modbus net.
90+
Address of the device: from 1 to 247. It can not be repeated within the same Modbus net.
9191

9292
#### Modbus Node Configuration
9393

@@ -103,7 +103,7 @@ Once you have configured your device as a **Modbus Master** you can attach some
103103

104104
Inside the Arduino PLC IDE navigate to the left side panel and click on the "Resources" tab.
105105

106-
To configure the Modbus communication click on the "Ethernet" label, it will open a new window on the middle to customize:
106+
To configure the Modbus communication click on the "Ethernet" label, it will open a new window in the middle to customize:
107107

108108
![Arduino PLC IDE Resources panel, -> Ethernet configuration](assets/modbusTCP-configuration.png)
109109

@@ -157,5 +157,5 @@ This is a table to link all the coils, registers or variables that the function
157157

158158
### Next Steps
159159

160-
- Configure it as a Modbus Master device and connect a Modbus sensor to get data from.
160+
- Configure it as a Modbus Master device and connect a Modbus sensor to get data from it.
161161
- Interconnect two Portenta Machine Control boards and create a sketch to communicate between them.

‎content/software/plc-ide/tutorials/plc-ide-pin-mapping/content.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Arduino® PLC IDE Pin Mapping'
33
difficulty: beginner
4-
description: "Assign the pins to variables and interact with them on the Arduino PLC IDE"
4+
description: "Assign the pins to variables and interact with them on the Arduino PLC IDE."
55
tags:
66
- PLC IDE
77
- IO
@@ -20,7 +20,7 @@ In this tutorial you will see how to access the available pins of your device as
2020

2121
A **mapping table** is a table that **links** a **source**, like the memory address of an I/O, and its **target name** which functions as an alias. For example, if a microcontroller has an I/O with the name `PA01`, a mapping table can be used to access that resource with the name `digitalOut01`.
2222

23-
***If you are familiar with the C languages, it is similar with the way a pointer works.***
23+
***If you are familiar with the C languages, it is similar to the way a pointer works.***
2424

2525
Using **mapping tables** makes your programs easier to read, which is always a good practice for long-term maintenance.
2626

@@ -42,7 +42,7 @@ First of all, open the **Arduino PLC IDE** and create a new project (or open an
4242

4343
### Resources Tab
4444

45-
Navigate to the **Resources** tile window, you will see a list of the available mappings for your device, in the case of the **Portenta Machine Control** you have:
45+
Navigate to the **Resources** tile window and you will see a list of the available mappings for your device. In the case of the **Portenta Machine Control** you have:
4646
* Digital Inputs
4747
* Digital Outputs
4848
* Analog Inputs

‎content/software/plc-ide/tutorials/plc-programming-introduction/content.md‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Programming Introduction With Arduino® PLC IDE'
33
difficulty: intermediate
4-
description: "Create programs with all the IEC-61131-3 languages on the Arduino PLC IDE"
4+
description: "Create programs with all the IEC-61131-3 languages on the Arduino PLC IDE."
55
tags:
66
- Getting started
77
- IEC-61131-3
@@ -16,7 +16,7 @@ software:
1616

1717
## Introduction
1818

19-
The IEC-61131-3 standard collects 5 programming languages to help you creating your programs; you can use them together to make an entire program, grouping them in functions and function blocks. In addition to the standard languages, an Arduino sketch can be integrated, interacting with the other languages by means of Shared Variables. This kind of development can be accomplished using Arduino PLC IDE. In this tutorial you will familiarize with all of them while having an Arduino sketch in mind as a reference.
19+
The IEC-61131-3 standard collects 5 programming languages to help you to create your programs; you can use them together to make an entire program, grouping them into functions and function blocks. In addition to the standard languages, an Arduino sketch can be integrated, interacting with the other languages by means of Shared Variables. This kind of development can be accomplished using Arduino PLC IDE. In this tutorial you will familiarize yourself with all of them while having an Arduino sketch in mind as a reference.
2020

2121
## Goals
2222

@@ -34,38 +34,38 @@ The goals of this tutorial are:
3434

3535
There are 2 types of variables:
3636
* Global variables: All of the 5 programs can access it.
37-
* Local variables: Only the one program has access to it.
37+
* Local variables: Only one program has access to it.
3838

3939
#### Global Variable
4040
Click inside the **Project** tab and click the **Global_vars** section, a table is available to see the full list of global variables on your project.
4141

4242
To add a new one, right-click on the table and click the **insert** button.
4343
![Add global variable](assets/newGlobalVariable.png)
4444

45-
It will add a new row with the default settings, you can doubleclick each field and change them as you need.
45+
It will add a new row with the default settings, you can double-click each field and change them as you need.
4646
![Global variables table](assets/declareNewGlobalVariable.png)
4747

48-
After setting the new variable, you will be able to access it from all your languages's programs.
48+
After setting the new variable, you will be able to access it from all your language programs.
4949

50-
You will see a list with all the glboal variables in the **Global_vars** section.
50+
You will see a list with all the global variables in the **Global_vars** section.
5151
![Using a global variable inside a program](assets/usingGlobalVariable.png)
5252

5353
#### Local Variable
5454

55-
Go inside the **Project** tab and select a program by doubleclicking it, once it has been opened you will see a **Local Variables** table on the top panel.
55+
Go inside the **Project** tab and select a program by double-clicking it, once it has been opened you will see a **Local Variables** table on the top panel.
5656
![Default Ladder Diagram Program](assets/default_LD_program.png)
5757

5858
Following the same steps explained previously, you can right-click the table, and press the **insert** button.
59-
![Add new local variable on the local variables table](assets/newLocalVariable.png)
59+
![Add a new local variable on the local variables table](assets/newLocalVariable.png)
6060

61-
A new variable will be added with default settings, doubleclick each of them to change them as you need.
61+
A new variable will be added with default settings, double-click each of them to change them as you need.
6262

6363
### Adding Blocks
6464
The blocks are features or functions available from libraries and the PLC IDE.
6565

6666
These will help you to perform tasks, like AND gates, ADD function, etc...
6767

68-
To add a block on your program (only possible with LD, SFC, FBD) you can drag and drop them from the right side window called "Library Tree"
68+
To add a block to your program (only possible with LD, SFC, FBD) you can drag and drop them from the right side window called "Library Tree"
6969
![Library tree window, drag and drop blocks](assets/LD_add_block.png)
7070

7171
Once you drag and drop it on your canvas it will generate a block with some input and output pins fully customizable, most of the time you can right-click the block and add more pins in case you need more than the default.
@@ -82,19 +82,19 @@ There are 4 Tasks:
8282
To assign a program to a task, you can easily drag and drop your program to the task.
8383
![Drag and drop a program to task](assets/dragAndDrop_task.png)
8484

85-
By default the `main` program is attached to the `Fast` task, you can remove it by rightclicking and pressing the "remove program" option.
85+
By default the `main` program is attached to the `Fast` task, you can remove it by right-clicking and pressing the "remove program" option.
8686

87-
You can also assign a new program by rightclicking the task and pressing `Add program`, then select the program from the list shown in the popup window.
87+
You can also assign a new program by right-clicking the task and pressing `Add program`, then select the program from the list shown in the pop-up window.
8888

89-
If you want to configure the task, rightclick on it and press `Task configuration`, you will be able to, for example, change the cycle time of the task.
89+
If you want to configure the task, right-click on it and press `Task configuration`, you will be able to, for example, change the cycle time of the task.
9090

9191
***The execution order will be from top to bottom, the order shown inside each task.***
9292

9393
### Watch Variables
9494

9595
To check that our program is running and counting correctly, we will use the **watch** feature which allows you to see the value of a variable in real time.
9696

97-
To do so you need to go **View > Tool windows > Watch** and you will have a new tool window.
97+
To do so you need to go to **View > Tool windows > Watch** and you will have a new tool window.
9898

9999
Inside the **Tool window** you can drag and drop variables, or click the **Insert new item** button to add a specific variable.
100100

@@ -117,7 +117,7 @@ void loop(){
117117
### IEC-61131-3 Languages
118118
To create a new program open your project tab, go to the toolbar **Project > New object > New program**, set a name for your program and select its language.
119119

120-
![New program from Project's dropdown menu](assets/newProgram.png)
120+
![New program from Project's drop-down menu](assets/newProgram.png)
121121

122122
![Set up pop-up when creating a new program](assets/newProgramPopUp.png)
123123

@@ -160,14 +160,14 @@ Here is a video doing that from scratch:
160160
<iframe width="100%" height="415" src="https://www.youtube.com/embed/0EdATSgIc9o" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
161161

162162
### Sequential Function Chart
163-
This languages approaches the script similar to a flow-chart so you have blocks which do some work, you check the result of that work, and afterwards you keep flowing with the choices.
163+
This language approaches the script in a similar way as a flowchart, meaning you have blocks that do some work, you check the result of that work, and afterward you keep flowing with the choices.
164164

165165
SFC language can not interact directly with the machine, meaning you can not make an output be OFF directly, to do so you will need to create **actions**
166166

167167
#### Actions
168-
An action is a script in another language (i.e structured text) that performs the work, this will get triggered depending on the chart.
168+
An action is a script in another language (i.e. structured text) that performs the work, this will get triggered depending on the chart.
169169

170-
To create one go on your project tree, right-click the SFC script and click the "New action" button.
170+
To create one go to your project tree, right-click the SFC script and click the "New action" button.
171171

172172
![Creating new action](assets/newAction.png)
173173

@@ -180,7 +180,7 @@ A **Step** is the job to do, and a **Transition** is the result of that work.
180180

181181
A **Jump** is a link to another **Step** of the chart. In order to make a loop you will need to use the jump to point the "init" step.
182182

183-
The counter program should look like the following picture. Note the action inside the "count" Step: you can see a small "counter" text which is the action's name of the program done in Structured Text which code is the same as shown on the Structured Text section.
183+
The counter program should look like the following picture. Note the action inside the "count" Step: you can see a small "counter" text which is the action's name of the program done in Structured Text which code is the same as shown in the Structured Text section.
184184
![Sequential Function Chart counter program](assets/SFCprogram.png)
185185

186186
Here is a video doing that from scratch:
@@ -189,15 +189,15 @@ Here is a video doing that from scratch:
189189
### Functional Block Diagram
190190
This is similar to the SFC Programming, but in this case there is no sequential path on the program, you add blocks to do the needed work.
191191

192-
For example adding the **Add** block will do the Add function each cycle.
192+
For example, adding the **Add** block will do the Add function each cycle.
193193

194194
This is how the counter program looks:
195195
![Functional Block Diagram](assets/FBDprogram.png)
196196

197197
Here is a video doing that from scratch:
198198
<iframe width="100%" height="415" src="https://www.youtube.com/embed/l1L4jzDVKyE" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
199199

200-
***On the previous programs, we used local variables, remember to select the program's specific variables to be watched, or you will not see any data***
200+
***In the previous programs, we used local variables, remember to select the program's specific variables to be watched, or you will not see any data***
201201

202202
## Conclusion
203203
You have:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /