question

立洲 avatar image
0 Likes"
立洲 asked 立洲 commented

About the battery display disappears after the AGV takes the elevator

顯示文字,為什麼AG顯示文字顯示的文字出現0並有錯誤提示

AGV電梯.fsm

FlexSim 20.0.10
agvelevatortext
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered 立洲 commented

That's because you're using Model.find() with a sting path to the AGV which does not account for it moving into objects.

Use a label pointer on the Text object or a centerport connection and refer to the AGV that way and it will be correct no matter where the AGV is located.

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

立洲 avatar image 立洲 commented ·

你能提供一些使用程序語法的指南嗎?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ 立洲 commented ·
treenode AGV1=current.centerObjects[1];

or

treenode AGV1=current.agv;

agv-elevator_jl.fsm

0 Likes 0 ·
agv-elevator-jl.fsm (182.9 KiB)
立洲 avatar image 立洲 Jason Lightfoot ♦♦ commented ·

謝謝,這是一個很好的答案

0 Likes 0 ·