 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
mahdi Junior

Joined: 14 Feb 2013 Posts: 2
|
Posted: 16/02/2013 20:48 Post subject: twincat |
|
|
hi
how can i make fb with variable to use in several place in plc program in twincat?
mahdi |
|
| Back to top |
|
 |
rumsfeld Member 3

Joined: 29 Oct 2011 Posts: 572
|
Posted: 16/02/2013 21:48 Post subject: Re: twincat |
|
|
| 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 |
|
 |
|
|
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
|