Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started 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
-
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
-
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
-
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