en-us_products:mpaino_8a8r
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_products:mpaino_8a8r [2026/09/12 16:58] – 바깥 편집 127.0.0.1 | en-us_products:mpaino_8a8r [2026/09/15 15:28] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| The selected I/O and optional modules are assembled and shipped as one product. Users cannot add or remove modules. | The selected I/O and optional modules are assembled and shipped as one product. Users cannot add or remove modules. | ||
| - | [[: | + | [[: |
| - | [[: | + | [[: |
| - | [[: | + | [[: |
| [[: | [[: | ||
| Line 13: | Line 13: | ||
| Program the controller with Arduino IDE (Arduino C/C++) or MPINO STUDIO 2 (Arduino C/C++ & ladder logic). | Program the controller with Arduino IDE (Arduino C/C++) or MPINO STUDIO 2 (Arduino C/C++ & ladder logic). | ||
| + | |||
| + | See the [[: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| \\ | \\ | ||
| Line 42: | Line 48: | ||
| ===== Digital inputs ===== | ===== Digital inputs ===== | ||
| + | [[: | ||
| ^ Group ^ Terminal ^ Input Configuration ^ Terminals and Wiring Example ^ | ^ Group ^ Terminal ^ Input Configuration ^ Terminals and Wiring Example ^ | ||
| | COM0 | D0~D3 | 4 isolated digital inputs \\ D0/D1 also serve as INT0/INT1 | {{: | | COM0 | D0~D3 | 4 isolated digital inputs \\ D0/D1 also serve as INT0/INT1 | {{: | ||
| Line 75: | Line 82: | ||
| === Function example · consecutive-read filter: IdigitalRead() === | === Function example · consecutive-read filter: IdigitalRead() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 97: | Line 106: | ||
| === Function example · debouncing: Ibounce(), IbounceOn(), | === Function example · debouncing: Ibounce(), IbounceOn(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 139: | Line 150: | ||
| === Function example · input toggle: Ialt() === | === Function example · input toggle: Ialt() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 171: | Line 184: | ||
| ===== Relay outputs ===== | ===== Relay outputs ===== | ||
| + | [[: | ||
| ^ Group ^ Output terminals ^ Contact configuration ^ Terminals and Wiring Example ^ | ^ Group ^ Output terminals ^ Contact configuration ^ Terminals and Wiring Example ^ | ||
| | COM2 | D64~D67 | 4 relay outputs share COM2 | {{: | | COM2 | D64~D67 | 4 relay outputs share COM2 | {{: | ||
| Line 209: | Line 223: | ||
| ==== Example program · pulse counting ==== | ==== Example program · pulse counting ==== | ||
| - | SDA(D20) on the I²C terminals is a 4.7kΩ pull-up input. Do not use this example simultaneously with I²C communication. In the current core, argument 2 of digitalPinToInterrupt() is the logical interrupt number assigned to SDA, not digital input 2. Count FALLING edges when SDA changes from HIGH to LOW. This is a software ISR example and does not guarantee lossless counting at the maximum frequency. | + | SDA(D20) on the I²C terminals is a 4.7kΩ pull-up input. Do not use this example simultaneously with I²C communication. In the MPAINO board package, argument 2 of digitalPinToInterrupt() is the logical interrupt number assigned to SDA, not digital input 2. Count FALLING edges when SDA changes from HIGH to LOW. This is a software ISR example and does not guarantee lossless counting at the maximum frequency. |
| <code cpp> | <code cpp> | ||
| Line 234: | Line 248: | ||
| ==== Example program · encoder inputs ==== | ==== Example program · encoder inputs ==== | ||
| - | SDA(D20) on the I²C terminals is a 4.7kΩ pull-up input. Do not use this example simultaneously with I²C communication. In the current core, argument 2 of digitalPinToInterrupt() is the logical interrupt number assigned to SDA, not digital input 2. Connect phase A to SDA and phase B to SCL. At the falling edge of phase A, increment when B is HIGH and decrement when B is LOW. The direction changes with the phase A/B connections. Because SCL overlaps the digital module logical numbers, read the physical pin state directly. | + | SDA(D20) on the I²C terminals is a 4.7kΩ pull-up input. Do not use this example simultaneously with I²C communication. In the MPAINO board package, argument 2 of digitalPinToInterrupt() is the logical interrupt number assigned to SDA, not digital input 2. Connect phase A to SDA and phase B to SCL. At the falling edge of phase A, increment when B is HIGH and decrement when B is LOW. The direction changes with the phase A/B connections. Because SCL overlaps the digital module logical numbers, read the physical pin state directly. |
| <code cpp> | <code cpp> | ||
| Line 279: | Line 293: | ||
| <code cpp> | <code cpp> | ||
| - | // Serial Monitor via MP download | + | // Serial Monitor via USB download |
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| Line 298: | Line 312: | ||
| <code cpp> | <code cpp> | ||
| - | // MP download | + | // USB download |
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| Line 317: | Line 331: | ||
| <code cpp> | <code cpp> | ||
| - | // MP download | + | // USB download |
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| Line 371: | Line 385: | ||
| === Function example · Modbus RTU Slave: ImodbusRTUMem(), | === Function example · Modbus RTU Slave: ImodbusRTUMem(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 415: | Line 431: | ||
| === Function example · Modbus RTU Master: ImodbusRTUmasterInit(), | === Function example · Modbus RTU Master: ImodbusRTUmasterInit(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 455: | Line 473: | ||
| === Function example · LS Industrial Systems Cnet SLave: ICnetMem(), ICnetAdr(), ICnetInit(), | === Function example · LS Industrial Systems Cnet SLave: ICnetMem(), ICnetAdr(), ICnetInit(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 538: | Line 558: | ||
| === Function example · input range scaling: IanalogRead(), | === Function example · input range scaling: IanalogRead(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 569: | Line 591: | ||
| === Function example · 4~20mA range scaling: IanalogRead2(), | === Function example · 4~20mA range scaling: IanalogRead2(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 602: | Line 626: | ||
| === Function example · moving average: analogReadAvg(), | === Function example · moving average: analogReadAvg(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 651: | Line 677: | ||
| === Function example · NTC temperature conversion: ntcRead(), ntcReadf() === | === Function example · NTC temperature conversion: ntcRead(), ntcReadf() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 682: | Line 710: | ||
| === Function example · read PT100 input: pt100Read() === | === Function example · read PT100 input: pt100Read() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 726: | Line 756: | ||
| === Function example · output range scaling: IanalogWrite(), | === Function example · output range scaling: IanalogWrite(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 767: | Line 799: | ||
| === Function example · specify duty value: PWM() === | === Function example · specify duty value: PWM() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 787: | Line 821: | ||
| === Function example · set frequency/ | === Function example · set frequency/ | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 807: | Line 843: | ||
| === Function example · output a specified pulse count: NPWM_BEGIN(), | === Function example · output a specified pulse count: NPWM_BEGIN(), | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 829: | Line 867: | ||
| === Function example · stop/resume channel output: PWMOFF() === | === Function example · stop/resume channel output: PWMOFF() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 856: | Line 896: | ||
| === Function example · stop/reset PWM timers: PWM_RESET() === | === Function example · stop/reset PWM timers: PWM_RESET() === | ||
| + | |||
| + | **Function details:** [[en-us_commands: | ||
| **Function prototype** | **Function prototype** | ||
| Line 904: | Line 946: | ||
| - Select the verified COM number under Tools → Port in Arduino IDE. | - Select the verified COM number under Tools → Port in Arduino IDE. | ||
| - Select '' | - Select '' | ||
| - | - Select '' | + | - Click **Verify (✓)** in Arduino IDE. If there are no errors, click **Upload (→)** to transfer |
| [[https:// | [[https:// | ||
| Line 926: | Line 968: | ||
| [[: | [[: | ||
| - | |||
en-us_products/mpaino_8a8r.1789199926.txt.gz · Last modified: by 127.0.0.1
