Parker Hannifin GEM6K manual Configuring the 6K for Ethernet Communication

Page 9

Configuring the 6K for Ethernet Communication

Step 1— Preparing the Controller over RS-232

There are three major steps in setting up Ethernet communication between a PC and controller:

Step 1 prepares the 6K for Ethernet communication, and must be performed using RS-232 communication.

Step 2 sets the TCP/IP properties on your PC to allow Ethernet communication, and statically maps the 6K’s MAC address to the IP address of the Ethernet card in your PC. The static mapping eliminates the PC’s need to ARP the controller, which reduces communication overhead.

Step 3 connects the PC to the 6K via the Ethernet.

1.Connect the 6K controller to your network (refer to Networking Guidelines on page 3).

2.Establish an RS-232 communication link between the 6K and your computer (connect to the 6K’s “RS-232” connector according to the instructions in the 6K Installation Guide).

3.Install Motion Planner on your computer, and launch Motion Planner. Click on the Terminal tab to view the terminal emulator.

4.In the Terminal window, click on the button to view the Communications Settings dialog. Select the Port tab and select the COM port that is connected to the 6K’s “RS-232” connector (see Step 2 above). Click OK.

5.In the Terminal window, enable Ethernet communication:

a.If you are using the 6K as a server or client, type the NTFEN2 command and press ENTER, then type the RESET command and press ENTER.

b.If you are using the 6K in a peer-to-peer connection with another 6K or Gem6K, type the NTFEN1 command and press ENTER, then type the RESET command and press ENTER.

Step 2—Setting TCP/IP Properties and Static Mapping

Changing the 6K’s IP

Address or Subnet Mask

The factory default 6K IP address is 192.168.10.30; the default mask is 255.255.255.0.

If the default address and mask are not compatible with your network, you may change them with the NTADDR and NTMASK commands, respectively (see 6K Series Command Reference for details on the NTADDR and NTMASK commands). To ascertain the 6K’s Mac address, use the TNTMAC command. The NTADDR, NTMASK and TNTMAC commands may be sent to the 6K controller over an RS-232 interface (see Steps 4-6).NOTE: If you change the 6K’s IP address or mask, the changes will not take affect until you cycle power or issue a RESET command.

1.Connect the 6K controller to your network (refer to Networking Guidelines on page 3).

2.Install your Ethernet card and configure it for TCP/IP protocol. Refer to your Ethernet card’s user documentation for instructions. (If you need to change the 6K’s IP address or subnet mask, refer to the note on the left.)

3.(see illustration below) Configure your Ethernet card’s TCP/IP properties so that your computer can communicate with the 6K controller.

a.Access the Control Panels directory.

b.Open the Network control panel.

c.In the Network control dialog, select the Configuration tab (95/98) or the Protocols tab (NT) and double-click the TCP/IP network item to view the TCP/IP Properties dialog.

d.In the TCP/IP Properties dialog, select the IP Address tab, select “Specify an IP Address”, type in 192.168.10.31 in the “IP Address” field, and type in 255.255.255.0 in the “Subnet Mask” field.

e.Click the OK buttons in both dialogs to finish setting up your computer’s IP address.

page 5

Image 9
Contents Ethernet Networking for 6K and Gem6K User Information Ethernet Networking Page Setup Wizard Available OverviewExample Direct Connect to One Server Example Direct Connect to PC Device Networking GuidelinesPing Setting TCP/IP Properties and Static Mapping Configuring the 6K for Ethernet CommunicationPreparing the Controller over RS-232 Changing the 6K’s IP Address or Subnet MaskPage Arp -s 192.168.10.30 0-90-55-0-0-1 Connecting the 6K to the PC through EthernetMilliseconds Networking with Other 6K or Gem6K Products Peer-to-PeerThen the command would be 3NTIP2,172,20,34,170 Communication according to the procedures onNetworking with OPTO22 Snap I/O Set see ER, TER, TerfNtio command to specify the type of module in that position InputsNetwork Server # Networking with a DVT Vision System Is set see ER, TER, TerfModule # on Server n Range Networking with an Allen-Bradley SLC 5/05 PLC Command would be 3NTIP1,172,20,34,124OPTO22 Ethernet I/O rack Provided below5NTCONN1 NTFEN2 ResetVARB100-VARB103 5NTPOLL50HAB79 Exchanging data automatically with the PLC. Here is how toVARB106 PLCError Conditions Error messages related to Ethernet networkingError Response Possible Cause Related Error Status register bits are noted below Ntconn Network ConnectER, TER, and Terf Ntid Type Syntax Units Range Default Response See AlsoNetwork Sharing Unit ID for Peer-to-Peer Communication ProductNtio Network I/O OPTO22 Configuration\OUT , \TANI, \TANO, \TIN, \TIO, \TOUT Ntip Type Syntax Units Range Default ResponseNetwork IP Address Server TypeExample Ntmprb Network Map Binary Variables for Reading from PLCNetwork Map Binary Variables for Writing to PLC NtmpwbTNTS, TNTSF, Vari Ntmpri Network Map Integer Variables for Reading from PLCNetwork Map Integer Variables for Writing to PLC NtmpwiVARI35-VARI49 WAITVARI40=22Ntpoll Network Polling RateRange n = Network Sharing Rate for Peer-to-Peer Communication NtrateNtrate *NTRATE50 NTFEN, NTID, SYSPER, VARSHO, VarshiNTS Network Program Select EnableNtselp Network StatusDefault Response See Also NtwritNetwork Write Ascii String to DVT Camera Tntsf TntsTransfer Network Status Transfer Network Status full-text reportDefault n/a VarshiShared Input Variable for Peer-to-Peer Data Exchange Range i = Default n/a VarshoShared Output Variable for Peer-to-Peer Data Exchange Output variable #1 This code is executed on unit #2 \ANI Network Analog Input Voltage StatusNTIO, \TANI, \TIO, VAR \ANO Network Analog Output\ANO , NTIO, \TANO, \TIO Network Analog Output Status \ANO\IN Network Digital Input StatusNTIO, \TIN, \TIO, Varb \OUT Network Digital Output\OUT , NTIO, \TIO, \TOUT \OUT Network Digital Output StatusVARB9=2\3OUT Transfer Network Analog Input Status \TANITransfer Network Analog Output Status \TANO\TIN Range n = Default n/a\TIO Transfer Network Digital Input StatusTransfer Network Digital Output Status \TOUTDigital Outputs Analog Outputs