Related to Omron PLC CP1H series

ameyapte

Member
Join Date
Jun 2010
Location
pune
Posts
4
Dear friends i m using CP1H series OMRON plc and Cx-programmer software for same plc. I want to use Decrement instruction for the same. I tried it but i m not getting the correct result.
Actually i m entering the decimal value from HMI in to one register.That register i want to decreament that register value by 1 on 2 sec pulse. So when i wrote 1300 decimal into one register from HMI , then upto 1280 it will decreament the register value by 1 correctly. But after that it will directly decreament to 1187. And i want the value in rgister should be in decimal only.
May be this problem is because of BCD decrment instruction.
So please give me the solution regarding problem.

Thanks & Regards:.
AMEY APTE
PUNE
 
Pay attention you need to be same format on the HMI and the PLC.
BCD or Decimal.
Also make sure you put @INC and not Just INC.
 
regarding OMRON PLC decrment register value

dear firends

I m using @--B (dereament) instruction for decreament the value for OMRON CP1H-40xDR-A series plc.

I m using NP5-00B series HMI. I m entering value 1300 from HMI into D711 register in decimal format. So when i saw into program i can see it into decimal value at D711. But when i m doing execution of instruction it will decreament it upto 1280 correctly by 1. But after that value it will show me the result 1177 . So can you help me regarding this.As i want that register value only in decimal.

Also i same tried with substraction instruction but the result is same..

PLZ help me/....
 
Hmmm

This is too much like the post by CLXenggr, except you have not mentioned the PLC model.

If you (or CLXenggr) posts a copy of your code, then we can have a look to see what is going on. o_O

I have to ask, why are you using BCD? I have not used the NP5, does this only support BCD??
 
Dear friend

NP5 series HMI also supports all BCD,DECIMAL,HEX value support. But i think main problem is with PLC instruction, as which PLC model m using is having only BCD and BINARY supprots instruction...
I m entering the value from HMI is DECIMAL ..
But the instruction in PLC is "@--B" (decreament register value by 1). THIS instruction is BCD decreament
. But i want decimal decrement.

So how can i solve this...
 
You are right Mr LostControl,

My friend Amey is on the project and I was away on a site so two posts. Well, the problem is solved now . It was problem of representation in hex, octal and decimal.
Thanks.
clxenggr
 

Similar Topics

Hello all. I recently had to re install my AutoCAD Electrical 2024. I am trying to find the Rockwell catalog to install in it but cant find...
Replies
0
Views
112
We got one installation that have most of the Win10 PC in a rack above the control room. In the past they always used various flavor of KVM...
Replies
7
Views
3,011
I need to know how to take a schematic like this and solve it for let’s say a run time of 5 seconds By solve I mean determine which rungs are...
Replies
33
Views
9,275
What's your favourite source of PLC/SCADA-related news? Maybe some of you still read printed magazines?
Replies
4
Views
2,108
... yesterday I removed the plastic liner on the tail-gate of my Kia Soul to get at the broken reversing camera... It has 12 of those plastic...
Replies
17
Views
7,287
Back
Top Bottom