6K Software - Connection to the 6K with Visual C++
Please refer to Chapter 2 pgs 34-46 of the 6k Programmers Guide for more information about the 6k Communications Server.
http://www.parkermotion.com/manuals/6k_manuals.htm#6Kpg
This is an example of connecting to the 6k via Ethernet.
Note:The 172.20.34.145 is the address of the 6k which can be found by a NTADDR command from the terminal of Motion Planner.
/*create an object variable, initialize it to an Ethernet
interface and make a connection */
Inet commserver;
commserver.CreateDispatch ("COM6SRVR.NET");
commserver.connect("172.20.34.145");
This is an example of connecting to the 6k via RS232. There is also a serial communications example on our website called WIN32SERIAL.ZIP.
http://www.parkermotion.com/support_samples.htm#6K
/*create an object variable, initialize it to an RS-232
interface and make a connection to PC COM1 */
IRS232 MyMachine;
MyMachine.CreateDispatch("COM6SRVR.RS232");
MyMachine.connect(2);