Siemens Step 7 - Get Data

YoungWint

Member
Join Date
Dec 2012
Location
East Midlands
Posts
77
Hello World

Have a bit of an unusual problem.

On a project currently being developed I have been issued with blocks that MUST be used, however some of the glue that holds it all together has not been issued, and also refused to be issued.

One of the requirements is to get acyclic data from a Simocode, this is embedded in the block, reading four records and writing one.

The vital bit that is missing is the mechanism for getting this data.

I think to do this I must set up a routine to set a read bit for a drive with data block, start address to use and possibly the length. At completion this will increment a counter and repeat for the next drive for reading. Writing will be via a bit from the HMI so a little more straight forward.

What is evading me at the moment is what instruction to use and also how to ensure the right data record is stored in the right area of the data block.

Any thoughts or advice would be appreciated.
 
Not really able to share blocks as have a limited access to them.

In essence the block takes the cyclic data and manages the start stopping etc.

Within the block is an acyclic read/ write function which contains four instances of SFB52 (one per report) and one of SFB53.

As these in the 'Simocode' function block I need:
1. Set bit externally for Acyclic Read/ Write
2. Get data from Simocode and populate selected Data Block
3. Store data in correct area.

As the actual function for acyclic data is embedded in the block I need to set the read/ write parameters outside the block.

I am just uncertain about how to get the data from the Simocode into the data block, via a function block. What command would be best utilised to interogate the function block and extract the information.
 

Similar Topics

Just a quick question I can't find an answer on yet. I have created my own recipe structure using a Global DB and when I came in this morning...
Replies
2
Views
2,013
Hello, I am trying to find an easy way to create data blocks in Step 7 with ~100K tags other than manually defining each tag in the LAD/STL/FDB...
Replies
8
Views
14,130
Hello All, Is there a way in Step 7 5.5 SIMATIC Manager to export a data block so that it can be imported into another project with all...
Replies
11
Views
3,706
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
235
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
540
Back
Top Bottom