Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: newtocnc on August 06, 2007, 08:22:35 PM

Title: G100 A/d inputs
Post by: newtocnc on August 06, 2007, 08:22:35 PM
Hello,

Does anyone know how to read in g100 a/d inputs in vb.
and how to output data on D/A outputs.??

I am trying to build external FeedOverwrite pot.

Thanks
John
Title: Re: G100 A/d inputs
Post by: Chaoticone on August 06, 2007, 10:35:50 PM
I will try my best to look at this for you in a couple of days if no-one else has you straight. I'm running on a BOB right now and will be a couple of days before I finish the job it is running.

Brett
Title: Re: G100 A/d inputs
Post by: poppabear on August 07, 2007, 02:54:49 PM
Are you brining in the Inputs and outputs on the Modbus? If so, then use the:

y=GetInput(x)                        'x is the "Index number" of the modbus register your brining in
FeedOver=(y/*****) times 100              '****** this is your diverder it will be a number = to how many bits are in your register type (8, 12, or 16 bit), and give you a number 1-100
SetUserDRO(1200, FeedOver)        ' sets a user DRO to what your over ride is

SetModOutput(x, *****)              'This sets a 16 bit, word going out to "Index x", if you need to use less than 16 bits(native Modbus output is hex), use bit masking.

Scott
Title: Re: G100 A/d inputs
Post by: newtocnc on August 07, 2007, 04:24:34 PM
i AM USING G100.
 i DO NOT KNOW HOW TO ADRESS THE A/D AND D/A
OF G100.


LIKE

GET( CHANNEL1)
 WHAT IS THE ADRESS AND WHERE DOES THE DATA GO.??
OR SET (cHANNEL4(OF THE D\A)??
THANKS