peculiar logic

rejoe.koshy

Member
Join Date
Dec 2011
Location
kolkata
Posts
195
hi guys,

Can you help me to understand the logic rung 10 (pls find the attachment).It has rather contradicting instructions , but it works when downloaded in to the controller!

plcs.jpg
 
What is contradictory?
It appears to be a basic ramp generator. If the ramped output is less then a setpoint, it adds a small increment to the ramped output. Then it checks to see if by adding the increment, the output exceeds the setpoint. If it does, it just moves the setpoint to the output.
 
In the rung 10, it checks whether A is greater than B & proceeds to check whether B is greater than A.
Nw if A is greater than B , obviously B cant be greater than A .So either of them should work ,not both!
I want to know in which order the controller scans the logic?
 
rdcast has the correct reply. Please try extra to understand it.
That entire rung is scanned on one scan and the order of rung / branch processing is like reading a book.
 
No Contradiction

No contradiction, the rung is written in a correct manner.

The whole idea is to limit the reference value if it exceeds certain boundaries, read it again you might figure out the idea.
 
In the rung 10, it checks whether A is greater than B & proceeds to check whether B is greater than A.
Nw if A is greater than B , obviously B cant be greater than A .So either of them should work ,not both!
I want to know in which order the controller scans the logic?

You aren't reading that correctly.

Okay, yes, it checks if A is greater than B.
Then it ADDS a value to B.
Then it checks if B is greater than A (which, after the ADD, it can be). If it is, it limits the value of B.

Scan for LAD is Left to Right, then Top to bottom. In your example, the scan would be GRT, ADD, GRT, MOV
 

Similar Topics

hi guys, I am facing a peculiar problem with a flex input card that does not communicate with plc.The inputs go high in the module but is not...
Replies
7
Views
2,477
I had a misconception about how the ACC integer is written. I've been working on a demo program with a couple of counters counting up and down...
Replies
4
Views
1,953
The customer wants to use an existing function block from previous projects to generate variable length pulses. The block looks pretty simple...
Replies
66
Views
13,953
Hello, I´m having a problem trying to program in Ladder. An output should be trigged by two possible contacts. Take a look on the printscreen...
Replies
5
Views
131
I got my PanelView Plus 7 working with a Micrologix 1500. How would I connect my laptop to the PanelView to view the ladder logic while operating...
Replies
6
Views
173
Back
Top Bottom