Parker Hannifin GEM6K Networking with Other 6K or Gem6K Products Peer-to-Peer, Milliseconds

Page 12

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. Each device can broadcast 8 pieces of information using “shared output” variables (VARSHO1 through VARSHO8). The following table lists the information you can assign to a “shared output” variable.

A

Acceleration

NMCY...

Master cycle number

AD

Deceleration

OUT

Output status

ANI

Analog input voltage

PANI...

Analog input position

ANO

Analog output voltage

PC

Commanded position

AS

Axis status

PCC

Captured command pos.

ASX

Extended axis status

PCE

Captured encoder pos.

D

Distance

PCME...

Captured master enc. pos.

DAC

DAC output value

PE

Encoder position

DKEY ...

RP240 keypad value

PER

Position error

ER

Error status

PMAS...

Position of Master

FB

Feedback device pos.

PME

Master encoder pos.

FS

Following status

PSHF...

Net position shift

IN

Input status

PSLV...

Follower pos. command

INO

Enable input status

SC

Controller status

LIM

Limit input status

SCAN...

PLC scan time

MOV

Axis moving status

SEG

Free segment buffers

SS..........System status

SWAP

......Task swap assignment

TASK

......Task number

TIM

Timer value

TRIG

......Trigger interrupt status

US

User-defined status

V............Velocity

VARI

Integer variable

VARB

Binary variable

VEL

Commanded velocity

VELA

Actual velocity

VMAS

Velocity of the master

VARSHI .Shared input variable

 

The data can be either binary, as in the AS (axis status) operand, or a 32-bit unscaled integer, as

 

in PE (encoder position) operand. The data stored in the VARSHO is not scaled.

 

The NTRATE command sets the rate at which each controller broadcasts its updated VARSHO

 

data. RECOMMENDATION: Set all devices to broadcast at the same NTRATE rate of 50

 

milliseconds.

Setup

For 6K or Gem6K sending and/or receiving information via the Peer to Peer feature:

1.Connect the 6K/Gem6K products to the network and configure each 6K/Gem6K for Ethernet communication according to the procedures on page 4.

2.Set the broadcasting rate with NTRATE command, preferably the same for each unit.

3.If the unit is to receive data only (not send) you are finished with the setup for that unit. If the unit is to send also, complete steps 4 and 5.

4.Assign a unique unit number (1-8) with the NTID command.

5.Assign data to the eight broadcast variables with the VARSHO command.

6.Repeat steps 2-5 for each unit in the peer-to-peer network.

Example

First 6K or Gem6K:

 

 

 

 

 

 

 

 

 

NTID1

; Assign this unit a

peer-to-peer unit

number of 1

 

VARSHO1 = 1A

;

Shared

variable

#1

contains

axis

1's

acceleration

 

VARSHO2 = 1PE

;

Shared

variable

#2

contains

axis

1's

encoder position

;***********************************************************************

;* Use this space to define shared output variables VARSHO3 – VARSHO7. *

;***********************************************************************

VARSHO8 = VARI1 ; Shared variable #8 contains the value of VARI1

NTRATE50 ; Set the broadcasting rate to 50 milliseconds

Second 6K or Gem6K:

NTID2

; Assign this unit an ID of 2

 

1's

programmed distance

VARSHO1 = 1D

;

Shared

variable

#1

contains axis

VARSHO2 = 3PE

;

Shared

variable

#2

contains

axis

3's

encoder position

;***********************************************************************

;* Use this space to define shared output variables VARSHO3 – VARSHO7. *

;***********************************************************************

VARSHO8 = 1ANI.1 ; Shared variable #8 contains the voltage value at analog

page 8

Image 12
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 Networking Guidelines DevicePing Configuring the 6K for Ethernet Communication Setting TCP/IP Properties and Static MappingPreparing the Controller over RS-232 Changing the 6K’s IP Address or Subnet MaskPage Connecting the 6K to the PC through Ethernet Arp -s 192.168.10.30 0-90-55-0-0-1Networking with Other 6K or Gem6K Products Peer-to-Peer MillisecondsCommunication according to the procedures on Then the command would be 3NTIP2,172,20,34,170Networking 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 Command would be 3NTIP1,172,20,34,124 Networking with an Allen-Bradley SLC 5/05 PLCOPTO22 Ethernet I/O rack Provided belowNTFEN2 Reset 5NTCONN1VARB100-VARB103 5NTPOLL50Exchanging data automatically with the PLC. Here is how to HAB79VARB106 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 Type Syntax Units Range Default Response See Also NtidNetwork Sharing Unit ID for Peer-to-Peer Communication ProductNetwork I/O OPTO22 Configuration Ntio\OUT , \TANI, \TANO, \TIN, \TIO, \TOUT Type Syntax Units Range Default Response NtipNetwork IP Address Server TypeNtmprb Network Map Binary Variables for Reading from PLC ExampleNtmpwb Network Map Binary Variables for Writing to PLCNtmpri Network Map Integer Variables for Reading from PLC TNTS, TNTSF, VariNtmpwi Network Map Integer Variables for Writing to PLCVARI35-VARI49 WAITVARI40=22Ntpoll Network Polling RateRange n = Ntrate Network Sharing Rate for Peer-to-Peer CommunicationNtrate *NTRATE50 NTFEN, NTID, SYSPER, VARSHO, VarshiNetwork Program Select Enable NTSNtselp Network StatusDefault Response See Also NtwritNetwork Write Ascii String to DVT Camera Tnts TntsfTransfer 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 \ANO Network Analog Output Status\IN Network Digital Input StatusNTIO, \TIN, \TIO, Varb \OUT Network Digital Output\OUT , NTIO, \TIO, \TOUT \OUT Network Digital Output StatusVARB9=2\3OUT \TANI Transfer Network Analog Input Status\TANO Transfer Network Analog Output StatusRange n = Default n/a \TIN\TIO Transfer Network Digital Input Status\TOUT Transfer Network Digital Output StatusDigital Outputs Analog Outputs