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 = |
|
| |
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
Saved in Non-Volatile Memory
This command is saved in the controller’s
Implementation process for
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
5.Assign data to the broadcast variables (up to eight) with the VARSHO command.
6.Repeat steps
Example:
;*************************************************************************************
;CONNECT TO 6K UNIT #1 AND SEND THE FOLLOWING SETUP COMMANDS
NTID1 | ; Assign this unit a | #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 | intervals |
;*************************************************************************************
;*************************************************************************************
;CONNECT TO 6K UNIT #2 AND SEND THE FOLLOWING SETUP COMMANDS
NTID2 | ; Assign this unit a | #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 |
;*************************************************************************************
;*************************************************************************************
;CONNECT TO 6K UNIT #3 AND SEND THE FOLLOWING SETUP COMMANDS
NTRATE50 | ; Unit #3 will broadcast at |
;This third unit will receive data only. Therefore, it does
;not require a unit ID number or VARSHO data assignment.
;*************************************************************************************
page 18