Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:28:44 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  "MPG1 Count" and "MPG TickCount" ... which is the function of each?
Pages: 1   Go Down
Print
Author Topic: "MPG1 Count" and "MPG TickCount" ... which is the function of each?  (Read 529 times)
0 Members and 1 Guest are viewing this topic.
mundotronic
Active Member

Offline Offline

Posts: 2



View Profile WWW
« on: October 04, 2011, 03:01:54 PM »

Hello All! Cheesy

I am writing from Argentina and above all thanks for letting me participate in this wonderful forum.

I have developed my own Modbus controller board and it works very well, I call it the "MTBus1408" and has 14 inputs and 8 outputs.

One of the inputs is designed to connect a MPG (2-channel incremental encoder without index) and here comes my question ...

1- What is the function of "MPG Count" and "TickCount MPG"?
2- What values ​​can receive them?
3- 16-bit integers?

I made a simple brain with "MPG Count" only getting a 16-bit value from an Input Register and moving the selected axis work but intermittently and without meaning, sometimes increases and sometimes decreases position but turn the MPG in the same direction.

I leave a video demonstrating my Modbus controller board (Spanish).

<a href="http://www.youtube.com/v/LiZ4gDcGlFs" target="_blank">http://www.youtube.com/v/LiZ4gDcGlFs</a>

I hope somebody guidance on this so that the motion of each axis to be continuous.

Thank you and good Millings!

PD: Sorry, I'm speak a very poor english Roll Eyes
Logged

poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: October 05, 2011, 06:34:34 PM »

MPG Tick is for your hardware to send in the value of a timer, this timer reference allows mach 3 to see how far you have moved in counts an MPG so It can know your velocity.

MPG Count is for the actual counts that your encoders from your hardware send into mach.
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
mundotronic
Active Member

Offline Offline

Posts: 2



View Profile WWW
« Reply #2 on: October 06, 2011, 04:12:22 PM »

Hello poppabear, thanks for reply.

See if I understand ....

"MPG TickCount" receives the time in milliseconds between MPG ticks and "MPG Count" receives a positive or negative value depending on the direction of rotation.

This is so?.

Sorry to ask so many questions but I want to understand.

Thanks again.
Logged

Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!