en-us_commands:reference:icnetmem
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_commands:reference:icnetmem [2026/09/07 23:35] – 바깥 편집 127.0.0.1 | en-us_commands:reference:icnetmem [2026/09/14 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | This example uses the MPINO-16A8R8T RS-485 port '' | ||
| <code cpp> | <code cpp> | ||
| Line 25: | Line 27: | ||
| void loop() { | void loop() { | ||
| ICnet(); | ICnet(); | ||
| - | if (M != nullptr) M[0] = IdigitalRead(0, 5); // Read the input repeatedly and update only if all samples match. If HIGH and LOW are mixed, retain the previous stable state. | + | if (M != nullptr) M[0] = digitalRead(22) == HIGH; |
| - | if (D != nullptr) digitalWrite(32, D[0] ? HIGH : LOW); | + | if (D != nullptr) digitalWrite(39, D[0] ? HIGH : LOW); |
| } | } | ||
| </ | </ | ||
| Line 36: | Line 38: | ||
| * When sharing memory with Modbus, check for duplicate allocation and address conventions. Both '' | * When sharing memory with Modbus, check for duplicate allocation and address conventions. Both '' | ||
| * Allocation functions do not return success status. Check whether '' | * Allocation functions do not return success status. Check whether '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/icnetmem.1788791734.txt.gz · Last modified: by 127.0.0.1
