Tutorial

Omron CP1H & Mitsubishi MR-J4 Servo Origin Search

Omron PLC Origin Search with MR-J4 Drive

6 min read

Industry

Industrial Automation

Category

Servo Control

Type

Tutorial

Read Time

6 min read

Omron CP1H & Mitsubishi MR-J4 Servo “Origin Search”

Written by FAIZAL AFZAL

Introduction

Omron PLCs (Programmable Logic Controllers) and Mitsubishi Servo Motors are widely used in small to medium-sized industrial machines for precision control and automation. The Omron CP1H PLC, in particular, supports the control of up to four axes, making it a powerful tool for managing complex motion tasks. This tutorial will guide you through the process of configuring the Omron CP1H to control a Mitsubishi MR-J4 series servo motor, focusing on executing an “Origin Search” (ORG) operation.

This tutorial is essential for those looking to integrate Omron PLCs with Mitsubishi Servo Motors in industrial applications.

Next Post: Jog Process

Step 1: Configuring Omron CP1H PLC

To begin, you must configure the Omron CP1H PLC to communicate effectively with the Mitsubishi MR-J4 Servo Motor. Below are the detailed steps for setting up the CP1H:

1.1 Select Communication Port

1.2 Configure Pulse Output Method

1.3 PLC Setup

Omron CP1H configuration screen with the Port and Output method settings

Step 2: Configuring Mitsubishi MR-J4 Driver

Next, you will configure the Mitsubishi MR-J4 servo driver. The following parameters are crucial for ensuring proper communication and control:

2.1 Servo Control Mode

2.2 Command Input Pulses per Revolution

2.3 Input Pulse Gain Ratio

2.4 Selection of Control Pulse Types

Table here showing the different Control Pulse Types

Step 3: Connection Diagram Between CP1H and MR-J4_A

To establish a connection between the Omron CP1H PLC and the Mitsubishi MR-J4 servo motor, follow the wiring diagram provided. This is a basic setup designed for ease of understanding and is suitable for beginners.

Wiring diagram here that shows the connections between the CP1H PLC and the MR-J4 servo motor, including power connections, I/O wiring, and communication lines

Step 4: Programming Omron CP1H PLC

Now that the hardware is configured, you can proceed to program the Omron CP1H PLC to control the Mitsubishi MR-J4 servo motor. The focus here is on using the Origin Search (ORG) command.

4.1 Understanding the ORG Command

The Omron CP1H PLC is equipped with four pulse generator ports. In this tutorial, we will use Port 1 (Port 0) for sending pulses to the servo motor.

The ladder instrcution of the ORG command in Omron CP1H

The ladder instrcution of the INI command in Omron CP1H

Step 5: I/O Address Table

The I/O Address Table outlines the input and output addresses used in the PLC program for controlling the servo motor. This table is crucial for mapping physical inputs/outputs to the corresponding software commands.

5.1 Input Signals

5.2 Output Signals

Step 6: Programming Functions

6.1 Sensor Status

The program checks the status of various sensors before executing any motion commands. This includes verifying that the limit sensors and origin sensors are functioning correctly to prevent any accidental damage to the system.

Code snippet showing how sensor statuses are checked in the program

6.2 Stop Pulses Output

In the event of an emergency or if the system needs to halt, the program will execute a command to stop all pulse outputs immediately.

Explanation of the code that stops the pulse output

6.3 Origin Recover

The Origin Recover function is used to move the servo motor back to its origin position after it has been stopped or interrupted. This ensures that all subsequent operations start from a known position.

Example code of the Origin Recover functionality

Conclusion

This tutorial has provided a comprehensive guide on how to configure and program an Omron CP1H PLC to control a Mitsubishi MR-J4 series servo motor, specifically focusing on the Origin Search operation. By following the steps outlined, you can successfully integrate these two powerful pieces of industrial equipment to achieve precise motion control in your applications.

For more advanced programming techniques and further exploration of servo control, continue to the next tutorial in this series.

Recent Work

Asset Tracking & Monitoring
Smart Utility Management Solution
Mobility Solutions for Industry 4.0
Overall Equipment Effectiveness (OEE)
Predictive Maintenance Solution
Enhancing Alarm Management Efficiency
OT/SCADA Data Backup Management
Condition Based Maintenance (CbM)
Centralized Backup for SCADA/OT
Strengthening Security in SCADA/ICS
Zero Trust Security Approach
3-Step Strategy for Cyber Resilience