question

Pieter Cecat avatar image
0 Likes"
Pieter Cecat asked Pieter Cecat commented

Command for getting itemtype of product arrivals at processor

I want to get the itemtype of every item arriving at a processor in order to calculate the variable processing cost (depends on the itemtype). I tried using the commando:

getitemtype(current)

in the onEntry trigger of the processor, but it doesn't work.

I need to count the number of products per itemtype arriving at the processor.

Any suggestions?

FlexSim 16.0.8
flexscriptprocessoritemtype
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Pieter Cecat commented

In the OnEntry trigger of a processor, current is the processor and item is the entering flow item.

So you need to use item, not current:

getitemtype(item)
· 1
5 |100000

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

Pieter Cecat avatar image Pieter Cecat commented ·

Thanks, I must have been confused :)

0 Likes 0 ·

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.