News:

  • October 27, 2025, 06:52:42 AM

Login with username, password and session length

Author Topic: H2-CTRIO/LookoutDirect position control  (Read 7739 times)

eric14779

  • Full Member
  • ***
  • Posts: 30
H2-CTRIO/LookoutDirect position control
« on: April 24, 2012, 05:33:23 PM »
I have a application where I have created a list of positions and punch numbers (1 thru 8) for piercing a length of material with the 8 different punch shapes...

I have learned how to bring the data into LKD from the Excel ver 4.0 worksheet file.

How can I write each to the V memory for parameter #3(V2030) in sequence and "fire" the appropriate punch for the given position.

Also the lengths of the parts are longer than the stroke of the transport carriage, how would I move the carriage back to zero and reset the counter to the real position of the part and proceed.

and lastly my servo drive has a homing routine, should I use the drive or the CTRIO to home ???

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: H2-CTRIO/LookoutDirect position control
« Reply #1 on: April 25, 2012, 11:47:25 AM »
We at Host Engineering are not Lookout experts, so you might want to ask your question also over on the Automation Direct forum (http://forum.automationdirect.com/index.php).

However, regarding the CTRIO:
- You could use the Dynamic Positioning Pulse Profile to do the list of positions.
- You could use a Homing profile to home.
- You could use a System Function and write to the position register if the position varies each time.

But all of that is mostly speculation requiring some research on your part since I'm not working with the details of your application myself.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

rgbarr

  • Newbie
  • *
  • Posts: 9
Re: H2-CTRIO/LookoutDirect position control
« Reply #2 on: April 26, 2012, 12:30:51 PM »
I assume your using the recipe function in LKD in which case you need to assign a memory location in the PLC for each cell in the spreadsheet that contains a punch. Assume the spreadsheet columns are numbered 1 thru 8. Go into "EDIT CONNECTIONS" and connect each memroy location to a recipe value. If your recipe is named "Recipe_PUNCH" and you're using memory locations V2000 - V2007 to store 8 punch values then you would connect V2000 to DL1.Recipe_PUNCH.1, V2001 to DL1.Recipe_PUNCH.2, etc. (assuming your PLC is named DL1). When you load the recipe each memory location will be populated with a value from the spreadsheet. In the PLC program you would load each memory loaction to the target location(in your case V2030). You can do this by using a counter and loading V2000 to V2030 when the count = 0, V2001 to V2030 when the count = 1, etc. You can advance count by pushbutton or at the end of a particular operation.

Hope that helps.

eric14779

  • Full Member
  • ***
  • Posts: 30
Re: H2-CTRIO/LookoutDirect position control
« Reply #3 on: May 01, 2012, 04:27:10 PM »
Thanks for the replies...

I am using a DataTable in LKD

The positions and punch # will change with each part.

there can not be any "preset" locations or Recipe as I generate the list of locations and punch # in Excel

many different parts, new ones added all the time.

Think Rudimentary CNC type control.  where my position number drives the single axis to position and the punch number fires the required solenoid to punch the hole in the part, then on to the next position.

rgbarr

  • Newbie
  • *
  • Posts: 9
Re: H2-CTRIO/LookoutDirect position control
« Reply #4 on: May 03, 2012, 12:00:02 PM »
The Recipe function in Lookout loads it's values from an excel spreadsheet.

eric14779

  • Full Member
  • ***
  • Posts: 30
Re: H2-CTRIO/LookoutDirect position control
« Reply #5 on: May 03, 2012, 12:38:52 PM »
My Excel file looks like this  see attached.


Col A thru D the operator enters the values

then presses the Calculate button

and my VB macro expands the individual "hits" out in Col F thru M

then sorts them all (with tool offset Col O & P) from zero to the end of the part and places the position and punch # in Col E

I now have found the LKD Right(text,1) will not work correctly so I am pulling the tool number back out in Excel and putting them in col N.

So I will read in a DataTable  col E (###.###)  and col N (#)  to feed to the PLC