question

HichamJAAFAR-9909 avatar image
0 Votes"
HichamJAAFAR-9909 asked ABIGAILBERKOWITZ-0247 commented

VB.net Serial Port write commands - No response from the machine

I have a pull test machine, connected with COM7 to my PC. I want to Xrite some commands and get the required answer from the machine.
The machine came with a manual for data communication. that says that after sending the command the key displayed on the screen are locked automatically. to release the key functions the command "free!" must be sent via the serial to the control unit.
sample command :
- free!
to release the locked keys

  • val?
    reslut +-XXXXX_N
    the command CR completes the transmission of mesured values.

Actualy i am only able to read data from the machine by pressing the print button on the machine screen. I want to be able to send commands to get the required result.

serialport.write("val?")
No result


Any help will be much appreciated.



dotnet-visual-basic
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @HichamJAAFAR-9909 ,
Could you please provide more code in the project?
It is difficult to identify the problem from the information you provided.

0 Votes 0 ·

"The machine came with a manual for data communication..." Can you give us specifics about the machine? A link to the manual you referenced would be helpful too.

0 Votes 0 ·

Hi @HichamJAAFAR-9909 ,
May I know if you have got any chance to check my reply? It will be great if you can share more detailed information for us to better investigate this issue. Thanks for your cooperation.

0 Votes 0 ·

I am dealing with something similar. I am trying to control the movement of a gauge from the PC. I connected it to the serial port and have the machine commands, but I do not know how to put the commands in my code.
Did you figure out the answer you needed?
Thanks

0 Votes 0 ·

0 Answers