By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Automation CommunityAutomation Community
  • PLC
  • Control Systems
  • Instrumentation
  • Calibration
  • Electrical
  • Courses
    • Siemens PLC Course
    • Allen Bradley PLC Course
    • InTouch SCADA Course
    • WinCC SCADA Course
    • Siemens Tia Portal
    • Omron PLC Course
    • Advanced PLC Course
Search
  • Customize Interests
  • My Bookmarks
© Automation Community. All Rights Reserved.
Reading: Mitsubishi PLC HMI Configuration with PID Controller Via Modbus
Share
Notification Show More
Aa
Automation CommunityAutomation Community
Aa
  • PLC
  • Control Systems
  • Instrumentation
Search
  • PLC
  • Control Systems
  • Instrumentation
  • Calibration
  • Electrical
  • Courses
    • Siemens PLC Course
    • Allen Bradley PLC Course
    • InTouch SCADA Course
    • WinCC SCADA Course
    • Siemens Tia Portal
    • Omron PLC Course
    • Advanced PLC Course
Follow US
© 2023. All Rights Reserved.
Automation Community > Blog > PLC > Mitsubishi PLC HMI Configuration with PID Controller Via Modbus
PLC

Mitsubishi PLC HMI Configuration with PID Controller Via Modbus

Sharique Anwar
Last updated: 2023/04/29 at 7:26 AM
Sharique Anwar
Share
9 Min Read
SHARE

In this article, you will learn how to do Modbus communication between the Mitsubishi PLC HMI PID controller with RTD to measure temperature.

Contents
Project DetailsMitsubishi PLC HMI ConfigurationWiring between PLC HMI PID ControllerPLC LogicPID Controller ParametersMitsubishi HMI ProgrammingConclusion

Project Details

Consider the following example.

A heater is used in a system to raise the temperature of the liquid that has been added to a vessel depending on various set points. The heater must work in three stages during the course of a cycle.

When a cycle start button is pressed, the heater is activated in the initial stage. The heater is turned off for p seconds after the temperature of x° C has been reached. During this time, the liquid’s temperature drops.

The heater is restarted when p seconds have passed and kept running until the liquid reaches y° C. The cycle is completed when the heater is turned back on after the liquid has cooled for q seconds and reaches z° C. The next cycle won’t begin until the liquid temperature drops below x° C.

The variables set from the HMI are x, y, z, p, and q.

The Process value (Running temperature) of the liquid contained in the vessel is required by PLC in order to complete the process.

Two of the possible methods by which the aforementioned may be accomplished are as follows:

It is necessary to use a temperature transmitter that offers 0-10v/4-20mA/0-20mA in addition to RTDs or thermocouples. The analog input module of the PLC receives this voltage or current output signal, which provides the process value (running temperature) of the liquid.

In addition to these, HMI is a must requirement for altering x, y, z, p, and q.

A PID controller with a communication option is required in addition to the RTD or thermocouple. Using the Device transfer function in GT Designer 3, the Process value of the liquid’s temperature obtained at the PID end is transmitted to the PLC via HMI on the RS485 protocol.

PID is therefore needed for the second technique, whereas the first method requires a transmitter and an analog input module in addition to a PLC and an HMI.

If only cost matters, the second method is cheaper than the first one. So, in this case, the process is carried out using the second way.

Details of the controller and devices used in this case are as follows:

PLCHMIPID Controller
Mitsubishi FX3UMitsubishi GS2107Selec PID500

The steps for executing the process are as follows:

More Read

Resistance Temperature Detector (RTD) Questions and Answers

30 Communication Protocols in Automation and Instrumentation

RS232 RS485 RS422 Communication Protocols – Questions and Answers

Serial Communication Questions and Answers

Modbus Protocol – Top Interview Questions and Answers

  1. Wiring the RTD/Thermocouple to PID Controller, Connecting the PID controller to HMI using RS485 cable, and Connecting PLC to HMI using RS232 cable.
  2. Writing the logic in GX works2(PLC software), assigning data registers for x, y, z, p, and q.
  3. Communication-related PID controller parameterization.
  4. Using the GT Designer 3 software to set up an HMI with both PID and PLC on two distinct channels.

Mitsubishi PLC HMI Configuration

Take a look at the schematic and connection details below.

Mitsubishi PLC HMI Configuration with PID Controller Via Modbus
Figure – Project Schematics

The following image shows the wiring between PLC, HMI, PID Controllers, and RTD.

Wiring between PLC HMI PID Controller

Mitsubishi PLC & HMI Wiring with RTD
Figure – Wiring

PLC Logic

The below table lists the main I/O of the PLC program.

Device NameComment
M0Sys on
X000Start
Y000Heater
D0Final PV
D2x° C
D4y° C
D6z° C
D30p seconds
D32q seconds

Rung 1

From HMI “p” and “q” seconds are defined in D30 & D32, the values of which are multiplied by 10(dec) and stored in D20 & D22 to define the Set values of hundred milliseconds timers T0 and T1 in Rung 5 and 7.

Rung 2

When pressing the start button X0, the system will only start through M0 if the conditions listed below are met.

  • Liquid’s temperature (value of D0) is below x° C
  • x° C < y° C < z° C as defined from HMI
Mitsubishi HMI and PID Controller PLC Programming
Figure – PLC Logic

Rung 3 & 4

When the start button X0 is pressed and all the prerequisites from the preceding rung have been satisfied, the heater is turned on through M0 until the temperature reaches x° C.

M1 shuts off the heating source when x° C is reached.

Rung 5 & 6

The timer begins counting after the heater’s supply is shut off. After the completion of this time, the heater is again turned on through the parallel branch in Rung 3.

The heater supply is then turned off as soon as the liquid reaches a temperature of y° C since M2 is high.

Rung 7, 8, & 9

Soon as the supply of the heater is shut off, the timer starts counting q seconds. Once the q seconds have passed, the heater is again turned on through the second parallel branch in Rung 3.

The heating supply is turned off as soon as the liquid reaches z° C since M3 is high. As soon as the M3 actuates, all timers and memory bits are reset to finish the cycle.

PID Controller Parameters

Below are the default PID Communication parameters

Default PID Communication parameters
Figure – PID Controller Parameters

Define Communication station No. as 2 and set the Stop bit to 2.

Use Baud Rate and Parity default values.

The parameter settings in the HMI should be the same as above except for the station address.

Since PID and HMI are communicated using RS485 protocol, the Modbus address of process value is required in order to obtain it at the HMI end.

PID Controller Modbus Mapping
Figure – PID Controller Modbus Mapping Details

30066 reads the Process value (Running temperature) of any liquid contained in a vessel having the Resistance Temperature Detector as the temperature-sensing device.

Mitsubishi HMI Programming

Here we are using MELSOFT GT Designer 3 Mitsubishi Software and described the HMI programming in brief steps as follows.

Assign Channel 2 as Modbus Master on the RS485 interface and Channel 1 controller as MELSEC-FX on the RS232 interface in the controller settings with the highlighted settings.

MELSOFT GT Designer 3 Settings
Modbus Master in MELSOFT

To show the Process value (Final PV) obtained from PID, tag the “Numeric Display” element as below.

Mitsubishi PLC & HMI Modbus Configuration

Transfer this process value to the PLC using the Device transfer function

Mitsubishi HMI Device Data Transfer
HMI basic configuration

In the basic configuration of the “Device Data Transfer” function, tag the device address as D0 assigned for Process value in PLC (See PLC logic). Station number 1 ensures that the tag is of PLC.

To ensure that the Data read from PID is transferred once every 500ms, set the transfer rate to 500ms.

Mitsubishi PLC and PID Controller Program

Define the Source device as Modbus Master (Station number 2) with the address 300066 in the Device configuration of the “Device Data Transfer” function.

Set the MELSEC-FX (Station 1) device as the destination device, and set the address to D0.

Make sure “Real” is selected as the Device type. As a result, data is read from the PID and sent to the PLC every 500ms.

Apart from these, take the Numeric inputs and tag them as per PLC logic.

  • D2 (Real) for x° C
  • D4 (Real) for y° C
  • D6 (Real) for z° C
  • D30 (Int) for p secs
  • D32 (Int) for q secs

On the final screen below, temperature (Final PV), which was read from PID and written to PLC, is also highlighted.

PID Controller to PLC Logic

Conclusion

Modbus Communication between Mitsubishi HMI and PID controller (PID500) is demonstrated with the help of a Liquid processing example.

Read Next:

  • PLC Welding Robot
  • PLC Hydraulic Clamping
  • OPC System Benefits
  • Purpose of Telemetry
  • PLC Varnish Machine

You Might Also Like

Sensors and Transducers Objective Questions and Answers

Cybersecurity Questions and Answers

Electrical Switches Objective Questions and Answers

Programmable Logic Controller Questions and Answers – PLC

Fire Fighting Pump Room Monitoring System – PLC Project

TAGGED: HMI, Human Machine Interface, Mitsubishi HMI, Mitsubishi PLC, Modbus, PID Controller, PLC, PLC Example, PLC Logic, PLC Program, PLC Programming, PLC Projects, PLC Tutorials, Programmable Logic Controller, RS232, RS422, RS485, RTD

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn
Share
Previous Article Clay Brick Forming Machine PLC Programming for Clay Brick Making Machine
Next Article PLC HVAC Program What is Air Handling Unit? – Components – PLC Programming
1 Comment 1 Comment
  • Suresh says:
    April 5, 2023 at 11:23 am

    Thank you for the information

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

120.5k Followers Like
10.1k Followers Follow
90.6k Subscribers Subscribe

Latest Articles

Orifice Plate
Orifice Plate Questions and Answers
Instrumentation June 5, 2023
Sensors and Transducers Objective Questions and Answers
Sensors and Transducers Objective Questions and Answers
Instrumentation Control Systems PLC June 4, 2023
Cybersecurity Questions and Answers
Cybersecurity Questions and Answers
Control Systems PLC June 3, 2023
Electrical Motors Multiple-Choice Questions
50 Electrical Motors Multiple-Choice Questions
Electrical June 2, 2023
Profibus Questions and Answers
Control Systems

Profibus Questions and Answers

In this collection of Profibus Questions and Answers, we delve into the…

Editorial Staff By Editorial Staff May 22, 2023
How to Troubleshoot a Relay
PLC

Relay Circuits – How to Troubleshoot a Relay?

In this article, you will learn the basic relay circuits and how…

Editorial Staff By Editorial Staff January 12, 2023
What is Telemetry System
CompetitionControl Systems

What is Telemetry? Definition, Purpose, Applications

A telemetry system collects data from remote locations and transmits the information…

R Jagan Mohan Rao By R Jagan Mohan Rao January 30, 2023
Relays Multiple Choice Questions and Answers
Control SystemsPLC

Relays Multiple Choice Questions and Answers

In this article, you will learn the Relays multiple-choice questions and answers…

Editorial Staff By Editorial Staff January 26, 2023
Poka-Yoke Assembly Table
PLC

PLC Programming for Poka-Yoke Assembly Table

In this article, you will learn the PLC programming for Poka-Yoke assembly…

Sharique Anwar By Sharique Anwar March 14, 2023
Simatic S7-400 Siemens PLC
Control Systems

What is PCS 7? – Siemens Distributed Control System

Siemens PCS 7 is a distributed control system (DCS) used in industrial…

Editorial Staff By Editorial Staff April 28, 2023
Show More
//

We provide resoucres to million users and we are the number one business and industrial automation news network on the planet

Quick Link

  • Customize Interests
  • My Bookmarks

Top Categories

  • PLC
  • Control Systems
  • Instrumentation

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”847″]

Follow US
© 2023 All Rights Reserved. Supported by Inst Tools.
login
Welcome Back!

Sign in to your account

Lost your password?