question

MarianCretu avatar image
0 Likes"
MarianCretu asked Matthew Gillespie commented

Delete first character from a pulled object name

Hell all,

How is it possible to remove the "/" character from a pulled token name (e.g "/Line_1").

I need the worker to go to the coresponding Network Node according to the "route table" whenever a box triggers the decision point.

Please advise.

travel.fsm

Thanks.

FlexSim 19.1.1
pulled token
travel.fsm (46.5 KiB)
· 3
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 ·

@CRETU M,

I'm confused. In your "route" table, in column 2 "node", you have a string in there that I'm assuming is a valid object in your model. It has to be valid to travel there. But, in row 1, column 2 you have "NLine_1". What object is that? It doesn't exist in your model. How are you supposed to travel to it when it doesn't exist?

Can you explain exactly how you are trying to use the Global Table? What are you trying to accomplish?

Thanks.

0 Likes 0 ·
MarianCretu avatar image MarianCretu Jeff Nordgren commented ·

Hello Jeff,

NLine_1,2,3 is a network node to which I travel close to the conveyor end.

If I travel directly to the conveyor the worker Z coordinate will be 0.8m.

0 Likes 0 ·
MarianCretu avatar image MarianCretu Jeff Nordgren commented ·

The global table is used to get a reference to the Network Node when I pull the conveyor line.

So, first I pull the conveyor line which has the box on it and then I look in the table which network node correspond to the pulled conveyor.

The problem is that the token.pulled data has a "/" and that I cannot find in the table.I need to remove "/" from the pulled token.

0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

Why don't you just tell the worker to walk directly to the box?

· 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.

MarianCretu avatar image MarianCretu commented ·

fly.jpg

Because the worker will fly to the box.

0 Likes 0 ·
fly.jpg (72.4 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ MarianCretu commented ·

Not if you use a Load activity

1 Like 1 ·
MarianCretu avatar image MarianCretu Matthew Gillespie ♦♦ commented ·

Man...."load works". I thought that first you have to travel and then load but looks like it works without the "travel" :)) Thanks a million.

0 Likes 0 ·
Show more comments