ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

serial IO not working

Solved!
Go to solution

hello guys,

my IO module which controls several relays and sensors through a rs485 to rs232 convertor, is not working with vision builder serial io step. it's working on its own interface but when I send the same command from vision buider it does not respond.

of course the commands on interface are on ascii code but vision builder sends hexadecimal so I converted the ascii codes to hexadecimal and it's not working.

the way i converted the code is this:

@011=40h 30h 31h 31h

so I sent 40303131 to the device instead of @011.

0 Kudos
Message 1 of 2
(3,192 Views)
Solution
Accepted by lightgoal

Perhaps you need to add a carriage return and/or line feed character at the end.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 2 of 2
(3,185 Views)