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/07.opta/opta-family/opta/tutorials/opta-modbus-tcp-plc-ide/content.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,8 +223,6 @@ void setup()
223
223
// If the cable is not connected this will block the start of PLC with about 60s of timeout!
224
224
Ethernet.begin(ip, dns, gateway, subnet);
225
225
}
226
-
227
-
...
228
226
```
229
227
230
228
These properties — `ip`, `dns`, `gateway`, and `subnet` — are provided as arguments to the `Ethernet.begin()` method, setting its properties for OptaTM. It can be adjusted as per your preference or based on network prerequisites. For instance, `ip(192, 168, 1, 2)` denotes the IP address assigned to the Modbus TCP Server OptaTM.
@@ -315,7 +313,6 @@ void setup()
315
313
// If the cable is not connected this will block the start of PLC with about 60s of timeout!
316
314
Ethernet.begin(ip, dns, gateway, subnet);
317
315
}
318
-
319
316
```
320
317
321
318
The `ip(192, 168, 1, 1)` represents the IP address of the Modbus TCP Client OptaTM. The Internet Protocol properties can be adjusted as required, but ensuring the `subnet` matches your computer's is crucial.
0 commit comments