Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Increment & Decrement Instructions in CX-Programmer (OMRON)
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
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 !
Siemens S7 300 CPU Status and LED Errors Explanation
Studio 5000: Define Program or Operator Control in Functional Block Diagram
SCADA System Vulnerabilities
How to Code a FIFO Queue in STL Language in Siemens PLC?
VFD Simulator Download – Free Yaskawa V1000 Software
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

Advanced Ladder Logic PLC Example

Automatic Sanitizer – Complex Ladder Logic PLC Examples

Function of Racks in PLC System

Function of Racks in PLC – Types of SIEMENS S7-400 PLC Racks

Real-time PLC Projects

Real-time PLC Projects – Industrial Automation

PLC Program using START & STOP Buttons

PLC Program using START and STOP Buttons

Operator Interface for SCADA System

Operator Interface for SCADA System

D flip flop in PLC

D Flip Flop PLC Ladder Logic

Face Mask Making Machine using PLC and HMI

Face Mask Making Machine using PLC and HMI

Instruction List in PLC Programming

What is an Instruction List? – PLC Programming

More Articles

Two Wire RTD Lead Wire Resistance Error

Temperature Error of 2-Wire, 3-Wire & 4-Wire RTD

temperature compensation circuit for PMMC

PMMC Temperature Compensation

solenoid valves trip

Identify Solenoid Valves Energized or de-energized?

Siemens PLC Simulator and Plant Simulation Software

How to use Simulator in Siemens PLC?

PlantPAx DCS

Introduction to PlantPAx Distributed Control System

Sounding Level Transmitter Working Animation

Override Control Functions

What is Override Control? – Need & Applications

Sequential Operation of Output Bits using Two Push buttons

Sequential Operation of Output Bits using Two Push buttons

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?