question

Malcolm L3 avatar image
0 Likes"
Malcolm L3 asked Gokulakrishnan Kandasamy commented

Traffic light system to convey the status of the conveyor belt

Hi all, I have modified my model right now to simulate a pick and sort situation. However, the actual prototype have a traffic light system that indicates the status of the conveyor belt ( When moving, the traffic light will light up as green, when the convey belt stops, it will light up as red, While transporting/sorting the object, it will indicate as ember color.) May I know is it possible to show some form of replication where a 3D object will be able to picking signal up from the photoelectric sensor and shows the status of the conveyor belt by outputting different color? If so can anyone show me how to do it?


Final version (Human).fsm

FlexSim 20.0.8
flexsim 20.0.8
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Malcolm L3, was Gokulakrishnan Kandasamy's answer helpful? If so, please click the red "Accept" button on 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Gokulakrishnan Kandasamy avatar image
1 Like"
Gokulakrishnan Kandasamy answered Gokulakrishnan Kandasamy commented

final-version-human-autosave_gk2.fsm@Malcolm L3 I solved your problem. Look into the model let me know if you have any doubt.final-version-human-autosave_gk.fsm


· 16
5 |100000

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

Gokulakrishnan Kandasamy avatar image Gokulakrishnan Kandasamy commented ·

@Malcolm L3 We can do that using the trigger picklist option. Since the conveyor is controlled by a motor we can change the color of the motor to visualize the conveyor status. it is one of the easiest ways because it is directly connected to the conveyor. I tried this in your model.

final-version-human (1)_1.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Gokulakrishnan Kandasamy commented ·

Here it is in version 20.0 with the addition of the amber condition.

final-version-human_jl.fsm

0 Likes 0 ·
Malcolm L3 avatar image Malcolm L3 Gokulakrishnan Kandasamy commented ·

Hi Guys, thanks for the reply. I really appreciate the effort for those of you who have replied me. For this project, I would require the output (color) to be displayed in somesort of object that looks like a traffic light system, maybe for easier requirement can the colour be displayed onto a box object. So each time when the conveyor moves, the box will light up as green, while transporting ember and when paused will be red? Instead of showing it in the motor itself. Thankyou very much

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Malcolm L3 commented ·

Hi Malcolm, I think you are able to solve this alone. You drag any object into your model, e.g. a Basic Fixed Resource. You give it a name like “myLight“. Then you can reference this object by its name as:

Model.find(“myLight”)

You look into Jason‘s source code where he set a color like object.color = Color.red. Now you replace the reference part object, which is naturally a different phrase, by Model.find(“myLight”) that it looks like:

Model.find(“myLight”).color = Color.red; 
0 Likes 0 ·
Malcolm L3 avatar image Malcolm L3 Gokulakrishnan Kandasamy commented ·

Hi Jorg, yes I'm able to implement the green and red color on a basic Fixed Resource. However there seems to be a clash when I tried to implement ember status in it (Robot transporting an object) because while the robot transport an object, the photoelectric sensor detects another object at the pre-allocated spot thus the motor will stop which result in red. There wouldn't be a situation where the trafficlight system be in green. Also I noticed from the very start when the conveyor belt runs, the status of the object will remain in its initial color because there isn't any trigger yet which contradicts to what should happen - as long as conveyor belt is running, it should display green signal.

Final version (Human)_autosave.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Malcolm L3 commented ·

If you've just edited this post then you may have lost the link to the model - please reattach it.

0 Likes 0 ·
Show more comments
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

20.2 again mate.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

That one you've just added is 20.1 - user is in 20.0

0 Likes 0 ·