S7 STL -- programming FBs

mbay

Member
Join Date
Dec 2011
Location
Houston
Posts
3
I'm attempting to write a function block that will use a pointer as an input that points to the DB where the results will be stored. I find I'm missing some basic info about handling pointers. I also don't see how to reference the instance data block. Can anyone point me to the correct Siemens manual that contains this info? So far I've found two manuals with the instruction list and timing information, but nothing else.
 
Use search in here.

Did that before I posted. Read a lot of good stuff in the bubble sort thread, but never did find the answers I'm looking for.

I'd also like to find the Siemens manual that explains this stuff.

Can you be a little more helpful? <smile>
 
Thanks! I was 'or'ing in a 0x84000000 to the DB address. I see you're just truncating it with a 0x00FFFFF. I also missed the L DINO instruction.

Can you point me to the Siemen's documentation about this stuff? Apparently I have also missed finding that.
 
mbay, I have felt your pain.

You shouldn't need to buy another book. The Siemens documentation should be complete. The fact that questions similar to yours get asked over and over and over again should tell you that you aren't the only one that has had this problem.

I would pass just the DB number to a function and open the DB using the DI register within the function. Just to be safe I would save away the DI registers before changing it and restore the DI register back to its original value before exiting the function. The last time I tried this all the offsets from AR2 had to be hard coded. That was not good.
 

Similar Topics

I'm new in STL programming, today I was checking some example codes and found this: L 1 L QB 4 SLW T QB 4 SET SAVE...
Replies
5
Views
2,555
Dear experts, I m new to the STL programming and I have a problem that I can not solve. I'm working on a program that controls the...
Replies
2
Views
2,695
Hello everyone! I've just stared with programming on STL and I have problem which I can't understand. I'm writing programs on Step 7 and I'm...
Replies
2
Views
2,172
Hello everyone! I've just stared with programming on STL and I have problem which I can't understand. I have this piece of code:
Replies
1
Views
1,935
I have a programming problem. I was originally asked to read and display a flowmeter with a 4-20mA o/p and display a continuous flow reading. The...
Replies
4
Views
2,342
Back
Top Bottom