S7 Extract information from an ANY pointer in STL

Rogier89

Member
Join Date
Dec 2013
Location
Vianen
Posts
6
Hi all,
I'm trying to make an universal STL function block that can be used to manage a recipe data block for several projects. The idea was to use an ANY pointer to an active recipe and to extract all information of it's DB location, the recipe size and type from that ANY pointer. With that information I want to make a new pointer to copy paste recipes from an array to the active recipe.

Does anyone know how to do this in STL?

Functional design FB recipes.jpg
 
Here is one I made earlier. It was designed to allow 20 separate production lines controlled by one PLC to share a recipe system. The recipe is a UDT so if you wish to add or subract elements, edit the UDT then recompile the other blocks.

Nick
 
Here is one I made earlier. It was designed to allow 20 separate production lines controlled by one PLC to share a recipe system. The recipe is a UDT so if you wish to add or subract elements, edit the UDT then recompile the other blocks.

Nick

Thank you very much, you've saved my day! :)

I've noticed a few differences between my own try and the program you posted. I made a mistake by loading the pointer directly into AR1 instead of loading it into ACCU1 and then in AR1. Also it now says "V" on the right instead of "L", do you know what those letres stand for?

Recipes.jpg
 

Similar Topics

Hi everyone. Quick questions. On UnityPro, I want to open and quickly read tags from a .STA files witouth opening the program. I have 30 plc...
Replies
2
Views
130
Hi all, I am working with an IO link sensor (measuring current across motor)and need to read in and store the sensor values for 5 seconds, then...
Replies
13
Views
1,200
Customer has a circa 2004 SLC-500 PLC. Fieldbus is a 1747-SDN DeviceNet scanner. Customer has SLC-500 file (.rss) with no comments. Has no *.dnt...
Replies
7
Views
548
Hi guys, I need a GSD file for the following sinamics drive (S120). IO Device SINAMICS S120 CU320-2 PN V4.4 PN-V2.2 with DriveES/SIMOTION...
Replies
6
Views
1,387
I would like to extract data from a Bizerba is50 using WebSockets or Profinet. I currently cannot find any information on the subject, any help...
Replies
1
Views
717
Back
Top Bottom