en-us_products:mpaino_24a24r
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_products:mpaino_24a24r [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_products:mpaino_24a24r [2026/09/15 15:28] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| [[: | [[: | ||
| + | [[: | ||
| + | [[: | ||
| + | [[: | ||
| MPAINO-24A24R provides 24 digital inputs and 24 relay outputs. | MPAINO-24A24R provides 24 digital inputs and 24 relay outputs. | ||
| 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 39: | Line 47: | ||
| ===== Digital inputs ===== | ===== Digital inputs ===== | ||
| + | [[: | ||
| ^ Module ^ Group ^ Terminal ^ Input Configuration ^ Terminals and Wiring Example ^ | ^ Module ^ Group ^ Terminal ^ Input Configuration ^ Terminals and Wiring Example ^ | ||
| | Module 0 | COM0 \\ COM1 | D0~D3 \\ D4~D7 | 8 isolated digital inputs \\ D0/D1 also serve as INT0/INT1 | {{: | | Module 0 | COM0 \\ COM1 | D0~D3 \\ D4~D7 | 8 isolated digital inputs \\ D0/D1 also serve as INT0/INT1 | {{: | ||
| Line 167: | Line 176: | ||
| ===== Relay outputs ===== | ===== Relay outputs ===== | ||
| + | [[: | ||
| ^ Module ^ Group ^ Output terminals ^ Contact configuration ^ Terminals and Wiring Example ^ | ^ Module ^ Group ^ Output terminals ^ Contact configuration ^ Terminals and Wiring Example ^ | ||
| | Module 0 | COM2 \\ COM3 | D64~D67 \\ D68~D71 | 8 relay outputs \\ 4 points/1COM | {{: | | Module 0 | COM2 \\ COM3 | D64~D67 \\ D68~D71 | 8 relay outputs \\ 4 points/1COM | {{: | ||
| Line 206: | Line 216: | ||
| ==== 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 231: | Line 241: | ||
| ==== 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 276: | Line 286: | ||
| <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 295: | Line 305: | ||
| <code cpp> | <code cpp> | ||
| - | // MP download | + | // USB download |
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| Line 314: | Line 324: | ||
| <code cpp> | <code cpp> | ||
| - | // MP download | + | // USB download |
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| Line 888: | Line 898: | ||
| - 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 910: | Line 920: | ||
| [[: | [[: | ||
| - | |||
en-us_products/mpaino_24a24r.1788785570.txt.gz · Last modified: by 127.0.0.1
