Writing the Program in Arduino IDE

HMI Connection

With Arduino IDE, the product program handles HMI requests through the built-in communication functions in the ILOGICS Arduino SDK. Each protocol has its own initialization and request-handling functions and its own HMI address format, so choose the section for a protocol your HMI supports. Channels and wiring are covered in Wiring the HMI. Screen setup and result checks are covered in Building the HMI Screen and Checking Operation.

Follow the installation steps below if this is your first time. After installing, you can use the simple example at the end of the protocol page you choose.

1. Install the ILOGICS Arduino SDK

Install Arduino IDE, install the ILOGICS SDK, restart the IDE, and select the board

  1. Download and install the Windows Arduino IDE installer from the official Arduino page.
  2. Download and run ARDUINO SDK INSTALL from the ILOGICS Arduino SDK download page.
  3. Set the SDK install location to Hardware under the Arduino IDE sketchbook folder. If you changed the default location, check the sketchbook location in the IDE preferences.
  4. Close Arduino IDE and start it again.
  5. Select your product under Tools → Board → ILOGICS. For MPINO-8A4R-S, select MPINO-8A4R(T)-S.
  6. Connect the MP Download Cable and select its COM port under Tools → Port.

Example of the Arduino IDE board selection window. Select the board name of your product.

In the board selection window, set BOARDS to the product name and PORTS to the COM number of the connected cable. For other products' cables and drivers, see Connect the Product and Find the COM Port.

The COM port for uploading is separate from Serial1, which is used to communicate with the HMI.

2. Connect with Modbus RTU

3. Connect with LS Electric Cnet

4. Connect with Mitsubishi MC