Hello Guest it is March 28, 2024, 05:09:07 PM

Author Topic: G100 A/d inputs  (Read 3818 times)

0 Members and 1 Guest are viewing this topic.

G100 A/d inputs
« 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

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: G100 A/d inputs
« Reply #1 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
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: G100 A/d inputs
« Reply #2 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
fun times
Re: G100 A/d inputs
« Reply #3 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