question

Óscar Manuel CMN avatar image
0 Likes"
Óscar Manuel CMN asked Óscar Manuel CMN commented

first destination in a job shop


The question I ask below is the same as in this post: https://answers.flexsim.com/answers/86286/view.html
The problem was that he wanted the operators to remove the jobs, ordering them according to a shorter changeover time. To do this, I created a field expression in the "Orders" list to calculate the setup time (ST). The problem was that at first the Destination tag had no reference.
In that matter, I was recommended to put an assign labels at the beginning initializing the first destination. But now I have a destination depending on the type of work. I have tried an assign labels at the beginning of everything but of course, the "TipoTrabajo" label is not identified. Any solution?

SIMSET-WHN1-SQ-k2_1.fsm

FlexSim 20.0.6
setup timeflexsim 20.0.6
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·

@Óscar Manuel CMN,

Attached is your model with the changes that I've made. I'm still fuzzy on all of your logic but this model will get you past the point where you were having the problem anyway. Take a look at the model and see if this method would/will work for you.

If you have any questions or problems, please let us know.

Thanks.

simset-whn1-sq-k2-1-JN1.fsm

0 Likes 0 ·
Óscar Manuel CMN avatar image Óscar Manuel CMN Jeff Nordgren commented ·

Sorry but this model is the one that I attached, but with another name. There must be a mistake

0 Likes 0 ·

1 Answer

Brenton King avatar image
1 Like"
Brenton King answered

@Óscar Manuel CMN

There are two issues I see right off of the bat.

1) You are referring to "item" in your code. That is not a declared variable. When you are working in process flow, the entity is called "token", not item. If you were wanting to connect the token with an item, you don't have a label doing so.

2)Even if you had token instead of item, you are referencing a label called TipoTrabajo. The token doesn't have any labels, let alone a label called TipoTrabajo.

My guess, is that you are wanting to have the item and the token connected. Why not just have your process flow create the item in the queue instead of a source and then add the label?

Another option would be to keep your current source and code but switch your process flow source to an "Event Triggered Source" where it creates a token every time an item enters the queue and then it ties to two together with an "item" label.

Both methods would work.


5 |100000

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