From RSI - Robotic Systems Integration - SynqNet Systems

RapidCode VLC driver extends the RapidCode and SynqNet functionality to flowcharts and IEC 1131-1 programming, using Steeplechase VLC.

A Sample Application of a Steeplechase VLC flowchart using SynqNet:

SynqNet

You can download | RapidCodeVLC Documentation

Contents

VLC SynqNet Support

Setting VLC SynqNet project successfully

Install RSI drivers from our website: http://roboticsys.com/download/RapidCodeVLC_2_1.zip
Password: Contact RSI

Open Control Designer->new project

SynqNet

Add Interface-> RapidCode VLC

SynqNet

Right click on RapidCode VLC->Add Device ->Axis

SynqNet

Right click on RapidCode VLC -> Configure and click on Apply

SynqNet

Click on Apply

SynqNet

Setting an Axis Object successfully

Follow the steps below to add an axis to your project:

Right click on controller and go to Add Device -> Axis Device

SynqNet

Now right click on controller_Axis_device, in the example we will rename to Axis2

SynqNet

Now right click and click on Configure. Add date accordingly and click on Apply as shown below:

SynqNet

At this point, Axis 2 has been configured and is in a happy state (Green)

Move Cam Linear - Relative Move

Make sure both axes are enabled. You can verify from RapidSetup also.

In this basic sample application: There is one master and one slave. We have defined a 5 point array.

• Master axis has relative positions defined in the array. Motion type will be a relative moves.
• Slave axis 1 has absolute positions defined in the array. Motion type will be relative moves.

SynqNet

Sample application array:

SynqNet

Graph of result:

SynqNet

Let's discuss the sample application in detail:
Screen shot of sample application:

SynqNet

Detailed information to create block above:
Create tags with the following properties:

SynqNet

Set Axis 0 Pos to 0
Call method: PositionSet

SynqNet

Set Axis 1 Pos to 0
Call method: PositionSet

SynqNet

Define Array

SynqNet

Motion Attribute Get

SynqNet

OR attribute Mask

SynqNet

Set Motion Attribute

SynqNet

Move Cam Linear
Call method: MoveCamLinear

SynqNet

Move Trapezoidal
Call method: MoveTrapezoidal
Below we have entered a Position of 5000 counts which is the relative distances of Master Axis added together ( 1000 + 1000 + 1000 + 1000 + 1000 = 5000 )

SynqNet

Check for Motion Done:

SynqNet

You can always click on Help icon for more information.

Move Cam Linear - Sample Application 1

Make sure both axes are enabled. You can verify from RapidSetup also.

In this basic sample application: There is one master and one slave. We have defined a 5 point array.

• Master axis has relative positions defined in the array. Motion type will be a relative moves.
• Slave axis 1 has absolute positions defined in the array. Motion type will be absolute moves.

SynqNet

Sample application array:

SynqNet

Graph of result:

SynqNet

Let's discuss the sample application in detail:
Screen shot of sample application:

SynqNet

Detailed information to create block above:
Create tags with the following properties:

SynqNet

Set Axis 0 Pos to 0
Call method: PositionSet

SynqNet

Set Axis 1 Pos to 0
Call method: PositionSet

SynqNet

Define Array

SynqNet

Move Cam Linear
Call method: MoveCamLinear

SynqNet

Move Trapezoidal
Call method: MoveTrapezoidal
Below we have entered a Position of 5000 counts which is the relative distances of Master Axis added together ( 1000 + 1000 + 1000 + 1000 + 1000 = 5000 )

SynqNet

Check for Motion Done:

SynqNet

You can always click on Help icon for more information.

Move Cam Linear - Sample Application 2

Make sure all three axes are enabled. You can verify from RapidSetup too.

In this Sample Application: The arrangement of caming configuration is shown below. There are two slave axes linked to one master.

• Master axis has relative positions defined in the array. Motion type will be a relative moves.
• Slave axis 1 has absolute positions defined in the array. Motion type will be absolute moves.
• Slave axis 2 has absolute positions defined in the array. Motion type will be absolute moves.

SynqNet

Sample array table used:

SynqNet

Graph results from the array table:

SynqNet

Detailed information to create block above:
Create tags with the following properties:
BLUE: Slave axis 1
RED: Slave axis 2

SynqNet

Let’s discuss the sample application in detail:
Screen shot of sample application:

SynqNet

Let’s discuss the sample application in detail:
Screen shot of sample application:

SynqNet

Detailed information to create block above:
Create tags with the following properties:

SynqNet

Set Axis 0 Pos to 0
Call method: Position Set

SynqNet

Set Axis 1 Pos to 0
Call method: Position Set

SynqNet

Set Axis 2 Pos to 0
Call method: Position Set

SynqNet

Define Array

SynqNet

Set Cam Linear 1
Call method: MoveCamLinear

SynqNet

Set Cam Linear 2
Call method: MoveCamLinear

SynqNet

Move Trapezoidal
Call method: MoveTrapezoidal
Below we have entered a Position of 5000 counts which is the relative distances of Master Axis added together ( 1000 + 1000 + 1000 + 1000 + 1000 = 5000 )

SynqNet

Check for Motion Done

SynqNet

You can always click on Help icon for more information.

Move Cam Cubic - Sample Application

Make sure both axes are enabled. You can verify from RapidSetup also.

In this basic sample application: There is one master and one slave. We have defined a 5 point array. We will be using method MoveCamCubic.
• Master axis has relative positions defined in the array. Motion type will be a relative moves.
• Slave axis 1 has absolute positions defined in the array. Motion type will be absolute moves.
• Slave axis 2 has absolute positions defined in the array. Motion type will be absolute moves.

SynqNet

Sample application array:

SynqNet

Graph of result. As you can see the Move Cam Cubic produced a smoother motion compared to the result using Move Cam Linear method.

SynqNet

Let's discuss the sample application in detail:
Screen shot of sample application:

SynqNet

Detailed information to create block above:
Create tags with the following properties:

SynqNet

Set Axis 0 Pos to 0
Call method: PositionSet

SynqNet

Set Axis 1 Pos to 0
Call method: PositionSet

SynqNet

Define Array

SynqNet

Move Cam Linear
Call method: MoveCamCubic

SynqNet

Move Trapezoidal
Call method: MoveTrapezoidal
Below we have entered a Position of 5000 counts which is the relative distances of Master Axis added together ( 1000 + 1000 + 1000 + 1000 + 1000 = 5000 )
<image> Image:CamCubicEditSpecialFunction-MoveTrapezoidal.jpg rect 0 0 0 0 SynqNet desc none </imagemap>
Check for Motion Done:

SynqNet

You can always click on Help icon for more information.

Motion Cam Repeat From Set/Get (Repeating Cams)

To truly mimic a mechanical arm, we need to use Motion Cam Repeat From Set method. Using this method will automatically return to the start segment immediately after the cam has finished. Look at the image at the boot.

The primary focus of this sample application is to teach the following methods: • Motion Cam Repeat From SetMotion Cam Repeat From Get

The sample application also uses Move Cam Linear method, however for more information on camming look at the camming sample applications:
• Camming Sample Application – basic
• Camming Sample Application 2

Sample Array:

SynqNet

VLC flow chart for sample application:

SynqNet

Detailed Information to create the flow chart shown above:
Tags created:

SynqNet

Set Axis 0 Pos to 0
Call method: Position Set

SynqNet

Set Axis 1 Pos to 0
Call method: Position Set

SynqNet

Define Array

SynqNet

Motion Cam Repeat From Set
A value of 0 for position will indicate that the whole cam table provided is to be repeated.
0 counts for Position is to repeat the camming cycle from first point in the array (MasterArray [1] = 1000).

XMP


Motion Attribute Mask Get

SynqNet

OR Attribute Mask
Create a tag called motionMask as shown above; add the exact same numbers as shown below for Starting Master axis at specific position.

SynqNet

Motion Attribute Mask Set

SynqNet

Move Cam Linear

SynqNet

Move Trapezoidal
We provide a total Position of 12000 counts to complete three cycles (To complete one cycle, master axis needs to a relative distance of 4000 counts. Therefore 4000 * 3 cycle = 12000)

SynqNet

The sample application above would produce the following result:

SynqNet

Motion Cam Master Start Set/Get (Starting at Specific Master Axis Positions)

The primary focus of this sample application is to teach the following methods:
• Motion Cam Master Start Set
• Motion Cam Master Start Get

By default camming starts immediately after you have executed one of the motion methods specifying the offsets of each of the cam segments relative to the previous segment or the master’s position at the start (if it is the first segment). Using Motion Cam Master Start Set method, allows exact position of the master before camming starts using its defined arrays.

Sample Array:

SynqNet

Desired Result from Sample Array:

SynqNet

VLC flow chart of sample application:

SynqNet

Detailed Information to create the flow chart shown above:
Tags created:

SynqNet

Set Axis 0 Pos to 0
Call method: Position Set

SynqNet

Set Axis 1 Pos to 0
Call method: Position Set

SynqNet

Define Array

SynqNet

Motion Cam Master Start Set
We added 5000 counts as we want Master Axis to reach a specific position of 5000 counts before camming starts.

SynqNet

Motion Attribute Mask Get

SynqNet

OR Attribute Mask
Create a tag called motionMask as shown above; add the exact same numbers as shown below for Starting Master axis at specific position.

SynqNet

Motion Attribute Mask Set

SynqNet

Move Cam Linear

SynqNet

Move Trapezoidal
We provide a total Position of 9000 counts because:
• 5000 counts for Motion Cam Master Start Set. This is added so that Master Axis would reach a specific position of 5000 counts before camming starts.
• 4000 counts is the added absolute positions defines in Define Array

SynqNet