cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connect to AGV network in "Task Executer as Flow Item"

Connect to AGV network in "Task Executer as Flow Item"

When flow items are task executers, they can move themselves between objects by using "Task Executer as Flowitem" for the 'Use Transport' option.

The script behind that option checks if the object is connected to a Network Node, and if it is, attaches the task executer flow item to that network node so that it uses the network. However, this does not work for AGV networks.

I think it would be easy to extend this bit:

if (objectexists(netnode)) {
	reassignnetnode(item, netnode);
}

to make it work with AGV networks as well:

if (objectexists(netnode)) {
	reassignnetnode(item, netnode);
}
else {
	treenode cpconnection = cpconnection(current, "Location", 1);
	if (objectexists(cpconnection)) {
		agvreassigncp(item, cpconnection);
	}
}

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea