question

Yogesh H avatar image
0 Likes"
Yogesh H asked Arun Kr answered

How to get X axis distance travelled by task executors?

Hi Support,

I want to get the X- axis distance travelled by the task executor objects in the attached model.

I am attaching the model for your referenceASRS and Fork Lift distance query.fsm

Thanks

FlexSim 20.2.2
forkliftasrsvehicleaxis distance travelled
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

·
Arun Kr avatar image
1 Like"
Arun Kr answered

Hi @Yogesh H,

You can use the getkinematics() command to access the distance traveled by the task executors on each axis. In your case, the command will look like this for ASRS.

treenode KinNodeASRS = getvarnode(Model.find("ASRSvehicle1"), "kinematics");

double Distance = getkinematics(KinNodeASRS,KINEMATIC_TOTALX); // For X axis movement // For y and z axis use KINEMATIC_TOTALY and KINEMATIC_TOTALZ

Regards,

Arun KR



5 |100000

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

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.