How To: Operation Group

Post Reply
User avatar
US_Helpdesk
Moderator
Moderator
Posts: 1092
Joined: Wed Feb 23, 2011 7:26 pm

How To: Operation Group

Post by US_Helpdesk » Wed Jun 12, 2013 11:38 am

The Add Operation Group command inserts a powerful loop structure that allows you to measure a batch of the same part, mounted at known locations in a hard fixture.
group1.jpg
Here are the steps to add an Operation Group

1) Select Program Tab > Programming Group > Operation Group in the Ribbon Bar.

- The Define Program Group dialog pops up with a default Name and Repeat Times value. The Include Transfer Operation checkbox is checked by default.

2) Type a name for the operation group into the Name text box, if you want a name other than the default of "Group."

- The Name is used to create the loop variable which controls processing of the operation group.

3) Type the number of times you want the operations within the group to be repeated in the Repeat Times text box.

4) Check or clear the Include Transfer Operation checkbox.

5) Click OK.

6) Insert the necessary VB script for defining part positions, and the alignment and measure operations for each part.

The Program Structure is as follows:

1) Begin of: [groupname]
2) Transfer Program Group: [groupname]
3) VB Script to define part / fixture offsets
4) Any Program Operations that should be looped
5) End of: [groupname]
group2.jpg
Part Transfer options - Incremental vs. Absolute Transfer

Incremental - specify offset that will be applied to each part. This is suitable for cases where a single line of parts are held in a fixture.

Add VB Script - define variables for offsets

Code: Select all

myX = 10
myYZ = 0
Open the Transfer Program Group: step in the program and select the Incremental Transfer radio option. Enter the variable defined above for the offsets. In this case a new part will be run shifted 10 units in only the X axis.

Absolute - specify offset that will be applied to each part. This is suitable for cases where a grid of parts are held in a fixture. i.e. 2 rows of 3 parts

Add VB Script - define variables for offsets

Note: For each loop the "Group_INDEX" variable increments by 1. You can view the Begin of Group: operation to see the variable name used in the For Loop. This variable name must be used in the VB Script below to identify the current loop index and then apply the offset accordingly using a Select Case statement.
group.jpg

Code: Select all

IF Group_INDEX=1 THEN
  varX = 0
  varY = 0
  varZ = 0
ELSEIF Group_INDEX=2 THEN
  varX = 5
  varY = 0
  varZ = 0
ELSEIF Group_INDEX=3 THEN
  varX = 10
  varY = 0
  varZ = 0
ELSEIF Group_INDEX=4 THEN
  varX = 0
  varY = 5
  varZ = 0
ELSEIF Group_INDEX=5 THEN
  varX = 5
  varY = 5
  varZ = 0
ELSEIF Group_INDEX=6 THEN
  varX = 10
  varY = 5
  varZ = 0
END IF
Open the Transfer Program Group: step in the program and select the Incremental Transfer radio option. Enter the variable defined above for the offsets. In this case a each part will be run with offsets as defined in the above VB script.
You do not have the required permissions to view the files attached to this post.
I've migrated to a new user account, see my other posts here

Post Reply