Hello Guest it is April 25, 2024, 02:59:29 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Kisssys

Pages: 1
1
Brains Development / Update DRO from Modbus
« on: October 20, 2008, 08:49:16 PM »
I programmed a PIC chip to be a mini ModBus and it seems to be working great

I created a little VB script to step thru to see how it's doing and it does just what I want, It  inputs 64,65,66,67 and assign's the correct values to the variables.
As you can see from the script I have a DRO assigned 1010 that it displays the XaxisRegister and it does that all correctly.

TabletXaxisPos = GetInput(64)/1000
TabletYaxisPos = GetInput(65)/1000
ButtonValue    = GetInput(66)
FlagValue      = GetInput(66)
SetOemDRO(1010,TabletXaxisPos)

All of the script works fine!!!

I am trying to write a brain to automatically update the DRO instead of a macropump and I'm not having any luck.

My brain shows MOD:4-P:64     Formula = A/1000     OEMDRO:1010    I divide by 1000 to scale the 0 to 12000 input to inches

My Mod bus is Address 01  and its the first 4 registers.  I must be doing something wrong in the Mod bus definition somewhere but can't see it.

I'm trying to display my Graphics Tablet on the Screen

Kisssys



2
VB and the development of wizards / Loading Code from another program
« on: September 20, 2008, 10:35:14 PM »
I am going to write a small program in Visual basic to take position data from an old graphics tablet and convert it directly to G-code to cut small pieces of
metal on my Plasma cutter.

What is the easiest way to automatically download the new file directly to Mach3.  I could make it so it would act like notepad and accept the file and when modified download
it back to Mach3,  I need Mach 3 to call the program with a different file name each time and I'm not sure how to do that with the OEM call.

If I need to use the SDK ok but I'm pretty green at VB programing and especially about DLL's etc.

Any help on a wizard or Script would be greatly appreciated

Kisssys

Pages: 1