03-19-2014 09:47 PM - edited 03-19-2014 09:48 PM
Hello,
Just wondering if anyone can point me in the right direction for establishing a connection between LabView (2013) and GE FANUC PLC CPU 331. The (attempted) connection is made as follows:
PC->RS232 COM1 Port (9-Pin DSub)->HornerElectric SNP to RS232 Converter(9P to 15P)->PS Port 1(15P).
I have tried many different methods of sending the "Attach" message with no success (i.e. .NET serial port constructor, VISA). I referenced the SNP Manual (GFK-0529C) to use the 24B attach message and renamed my test bench PLC SNP ID to "33101A" to match the sample attach message of
(in hex) "1b 52 33 33 31 30 31 41 00 00 30 41 00 00 30 41 30 30 30 20 20 20 17 00 00 00 45 37". I have even gone as far as to install a serial port monitor and capture the packets sent while using the native NI OPC Server for SNP & SNPX protocol. I tried using the attach command sent in that session as well with no success.
Additional info:
Baud: 19200
Parity: ODD
Stopbit: 1
ControlFlow: (tried) RTS and none
Databits: 8
I have attached one of the proof of concept vis. As a disclaimer, I modified most of the Serial continuous Read and Write and did not pay any attention to the layout or organization.
03-24-2014 03:09 PM
Are you getting a specific error code? Can you send a simple Identitify command to the hardware to see if you can successfully conenct to it?
03-26-2014 05:36 PM
Thanks for the response. I have since figured out what the problem was and for any future developers that want to get SNP/X working, i referenced Figure 8-5 from GFK-0582D Serial Communication User's manual to make my own cable to the CMM311 module. Once I had that installed and sent a long break prior to my attach message, everything came together nicely and I am now successfully reading memory addresses and performing system commands.
02-09-2015 09:17 AM
Frankly speaking it is OPC driver for SNP what warks well but if you whant make connection by hand You shold know about long break Keep TX high 10ms and after that 150ms low after that send Attach message