en-us_commands:reference:icnetmem
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:icnetmem [2026/09/07 21:52] – 만듦 - 바깥 편집 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> | ||
| - | ICnetMem(100, 100, 20); | + | void setup() { |
| + | | ||
| + | ICnetAdr(0, 0, 0); // Set the start addresses of M·D·R memory. | ||
| + | ICnetInit(Serial2, | ||
| + | if (M != nullptr) M[0] = false; | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | ICnet(); | ||
| + | if (M != nullptr) M[0] = digitalRead(22) == HIGH; | ||
| + | if (D != nullptr) digitalWrite(39, D[0] ? HIGH : LOW); | ||
| + | } | ||
| </ | </ | ||
| Line 25: | 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.1788785566.txt.gz · Last modified: by 127.0.0.1
