| View previous topic :: View next topic |
| Author |
Message |
Marian93 Junior

Joined: 27 Nov 2016 Posts: 2 Location: Suceava
|
Posted: 13/11/2017 21:17 Post subject: Decrement double word counter |
|
|
Hi everyone,
I need a opinion about how to use a counter to decrement a number one by one. The problem that I have, is if I want to decrement a big number, let's say a million and use the inter math function DEC_DW the counter like input is not working and I don't know what to use instead.
To make the decrementation I use a sensor like counter and the result would be displayed in one TD200.
I attached a photo with a piece of my program.
Thanks in advance.
[url=http://www.girlshare.ro/3489968406.1]Exemple.jpg[/url] |
|
| Back to top |
|
 |
dracula Member junior


Joined: 16 Jun 2015 Posts: 58 Location: Transilvania
|
Posted: 13/11/2017 21:41 Post subject: Re: Decrement double word counter |
|
|
| Marian93 wrote: | Hi everyone,
I need a opinion about how to use a counter to decrement a number one by one. The problem that I have, is if I want to decrement a big number, let's say a million and use the inter math function DEC_DW the counter like input is not working and I don't know what to use instead.
To make the decrementation I use a sensor like counter and the result would be displayed in one TD200.
I attached a photo with a piece of my program.
Thanks in advance.
[url=http://www.girlshare.ro/3489968406.1]Exemple.jpg[/url] |
Marian93,
presupun ca esti din Romania dupa nume si putem discuta in Lb. Romana.
Ce software folosesti exact ca sa nu vorbim fara sens.. |
|
| Back to top |
|
 |
kasidov Junior 2

Joined: 18 Dec 2015 Posts: 27
|
Posted: 15/11/2017 21:12 Post subject: Re: Decrement double word counter |
|
|
| Marian93 wrote: | Hi everyone,
I need a opinion about how to use a counter to decrement a number one by one. The problem that I have, is if I want to decrement a big number, let's say a million and use the inter math function DEC_DW the counter like input is not working and I don't know what to use instead.
To make the decrementation I use a sensor like counter and the result would be displayed in one TD200.
I attached a photo with a piece of my program.
Thanks in advance.
[url=http://www.girlshare.ro/3489968406.1]Exemple.jpg[/url] |
The Increment Double Word and Decrement Dublu Word instructions add or subtract 1 to or from the input double word (IN) and place the result in OUT.
[url=http://www.99poze.ro/p/53c005ce38a5bef21235051f9d83012e.jpg] [/url]
Cheers  |
|
| Back to top |
|
 |
|