question

Lucas avatar image
0 Likes"
Lucas asked Iago MF commented

FlexSim conveyors and photo eye problems

I am doin this tutorial from FlexSim, but i dont achieve and i dont know why. Exactly is this tutorial https://docs.flexsim.com/en/24.0/Tutorials/AdditionalTools/Tutorial3Emulation/3-2AddAreaRestrictionPLCLogic/3-2AddAreaRestrictionPLCLogic.html

And the model is this:Process flow con zonas y el mas completo.fsm

FlexSim 24.0.0
conveyorsphotoeyeflexsimserver
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Lucas, was Iago MF's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Iago MF avatar image
0 Likes"
Iago MF answered Iago MF commented

Hi,

The first problem is that you are setting on each variable in labels named "PE1A" and "PE1B" but in the decide activity you ar asking for labels "PE1AState and" "PE1BState".

Then, names of photoeyes are not following this rules, so the variables and the logic are not referencing photoeyes correctly.

1706695700831.png

So create the logic based on photo eyes named with this rules.

I hope it helps you!


1706695700831.png (23.2 KiB)
· 2
5 |100000

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

Lucas avatar image Lucas commented ·

Process flow con zonas y el mas completo.fsm I also change the names but nothing

0 Likes 0 ·
Iago MF avatar image Iago MF Lucas commented ·

You have to rebuild the model following those rules. If you just change the names the logic will be wrong becauser Emulation Variables will not point the photo eyes they should.

Also, in the Decide activities you are still asking for a label that don't exist on the token. You have change the Get Varialbe assign to "token.PhotoEyeState" but in the Decides you are asking either for PE1AState and PE1AState

0 Likes 0 ·

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.