I am new to VC and trying to learn python for VC, I went through all the material available on website and academy page. I got good idea of how scripting is used to model.
But I am not getting, how to find which library to import as per specific requirement.
Also, there are no examples for many methods, so not getting exactly how to use such methods in scripting while developing my logic.
Also are there any such more ready example available for python scripting so to learn it from understanding those VCMX file.
Need help to get started, to understand the approach from where to find what.
when you say “the material available on website”, do you mean the Help file? if not, I suggest to have a look at it, there are a lot of specific examples.
A good way of starting is also to have a look at the scripts of components in the eCat, with similar logic to what you want, or even AddOns from the forum.
Yes “the material available on website” is the help section “Python API”. I went through it already and not got few things like i am trying to build my first logic with mobile robot when triggered by feeder’s transportout should go to pick the part and should drop it to sink.
Not able to find how to write script for this, i am not getting which method to use to make mobile robot to travel to these to points,
do i need to use transport controller? If yes how to get its behaviour in mobile robot’s script, (not getting exact names to type for this)?
How to make it trigger only when feeder has part in its transportout statement ready.
These are initial questions for which i am trying to get solution. Your help appreciated in this please.
Just to make sure: you don’t need a Python Script to do that, you can you could just connect the mobile robots to a Transport Controller, create your Flow by connecting the Feeder to Sink with the Modeile robot transport controller as the implementer, and the Mobile robot will automatically go to the Feeder if there is a product in it and bring it to the Sink. (video 7 and 8: Getting Started | Visual Components Academy )
If your aim is to do it with a Python script:
with a Transport Controller: you can use the standard functions from Process Modelling. So you would basically have to program what you can do manually (like what you can see in the link to the Academy I shared). That means the mobile robot will move automatically to the Feeder to pick a product and bring it to the Sink. What you need to programm will depend on what you want to do, and if you have already defined some products and flow groups for example.
this answer was quite good: AGV development with Python - #2 by TSy (the links are for the 4.8 help file, but I think they all stil apply. You can look for these in the 4.10 Help File)
you can have a look at this Addon: Excel Link Manager . It might be a bit more complicated as what you want to do, but it could be helpful.
not using a Transport Controller means you can’t use the standard function from Process modelling, and you have to program a new way to control your mobile robot, which will be complicated. There are some topics on the forum, from people who tried, but it will depend a lot, on how you want the Mobile robot to work, so there is no standard method for it (there is already the solution provided by VC with the Transport Controller…)