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

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Howto send DRO Axis information?
Pages: « 1 2   Go Down
Print
Author Topic: Howto send DRO Axis information?  (Read 6053 times)
0 Members and 2 Guests are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #10 on: January 11, 2008, 01:55:35 PM »

Peter,

    Yes, I understand what he was wanting, I was trying to find a way to use the Modulus function in the VB macro pump so I could seperate the Whole number and the remainder number and put them each in thier own register. Then send those two values out to two seperate user registers, then combine them back with a "Addition" block at the target device.

   I just have been to buzy latley to really spend the time trying to get his numbers seperated and sent out.
BTW: Thanks for you most excellent explaination of the Modbus info.

scott
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/
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #11 on: January 11, 2008, 01:57:03 PM »

Another option you may be able to Use Bit masking techniques to sperate out the two parts as well, then send them sepratly also.

scott
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/
jimmybondi
Active Member

Offline Offline

Posts: 29



View Profile
« Reply #12 on: January 24, 2008, 04:37:58 AM »

Hi,

it takes only a few minutes to show the DRO on LCD via modbus.
But what you see is only a screenshot of the LCD-Simu because i'm not able to program
SPI on my PLC :-(

in the background Mach3 and foreground my notebook with simulated LCD of the PLC:


* DRO4.jpg (46.6 KB, 406x660 - viewed 369 times.)
Logged
DennisCNC
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #13 on: January 24, 2008, 05:10:48 PM »

^^ Could you share the cubloc code to do that?
Logged
manmeran
Active Member

Offline Offline

Posts: 241


View Profile
« Reply #14 on: October 19, 2010, 04:13:47 PM »

i sent DRO position via macropump and serial port on Lcd.
but i decide use Modbus ,similar "jimmybondi"
Please explain .this thread remained without conclusion.


Amir
Logged

**Even a clock that does not work is right twice a day**
manmeran
Active Member

Offline Offline

Posts: 241


View Profile
« Reply #15 on: October 20, 2010, 10:31:49 AM »

this is solution.
we can send each axis via modbus with 4 register(4 byte)
2 byte for int and 2 byte decimal
up 65536.65536
i think is enough Grin

Amir


* DRO modbus.jpg (35.13 KB, 1152x96 - viewed 168 times.)
Logged

**Even a clock that does not work is right twice a day**
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #16 on: October 22, 2010, 08:41:57 PM »

Quote
Another option you may be able to Use Bit masking techniques to sperate out the two parts as well, then send them sepratly also.

scott
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/
Pages: « 1 2   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!