RobotStudio event

SmartComponent: Simulating conveyors

Options
Pavel Riabichev
edited September 2016 in RobotStudio
Hello all.

Since it is impossible to simulate objects moving along with a curve continuously with the standard SmartComponents in RobotStudio, I created a new SmartComponent using codeBehind that does this.

You can download it from the RobotApps https://robotapps.robotstudio.com/Details.aspx?fileId=43b78ffd-adf8-4d77-a8c9-41a6be10b367 or RobotStudio add-ins tab.

Description:
This component works similarly to MoveAlongCurve but will continiously keep generating new objects that will move along with the curve instead of only one object.

Properties:
Object (IHasTransform) - Object to move
WirePart (Part) - Part that contains wire(s) to move along
KeepOrientation (Boolean) - Set to true to keep the orientation of the object
Speed (Double) - Speed
Interval (Double) - Interval between generated parts. Set to 0 to only generate 1 part. 
Copy (GraphicComponent) - Contains the copied object
CurrentTime (Double) - Outputs the current time
Use custom start position (Boolean) - Specifies if the generated objects should have custom start position or not. When unchecked, local origin of the wire part will be used.
Start Position (Vector3) - Custom position of the moved objects
Orientation (Vector3) - Custom orientation of the moved objects

Inputs:
Execute (Digital) - Set to high (1) to start or resume the movement
Pause (Digital) ) - Set to high (1) to pause the movement
Clear (Digital) – Removes all generated objects

Outputs:
Executed (Digital) - Pulses high (1) after each object that is generated
Executing (Digital) ) - Goes high (1) during the movement
Paused (Digital) ) - Goes high (1) when the movement is paused

Attached a little demo movie with this thread.

If you find any bugs you can report them in this thread.

/Pavel
Post edited by Pavel Riabichev on