Ladder logic for values sorting in ascending order

itsmerahul

Member
Join Date
Feb 2016
Location
Pune
Posts
4
Can anyone help Using Gx works 2 or Codesys Software
Want to arrange values in ascending order from ex 1...10
to d1...d10 register after executing start button.
note without using function block of sort
 
Can anyone help Using Gx works 2 or Codesys Software
Want to arrange values in ascending order from ex 1...10
to d1...d10 register after executing start button.
note without using function block of sort

That kind of task is just asking for using ST or IL instead LAD
 
Start with a piece of paper.

What sort algorithm do you wish to implement?
1. Draw a flow diagram
2. Write code to match your flow diagram
3. Test code
4. Code works? Yes= goto 6 Else continue
5. Code matches flow diagram? Yes= GOTO 1 | No= GOTO 2
6. Job done

Nick
 
thanks for your valuable reply
for ex
actually if i enter d1 ..3
d2..4
d3...1
d4..2
d5..5
d6...3
d7...8
d8...7
d9...6
d10...0...after executing start button all these value should arrange in ascending order from least value in d1 register...to max value in d10 register in ascending order
 
My guess is that this is a homework question. If someone just gave you the answer then you would not learn anything.

I refer you to my previous reply.

Post your efforts here and people will be able to help if you're struggleing.

Nick
 

Similar Topics

Hello, I have a new downtime reporting system at work that connects to the PLC and monitors downtime. The reporting system works by reading a...
Replies
10
Views
17,485
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
192
Good morning crew! Ok my logic works but I am missing something. When the start button is pushed it should like the red light for 4sec then shut...
Replies
13
Views
416
Working on project will update after it is completed.
Replies
2
Views
352
Can someone help me piece this problem together. I have a lot of it down I think but cannot seem to get it right. Probably an easy one for most on...
Replies
1
Views
301
Back
Top Bottom