question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Joerg Vogel edited

How to make a taskexecuter controlled by processflow follow network

I have lift trucks picking from conveyors and placing in racks. That logic is controlled by process flow and works great. There are no connections between the objects in 3D view.

I added a network of nodes for them to follow and connected them as networks nodes usually are but the trucks don't use the nodes at all.

How do I tell them to use the network?

FlexSim 16.2.1
process flowtask executernetwork nodes
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited

If you insert travel tasks, then the transporter will use the network. The classic load and unload tasks are typically offset travel tasks. Only the standard travel task forces taskexecuter to use networks. If you place a travel before the load task you should set the destination to the nearest network node. The destination of the label "from" is not reachable from the network.

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patrick Cloutier avatar image Patrick Cloutier commented ·

That works. Thanks. But when I try to choose the destination based on the "from" label it doesn't seem to recognize the label.

I put this in the destination field and it says 'invalid task sequence':

if (getlabel(token,"from")=="Conveyor4") return node("NetworkNode4", model());

if (getlabel(token,"from")=="Conveyor3") return node("NetworkNode1", model());

Any ideas?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Patrick Cloutier commented ·

The content of the label "from" is a node, not a string. You have to compare with the conveyor object.

if(getlabel(token,"from") == node("Conveyor4", model())) return node("NetworkNode4", model());
1 Like 1 ·
Patrick Cloutier avatar image Patrick Cloutier Joerg Vogel commented ·

Thanks. That works !

Last question. It seems I have to specify my destination code in the Travel destination field as well as in the Unload destination field. I just copy-paste it in both places but it seems redundant. If I don't I get an error.

Any way around that?

0 Likes 0 ·
Show more comments
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Patrick Cloutier commented

The Taskexecuter must be connected to the network with an object connection ( a - type) . Drag a object connection form a Taskexecuter to a single Network node of your network. After reseting the model, the taskexecuter is placed over this node. If you move the taskexecuter from the network, a red tether or line is drawn between the network node and your Taskexecuter. If you don't like to see the connections at all, you can switch of the connections in the view properties.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

@Patrick Cloutier if your problem isn't solved by the standard procedure could you post an example model to let us look into it and detect what happens there. thx.

1 Like 1 ·
Patrick Cloutier avatar image Patrick Cloutier commented ·

I did all that and it doesn't work. See attached file. alpat-nov-2016-v5.fsm

The 2 lifts take piles from the 3 conveyors on the left and place them to one of 25 destinations on the right. But they just won't use the network... Maybe its because I'm picking from conveyors which can't be connected to nodes. I tried adding a bogus queue at the end of conveyors and it still doesn't work.

0 Likes 0 ·
alpat-nov-2016-v5.fsm (848.1 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.