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: Mitsubishi PLC Counter Tutorial Using GX-Works2
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 > Mitsubishi PLC Counter Tutorial Using GX-Works2

Mitsubishi PLC Counter Tutorial Using GX-Works2

Learn how to use counter instructions in Mitsubishi PLC with GX-Works2 software. This tutorial covers count-up, increment, and outputs.

Last updated: July 7, 2025 8:39 pm
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

This article will discuss the use of the Counter instruction in the GX-Works2 Mitsubishi PLC software. It is used to count the number of events or occurrences that happen within a program. In this program, the Counter and Increment/Decrement instructions will be used to activate specific outputs.

Contents
Program ObjectiveCOUNTER InstructionINCREMENT (INC) and DECREMENT (DEC) InstructionsMitsubishi Counter Programming Using Ladder DiagramSimulation VideoIO MappingMitsubishi PLC Counter Tutorial

Program Objective

Mitsubishi PLC Counter Tutorial Using GX-Works2

COUNTER Instruction

This counter instruction is an upward-counting type of counter instruction.

This instruction counts events and stores the value in a counter memory (e.g., C0). The CNT instruction has one input parameter to increment the counter’s present value (PV). The counter’s PV can only be reset using the Reset (RST) instruction with the same counter memory address. Numeric values in GX-Works software must be written with the prefix “K”.

In this instruction, the counter’s set value (SV) is set to 5 (K5), and it will activate Output 1 after receiving 5 trigger signals.

INCREMENT (INC) and DECREMENT (DEC) Instructions

The INC and DEC instructions are used to increase or decrease the value stored in a word memory, functioning similarly to a reversible counter.

These instructions store the counted value in word memory (e.g., D0). Both INC and DEC instructions have one input parameter used to increase or decrease the value. In this program, the word memory value is combined with comparison instructions (=, >, <).

Each comparison instruction has its own set value (SV) parameter and will be used to activate an output.

Mitsubishi Counter Programming Using Ladder Diagram

Mitsubishi Counter Programming Using Ladder Diagram

Simulation Video

In the video below, we showed you the Mitsubishi counters program simulation in GX-Works2.

Mitsubishi PLC Counter in GX Works2 Simulation

IO Mapping

S.No.CommentInputOutputCounterMemory Word
1TRIGGER COUNTERM1000   
2TRIGGER RESETM1001   
3TRIGGER INCM1002   
4TRIGGER DECM1003   
5Y001 OUT 1  
6Y002 OUT 2  
7Y003 OUT 3  
8Y001 OUT 4  
9COUNTER UP  C0 
10DATA   D0
11SV EQUAL   D1
12SV GREATER THAN   D2
13SV LESS THAN   D3

Mitsubishi PLC Counter Tutorial

Counter Instruction Example in GX-Works2

RUNG 0

In this rung, when the TRIGGER COUNTER button (M1000) is pressed, the value of the COUNTER_UP (C0) instruction will increment by “+1”.

When the value of COUNTER_UP (C0) reaches “5”, the counter instruction will turn ON.

RUNG 4

In this rung, Output OUT_1 (Y000) will turn ON if the normally open contact of COUNTER_UP (C0) is in a HIGH state.

RUNG 6

In this rung, if the TRIGGER_RESET button (M1001) is pressed, the value of COUNTER_UP (C0) will be reset to zero (0).

RUNG 9

In this rung, when the TRIG_INC button (M1002) is pressed, the value in the word memory DATA (D0) will increment by “+1”.

Practical Counter Example in Mitsubishi PLC

RUNG 14

In this rung, when the TRIG_INC button (M1002) is pressed, the value in the word memory DATA (D0) will decrease by 1.

RUNG 19

When the value in word memory DATA (D0) is equal to SV_EQUAL (D1), Output OUT_2 (Y001) will turn ON.

RUNG 25

When the value in word memory DATA (D0) is greater than SV_GREATER_THAN (D2), Output OUT_3 (Y002) will turn ON.

Introduction to Counter Blocks in Mitsubishi PLC

RUNG 31

When the value in word memory DATA (D0) is less than SV_LESS_THAN (D3), Output OUT_4 (Y003) will turn ON.

Counter Program PDF

Read Next:

  • PLC Mail Box Automation Programming
  • Car Parking Logic in XG5000 LS Electric PLC
  • PLC Hoist Crane Programming Example
  • Modbus Communication Delta PLC with VFD
  • Delta HMI and VFD Control with Modbus
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

Design a PLC program for Operational Sequence of Packaging Process
ESG in Industrial PLC Automation Systems
PLC Cooking Timer Example for Kitchen Automation
Design Counters in PLC Programming With a Move Instruction
Statement List (STL) to Find Highest Value
PLC Programming for Baking with Auto and Manual Modes
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

How to Insert Block Calls in SCL Language?
Siemens TIA Portal: Motor Forward Reverse PLC Logic
Batch Mixing with PLC Ladder Logic Program
How to Operate a Group of Induction Motors using PLC Logic?
Basics of Industrial Communication Networks
PLC Program for Alarm Security System
PLC Analog Input Scaling
Applications of SCADA

Keep Learning

Tanks Draining Control in PLC using Functional Block Diagram

Tanks Draining Control in PLC using Functional Block Diagram

Siemens Industrial Laptop (Simatic Field PG)

Connect to the Siemens S7 PLC

Siemens Communication between PLCs using I-Device

Tutorial: Siemens Communication between PLCs using I-Device

OPC in PLC Systems

OPC in Old PLC Systems

Cars Garage Counter From the Same Door PLC Logic

Cars Garage Counter From the Same Door PLC Logic

Retro-Reflective Sensor

What is a Retro-Reflective Sensor? – Principle, Applications

Electrical Drives Animation

Electrical Drives – Modes, Types, Speed Control Applications

SFC Language in PLC Programming

SFC Language in PLC Programming

Learn More

Valve Pneumatic Actuator

What is a Pneumatic Actuator ?

PLC Programming Example for a Batch Process

PLC Programming Example for a Batch Process

Siemens TIA Portal program blocks

Tia Portal – Optimized and Standard Data Block Access

Steam Pressure Taps Primary Block Valves Glands and Bonnets Leaks

Instrument Steam Pressure Taps Primary Block Valves Glands and Bonnets Leaks

desuperheater

Desuperheater Design

Functional Block Diagram of XNOR Logic Gate

PLC Functional Block Diagram for Logic Gates

Fire Detectors Working Principle

Basics of Fire Detection and Alarm System

4-Wire, Three-Phase Delta Wiring System

4-Wire, Three-Phase Delta Wiring 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?