TIA Portal function block creation

Jonnie_R

Member
Join Date
Feb 2012
Location
Brecon
Posts
216
I'm still fairly new to TIA Portal, but am switching a site over from some old Beckhoff hardware to Siemens S7-1200.


The Beckhoff kit has a function block, which I wrote about 11 years ago, so I have access to all the code etc., and I intend to recreate this in TIA. Is there an easy way to import the function block inputs/outputs/statics etc. via a spreadsheet as you can with standard tags in TIA?
 
If you format the excel sheet into the same format as the interface environment I think it's just a case of copy and pasting from the excel document.
 
You can actually paste the code including the interface section as text.
You have to change the setting:
Options .. Settings .. PLC programming .. SCL .. Interface.
Change Default setting for new block from Table view to Textual View
This feature was added in one of the later versions of TIA; dont remember exactly which version.
 
You can actually paste the code including the interface section as text.
You have to change the setting:
Options .. Settings .. PLC programming .. SCL .. Interface.
Change Default setting for new block from Table view to Textual View
This feature was added in one of the later versions of TIA; dont remember exactly which version.


Thanks for the heads up. I think I'll keep it as table view though, I prefer that over a textual view like Codesys and Beckhoff.
 

Similar Topics

Im trying to create a level indicator for water Tank i have used the ADD function while the pump is on and level increasing everything works...
Replies
33
Views
986
Hallo, I have Tia Portal V16 and I'm upgrading an older machine. That machine has a component running on rs232. The machine has still the old...
Replies
7
Views
941
I created this FC and it compiles, but when I use it in my MAIN OB1, it appears to have two outputs. See pictures. What am I doing wrong here...
Replies
9
Views
1,467
Hi Yes, I'm stuck again. Trying to define a Function Block. What I've put in there so far has been a straight copy/paste from the code (and that...
Replies
22
Views
2,828
I have a small system controlled by a Siemens S7-1200 PLC. I created a totalizer function block (TIA v17), where I'm counting total revolutions...
Replies
16
Views
3,107
Back
Top Bottom