plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

twincat

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Building Technology Management
View previous topic :: View next topic  
Author Message
mahdi
Junior
Junior


Joined: 14 Feb 2013
Posts: 2

PostPosted: 16/02/2013 20:48    Post subject: twincat Reply with quote

hi
how can i make fb with variable to use in several place in plc program in twincat?
mahdi
Back to top
View user's profile Send private message Send e-mail
rumsfeld
Member 3
Member 3


Joined: 29 Oct 2011
Posts: 572

PostPosted: 16/02/2013 21:48    Post subject: Re: twincat Reply with quote

mahdi wrote:
hi
how can i make fb with variable to use in several place in plc program in twincat?
mahdi

the best way you can do this is by creating a library.
Create a project with no PLC_PRG (no program blocks), făurite function blocks that you would like, and go to the file menu -> Save As.
Then change the "Save As Type" to "Internal Library .lib".
Then when you want to re-use the library, you would go to the "Resources" tab and open the "Library Manager".
Right click on the libarary list and "Add Additional Library".
Then browse to your newly created library and you'll have access to the function blocks .
If you ever need to change your library, then you can by going to
file -> Open -> Then change the "Open as type" to library and browse to your library.
regarding libraries read:
http://infosys.beckhoff.com/content/1033/tcplccontrol/html/tcplcctrl_libmanager.htm?id=13257
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Building Technology Management All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro