How to make looping process in actual time with step7 programming

zeta

Member
Join Date
Aug 2007
Location
bandung
Posts
6
Hai friends...
I need some help from you.
I work with Siemens S7200 and step7 Ver4.0 programming.
There are 2 problem:

1. I want make a looping process in actual time....using FOR - NEXT.
For example I want 0.1 second for each looping process, so for 100 process need 10 second.
So I will get a data every 0.1 second during looping proccess.

in STL :
LD SM0.0
FOR VW125,+1,+100
bla...bla...bla..
NEXT

2. I want make a looping process continues (no limit).
I don't know how in s7200 the looping process limited on 2000.... So how to make no limited looping???

Thak's before
 
Detail

Do you know, what I mean???
1. Each loop must execute in 0.1 second.
For Example :I have y(t) as a output from a function, where t is time. with loops I need the value of y(0.1)? y(0.2)? y(0.3)? and so on...
(I try with FOR-NEXT)

2. I need loops that function (no 1) become unlimited. So I get y(0.1),y(0.2),y(0.3),.......,y(I stop the program).How the program???

Please Give me the solution in LAD or STL STEP7-Microwin.
Thanks before
 
Looping

There is no looping statement. PLCs are for real-time operation and looping might take forever.

You need to write code that calculates the new value, then set it up to execute on a 0.1 second interrupt.
 

Similar Topics

Hi, I am new to ladder logic. I have completed a code in the Xinje PLC XC3-32RT-E for one of the machines I am developing. Currently the program...
Replies
30
Views
976
Hello, I am programming a ladder routine that finds a part on a conveyor that has a given part number. I am having no problem finding the part and...
Replies
1
Views
1,906
I've got several ListBoxes that I want to perform the same function on. From my searches, you can accomplish this in VBA by using a FOR loop, but...
Replies
4
Views
2,881
Hello everyone, I am new to ladder logic and am currently working on a small project where I might need some help. So I am modifying the sequence...
Replies
9
Views
2,410
Hello, This is my very first post here - I'm working on a small brewery project with multiple solenoid valves. The instructions follow a set of...
Replies
2
Views
1,747
Back
Top Bottom