Ray,
That sound very nice indeed!! Sorry if I came across a "Critical", it was NOT meant that way at all.
Looking forward to your work.
OH ONE more thing, Since your doing modbus PLEASE ask Brian if you can get VB control like this to both
Serial and TCP Modbus (TCP currently has NO VB access, and Serial modbus VB was for the OLD style NON-serial plugin modbus.
(let me know if you need help in that area, some of those functions where ones I asked Art to add a long time ago).
Perhaps VB formats for Modbus like this for both Serial Plugin Enabled, and TCP.
For the Serial Plugin Modbus (both full Words and Bit of word): short = 16 bits
'Word get and set funcitions:
GetModSerial(short Cfg#, short LocalVar#)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127.
Returns: a Short that is the value of that register (local var).
SetModSerial(short Cfg#, short LocalVar#, short Value)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127
'Value is the 16 bit value in decimal.
'Bit of Word get and set functions:
GetModSerialBit(short Cfg#, short LocalVar#, short GetBit)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127,
'GetBit is the bit number you want 0-15
Returns: a BOOL that represents that bit in the words value.
SetModSerialBit(short Cfg#, short LocalVar#, short SetBit, BOOL BitVal)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127
'SetBit is the bit number you want 0-15 to set,
'BitVal is the value you want that bit to be 0 or 1.
For the TCP Plugin Modbus (both full Words and Bit of word): short = 16 bits
'Word get and set funcitions:
GetModTCP(short Cfg#, short LocalVar#)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127.
Returns: a Short that is the value of that register (local var).
SetModTCP(short Cfg#, short LocalVar#, short Value)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127
'Value is the 16 bit value in decimal.
'Bit of Word get and set functions:
GetModTCPBit(short Cfg#, short LocalVar#, short GetBit)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127,
'GetBit is the bit number you want 0-15
Returns: a BOOL that represents that bit in the words value.
SetModTCPBit(short Cfg#, short LocalVar#, short SetBit, BOOL BitVal)
'Cfg# is what configuration 0-63,
'LocalVar# is what register in that config 0-127
'SetBit is the bit number you want 0-15 to set,
'BitVal is the value you want that bit to be 0 or 1.
scott