Seimens Scale with Parameters ?

About the errors:
In the source code the block is defined by a symbolic name.
Either insert an empty FC block in the blocks folder and give it the symbolic name, and then compile the STL source.
Or replace the symbolic name in the STL source with an absolute FC number, and then compile the STL source.
 
Thanks Jesper, that works a treat

A quick run through step by step


1. Open your Project or create a new S7 300 project

2. Right Click Blocks (In Left Hand Pane) > Insert New Object > Function

3. Give it a name (whatever you like)

4. Give it the Symbolic Name as per Jespers Function Code

SCALE_ANALOG_SIMPLE

5. Make sure its created in STL

6. Click Ok

7. Right Click on Sources (In Left Hand Pane) > Insert New Object > STL Source

8. Double Click on STL Source Icon

9. Paste in Jespers code starting at FUNCTION, ending at END FUNCTION

10. Press Ctrl B (or click the compile icon) to compile the code

11. Close the STL window and save

12. Go to your program OB1 say and under FC Blocks will be Jespers SCP instruction that can now be used like an SCP command in your program



 

Similar Topics

opening up a copy of my HMI program I can go to where the passwords are created but they are all asterisks. How can I view what is there? I see...
Replies
4
Views
1,104
I have installed ver 16 of tia portal and I am running in the 21 days grace period. My question is this, is it fully functional during that 21...
Replies
8
Views
3,087
Hi; In our corrugator plant, there are one Corrugator and five Flexo graphic printing machines. One of them is a BOBST brand French made...
Replies
1
Views
1,923
We have these in our shuttles. The IP Address is stored on the SD card for the unit. We had a card go bad and I am trying to copy another card...
Replies
3
Views
1,168
Good morning, experts! I have a Siemens PLC and IO that I need to cross to Rockwell, and I have zero experience with the Siemens line of products...
Replies
2
Views
1,557
Back
Top Bottom