It’s a bit cumbersome when you need to connect complicated transport links and build sequences in PM, this example demonstrates how to automatically generate transport links and sequences based on Excel data using the Python API.
Note
The Excel format is fixed but can be modified according to your project needs.
Read excel and generate transport links and sequences scripts are in Feeder component
Each machines has custom process, it changes next process target, that’s how it works.
Good to know
When current process and next process are the same process, it still works, but the product will first go to neighbor process before circling back.
Hii @idkfa, I’m using version 4.8 of Visual Components.
I followed the same steps as described in your video. I downloaded both excel and model file. I selected the excel file directory which is on my desktop. I then read the excel file which has been giving error.
I also noticed that some of the statements you used e.g (AssignProcess for Feeder and Machine for Processes) are not present in my version of Visual Components.
So you read “PM Process 10 x Steps 5 vcmx”, do nothing, then read “PM Process 10 x Steps 5 xlsx”, error happens? I could not reproduce it here, kind of odds.
AssignProcess statement and Machine statement are custom statements, not standard statement.
Here is a resource on how to create custom statements. It is a layout with a sample Process Node and PythonProcessHandler that you can use to learn. See other components with PythonProcessHandlers in the eCat as well, like the Parametric Vertical Mill in the Machines folder. PythonProcessHandlerExample.vcmx (402.4 KB)
When I tried to create a custom process in the process node. The custom process statement did not update in the process executor when I compiled the PythonProcessHandlerScript.