Technical Forum

STEP 7 / STEP 7 Lite

fifo buffer and block move

Thread Starter: playerslight   Started: 4/27/2012 7:44 PM   Replies: 10

« Previous thread Next thread »
12» Page 1 of 2 (11 items)
  4/27/2012, 7:44 PM
Joined 4/30/2008
Last visit: 5/19/2013
Posts: 628
Rating:
Rated: Outstanding [3.94 out of 5 / rated 36 time(s)]. (36) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I created a udt of the data that i need to move in a fifo buffer 25 words time 20 occurences . I want to use a loop in stl to move the data but i can figure out how to indirect address the move parameters or if it is even possible .this is going in a data collector (s7-400) and willl recieve data from approx 150 plc'sand the most effiennt way is indirect addressing and run loops .s o any ideas will help

Thank you in advanca

Regards


Steve

Some people are like slinkies
they are really good for nothing
but they still bring a smile to your
face when you push them down the stairs!!!
Top
  4/27/2012, 9:22 PM
Joined 3/15/2008
Last visit: 5/18/2013
Posts: 4434
Rating:
Rated: Outstanding [3.88 out of 5 / rated 409 time(s)]. (409) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Build a pointer to supply SFC20 is very easy,
do you need an example?

Industrieautomation: Softwareerstellung und Inbetriebnahme weltweit.
http://www.ibn-service.com
Top
  4/27/2012, 9:37 PM
Joined 4/30/2008
Last visit: 5/19/2013
Posts: 628
Rating:
Rated: Outstanding [3.94 out of 5 / rated 36 time(s)]. (36) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I can do the pointer as i had it working last night for 1  block move What i was trying to do is loop through the 20 calls . all data is in 1 data block instead of calling the blockmove 20 time i wanted to loop it . so what i need to do is use a temp variable for the datablock and a temp variable for the pointer so  i can make  function called by a loop for the 150 different data blocks and 20 udts in each function .i  did have working using load and transfer but with 20 elements  for 5 element but for 20 the function is just to  big and had to follow and prone to mistakes



=== Edited by playerslight @ 4/28/2012 12:32 AM [GMT ] ===


=== Edited by playerslight @ 4/27/2012 9:40 PM [GMT ] ===



Regards


Steve

Some people are like slinkies
they are really good for nothing
but they still bring a smile to your
face when you push them down the stairs!!!
Top
  4/27/2012, 9:59 PM
Joined 3/15/2008
Last visit: 5/18/2013
Posts: 4434
Rating:
Rated: Outstanding [3.88 out of 5 / rated 409 time(s)]. (409) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
playerslight wrote:
... so what i need to do is use a temp variable for the datablock and a temp variable for the pointer ...



Have a look at the attached example.



=== Edited by IBN-Service @ 4/28/2012 8:46 AM [GMT ] ===
remove attachement


Industrieautomation: Softwareerstellung und Inbetriebnahme weltweit.
http://www.ibn-service.com
Top
Thank you for this post from:
  4/28/2012, 12:19 AM
Joined 4/30/2008
Last visit: 5/19/2013
Posts: 628
Rating:
Rated: Outstanding [3.94 out of 5 / rated 36 time(s)]. (36) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Thank you very much that is perfect I will try it tonight and let you know



=== Edited by playerslight @ 4/28/2012 12:20 AM [GMT ] ===



Regards


Steve

Some people are like slinkies
they are really good for nothing
but they still bring a smile to your
face when you push them down the stairs!!!
Top
  4/28/2012, 8:33 AM
Joined 4/30/2008
Last visit: 5/19/2013
Posts: 628
Rating:
Rated: Outstanding [3.94 out of 5 / rated 36 time(s)]. (36) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Works great and again thank youRnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_


Regards


Steve

Some people are like slinkies
they are really good for nothing
but they still bring a smile to your
face when you push them down the stairs!!!
Top
Thank you for this post from:
  4/28/2012, 8:37 AM
Joined 3/15/2008
Last visit: 5/18/2013
Posts: 4434
Rating:
Rated: Outstanding [3.88 out of 5 / rated 409 time(s)]. (409) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
playerslight wrote:

Works great and again thank youRnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_ Rnf:lblSmileyTooltip_



You are welcome! Rnf:lblSmileyTooltip_

Industrieautomation: Softwareerstellung und Inbetriebnahme weltweit.
http://www.ibn-service.com
Top
  8/23/2012, 9:23 PM
Joined 10/23/2009
Last visit: 3/25/2013
Posts: 67
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi IBN-Service, Could you please attached the example again. Thanks in advance. Regards!
Top
  9/26/2012, 1:42 PM
Joined 4/2/2012
Last visit: 10/11/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
I am happy to see good discussion between you. I also would like to see the Attached Example. Could you please attach the file of an Example ?
Top
  9/26/2012, 6:43 PM
Joined 3/15/2008
Last visit: 5/18/2013
Posts: 4434
Rating:
Rated: Outstanding [3.88 out of 5 / rated 409 time(s)]. (409) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
Please find attached the example again.

It is in german language, but perhaps somebody do some translation to english?

regards,
Jürgen

Attachment: E:\Pointer_.zip  (83 Downloads)

Industrieautomation: Softwareerstellung und Inbetriebnahme weltweit.
http://www.ibn-service.com

Top
12» Page 1 of 2 (11 items)
Actions