Hey everyone,
I wanna to model a two-way variable and signal-controlled conveyor,but I failure.Who has a good idea?
Thanks in advance.
Hey everyone,
I wanna to model a two-way variable and signal-controlled conveyor,but I failure.Who has a good idea?
Thanks in advance.
Hi,
You can do it with two way path behaviour, boolean signal and python script which changes the path direction on signal events.
Check the attached example. There you can change the conveyor direction by manually setting the signal “Direction” True/False on the signal panel.
Note that the attached line components should also be able to work as both inputs and outputs. In the example the feeder cannot do that so if you change the flow direction backwards the box cannot proceed back to the feeder. But you could put a Shuttle Conveyor for example in between the feeder and the two way conveyor and create a routing rule on it so that it can transfer those boxes back to a different location.
-k
TwoWayConveyor.vcmx (240 KB)
Thanks,Keke. It works.
I am learning python, but not good at it.Could you help me integrate the python script into Sensor Conveyor?
BR,
Turbo
TwoWayConveyor_example.vcmx (2.11 MB)
Hi,
Well I don’t know how you want to integrate it. But I can give you some pointers:
def OnRun():sig.signal(True) #signal-controlled
comp = getComponent()
sensorSignal = comp.findBehaviour(‘SensorSignal’)
startStopSignal = comp.findBehaviour(‘StartStop’)while True: #Change this to while True: if OnRun -loop is needed
triggerCondition(lambda: getTrigger() == sensorSignal and sensorSignal.Value)
part = sensorSignal.Value
# Create your logic here
# …
# …
sig.signal(False)
delay(3)
sig.signal(True)
-k
Hello,keke
Thank you for your help.
In addition,could you give me some advice in these problems:
In this simulation:
What i expected:
Please check the attachments.
BR,
Turbo
Process_.vcmx (1.9 MB)
Hi,
-k
Nice.Question 2 has been resolved.
As for question 1, I actually tried to replace the geometry inside the Lifter. Due to the weak Python foundation, the logic of the flow has not been realized, especially from the port3 input, port1 output. I will keep trying.