[?]: Sample Program of Unity Pro

другие контроллеры
leofarhan
Posts: 122
Joined: Fri May 01, 2009 8:50 am

[?]: Sample Program of Unity Pro

Post by leofarhan »

I need a sample program for unity pro in which I need to use a loop in the loop using increment function. I noticed that the loop is not working.

Need help.
WH_Mike
Posts: 59
Joined: Sun Feb 17, 2008 10:14 pm
Location: Russian Federation

Re: [?]: Sample Program of Unity Pro

Post by WH_Mike »

Hi!
Waths loop do you mean?
- in SFC section with STEP connection;
- in LD or FBD section with block connection;
- in ST section - cycle (FOR, REPEAT, WHILE).
What exactly?
leofarhan
Posts: 122
Joined: Fri May 01, 2009 8:50 am

Re: [?]: Sample Program of Unity Pro

Post by leofarhan »

Thanks for reply dear.

I need an example of loop & Nested loops in Ladder.
I tried myself but got few problems, sometimes the watchdog overflow, i.e. loop does not terminate. and some time operator does not work properly.

My Basic requirement is to find a value from an array of registers by comparing that value with all the elements of array one by one using loop in Unity Pro.

Looking forward for your reply.

Regards

LEO
WH_Mike
Posts: 59
Joined: Sun Feb 17, 2008 10:14 pm
Location: Russian Federation

Re: [?]: Sample Program of Unity Pro

Post by WH_Mike »

Hi!
Your task is much easyer to make in ST language, but it possible in Ladder too (with Jump label).
Test project you may find here
If you try somthing else, post here url to your sample. I'll look at them.

Good luck!
WH_Mike
Posts: 59
Joined: Sun Feb 17, 2008 10:14 pm
Location: Russian Federation

Re: [?]: Sample Program of Unity Pro

Post by WH_Mike »

In previous post was sample with loop blocks placed in different nets.
Here is project with two sample of LD loop placed in single net. I think that you mean this way.

Good luck!
mech962784
Posts: 218
Joined: Mon Nov 12, 2007 12:10 pm

Re: [?]: Sample Program of Unity Pro

Post by mech962784 »

Dear WH_Mike

Kindly repost the sample programs.
WH_Mike
Posts: 59
Joined: Sun Feb 17, 2008 10:14 pm
Location: Russian Federation

Re: [?]: Sample Program of Unity Pro

Post by WH_Mike »

Reposted sample programm is here.