question

night avatar image
0 Likes"
night asked night edited

Parsing error when trying to set center location?

I have the following timetables 1 and 2, for 2 shifts with different downtimes.

At 8 am - 5 pm is for operators 1-3
At 5pm - 9pm is for operators 4-9
The above is working hours of course, I had set that correctly. My issue now is if I was to set the down function (travel to location) my operators will not switch over to the other shift.
So i changed to On down I set the center location as the home base i want my operators to walk to after their shift ends, and not at their separator. But when I Set Center Location the following error popped up. Not sure what went wrong, could someone help me take a look at the error? At the same time, When setting the location, the operators all group up in one blob, is is possible to have them in line?

Capstone2_with crane&shift.fsm

1697113566372.png 1697113625849.png
FlexSim 23.1.3
operatortimetablesshift schedule
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered night edited

Looks like an oversight from the developers. The involved variable that is used in the set location code in many other triggers wasn't renamed to curmember. (The other way around would also work, renaiming curmember to involved in line 19.)

In the code, you can alo use the index of the for-loop to shift each additional operator a bit further in one direction to have them appear next to each other.

1697115243247.png


1697115243247.png (11.0 KiB)
· 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.

night avatar image night commented ·

Yes, thank you, changing curmember to involved does work. How do I go around with the index though?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann night commented ·
I already included an example in the code I posted. The index counts up by one for each member. So by including it in the coordinate parameters, each operator will be placed farther along in the respective direction. In the example I chose a distance of 0.8m between each operator in the -y-direction.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Felix Möhlmann commented ·

Hello @night, The for loop initializes the index at 1, when it loops it will increment the index, and it will loop until the value reached the number of members in the group. On line 19 allows you to refence the member of the group at that index. On line 20 the index is used as a multiplier for the spacing of the placement of the people. In this case it is a multiplier of the y location.

0 Likes 0 ·
Show more comments