Help - Search - Members - Calendar
Full Version: high speed counter + analog output
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
mos89
Dear all

I want to control a servo drive via analog +/-10V, and get the position from encoder .
I am using 1769-HSC+1769-IF4XOF2 +1769L32E processor .

How to set +/-10V with the 0-10V analog output ?
I have difficulties to set up the HSC, i just want a simple mode to be able to count to compute the linear position.

thanks in advance !


TWControls
Do you already have the hardware? Have you thought about the SERCOS for the Compactlogix or bumping up to the Controllogix with a M02AE? They are more suited for your requirements
mos89
QUOTE(TWControls @ Oct 22 2007, 11:38 PM) [snapback]60754[/snapback]

Do you already have the hardware? Have you thought about the SERCOS for the Compactlogix or bumping up to the Controllogix with a M02AE? They are more suited for your requirements


I have already the hardware
mos89
QUOTE(mos89 @ Oct 23 2007, 07:57 AM) [snapback]60772[/snapback]

QUOTE(TWControls @ Oct 22 2007, 11:38 PM) [snapback]60754[/snapback]

Do you already have the hardware? Have you thought about the SERCOS for the Compactlogix or bumping up to the Controllogix with a M02AE? They are more suited for your requirements


I have already the hardware



i can count, but how to reset the counter ?
TWControls
Say your HSC is in slot 1

MOV a value of "0" to Local:1:O.Range12To15[0].HiLimOrDirWr
Unlatch Local:1:O.Ctr0En
Turn on Local:1:O.Range12To15[0].LoadDirectWrite
Latch Local:1:O.Ctr0En

What you are basically doing is disabling the counter, then using the LoadDirectWrite bit to write the HiLimOrDirWr to the counters accumulated value, then re enabling the counter. The counter value cannot be changed while the counter is enabled

It should look something like this
[attachmentid=5495]
mos89
i try your tip, but it is not working
TWControls
What you have should work. What happens when you toggle the reset_HSC bit? Screen capture with the bit off.
mos89
QUOTE(TWControls @ Oct 23 2007, 01:23 PM) [snapback]60788[/snapback]

What you have should work. What happens when you toggle the reset_HSC bit? Screen capture with the bit off.


Here is the screen capture

my encoder is not rotating during the reset
mos89
I reset all default value, and the reset is ok now

thanks for your help
do you know well Analog output ?
TWControls
Going to have to know a lot more about your application for that. Servo control with the HSC is hard, that's why I asked about your hardware. Your analog output will be dependent on what the true requirements are of the application.
mos89
in fact i have to control a parvex drive via DLD servo, my servo input is +/-10V, and i am using the HSC to compute length.

I did it previously with omron material, but the analog card was +/-10V.

My AB material is 0/10V

i am looking how to be able to rotate both side with it ?
TWControls
What exactly is the machine doing? How accurate does it have to be? Can it creep into position or does it have to stop immediately at the correct position?

Must it act as a true servo system or a crude positioning system?
mos89
QUOTE(TWControls @ Oct 24 2007, 12:57 AM) [snapback]60821[/snapback]

What exactly is the machine doing? How accurate does it have to be? Can it creep into position or does it have to stop immediately at the correct position?

Must it act as a true servo system or a crude positioning system?



it is a dosing machine
TWControls
Sorry but that doesn't help me. What is a dosing machine?
mos89
QUOTE(TWControls @ Oct 24 2007, 11:57 AM) [snapback]60841[/snapback]

Sorry but that doesn't help me. What is a dosing machine?


the aim of the machine is to control the quantity of product with the motor encoder
Ken Moore
A dosing device is one that delivers a measured quantity of material, aka "dose". The "dose" needs to be accurate and repeatable.

There a many ways to accomplish this, with out more details from the OP, it's hard to guess what type of hardware is being used.

The physical properties of the material to be "dosed" are also a factor.
Wet, dry, liquid, powder, viscosity, etc.....

Quantiy to be dosed and tolerance are also factors.


EDIT:
Looks like he's using a cavity of known volume to "measure" the dose. I would guess that the the cylinder moves down, displacing material out of the cavity, the encoder gives you positional feedback, and the servo controls the movement of the cylinder (the photo says electric motor is an option). You would have to know exactly how much travel is needed for a dose. I used to do a lot of adhesive dispensing and this type of arrangement was common, in many cases, after the cylinder travels down to the desired location, it stops, then retracts just a little. The retraction "sucks" the material back up the nozzle just a tad, this is done to minimize dripping. It is often used in marketing, the sales guys harp about the "suck back" drip prevention feature.

So.... if his servo is looking for -10 / + 10, the best solution may be to purchase a signal converter, that has 0-10 as an input and -10/+10 as an output. I've never used the Compact Logix's platform, don't know if there is a -10/10 output card available or not.
mos89
QUOTE(Ken Moore @ Oct 24 2007, 12:26 PM) [snapback]60844[/snapback]

A dosing device is one that delivers a measured quantity of material, aka "dose". The "dose" needs to be accurate and repeatable.

There a many ways to accomplish this, with out more details from the OP, it's hard to guess what type of hardware is being used.

The physical properties of the material to be "dosed" are also a factor.
Wet, dry, liquid, powder, viscosity, etc.....

Quantiy to be dosed and tolerance are also factors.


EDIT:
Looks like he's using a cavity of known volume to "measure" the dose. I would guess that the the cylinder moves down, displacing material out of the cavity, the encoder gives you positional feedback, and the servo controls the movement of the cylinder (the photo says electric motor is an option). You would have to know exactly how much travel is needed for a dose. I used to do a lot of adhesive dispensing and this type of arrangement was common, in many cases, after the cylinder travels down to the desired location, it stops, then retracts just a little. The retraction "sucks" the material back up the nozzle just a tad, this is done to minimize dripping. It is often used in marketing, the sales guys harp about the "suck back" drip prevention feature.

So.... if his servo is looking for -10 / + 10, the best solution may be to purchase a signal converter, that has 0-10 as an input and -10/+10 as an output. I've never used the Compact Logix's platform, don't know if there is a -10/10 output card available or not.


good explanation, i do not have the correct vocabulary to describe well the process ! for my case it is only electrical motor, wa have done this application on siemens, and Omron
BaxtersDad
1769-IF4XOF2 will do +/- 10 VDC out. Check the property tab on the module channel of interest. There should be a drop down selection for output configuration.
mos89
QUOTE(BaxtersDad @ Oct 24 2007, 02:51 PM) [snapback]60852[/snapback]

1769-IF4XOF2 will do +/- 10 VDC out. Check the property tab on the module channel of interest. There should be a drop down selection for output configuration.



in the documentation theu sais 0 to 10v
Ken Moore
The IF4XOF2 doesn't have the output configuration feature.
Best solution may be to install a 1769-OF2, they do support -10/+10
BaxtersDad
I guess the selection guide that I referenced has an error. sad.gif
Mia copa.......
mos89

answer today from tech support: no +/-10V with this device.

I need to buy a new one...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.