CNC Bender Seam Detection

From ATTWiki
Revision as of 01:25, 13 June 2009 by Mcone (Talk | contribs)

Jump to: navigation, search

Cncbender logo pushbending.png

Operatorstation model.jpg

Contents


Seam Detect Mode in PreBend Dynamic Options

Seamdetect application.jpg

Seamdetect diagram.jpg

The seam detect logic was ported into the latest version of CNC Bender from the older LiteControl platform. It uses a secondary process list that runs in parallel to the main process list in order to detect a seam.

The diagram on the right shows the main process in the orange box on the left. This is the actual bend program process.

The box on the right is the secondary process called SEAM_DETECT_ROTATE_AXIS. It causes the rotate axes to spin until the seam is located and the seam detect input is ACTIVE. (This process can be modified for your application.)

When the seam is detected, then the SEAM_DETECT_ROTATE_AXIS process STOPS RUNNING, causing the ROTATION JOG to also STOP.

Then the main process detects that the seam detect input is ACTIVE and moves to the next step (See "3" in the orange box).


SEAM DETECT MODE DYNAMIC OPTION

The new feature can be switched on with the Seam Detect option in the PreBend option:

Cncbender seamdetect rotateaxis.jpg

Set the mode to Rotate Axis BEFORE or AFTER run buttons to include seam detection logic that will spin the rotate axis until a seam/scribe/etch is located.

If enabled, the commands for seam detection are added to the process list between the chuck close and the run button logic. This is a sample of what is inserted. (What you see here represents the commands for STEPS 1 and 2 in the orange box in the image above.)

Seamdetect processlist.jpg



The new "seam_detect_rotate_axis.cncprocesslist" is a secondary multitasking processlist that is configurable to work with the application.

INTERNAL COMMANDS [direct_axis_jog] and [direct_axis_jog_halt]

[direct_axis_jog]

This processlist internal command will allow the process to direct-jog and axis as if a user had pressed a jog button. Configure the command by including parameters like this:

[direct_axis_jog] servo_controller_module_1, 2, 1

Each parameter is separated by commas and are defined as:

  1. PARAMETER 1: The first parameter is the name of the SERVO module
  2. PARAMETER 2: The second parameter is the axis of the SERVO module (1 or 2)
  3. PARAMETER 3: The third parameter indicates direction. "1" means positive jog. "-1" means negative jog.



[direct_axis_jog_halt]

This processlist command uses no parameters. It halts all jog motion.

Sample of How Used

These commands can be used to move, for example, the rotate axis until a seam is detected by a device which actives an input. Examine the "seam_detect" processlist to see how this works:


[direct_axis_jog] servo_controller_module_1, 2, 1

[if] and, input=Input_SeamDetect_End
  // Seam detected - Disable the rotate jog now
  [direct_axis_jog_halt]
  [SECONDARY_PROCLIST] seam_detect, disable
[end]

The jog command rotates the 2nd axis of the first servo module in the positive direction. This is the rotate axis. The motion continues until the seam detect input activates. At that point the jog is halted with the second command, and the secondary processlist disables itself.

Check.jpg NEW: CIOs and COMDEFs

  1. Input_SeamDetect_End is a standard CIO added for this feature.
  2. WaitForSeamDetect is the name used for the new COMDEF in the main process list that waits for the seam detect to go active.



Other Pages