Recently, many friends have asked me how to get started with Mitsubishi PLCs. As an engineer with over 20 years of experience, I decided to organize my knowledge to help everyone avoid unnecessary detours.
Why Choose Mitsubishi PLC?
Mitsubishi PLCs hold a significant market share in the domestic industrial automation field. Its programming software, GX Works, is user-friendly, has a comprehensive instruction system, and is stable and reliable. For beginners, Mitsubishi is a good choice.
Basic Hardware Knowledge
Let’s briefly discuss the “organs” of a PLC:
- CPU: Equivalent to the brain, responsible for computation and control
- Input Module: Like our senses, receiving external signals
- Output Module: Similar to hands and feet, controlling external devices
- Power Supply Module: Provides power to the entire system
- Communication Module: Enables data exchange with other devices
Special Reminder: When purchasing, pay attention to the power supply voltage (AC220V or DC24V) and ensure the I/O points meet actual needs.
Software Environment Setup
- Download the GX Works3 software (it is recommended to use the official version)
- Install the USB driver
- Select the correct PLC model when creating a new project
Common Issues: If the software reports an error upon opening, it is often due to compatibility settings not being changed. Right-click → Properties → Compatibility → Run as administrator.
Detailed Explanation of Basic Instructions
LD/LDI (Input Instructions)
Understand this instruction as a regular switch. LD is a normally open contact, while LDI is a normally closed contact.
OUT (Output Instruction)
Controls the relay coil action, which means it activates the device.
Let’s look at a simple example:
Copy
LD X0 ; X0 switch pressed
OUT Y0 ; Y0 light on
This is like a lighting switch at home; when the switch (X0) is pressed, the light (Y0) turns on.
SET/RST (Set/Reset Instructions)
- SET: Similar to a latching circuit, the output remains active
- RST: Releases the latching state
Practical Application Case: Simple Motor Start/Stop Control
Assuming we want to achieve the following functionality:
- Press the START button to start the motor
- Press the STOP button to stop the motor
- Automatically shut down in case of overload
Example Ladder Diagram:
Copy
LD X0 ; START button
OR M0 ; Latching contact
ANI X1 ; STOP button (normally closed)
ANI X2 ; Overload protection (normally closed)
OUT M0 ; Running status storage
OUT Y0 ; Motor running
Debugging Tips
- Check Before Powering On: Ensure wiring is correct, especially the power polarity
- Monitoring Function: Use the online monitoring function of GX Works3 during operation to observe I/O status
- Force ON/OFF: During debugging, you can force input/output states, but remember to cancel them in time
Common Errors and Solutions
- Program not responding
- Check if the PLC is in running status
- Confirm if the input voltage is normal
- Check the alarm indicator light
- Output not functioning
- Check if the external load is normal
- Confirm the output type (relay/transistor)
- Verify program logic
Practical exercise suggestions:
- Build a simple control circuit using physical components or simulation software
- Start with single instructions and gradually increase complexity
- Simulate faults frequently to improve troubleshooting skills
Next time, we will delve into the use of counters and timers, which are important functions in PLC control.