Ntid – Parker Hannifin GEM6K User Manual
Page 22
NTID
Network Sharing Unit ID for Peer-to-Peer Communication
Type:
Network
Product Rev
Syntax:
NTID
Units:
n/a
Range:
i = 0-8
Default:
i = 0 (receive variable data only, do not send variable data)
Response:
NTID *NTID2
See Also:
NTRATE, VARSHI, VARSHO
6K 5.3
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
; input #1 on I/O brick #1
NTRATE50
; 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