Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Basic Arithmetic Programming in Mitsubishi PLC
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Basic Arithmetic Programming in Mitsubishi PLC

Basic Arithmetic Programming in Mitsubishi PLC

Understand Basic Arithmetic Programming in Mitsubishi PLC with key instructions like ADD, SUB, MUL, and DIV in GX Works2.

Last updated: July 8, 2025 10:09 am
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

This article discusses the application of various arithmetic programming in the Mitsubishi PLC GX Works2 software. Within GX Works2, there are four basic math instructions commonly used in calculation processes: addition (ADD), subtraction (SUB), multiplication (MUL), and division (DIV). As a test, all of these instructions will be used in a program to calculate values.

Contents
Program ObjectiveAddition Instruction (ADD)Subtraction Instruction (SUB)Division Instruction (DIV)Multiplication Instruction (MUL)Simulation VideoMath Operations in Mitsubishi PLCIO Mapping DetailsBasic Arithmetic Programming

Program Objective

Basic Arithmetic Programming in Mitsubishi PLC

Addition Instruction (ADD)

The ADD instruction is used to add two values from word memory. It requires three word memory allocations: the initial value, the value to be added, and the storage location for the result. Additionally, one input parameter is needed as a trigger for the instruction.

In this program, the ADD instruction is used to add two values from word memory.

Subtraction Instruction (SUB)

The SUB instruction is used to subtract one value from another stored in word memory. It also requires three word memory allocations: the value to be subtracted, the subtractor value, and the result, along with one input parameter as the trigger.

In this program, the SUB instruction is used to subtract a specific value from word memory.

Division Instruction (DIV)

The DIV instruction is used to divide one value by another stored in word memory. Like the other instructions, the Division instruction requires three word memory allocations: the dividend, the divisor, and the result, as well as one input parameter as the trigger.

In this program, the DIV instruction is used to perform division on a word memory value.

Multiplication Instruction (MUL)

The MUL instruction is used to multiply two values stored in word memory. It requires three word memory allocations: the first value, the multiplier, and the result, along with one input parameter as the trigger.

In this program, the MUL instruction is used to multiply two word memory values.

Simulation Video

In the video below, we showed you the simulation result of this Mitsubishi program.

Mitsubishi PLC Math Operations

Math Operations in Mitsubishi PLC

Math Operations in Mitsubishi PLC

IO Mapping Details

S.No.CommentInput (I)Memory Word
1TRIGGER(+)M0 
2TRIGGER(-)M1 
3TRIGGER(*)M2 
4TRIGGER(/)M3 
5DATA_0 D0
6DATA_2 D2
7RESULT(+) D4
8DATA_6 D6
9DATA_8 D8
10RESULT(-) D10
11DATA_12 D12
12DATA_14 D14
13RESULT(/) D16
14DATA_30 D18
15DATA_31 D20
16RESULT(*) D22

Basic Arithmetic Programming

Arithmetic Instructions in GX Works2

RUNG 0 (Addition)

In this Rung, the ADD instruction will add the value in the DATA_0 (D0) memory word with the value in the DATA_1 (D2) memory word if the TRIGGER(+) (M0) button is pressed.

The calculation result will be entered into the RESULT(+) (D4) memory word.

RUNG 8 (Subtraction)

In this Rung, the SUB instruction will subtract the value in the DATA_6 (D6) memory word from the value in the DATA_8 (D8) memory word if the TRIGGER(-) (M1) button is pressed.

The calculation result will be entered into the RESULT(-) (D10) memory word

RUNG 16 (Division)

In this Rung, the DIV instruction divides the value in the DATA_12 (D12) memory word by the value in the DATA_14 (D14) memory word if the TRIGGER (/) (M2) button is pressed.

The calculation results will be entered into the RESULT(/) (D16) memory word.

Mitsubishi PLC Math Instruction in Ladder Logic

RUNG 24 (Multiplication)

In this Rung, the MUL instruction will multiply the value in the DATA_18 (D18) memory word with the value in the DATA_20 (D20) memory word if the TRIGGER(*) (M3) button is pressed.

The calculation result will be entered into the RESULT(*) (D22) memory word.

PLC Maths PDF

Read Next:

  • Waste-Burning System OMRON PLC Programming
  • How to use Sub-Routines with Allen Bradley PLC
  • Analog Alarms using PLC Functional Block Diagram
  • PLC Example Programming for Star-Delta System
  • Programming for Sequential Batch Mixing System

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

InTouch SCADA Login Password Security
4-20mA Loop Power Supply Questions and Answers
What are High-Speed Inputs in PLC?
How to Reduce Relay Noise in PLC Systems?
Types of Instructions in PLC Programming
How to Use Analog Input in Mitsubishi FX3U LOLLETTE PLC?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

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

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Basic PLC Ladder Programming Example
How to Backup and Restore from Simatic Prosave HMI?
What is Marshalling Cabinet?
Turbine-Compressor System Architecture
OB1 – Main Cyclic Organization Block in TIA Portal
FactoryTalk Studio and SQL Server for Data Logging
PLC Programming for 3 Motors control in Ladder logic
How to Configure PID in Siemens PLC?

Keep Learning

CPU Communication Ports in Siemens PLC

Types of CPU Communication Ports in Siemens PLC

Types of PLC Memory

Types of PLC Memory

PLC Programming in Bottle Filling Process

Applications of PLC Programming in Bottle Filling Process

Automation Engineers Interview Questions

Industrial Automation Engineers Interview Questions

Yokogawa DCS

Yokogawa DCS and SIS System Architecture

Quiz Program Logic Using PLC Programming

Quiz Program Logic Using PLC Programming

PLC based drilling machine

Drilling Process using PLC Program

Run 4 Motors Sequentially from Same Push button PLC Program

Run 4 Motors Sequentially from Same Push button PLC Program

Learn More

Pump Low throughput

[RCA] Pump Low throughput Eliminated

Pressure Switch Terminology

Pressure Switch Terminology

Stability in Frequency Domain

Cascade Compensation in Time Domain

Linear Heat Detector Working Principle

What are Linear Heat Detectors?

Compare Solenoid Valve Manual reset and Manual Override

Compare Solenoid Valve Manual Reset and Solenoid Manual Override

CNC Machining Deep Hole Drilling

Deep Hole Drilling Ideal Methods For CNC Machining

Contacting Radar Tank Gauges

Radar Tank Gauging

PLC programming for clothes washing machine automation

LS Electric PLC Program Example: Clothes Washing System

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?