Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication

How do I send and received words to a PLC through the COM port? The COM port is working fine as verified by using VB to control the PLC. And is there any quick and simple way to do a test in MAX?
0 Kudos
Message 1 of 2
(3,083 Views)
To use MAX, expand Devices and Interfaces>Ports. Right click on the port you want and select Open VISA Session. Click the Basic I/O tab on top and then either the Write or Read tab. You;ll notice that the deault command is the *IDN? query with a \n character. This is the line feed constant. In your VI, you are not sending any termination character and this is something that is normally required. Try either the line feed or carriage return. You will have to turn on '\' Codes Display for your string control in order to enter the actual control character or use the concatanate string with the constants you'll find on the String palette.
0 Kudos
Message 2 of 2
(3,083 Views)