Parker Hannifin GEM6K manual Ntselp, Network Status, Network Program Select Enable

Page 32

[ NTS ]

Type:

Syntax:

Units:

Range:

Default:

Response:

See Also:

Network Status

Network; Assignment/Comparison

Product

Rev

nTNTS<.i>

6K

5.3

n

=

server #

 

 

i

=

bit number of status register (see table below)

 

 

n= 1-6 i = 1-8 n/a n/a

NTCONN, NTIP, NTPOLL, TNTSF

Use the NTS operand to assign the Network Status bits to a binary variable, or to make a comparison against a binary or hexadecimal value.

Syntax: VARBx=nNTS where “n” is the network server number (e.g., VARB16=2NTS). The NTS operand can also be used in an expression such as IF(2NTS=b11Ø1), or IF(2NTS=h7F). To make a comparison against a binary value, place the letter b (b or B) in front of the value. The binary value itself must only contain ones, zeros, or Xs (1, Ø, X, x). To make a comparison against a hexadecimal value, place the letter h (h or H) in front of the value. The hexadecimal value itself must only contain the letters A through F, or the numbers Ø through 9.

Bit Select Operation: Use the bit select operator (.) in conjunction with the bit number to specify a specific

Network Status bit. Examples: VARB1=2NTS.3 assigns Network Status bit 3 for network server 2 to binary variable 1; IF(2NTS.3=b1) is a conditional statement that is true if Network Status bit 3 for network server 2 is set to 1 (polling is enabled).

Bit #

(left to right) Function (1 = yes, 0 = no)

1Connection Open.

2Client Connection Error. This bit is set when a connection attempt with a server times out. This will also set Error Status bit #23 (see ER, TER, TERF).

3Polling Enabled. This bit is set when polling is enabled with NTPOLL.

4Error during polling. This bit is set when an error during polling occurs. This will also set Error Status bit #24 (see ER, TER, TERF).

5-8 Reserved

NTSELP

Network Program Select Enable

 

 

Type:

Network

Product

Rev

Syntax:

<!>NTSELP<b>,<i>

6K

5.3

Units:

b = enable bit

 

 

 

i = number of the integer variable (VARI) used for program

 

 

 

select

 

 

 

Range:

b = 0 (disable) or 1 (enable)

 

 

 

i = 1-225

 

 

Default:

b = 0 (disabled)

 

 

 

i = 1

 

 

 

Response:

NTSELP: *NTSELP0,1

 

 

See Also:

COMEXS, NTCONN, NTIP, NTMPRI, NTMPWI, NTPOLL, [ NTS ], TDIR,

 

 

 

TNTS, TNTSF

 

 

The NTSELP command allows you to enable/disable the Network Program Select Mode, where, through the process of exchanging integer data, an Allen-Bradley PLC can execute a 6K/Gem6K program by its number. Use the following procedure as a guideline for implementing the Network Program Select mode:

1.Setup up Ethernet Networking with the Allen-Bradley PLC. This includes assigning the server connection (NTIP) and connecting (NTCONN).

2.Use the NTMPRI command to map at least one 6K variable to an Element in an integer data file in the PLC.

page 28

Image 32
Contents Ethernet Networking for 6K and Gem6K User Information Ethernet Networking Page Example Direct Connect to One Server Setup Wizard AvailableOverview 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, TerfNetwork Server # Ntio command to specify the type of module in that positionInputs Module # on Server n Range Networking with a DVT Vision SystemIs set see ER, TER, Terf 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 Response Possible Cause Error ConditionsError messages related to Ethernet networking Related Error Status register bits are noted below ER, TER, and Terf NtconnNetwork Connect 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=22Range n = NtpollNetwork Polling Rate Ntrate Network Sharing Rate for Peer-to-Peer CommunicationNtrate *NTRATE50 NTFEN, NTID, SYSPER, VARSHO, VarshiNetwork Program Select Enable NTSNtselp Network StatusNetwork Write Ascii String to DVT Camera Default Response See AlsoNtwrit Tnts TntsfTransfer Network Status Transfer Network Status full-text reportShared Input Variable for Peer-to-Peer Data Exchange Default n/aVarshi Shared Output Variable for Peer-to-Peer Data Exchange Range i = Default n/aVarsho Output variable #1 This code is executed on unit #2 NTIO, \TANI, \TIO, VAR \ANINetwork Analog Input Voltage Status \ANO , NTIO, \TANO, \TIO \ANONetwork Analog Output \ANO Network Analog Output StatusNTIO, \TIN, \TIO, Varb \INNetwork Digital Input Status \OUT , NTIO, \TIO, \TOUT \OUTNetwork Digital Output VARB9=2\3OUT \OUTNetwork Digital Output Status \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