Electro_gab wrote:
> I'm trying to create a VI to speak with a trio motion controller
> 216. It is using MODBUS protocol over serial port. I downloaded
> the laview 7.1 modbus library and tried the "mb serial master query.vi"
> to try to read some of the registers but it gives me "Error 6101
> occurred at Timeout Error" i want to "read holding register" at address
> 1 and the header is 4x. Can somedy help me on that please
>
>
> My Trio mc216.vi:
> http://forums.ni.com/attachments/ni/170/151936/1/My Trio mc216.v
Hi,
You'll find that the MC216 has a USB interface. There is a TRIO driver
that works fine with LabVIEW (and VB etc) - Check out the TRIO site
(www.triomotion.com)
Using this control, you can read/write VR's, and look at Inputs etc.
I've used this successfully on VB based front-ends, but also with
LabVIEW.
I cannot help with the Modbus problem, other than ask you to check that
you've set up the com port of the MC216 using the SETCOM command.
You may also find that the holding registers are mapped through to
TRIO's VR variables - not the I/O. (Its simple to write a task to map
Inputs to a VR though)
I hope this is some help,
Regards,
Jason