plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Decrement double word counter

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> PLC Tutorials
View previous topic :: View next topic  
Author Message
Marian93
Junior
Junior


Joined: 27 Nov 2016
Posts: 2
Location: Suceava

PostPosted: 13/11/2017 21:17    Post subject: Decrement double word counter Reply with quote

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
View user's profile Send private message Send e-mail
dracula
Member junior
Member junior
dracula

Joined: 16 Jun 2015
Posts: 58
Location: Transilvania

PostPosted: 13/11/2017 21:41    Post subject: Re: Decrement double word counter Reply with quote

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]

Decrement double word counter Decrement double word counter
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
View user's profile Send private message
kasidov
Junior 2
Junior 2


Joined: 18 Dec 2015
Posts: 27

PostPosted: 15/11/2017 21:12    Post subject: Re: Decrement double word counter Reply with quote

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]Decrement double word counter Decrement double word counter[/url]

Cheers ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> PLC Tutorials All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro