@@ -29,9 +29,9 @@ The Arduino Portenta Machine Control (PMC) is a fully-centralized, low-power, in
29
29
In order to configure the Portenta Machine Control you will need to connect to the device through the Arduino PLC IDE.
30
30
31
31
1 . Connect the device to the computer through USB
32
- 2 . Click " Connect to the target" button on the PLC IDE
32
+ 2 . Click ** Connect to the target** button on the PLC IDE
33
33
34
- *** The device needs to be activated with a license, check the steps on the [ PLC IDE Set-up tutorial] ( ./plc-ide-setup-license ) ***
34
+ *** The device needs to be activated with a license, check the steps on the [ PLC IDE Set-up tutorial] ( ./plc-ide-setup-license ) . ***
35
35
36
36
*** Both Modbus RTU and Modbus TCP can run at the same time in parallel***
37
37
@@ -41,9 +41,9 @@ In order to configure the Portenta Machine Control you will need to connect to t
41
41
42
42
### Modbus RTU Configuration
43
43
44
- Inside the Arduino PLC IDE navigate to the left side panel and click on the " Resources" tab.
44
+ Inside the Arduino PLC IDE navigate to the left side panel and click on the ** Resources** tab.
45
45
46
- To configure the Modbus communication click on the " RS485 Serialport" label, it will open a new window in 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:
47
47
48
48
![ Arduino PLC IDE Resources panel, -> RS-485 settings] ( assets/PLC-IDE-ModBus.png )
49
49
@@ -54,15 +54,12 @@ Then you can attach some functions to the Generic Modbus item, they will appear
54
54
![ Modbus catalog select new item] ( assets/modbusCatalog-add-prompt.png )
55
55
56
56
#### Mode
57
- <br ></br >
58
57
59
58
* Not used
60
59
* Modbus RTU Master
61
60
* Modbus RTU Slave
62
61
63
62
#### Baud Rate
64
- <br ></br >
65
-
66
63
67
64
Baud rate, options:
68
65
* 600
@@ -76,28 +73,26 @@ Baud rate, options:
76
73
* 115200
77
74
78
75
#### Serial Mode
79
- <br ></br >
80
76
81
- | Name | Parity | data bits | stop bits |
82
- | ------- | ----------- | --------- | ----------|
83
- | N, 8, 1 | No parity | 8 | 1 |
84
- | E, 8, 1 | Even parity | 8 | 1 |
85
- | O, 8, 1 | Odd parity | 8 | 2 |
86
- | N, 8, 2 | No parity | 8 | 2 |
87
- | O, 8, 2 | Odd parity | 8 | 2 |
77
+ | ** Name** | ** Parity** | ** data bits** | ** stop bits** |
78
+ | ---------- | ------------- | --------------- | ----- ----------|
79
+ | N, 8, 1 | No parity | 8 | 1 |
80
+ | E, 8, 1 | Even parity | 8 | 1 |
81
+ | O, 8, 1 | Odd parity | 8 | 2 |
82
+ | N, 8, 2 | No parity | 8 | 2 |
83
+ | O, 8, 2 | Odd parity | 8 | 2 |
88
84
89
85
#### Slave Settings
90
- <br ></br >
91
86
92
87
(Only available on slave mode)
93
88
94
89
* Modbus address
95
90
Address of the device: from 1 to 247. It can not be repeated within the same Modbus net.
96
91
97
92
#### Modbus Node Configuration
98
- <br ></br >
99
93
100
- Once you have configured your device as a ** Modbus Master** you can attach some blocks to configure it, you can see them while you have the ** RS485 SerialPort** on the ** Catalog Tile Window**
94
+ Once you have configured your device as a ** Modbus Master** you can attach some blocks to configure it, you can see them while you have the ** RS485 SerialPort** on the ** Catalog Tile Window** :
95
+
101
96
![ Modbus catalog] ( assets/modBusCatalog.png )
102
97
103
98
* Generic Modbus
@@ -127,11 +122,14 @@ Then you can attach some functions to the Generic Modbus item, they will appear
127
122
Settings:
128
123
* Name
129
124
* IP address
125
+ * Modbus address
130
126
* Minimum polling time
127
+ * Address type
131
128
132
129
## Modbus Parametrization
133
130
134
- On the Generic
131
+ On the Generic:
132
+
135
133
![ Generic Modbus Parametrization Tab] ( assets/modbusParametrization.png )
136
134
137
135
## Modbus Devices Functions (Modbus FC)
@@ -146,13 +144,16 @@ On the Generic
146
144
* Modbus FC-16: Write multiple registers
147
145
148
146
To configure the block you can click on it and it will show the configuration panel on the main window.
147
+
149
148
![ Modbus item catalog] ( assets/genericModbus-catalog.png )
150
149
151
150
Inside each of the "devices" (functions) you can set its:
151
+
152
152
** General**
153
153
* Start address
154
154
* Polling time
155
155
* Time Out
156
+ * Oneshot variable
156
157
157
158
![ Modbus item general configuration] ( assets/genericModbus-catalog-setting-general.png )
158
159
0 commit comments