Parker Hannifin GEM6K manual Ntrate, Network Sharing Rate for Peer-to-Peer Communication

Page 31

The NTPOLL command is not saved in the 6K’s non-volatile memory. If you wish the 6K to re-establish the NTPOLL polling rate when you cycle power or issue a RESET command, put the NTPOLL command in the startup program assigned with the STARTP command.

Example:

; Identify network server #2 as

an Allen-Bradley PLC at

2NTIP1,172,54,125,34

2NTCONN1

; IP address 172.54.125.34

server

#2

; Attempt connection to network

2NTMPRI20,5,2,128

; File 20, variables 5 and 6 in

the AB

PLC are mapped to VARI128

2NTPOLL50

; and VARI129, respectively

 

interval to 50 milliseconds

; Start polling network server #2, set

NTRATE

Network Sharing Rate for Peer-to-Peer Communication

 

 

Type:

Network

Product

Rev

Syntax:

<!>NTRATE<i>

6K

5.3

Units:

i = milliseconds

 

 

Range:

0

(off) to 1000 (50 milliseconds is recommend)

 

 

Default:

0

(off)

 

 

Response:

NTRATE: *NTRATE50

 

 

See Also:

NTFEN, NTID, SYSPER, VARSHO, VARSHI

 

 

Use the NTRATE command to establish the broadcast rate for VARSHO information packets to other 6K units. With NTRATE0, broadcasting and listening to other units that are broadcasting is disabled. With a value > 0, it is enabled. A rate of 50 is recommended. All sharing units should have the same NTRATE. NTRATE is not accepted unless the 6K is operating in NTFEN1 mode.

Each 6K unit internally updates its VARSHO data at the System Update Rate (2 milliseconds); therefore, the NTRATE command must be set to a value of 2 milliseconds. If you lengthen the System Update Rate (see SYSPER), increase the NTRATE value accordingly.

The NTRATE command is not saved in the 6K’s non-volatile memory. If you wish the 6K to re-establish the NTRATE broadcasting rate when you cycle power or issue a RESET command, put the NTRATE command in the startup program assigned with the STARTP command.

Example:

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

;Send these setup commands to 6K unit #1

NTID1

;

Set unit 1's network

ID

to 1

NTRATE50

;

Unit 1 will broadcast

at

50-millisecond intervals

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

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

;Send these setup commands to 6K unit #2

NTID2

;

Set unit 2's network

ID

to 2

NTRATE50

;

Unit 2 will broadcast

at

50-millisecond intervals

page 27

Image 31
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 Device Networking GuidelinesPing Changing the 6K’s IP Address or Subnet Mask Configuring the 6K for Ethernet CommunicationSetting TCP/IP Properties and Static Mapping Preparing the Controller over RS-232Page Arp -s 192.168.10.30 0-90-55-0-0-1 Connecting the 6K to the PC through EthernetMilliseconds Networking with Other 6K or Gem6K Products Peer-to-PeerSet see ER, TER, Terf Communication according to the procedures onThen the command would be 3NTIP2,172,20,34,170 Networking with OPTO22 Snap I/OInputs 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 Provided below Command would be 3NTIP1,172,20,34,124Networking with an Allen-Bradley SLC 5/05 PLC OPTO22 Ethernet I/O rack5NTPOLL50 NTFEN2 Reset5NTCONN1 VARB100-VARB103PLC Exchanging data automatically with the PLC. Here is how toHAB79 VARB106Error messages related to Ethernet networking Error ConditionsError Response Possible Cause Related Error Status register bits are noted below Network Connect NtconnER, TER, and Terf Product Type Syntax Units Range Default Response See AlsoNtid Network Sharing Unit ID for Peer-to-Peer CommunicationNtio Network I/O OPTO22 Configuration\OUT , \TANI, \TANO, \TIN, \TIO, \TOUT Server Type Type Syntax Units Range Default ResponseNtip Network IP AddressExample Ntmprb Network Map Binary Variables for Reading from PLCNetwork Map Binary Variables for Writing to PLC NtmpwbTNTS, TNTSF, Vari Ntmpri Network Map Integer Variables for Reading from PLCWAITVARI40=22 NtmpwiNetwork Map Integer Variables for Writing to PLC VARI35-VARI49Network Polling Rate NtpollRange n = NTFEN, NTID, SYSPER, VARSHO, Varshi NtrateNetwork Sharing Rate for Peer-to-Peer Communication Ntrate *NTRATE50Network Status Network Program Select EnableNTS NtselpNtwrit Default Response See AlsoNetwork Write Ascii String to DVT Camera Transfer Network Status full-text report TntsTntsf Transfer Network StatusVarshi 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 Network Analog Output Status \ANONetwork Digital Input Status \INNTIO, \TIN, \TIO, Varb Network Digital Output \OUT\OUT , NTIO, \TIO, \TOUT Network Digital Output Status \OUTVARB9=2\3OUT Transfer Network Analog Input Status \TANITransfer Network Analog Output Status \TANOTransfer Network Digital Input Status Range n = Default n/a\TIN \TIOAnalog Outputs \TOUTTransfer Network Digital Output Status Digital Outputs