en-us_guide:getting_started
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_guide:getting_started [2026/09/12 22:54] – 바깥 편집 127.0.0.1 | en-us_guide:getting_started [2026/09/15 15:28] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Getting Started with Arduino IDE ====== | ====== Getting Started with Arduino IDE ====== | ||
| - | This guide explains how to check one digital input and one output after connecting | + | This guide explains how to install Arduino IDE and the ILOGICS boards, upload |
| - | ===== 1. Identify | + | ===== 1. Install Arduino IDE and the ILOGICS Boards |
| - | Check the following on the product label. | + | {{ : |
| - | * MPINO or MPAINO product family | + | {{ : |
| - | * Full model name and R/T output type | + | |
| - | * Number of I/O points | + | |
| - | * Power input specifications | + | |
| - | ===== 2. Before Powering On ===== | + | - Install the Windows Arduino IDE from the [[https:// |
| + | - Download and run '' | ||
| + | - Close Arduino IDE and start it again. | ||
| - | - Check terminal names against | + | At the top left of Arduino IDE, **Verify (✓)** compiles the code and **Upload (→)** transfers it to the product on the selected port. |
| - | - Check power polarity | + | |
| - | - Disconnect output loads before | + | |
| - | - Set analog-module DIP switches with the power off. | + | |
| - | - Provide emergency-stop and overcurrent-protection circuits independently of the program. | + | |
| - | ===== 3. Install Arduino IDE and the ILOGICS | + | The ILOGICS |
| - | - Download and install the Windows Arduino IDE installer from the [[https:// | + | ===== 2. Connect |
| - | - Download | + | |
| - | - Start Arduino IDE. If it is already open, close and reopen it. | + | |
| - | - Under **Tools → Board → ILOGICS (in Sketchbook)**, | + | |
| - | - Connect the product to the PC and select its COM port under **Tools → Port**. | + | |
| - | Some models can also use the Arduino Mega/Mega 2560 board definition. Check the Arduino SDK download | + | Disconnect output loads before |
| - | ===== 4. First Output Program ===== | + | ==== All MPAINO Models |
| - | Replace | + | - Connect the PC to the CPU module's **USB download port** with a USB cable. |
| + | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number shown for '' | ||
| + | - If the port does not appear, install | ||
| - | | + | ==== MPINO-16A8R ==== |
| - | * MPAINO: the first output is '' | + | |
| + | - Connect the PC to the product' | ||
| + | - In Device Manager, note the COM number shown for '' | ||
| + | - If the port does not appear, install the [[https:// | ||
| + | |||
| + | ==== Other MPINO Models ==== | ||
| + | |||
| + | - Connect the PC to the product' | ||
| + | - In Device Manager, note the COM number shown for '' | ||
| + | - If the port does not appear, install the [[https:// | ||
| + | |||
| + | ===== 3. Select the Board and Port ===== | ||
| + | |||
| + | Find the board name in the [[: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ^ No. ^ Selection ^ | ||
| + | | **1** | In the **BOARDS** search field, enter the board name shown in the product-family table. | | ||
| + | | **2** | Select the result with the exact same name. R and T products grouped together use the common board name containing '' | ||
| + | |||
| + | In **PORTS**, select the COM number found in Device Manager. | ||
| + | |||
| + | {{ :guide: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ^ No. ^ Selection ^ | ||
| + | | **1** | Under **PORTS**, choose the same COM number shown in Device Manager. '' | ||
| + | | **2** | Select **OK** to apply the board and port. | | ||
| + | |||
| + | You can also select the same items from **Tools → Board** and then **Tools → Port**. | ||
| + | |||
| + | ===== 4. Blink the First Output ===== | ||
| + | |||
| + | Find the first I/O numbers for your model in the product-family table, then use the example below with the same numbers. Open **File → New Sketch**, enter the code, and save it with **Ctrl + S**. Select **Verify (✓)** and wait for '' | ||
| + | |||
| + | A relay output can be checked by its operating sound. To check a transistor output, switch off power and connect a test load according to the output-wiring section on the product page. | ||
| + | |||
| + | ==== All MPAINO Models · Output 64 ==== | ||
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 64; // MPAINO example | + | // first MPAINO output |
| + | const uint8_t OUTPUT_CHANNEL = 64; | ||
| - | void setup() { | + | void setup() {} |
| - | | + | |
| + | void loop() { | ||
| + | | ||
| + | delay(500); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO Models with Input 0 and Output 32 ==== | ||
| + | |||
| + | Use this example with MPINO-8A4R(T)-S, | ||
| + | |||
| + | <code cpp> | ||
| + | // first output on these MPINO models | ||
| + | const uint8_t OUTPUT_CHANNEL = 32; | ||
| + | |||
| + | void setup() {} | ||
| void loop() { | void loop() { | ||
| Line 52: | Line 107: | ||
| </ | </ | ||
| - | Check output indicators | + | ==== MPINO-8A8R |
| - | ===== 5. Link an Input to an Output ===== | + | To test transistor output O(39) on MPINO-16A8R8T, |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; | + | // relay output R(62) |
| - | const uint8_t OUTPUT_CHANNEL = 64; // MPAINO example | + | const uint8_t OUTPUT_CHANNEL = 62; |
| - | void setup() { | + | void setup() {} |
| - | | + | |
| - | | + | void loop() { |
| + | | ||
| + | | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO-16A8R · Output 39 ==== | ||
| + | |||
| + | <code cpp> | ||
| + | // relay output R(39) | ||
| + | const uint8_t OUTPUT_CHANNEL = 39; | ||
| + | |||
| + | void setup() {} | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | digitalWrite(OUTPUT_CHANNEL, | + | delay(500); |
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| </ | </ | ||
| - | MPAINO digital inputs include pull-down resistors, so use '' | + | ===== 5. Control |
| - | ===== 6. Extend Your Program with Built-in Functions ===== | + | Switch off power before wiring the input and COM. Turn the input on and off and check that the output follows it. Use the **Digital Inputs** and **Output** sections of your product page to identify the terminals and COM. |
| - | Use '' | + | ==== All MPAINO Models · Input 0 → Output 64 ==== |
| <code cpp> | <code cpp> | ||
| + | // first MPAINO input | ||
| const uint8_t INPUT_CHANNEL = 0; | const uint8_t INPUT_CHANNEL = 0; | ||
| const uint8_t OUTPUT_CHANNEL = 64; | const uint8_t OUTPUT_CHANNEL = 64; | ||
| - | void setup() { | + | void setup() {} |
| - | | + | |
| - | | + | void loop() { |
| + | | ||
| + | | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO Models with Input 0 and Output 32 ==== | ||
| + | |||
| + | <code cpp> | ||
| + | // first input on these MPINO models | ||
| + | const uint8_t INPUT_CHANNEL = 0; | ||
| + | const uint8_t OUTPUT_CHANNEL = 32; | ||
| + | |||
| + | void setup() {} | ||
| void loop() { | void loop() { | ||
| - | bool stableInput | + | |
| - | bool delayedOutput = Iton(0, stableInput, | + | digitalWrite(OUTPUT_CHANNEL, |
| - | digitalWrite(OUTPUT_CHANNEL, | + | |
| } | } | ||
| </ | </ | ||
| - | ===== Next Steps ===== | + | ==== MPINO-8A8R and MPINO-16A8R8T · Input 22 → Relay Output 62 ==== |
| + | |||
| + | <code cpp> | ||
| + | // input I(22) | ||
| + | const uint8_t INPUT_CHANNEL = 22; | ||
| + | const uint8_t OUTPUT_CHANNEL = 62; | ||
| + | |||
| + | void setup() {} | ||
| + | |||
| + | void loop() { | ||
| + | const bool inputOn = digitalRead(INPUT_CHANNEL); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO-16A8R · Input 22 → Output 39 ==== | ||
| + | |||
| + | <code cpp> | ||
| + | // input I(22) | ||
| + | const uint8_t INPUT_CHANNEL = 22; | ||
| + | const uint8_t OUTPUT_CHANNEL = 39; | ||
| + | |||
| + | void setup() {} | ||
| + | |||
| + | void loop() { | ||
| + | const bool inputOn = digitalRead(INPUT_CHANNEL); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== 6. If Something Goes Wrong ===== | ||
| + | |||
| + | ^ Symptom ^ What to check ^ | ||
| + | | The model is missing from the board results | Confirm that '' | ||
| + | | No COM port appears in Device Manager | Use section 3 to check the connection and driver for your product. MPINO-16A8R does not use the MP Download Cable. | | ||
| + | | Verify reports an error | Check that the selected board matches the product and the code was entered correctly. Start with the first error shown in the output panel. | | ||
| + | | Upload fails | Confirm that Device Manager and Arduino IDE show the same COM number. Check the cable connection and product power. | | ||
| + | | Upload succeeds but the output does not change | Recheck the first output number in the product-family table and the R/T output type on the product page. A transistor output needs a wired test load to show its state. | | ||
| + | | The output does not follow the input | Recheck the first input number in the product-family table and the input-to-COM wiring on the product page. | | ||
| + | |||
| + | ===== Next Documents | ||
| - | * [[:en-us_guide: | + | * [[en-us_guide: |
| - | * [[:en-us_commands: | + | * [[en-us_commands: |
| - | * [[: | + | * [[: |
en-us_guide/getting_started.1789221299.txt.gz · Last modified: by 127.0.0.1
