I have a conveyor system loop made of 132 conveyors of the same type. I have a motor connected to all of them to sync power and free dog positions. That works fine.
Now I need to change the speed of the entire system when certain products enter the line.
I tried the following code in my triggering object but in doesn't do anything:
treenode motor= model().find("Motor1");
motor.targetSpeed = 4;
Maybe I can't reference the motor to do this. But how would I reference the conveyor type instead of all the 132 sections ?
Thanks,