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: Increment & Decrement Instructions in CX-Programmer (OMRON)
Share
Notification Show More
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 > Increment & Decrement Instructions in CX-Programmer (OMRON)

Increment & Decrement Instructions in CX-Programmer (OMRON)

Learn the concept of Increment & Decrement Instructions and examples in Omron PLC using CX-Programmer software.

Last updated: May 20, 2024 11:30 am
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

Learn the concept of Increment & Decrement Instructions and examples in Omron PLC using CX-Programmer software.

Contents
Increment & Decrement InstructionsTypes of OMRON InstructionsIncrement & Decrement Binary Instruction TypeAddressing Memory Increment & Decrement in CX-ProgrammerCX-Programmer ProgramSimulation Results

Increment & Decrement Instructions

Increment and Decrement Instructions are widely used in industrial automation PLC programs because of their ease of data processing.

Increment and Decrement Instructions have the same function as the Counter function, namely as “Counters”. Increment Instructions function to increase the amount of data while Decrement Instructions function to decrease the amount of data stored in Word Memory allocation.

Unlike the Counter Instruction, the Increment and Decrement Instructions do not require SV (Set Value) parameters because the purpose of the Increment and Decrement Instructions is to hold data, raise data, and lower data.

Generally, these two instructions are used in conjunction with “Comparison Data” Instructions such as (=, <,>, >=, <=, <>).

Types of OMRON Instructions

Increment and Decrement instructions on CX-Programmer have several types, as follows:

  1. ++(590) Binary Increment
  2. ++L(591) Double Increment Binary
  3. –(592) Decrement Binary
  4. –L(593) Double Decrement Binary
  5. ++B(594) Increment BCD
  6. ++B(595) Double Increment BCD
  7. –B(596) Decrement BCD
  8. –BL(597) Double Decrement BCD

In this article, we will only discuss the increment & Decrement instructions of Binary types.

Binary type increment & Decrement instructions use Binary numbers in increasing and decreasing the data, but the data presented/displayed can be in other units, Hexadecimal for example.

Increment & Decrement Binary Instruction Type

There are 2 types of Binary increments, namely “++(590)” and “@++(590)”. Both types have the same function to increase the amount of data in increments per +1 BIN. The difference are explained in the following 2 figures.

Increment Instruction in CX-Programmer

In the picture above is an Increment Instruction type “++(590)”, when the Input contact (0.00) is activated for a long time the value in the data allocation “D100” will increase continuously, with changes in the addition of data values per program cycle.

PLC Increment Instruction

The second picture is an Increment Instruction of type “@++(590)“, the difference is that the increase in value in memory allocation “D100” only occurs once when the contact changes (0.00) from the “OFF” to “ON” condition, even if the contact is activated for a long time, the value will not increase, because this Instruction uses the concept of Differentiate Up in adding its value.

The Decrement Binary instruction also has 2 types, namely “–(592)” and “@–(592)”. Both types have the same function to reduce the amount of data with a decrease in data by -1 BIN. The differences between the two types are explained in the following next 2 figures.

Decrement Instruction in CX-Programmer

In the picture above, it is the Decrement Instruction type “–(592)”, when the Input contact (0.00) is activated for a long time the value on the data allocation “D100” will decrease continuously, with changes in data values decreasing per program cycle.

PLC Decrement Instruction

The second picture is an Increment Instruction of type “@–(592)”, a decrease in the value of data on the memory allocation “D100” occurs only once when the contact changes (0.00) from the “OFF” to “ON” condition, even if the contact is activated for a long time the value will not decrease because this Instruction uses the concept of Differentiate Up in decreasing its value.

Addressing Memory Increment & Decrement in CX-Programmer

The table below contains the memory allocation areas that can be used by Increment and Decrement instructions.

AreaWd
CIO AreaCIO 0 to CIO 6143
Work AreaW0 to W511
Holding Bit AreaH0 to H511
Auxiliary Bit AreaA448 to A959
Timer AreaT0000 to T4095
Counter AreaC0000 to C4095
DM AreaD0 to D32767
Indirect DM addresses in binary@ D0 to @ D32767
Indirect DM addresses in BCD*D0 to *D32767
Constants—
Data RegistersDR0 to DR15
Index Registers—
Indirect addressing using Index Registers,IR0 to ,IR15 –2048 to +2047, IR0 to –2048 to +2047, IR15 DR0 to DR15, IR0 to IR15 ,IR0+(++) to ,IR15+(++) ,–(– –)IR0 to, –(– –)IR15

CX-Programmer Program

In this program, 2 experiments were carried out using 2 types of Binary Increment & Decrement Instructions to find out the difference between them.

Increment & Decrement Instructions in CX-Programmer (OMRON)

In the image, the program consisting of 2 Rungs, Rung 0 contains 2 types of increment Instructions “++(590)” with memory allocation (D0) and another instruction “@++(590)” with memory allocation (D1).

Rung 1 using Decrement “–(592)” instruction using memory allocation (D0) and another instruction “@–(592)” using memory allocation (D1).

Simulation Results

When simulated, the difference can be seen, when the UP contact (0.00) is activated and the value of (D0) rises very high while the value of (D1) only increases by 1 data.

Binary Increment and Decrement Instructions

This is because the Cyclic program process has occurred many times so that the value at (D0) is very high and the value at (D1) only increases by 1 data because the increase in data value only occurs when the UP contact condition changes (0.00) from “OFF” to “ON”.

Omron PLC increment and decrement

When the Down contact (0.01) is activated the value of (D0) will drop quite a lot, while the value of (D1) will drop by 1 data only.

If you liked this article, please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • What are High-Speed Inputs in PLC?
  • PLC Exercise on Door Lock with Delay
  • Difference between Timer and Counter
  • How to use Real-Time Clock in Omron PLC?
  • Pumping and Draining PLC Program 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

Oil and Water Separation Process using PLC Programming
Difference between Power Cables and Signal Cables
Difference Between PLCSIM and PLCSIM Advanced? – Siemens PLC
How to Communicate with Excel from RsLinx?
Batch Simulator PLC Example Program using LogixPro Simulator
How Modbus is used in Industrial Networks?
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

PLC Electric Motor Interlocks
PLC Automatic Control of Two Outputs with one Input
How Engineers Effectively do Problem-solve and Troubleshoot?
What are AI, AO, DI, and DO? – Definition, Examples, Purpose
Latching and Unlatching in PLC Programming Example
FactoryTalk View Studio – Import and Export Tutorial
Getting to Know the LED Indications on GE Make PLC
PLC Analog I/O and Network I/O

Keep Learning

Exhaust Fan Control

Exhaust Fan Control: Example of PLC Timer Programming

Delta HMI and VFD Control with Modbus

Delta HMI and VFD Control with Modbus

PLC Problems Troubleshooting

PLC Problems Troubleshooting

SCADA Standards

SCADA for Substation Automation

PLC Hoist Crane Programming

PLC Hoist Crane Programming: Example using Schneider

Features of Scada Which are Must in an IoT System

Features of Scada Which are Must in an IoT System

Job Skills Required for Industrial Electrical Maintenance

Job Skills Required for Industrial Electrical Maintenance

Structured Text Automatic Gate Logic

Structured Text PLC Programming for Automatic Gate Control

Learn More

What is VLAN?

Difference Between Subnet and VLAN

Resistor-Color-Code-Chart

Resistor Color Code Animation

Dual-junction thermocouple circuit

Find Thermocouple Ouput Voltage

Power Electronics Objective Questions

Thyristor Protection Objective Questions and Answers

Strip-Chart-Recorder-Working-Principle

Strip Chart Recorder Working Principle

Switched Mode Power Supply (SMPS)

How does SMPS Works? – Switched Mode Power Supply

Learn about PLC, DCS, RTU, SCADA, and PAC

Learn about PLC, DCS, RTU, SCADA, and PAC

Industrial Instruments Questions and Answers

Industrial Instruments Questions and Answers

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?