question

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie asked Matthew Gillespie answered

How to set Photo Eye's Distance Along Conveyor

photo-eye-location.fsm , In the model attached there is one photo eye on the conveyor, I want to change the 'distance along the conveyor' value of this photo eye on reset by calling the value form a global table. how can I do this?

FlexSim 17.1.2
conveyorsphoto eyereset triggerdistance along conveyor
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

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered

You need to use this function_s:

function_s(current, "setDistAlongConveyor", Table("dist")[1][1]);

I updated the attached model to use this code in the Photo Eye's On Reset trigger.

setdistalong.fsm


setdistalong.fsm (40.3 KiB)
5 |100000

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