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/14 14:51] – external edit 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 ====== | ||
| - | Follow these steps to upload | + | This guide explains how to install Arduino IDE and the ILOGICS boards, |
| - | ===== 1. Check the Product | + | ===== 1. Install Arduino IDE and the ILOGICS Boards |
| - | Read the full model name, R/T output type, and power-input specification on the product label. The output type determines how you connect a load and check its operation. | + | {{ : |
| - | * **MPAINO-8A8R(T):** The examples use input '' | + | {{ :guide:arduino-ide-setup-flow-en-mobile.svg? |
| - | * **Other MPAINO and MPINO models:** Open your model under [[en-us_products: | + | |
| - | ===== 2. Before Powering On ===== | + | - Install the Windows Arduino IDE from the [[https:// |
| + | - Download and run '' | ||
| + | - Close Arduino IDE and start it again. | ||
| - | - Check the terminal names and power polarity against | + | At the top left of Arduino IDE, **Verify (✓)** compiles |
| - | - Check COM wiring | + | |
| - | - Leave output loads disconnected for the first upload and output check. | + | |
| - | - Provide emergency-stop and overcurrent-protection circuits independently of the program. | + | |
| - | ===== 3. Install Arduino IDE and the ILOGICS | + | The ILOGICS |
| - | {{ : | + | ===== 2. Connect the Product |
| - | {{ : | + | Disconnect output loads before the first upload. Check the product page for the power specification |
| - | - Download and install the Windows Arduino IDE installer from the [[https:// | + | ==== All MPAINO Models ==== |
| - | - Download and run '' | + | |
| - | - Close Arduino IDE and start it again. | + | |
| - | - Connect the product to the PC, then select its board and port as shown below. | + | |
| - | ==== Select | + | - Connect |
| + | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number shown for '' | ||
| + | - If the port does not appear, install the [[https:// | ||
| - | Click the board selector at the top of Arduino IDE and choose **Select other board and port…**. This actual Arduino IDE screen shows MPAINO-8A8R(T) in the search results. | + | ==== MPINO-16A8R ==== |
| - | {{ : | + | |
| + | | ||
| + | - If the port does not appear, install the [[https:// | ||
| - | {{ : | + | ==== Other MPINO Models ==== |
| - | ^ Marker ^ What to do ^ | + | - Connect the PC to the product's download port with an **MP Download Cable**. |
| - | | **1** | Enter the product | + | - In Device Manager, note the COM number shown for '' |
| - | | **2** | Select the ILOGICS board that matches the product label. For MPINO-8A4R-S and MPINO-8A4T-S, select | + | - If the port does not appear, install the [[https:// |
| - | ==== Select the Port ==== | + | ===== 3. Select the Board and Port ===== |
| - | After connecting | + | Find the board name in the [[:en-us_products: |
| - | {{ : | + | {{ : |
| - | {{ : | + | {{ : |
| - | ^ Marker | + | ^ No. ^ Selection |
| - | | **1** | Under **PORTS**, select | + | | **1** | In the **BOARDS** search field, enter the board name shown in the product-family table. | |
| - | | **2** | Click **OK** to apply the board and port selection. | | + | | **2** | Select |
| - | Arduino IDE may show '' | + | In **PORTS**, select the COM number found in Device Manager. |
| - | If the board is already selected, you can choose the same port from the menu: **① Tools → ② Port → ③ COM1**. | + | {{ :guide: |
| - | {{ : | + | {{ : |
| - | {{ : | + | {{ : |
| - | Selecting only a board is enough to verify code, but uploading also requires a port. | + | {{ : |
| - | The example addresses in this guide use an ILOGICS board definition. Some models can also use Arduino Mega/Mega 2560, but in that case you must use the Arduino pin numbers | + | ^ No. ^ Selection ^ |
| + | | **1** | Under **PORTS**, choose | ||
| + | | **2** | Select | ||
| - | ===== 4. Your First Output Program ===== | + | You can also select the same items from **Tools → Board** and then **Tools → Port**. |
| - | The sketch below turns MPAINO-8A8R(T) output '' | + | ===== 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 |
| - | {{ : | + | 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. |
| - | ^ Marker ^ What to do ^ | + | ==== All MPAINO Models · Output 64 ==== |
| - | | **1** | **Verify (✓):** Compile the code and check for errors. This does not send the program to the product. | | + | |
| - | | **2** | **Upload (→):** Send the verified program to the product on the selected port. | | + | |
| - | | **3** | **Board selector:** Check the selected model, or reopen board and port selection. | | + | |
| - | | **4** | **Sketch editor:** Enter the code below. | | + | |
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 64; // MPAINO-8A8R(T) 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 93: | Line 107: | ||
| </ | </ | ||
| - | | + | ==== MPINO-8A8R and MPINO-16A8R8T · Relay Output 62 ==== |
| - | - Save the sketch with **Ctrl + S**. | + | |
| - | - Click **Verify (✓)**. Compilation is complete when the output panel shows no errors and '' | + | |
| - | - Check the board and port, click **Upload (→)**, and wait for the completion message. | + | |
| - | | + | |
| - | You may also hear a relay contact switch. Without an external supply and load, a transistor output | + | To test transistor output |
| - | ===== 5. Turn an Output On with an Input ===== | + | <code cpp> |
| + | // relay output R(62) | ||
| + | const uint8_t OUTPUT_CHANNEL | ||
| + | |||
| + | void setup() {} | ||
| + | |||
| + | void loop() { | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| + | } | ||
| + | </ | ||
| - | This example reads MPAINO-8A8R(T) input '' | + | ==== MPINO-16A8R · Output 39 ==== |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // MPAINO-8A8R(T) input example | + | // relay output R(39) |
| - | const uint8_t OUTPUT_CHANNEL = 64; // MPAINO-8A8R(T) output example | + | const uint8_t OUTPUT_CHANNEL = 39; |
| - | void setup() { | + | void setup() {} |
| - | | + | |
| - | | + | void loop() { |
| + | | ||
| + | | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | ===== 5. Control the Output with the First Input ===== | ||
| + | |||
| + | 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. | ||
| + | |||
| + | ==== All MPAINO Models · Input 0 → Output 64 ==== | ||
| + | |||
| + | <code cpp> | ||
| + | // first MPAINO input | ||
| + | const uint8_t INPUT_CHANNEL = 0; | ||
| + | const uint8_t OUTPUT_CHANNEL = 64; | ||
| + | |||
| + | void setup() {} | ||
| void loop() { | void loop() { | ||
| - | bool inputState | + | |
| - | digitalWrite(OUTPUT_CHANNEL, | + | digitalWrite(OUTPUT_CHANNEL, |
| } | } | ||
| </ | </ | ||
| - | **Verify | + | ==== 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() { | ||
| + | const bool inputOn = digitalRead(INPUT_CHANNEL); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO-8A8R | ||
| + | |||
| + | <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, inputOn); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== 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 | + | ===== 6. If Something |
| ^ Symptom ^ What to check ^ | ^ Symptom ^ What to check ^ | ||
| - | | The product | + | | The model is missing from the board results |
| - | | Verification | + | | 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. | |
| - | | Upload fails | Check the board and COM port, the product' | + | | Verify |
| - | | Upload | + | | Upload fails | Confirm that Device Manager and Arduino IDE show the same COM number. Check the cable connection |
| + | | Upload | ||
| + | | 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 ===== | ===== Next Documents ===== | ||
| - | * [[en-us_guide: | + | * [[en-us_guide: |
| - | * [[en-us_commands: | + | * [[en-us_commands: |
| - | * [[: | + | * [[: |
en-us_guide/getting_started.1789365095.txt.gz · Last modified: by 127.0.0.1
