Machsupport Forum

Third party software and hardware support forums. => dspMC/IP Motion Controller => Topic started by: nfloppy on April 04, 2011, 05:09:10 AM

Title: How to configure a MPG
Post by: nfloppy on April 04, 2011, 05:09:10 AM
Hi.

I'm sorry for my imperfect English.

I've started to use VitalSystem board with Mach3 in the University Laboratory for my degree.

We have problem to connect softencoder for MPG use.

Reading the guide I know that for the first MPG I can use pin 24 and 12 on J4, that means I must connect A and B channel of softencoder on I12 and I13 pin of 7535 board. (and 5V and ground of encoder on power pins of 7535)

Later, I must config MPG in Mach3. I've used the config panel directly from Config Plugin in the Setting Menu, on page 1, and also I have written in the xml section:

<MpgSource1>
             <Type>SoftEncoder</Type> <!—SoftEncoder or HardEncoder-->
             <Index>0</Index>
</MpgSource1>


In input/output page of Mach3 I set only MPG1 enabled, and unit/count in relative column, without setting numbers of ports and pins for A and B channel, as the manual says.

Now. Where's the error? How can I read pulse from the encoder?

Obviously, I write this topic because setting MPG mode on the jog, and selecting a axes, the machine doesn't move itself.

I tried to write VB script, or brains to read UserDRO 1330. Nothing.

We have controlled encoder separately, and it works.

Thanks for your answer.

Bye!
Title: Re: How to configure a MPG
Post by: Vital System Support on April 09, 2011, 02:43:18 PM
are you using the latest plugin and firmware available on the web page www.vitalsystem.com/dspmc (http://www.vitalsystem.com/dspmc)?  you do not need to edit any file.  all configuration is done inside the plugin.  read the mach3 chapter in the user manual.

regards,
Rufi