i have studied the only source of information i have and that is the help file of micro win v4.0.1.I know a lot about mcu programming,however.
We dont have any books in my school,nor the manual.That is the reason why i ask for some links.
Anyway today i was able to do something.
I made a subroutine.When i close the I0.0 switch it enters the sub.
sub:
net 1:
( in ladder):
move the address of Vb0 to (pointer) Ac1 (MOV_DW,&VB)->AC1)
net 2:
add to the ac1 the number 2,so as to go to the next variable. Then de-reference the pointer and i use it as a value to a timer.(T32,PT= *AC1)
.
So by using these variables and setting tha data block like this:
vb0 0000
vb2 2000
vb4 1000
...
I think that my subroutine is able to pass different value(tha ones in the datablock) to the timer.
am i wrong somewhere?
I also used the same method to have different ouputs for every time.