Parker Hannifin GEM6K Ntid, Network Sharing Unit ID for Peer-to-Peer Communication, Product

Page 22

NTID

Type:

Syntax:

Units:

Range:

Default:

Response:

See Also:

Network Sharing Unit ID for Peer-to-Peer Communication

Network

Product

Rev

<!>NTID<i>

6K

5.3

n/a

 

 

 

i =

0-8

 

 

i =

0 (receive variable data only, do not send variable data)

 

NTID

 

*NTID2

 

NTRATE, VARSHI, VARSHO

The NTID command establishes the Network Unit ID for a 6K unit involved in a peer-to-peer Ethernet connection with other 6K or Gem6K products. Up to eight 6K or Gem6K products may be connected in the peer-to-peer network.

Saved in Non-Volatile Memory

This command is saved in the controller’s non-volatile memory, and is remembered on power-up and RESET.

Implementation process for peer-to-peer communication (further details are provided in the Programmer’s Guide):

1.Connect the 6K/Gem6K products to the network and configure each 6K/Gem6K for Ethernet communication according to the Ethernet Networking configuration procedures in the Programmer’s Guide.

2.Set the broadcasting rate with NTRATE command, preferably the same rate (50 milliseconds is recommended) 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 also send, complete steps 4 and 5.

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

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

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

Example:

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

;CONNECT TO 6K UNIT #1 AND SEND THE FOLLOWING SETUP COMMANDS

NTID1

; Assign this unit a

peer-to-peer unit

#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

;

Unit #1 will broadcast at 50-millisecond

intervals

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

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

;CONNECT TO 6K UNIT #2 AND SEND THE FOLLOWING SETUP COMMANDS

NTID2

; Assign this unit a

peer-to-peer unit

#2

VARSHO1 = 1D

;

Shared

variable

#1

contains

axis

1's

programmed distance

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

NTRATE50

;

input #1 on I/O

brick #1

;

Unit #2 will broadcast at 50-millisecond intervals

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

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

;CONNECT TO 6K UNIT #3 AND SEND THE FOLLOWING SETUP COMMANDS

NTRATE50

; Unit #3 will broadcast at 50-millisecond intervals

;This third unit will receive data only. Therefore, it does

;not require a unit ID number or VARSHO data assignment.

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

page 18

Image 22
Contents Ethernet Networking for 6K and Gem6K User Information Ethernet Networking Page Overview Setup Wizard AvailableExample Direct Connect to One Server Example Direct Connect to PC Networking Guidelines DevicePing Preparing the Controller over RS-232 Configuring the 6K for Ethernet CommunicationSetting TCP/IP Properties and Static Mapping 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 MillisecondsNetworking with OPTO22 Snap I/O Communication according to the procedures onThen the command would be 3NTIP2,172,20,34,170 Set see ER, TER, TerfInputs Ntio command to specify the type of module in that positionNetwork Server # Is set see ER, TER, Terf Networking with a DVT Vision SystemModule # on Server n Range OPTO22 Ethernet I/O rack Command would be 3NTIP1,172,20,34,124Networking with an Allen-Bradley SLC 5/05 PLC Provided belowVARB100-VARB103 NTFEN2 Reset5NTCONN1 5NTPOLL50VARB106 Exchanging data automatically with the PLC. Here is how toHAB79 PLCError messages related to Ethernet networking Error ConditionsError Response Possible Cause Related Error Status register bits are noted below Network Connect NtconnER, TER, and Terf Network Sharing Unit ID for Peer-to-Peer Communication Type Syntax Units Range Default Response See AlsoNtid ProductNetwork I/O OPTO22 Configuration Ntio\OUT , \TANI, \TANO, \TIN, \TIO, \TOUT Network IP Address Type Syntax Units Range Default ResponseNtip 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, VariVARI35-VARI49 NtmpwiNetwork Map Integer Variables for Writing to PLC WAITVARI40=22Network Polling Rate NtpollRange n = Ntrate *NTRATE50 NtrateNetwork Sharing Rate for Peer-to-Peer Communication NTFEN, NTID, SYSPER, VARSHO, VarshiNtselp Network Program Select EnableNTS Network StatusNtwrit Default Response See AlsoNetwork Write Ascii String to DVT Camera Transfer Network Status TntsTntsf Transfer Network Status full-text reportVarshi Default n/aShared Input Variable for Peer-to-Peer Data Exchange Varsho Range i = Default n/aShared Output Variable for Peer-to-Peer Data Exchange Output variable #1 This code is executed on unit #2 Network Analog Input Voltage Status \ANINTIO, \TANI, \TIO, VAR Network Analog Output \ANO\ANO , NTIO, \TANO, \TIO \ANO Network Analog Output StatusNetwork Digital Input Status \INNTIO, \TIN, \TIO, Varb Network Digital Output \OUT\OUT , NTIO, \TIO, \TOUT Network Digital Output Status \OUTVARB9=2\3OUT \TANI Transfer Network Analog Input Status\TANO Transfer Network Analog Output Status\TIO Range n = Default n/a\TIN Transfer Network Digital Input StatusDigital Outputs \TOUTTransfer Network Digital Output Status Analog Outputs