en-us_commands:reference:imcprotocol
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:imcprotocol [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:imcprotocol [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> | ||
| + | void setup() { | ||
| + | IMcMem(32, 32, 64, 64); // Set the X·Y·M·D memory sizes used by MC Protocol. | ||
| + | IMcAdr(0, 0, 0, 0); // Set the start addresses of X·Y·M·D memory. | ||
| + | IMcInit(Serial2, | ||
| + | } | ||
| + | |||
| void loop() { | void loop() { | ||
| - | IMcProtocol(); | + | IMcProtocol(); |
| - | X[0] = digitalRead(0); | + | |
| - | digitalWrite(32, Y[0]); | + | |
| } | } | ||
| </ | </ | ||
| Line 30: | Line 38: | ||
| * If Cnet or Modbus reallocates shared '' | * If Cnet or Modbus reallocates shared '' | ||
| * Allocation functions do not return success status. For nonzero sizes, verify the corresponding global pointer is not '' | * Allocation functions do not return success status. For nonzero sizes, verify the corresponding global pointer is not '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/imcprotocol.1788785567.txt.gz · Last modified: by 127.0.0.1
