Page 1
Automation Ethernet Networking for 6K and Gem6K Effective: February 11, 2002...
Page 2
Since Parker Hannifin constantly strives to improve all of its products, we reserve the right to change this user guide and software and hardware mentioned therein at any time without notice.
Ethernet Networking User Instruction Material Contents Ethernet Networking ......................1 Overview ......................1 Networking Guidelines...................3 Configuring the 6K for Ethernet Communication ..........5 Networking with Other 6K or Gem6K Products (Peer-to-Peer) ......8 Networking with OPTO22 SNAP I/O ..............9 Networking with a DVT Vision System ...............11 Networking with an Allen-Bradley SLC 5/05 PLC ..........12 Error Conditions ....................15 Command Descriptions ....................17...
Ethernet Networking Overview The 6K is equipped for Ethernet communication. It includes 10Base-T (10Mbps twisted pair); TCP/IP protocol. RJ-45 connector. Default IP address is 192.168.10.30. You have these options for networking the 6K over Ethernet: • 6K as a client. You can connect the 6K via Ethernet to multiple devices, creating a client/server network.
Page 6
• 6K as a server. The 6K waits for a PC to establish a connection with it and then provides information on a continual or requested basis. The PC communicates with the 6K using the COM6SRVR Communications Server, which is also what Motion Planner uses to communicate with the 6K (for details, refer to the COM6SRVR Communications Server Programmer’s Reference).
• Peer-to-peer network with other 6K or Gem6K units. The 6K may be connected to other 6K devices (6K Controllers or Gem6K drive/controllers) via Ethernet. Up to eight Setup Wizard Available 6K devices may be networked in this manner. This type of connection uses UDP The Motion Planner broadcasting and is not a client/server relationship.
Page 8
• If the 6K is placed on an open network, put the 6K and any associated server devices on one side of an Ethernet network switch with its own subnet and install a bridge to filter traffic, such that broadcast traffic does not pass in either direction (see diagram below).
Configuring the 6K for Ethernet Communication 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.
Page 10
If you are using Windows NT, select the “Protocols” tab. Make sure this number is different from the one in the 6K’s IP address. If the 6K’s default IP address is unchanged (192.168.10.30), then select a number other than 30. NOTE If you are using a computer (Ethernet card) that is normally connected to a network, you should write...
Page 11
At the DOS prompt, type the command (see example below) and press ENTER. arp –s Spaces (press the space bar) arp –s 192.168.10.30 0-90-55-0-0-1 192.168.10.31 6K’s IP Address 6K’s Ethernet Address IP Address of Ethernet Card (from TNT report) (from TNT report) To verify the mapped addresses, type the command and press ENTER.
Networking with Other 6K or Gem6K Products (Peer-to-Peer) You can communicate information between 6Ks and Gem6Ks over Ethernet. This feature uses UDP broadcasting over the subnet to transfer data, so no client/server connection is needed. Up to 8 different 6K or Gem6K devices can share information, with each device having access to shared data from the 7 other devices.
; input 1 on I/O brick 1 NTRATE50 ; Set the broadcasting rate to 50 milliseconds Third 6K or Gem6K: NTRATE50 ; Set the broadcasting rate to 50 milliseconds ; This third unit will receive data only. Therefore, it does not require ;...
Page 14
command to specify the type of module in that position. NTIO n \ m NTIO <i> Network Server # Module Type. Options are: Range: 1-6 1 = Digital/Discrete Inputs 2 = Digital/Discrete Outputs 3 = Analog Inputs Module # on Server “n” 4 = Analog Outputs Range: 0-7 For example, if there is a digital input module in slot 0, then the command would be...
Output #1 Output #2 Output #3 Output #4 n \ m OUT b b b b Network Server # Range: 1-6 Options for “b” are: 1 = Turn on 0 = Turn off Module # on Server “n” x = Don’t Change Range: 0-7 For example (Server #3), to turn on outputs #1 and #4 and leave outputs #2 and #3 un- changed on module #2, type...
6NTIP3,172,34,54,150 ; Identify a DVT camera as Server #6, located at Example ; IP address 172.34.54.150. 6NTCONN1 ; Attempt the connection to Server #6 Program Once a connection has been established, you can write trigger commands to the camera using Interaction command.
Page 17
n NTMPRI i, i, i, i EXAMPLE: Network Server # Range: 1-6 • Allen-Bradley PLC is server #5 • The PLC’s integer data file 9 has 30 # of Allen-Bradley data file elements. Use data elements 15-29 (15 elements total) for integer data # of first element in AB data file that is to be shared with the 6K.
Page 18
Program After the connection is established, mapping has been set up, and polling enabled, the 6K starts Interaction exchanging data automatically with the PLC. Here is how to: • Write a binary variable to the PLC: Write a value to one of the variables in the VARB mapping.
Error Conditions Error Messages The 6K will transmit error message to alert you of certain error conditions. Following are the error messages related to Ethernet networking. Error Response Possible Cause CONNECTION COULD NOT BE CLOSED OR Tried to close the network server connection (nNTCONNØ) ALREADY CLOSED when the connection was already closed.
Error Response Possible Cause NTSELP ALREADY ENABLED ON THIS NTSELP, which enables program selection via OPTO22 TASK inputs, has already been enabled (if multitasking, it has been enabled for this specific Task). Tried to enable the internal Fieldbus Option card for OPTION CARD CAN NOT BE USED WITH ETHERNET - SEE NTFEN PROFIBUS or DeviceNet communication (6Kn-PB and 6Kn-...
Command Descriptions NTCONN Network Connect Type: Network Product Syntax: <!><n>NTCONN<b> Units: n = network server # b = Enable bit Range: n = 1-6 b = 0 (disconnect) or 1 (connect) Default: n = 1 b = 0 Response: 1NTCONN: *1NTCONN0 See Also: ER, NTIP, [ NTS ], TER, TERF, TNTS, TNTSF...
NTID Network Sharing Unit ID for Peer-to-Peer Communication Type: Network Product Syntax: <!>NTID<i> Units: Range: i = 0-8 Default: i = 0 (receive variable data only, do not send variable data) Response: NTID *NTID2 See Also: NTRATE, VARSHI, VARSHO command establishes the Network Unit ID for a 6K unit involved in a peer-to-peer Ethernet connection with NTID other 6K or Gem6K products.
NTIP Network IP Address Type: Network Product Syntax: <!><n>NTIP<i>,<i>,<i>,<i>,<i> Units: n = network server # i = Server type i = IP address octet1 i = IP address octet2 i = IP address octet3 i = IP address octet4 Range: n = 1-6 i = 1-3 (1 = Allen-Bradley PLC, 2 = OPTO22, 3 = DVT camera) i through 5...
NTMPRB Network Map Binary Variables for Reading from PLC Type: Network Product Syntax: <!><n>NTMPRB<i>,<i>,<i>,<i> Units: n = network server # i = Allen Bradley data file # i = # of the 1 element in data file (beginning of range) i = # of the elements to include in range i = # of the 1 binary (VARB) variable in the 6K to map to...
; IP address 172.54.125.34 2NTCONN1 ; Attempt connection to network server #2 2NTMPRB3,15,15,35 ; File 3, elements 15-29, in the AB PLC are mapped to ; the 6K's binary variables VARB35-VARB49 2NTPOLL50 ; Start polling network server #2, set interval to 50 ms WAIT(VARB40=b1111111100000000) ;...
Control over Polling: If you want to stop the 6K from writing binary data to the PLC, but continue to exchange NTMPRI data, use the command. If you need to stop polling all mapped variables, use the NTMPWI NTMPRB NTMPWBi,i,0,i command.
Potential Error Conditions: • You are not allowed to map the same 6K variables for read and write functions. Nor are you allowed to map VARI the same 6K variables to another PLC. If you attempt either of these conditions, the 6K will not accept the VARI command and will transmit the error message “...
3. Map a range of integer elements in the AB PLC to a range of integer ( ) variables in the 6K ( VARI NTMPWI command). 4. Start polling the AB device at a specific polling interval ( command). This updates integer data elements NTPOLL in the AB PLC with the data from the mapped variables in the 6K.
command is not saved in the 6K’s non-volatile memory. If you wish the 6K to re-establish the polling NTPOLL NTPOLL rate when you cycle power or issue a , put the command in the startup program assigned with the RESET command NTPOLL command.
[ NTS ] Network Status Type: Network; Assignment/Comparison Product Syntax: nTNTS<.i> Units: n = server # i = bit number of status register (see table below) Range: n = 1-6 i = 1-8 Default: Response: See Also: NTCONN, NTIP, NTPOLL, TNTSF Use the operand to assign the Network Status bits to a binary variable, or to make a comparison against a binary or hexadecimal value.
3. Start polling the PLC for integer data ( ). When the 6K polls the PLC, it will read the value of the mapped NTPOLL Element into the associated 6K integer variable ( VARI 4. Use the command to enable the Network Program Select mode and identify the 6K integer variable ( NTSELP VARI to supply the program selection number.
2NTIP3,172,54,125,34 ; Network server #2 a DVT camera at IP address 172.54.125.34 2NTCONN1 ; Attempt connection to the DVT camera 2NTWRIT"P134" ; Write the string "P134" to the DVT camera TNTS Transfer Network Status Type: Product Network Syntax: <!><n>TNTS<.i> Units: n = server # i = bit number of status register (see table below) Range:...
*Connection Open YES NO *Server Connection Error *In Polling Mode YES NO *Polling Timeout Error *Reserved *Reserved *Reserved *Reserved VARSHI Shared Input Variable for Peer-to-Peer Data Exchange Type: Variable; Network Product Syntax: <!><n>VARSHI<i> (see diagram below for assignment syntax) Units: n = unit number in the peer-to-peer network;...
;**** This code is executed on unit #2: ************************** NTID2 ; Set unit ID to 2 NTRATE100 ; Set the sharing rate to 100ms and enable this unit VAR1=1VARSHI1 ; Load the value of unit #1's first shared data (1PE) into VAR1 WRITE"AXIS 1 AT POSITION"...
Page 37
Example: This example uses peer-to-peer communication with three 6K8 products. ;**** This code is executed on Peer unit #1: ************************** NTID1 ; This unit is the "primary unit" (unit #1) NTRATE100 ; Set the sharing rate to 100ms and enable this unit VARSHO1=1PE ;...
[ \ANI ] Network Analog Input Voltage Status Type: Network; Assignment or Comparison Product Syntax: n\mANI.i (see example below) Units: n = network server # m = module # i = analog input # on module “m” Range: n = 1-6 m = 0-7 j = 1-2 Default:...
\ANO Network Analog Output Type: Network Product Syntax: <!>n\mANO.i=r Units: n = network server # m = module # i = analog output # on module “m” r = voltage value (VDC) Range: n = 1-6 m = 0-7 i = 1-2 r = -10.00 to +10.00 Default: Response:...
[ \ANO ] Network Analog Output Status Type: Network; Assignment or Comparison Product Syntax: n\mANO.i (see example below) Units: n = network server # m = module # i = analog output # on module “m” Range: n = 1-6 m = 0-7 j = 1-2 Default:...
[ \IN ] Network Digital Input Status Type: Network; Assignment or Comparison Product Syntax: n\mIN<=Bbbbb> (see example below) n\iIN.i (see example below) Units: n = network server # m = module # i = digital input # on module “m” (for bit-select operation) Range: n = 1-6 m = 0-7...
\OUT Network Digital Output Type: Network Product Syntax: <!>n\mOUT<b><b><b><b> <!>n\mOUT.i-b Units: n = network server # m = module # b = enable bit i = digital output # on module “m” Range: n = 1-6 m = 0-7 b = 1 (turn on), 0 (turn off), or X (don’t change) i = 1-4 Default: n\mOUT0000...
[ \OUT ] Network Digital Output Status Type: Network; Assignment or Comparison Product Syntax: n\mOUT<=Bbbbb> (see example below) n\iOUT.i (see example below) Units: n = network server # m = module # i = digital output # on module “m” (for bit-select operation) Range: n = 1-6 m = 0-7...
\TANI Transfer Network Analog Input Status Type: Network; Transfer Product Syntax: <!>n\mTANI<.i> Units: n = network server # m = module # i = analog input # on module “m” (for bit-select operation) (The response represents volts DC.) Range: n = 1-6 m = 0-7 i = 1-2 Default:...
\TANO Transfer Network Analog Output Status Type: Network; Transfer Product Syntax: <!>n\mTANO<.i> Units: n = network server # m = module # i = analog output # on module “m” (for bit-select operation) (The response represents volts DC.) Range: n = 1-6 m = 0-7 i = 1-2 Default:...
\TIN Transfer Network Digital Input Status Type: Network; Transfer Product Syntax: <!>n\mTIN<.i> Units: n = network server # m = module # i = digital input # on module “m” (for bit-select operation) Range: n = 1-6 m = 0-7 i = 1-4 Default: Response:...
DIGITAL OUTPUTS 0001 ANALOG OUTPUTS +10.000, -4.456 DIGITAL INPUTS 1110 ANALOG INPUTS +6.753, +0.000 \TOUT Transfer Network Digital Output Status Type: Network; Transfer Product Syntax: <!>n\mTOUT<.i> Units: n = network server # m = module # i = digital output # on module “m” (for bit-select operation) Range: n = 1-6 m = 0-7...
Need help?
Do you have a question about the 6K Series and is the answer not in the manual?
Questions and answers