question

Gabriel illescas Cavazos avatar image
0 Likes"
Gabriel illescas Cavazos asked Sam Stubbs answered

Can I change number of operators with setvarnum command in processor?

FlexSim 16.2.1
commands
5 |100000

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

1 Answer

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered

Yes you can. Here is a basic example:

setvarexample.fsm

In the model I simply added some code in the processor in the OnEntry trigger:

if (getitemtype(item)==2)  {
	setvarnum(current,"nrofprocessoperators",2);
}
else  {
	setvarnum(current,"nrofprocessoperators",1);
}

Simply. if the item is itemtype 2 it requires 2 operators for processing. Otherwise just 1.


setvarexample.fsm (22.0 KiB)
5 |100000

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

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.