How to count Variables without getting Loop-effect in S7 ?

Diijay

Member
Join Date
Jun 2007
Location
Kotka
Posts
15
I have a problem where im first counting the "Amount of paper rejected" with the internal MUL_R -Function. I get the result and store it in a DB [DB224.DBD24]. Now the problem is that how can i also use the same result the next time the MUL_R -function is executed and add the results together (possibly multiple times).

If i use ADD_R -function with IN1=[DB224.DBD24], IN2=[DB224.DBD28], OUT=[DB224.DBD24] => When the output value changes and because it´s been used also at input-side as IN1 => It executes the calculation again & again, and so on..

What i am basicly doing is that i need to count the amount of paper being rejected in a paper impregnating machine during the joint sequences, during web break, and also while changing the Stations being used.

Variables :
Speed of the line (actual value)
Width of the line
Time of paper being rejected
 
Now i do :)

I made a sequence out of the situation when the counting of rejected paper is done and used it to trigger the positive edge and now it works perfectly.

Thanks for the tip !
 

Similar Topics

What is the raw count of Allen Bradley Flex Analog Output Module 5094-OF8 raw count?
Replies
1
Views
121
I am working on a Markem X40 printer which uses NGPCL Commands and needs to send commands using a .net program. I need help with the following...
Replies
0
Views
106
Hi, I'm programming in RSLogix 500, and I'm wondering how I would program a Jog command that does not increase the encoder count. Basically we'd...
Replies
3
Views
298
Hi all, I am currently working on a software in Automation Studio that is supposed to detect when effort is inputted by a user. This is done via...
Replies
0
Views
584
Hi i have project on micrologix 1400 to display cycle time count on HMI. I am beginner. in project i have six input once all input get high it...
Replies
3
Views
806
Back
Top Bottom