Example

6NTIP3,172,34,54,150

; Identify a

DVT camera as Server #6,

located at

 

6NTCONN1

;

IP address

172.34.54.150.

Server #6

 

 

;

Attempt the connection to

 

Program

Interaction

Example

Once a connection has been established, you can write trigger commands to the camera using the NTWRIT command.

DEL DVT

 

 

 

DEF DVT

;

Attempt connection to DVT camera

 

6NTCONN1

camera

6NTWRIT"DVT commands"

;

Write the text "DVT commands" to

END

 

 

 

Networking with an Allen-Bradley SLC 5/05 PLC

The Allen-Bradley SLC 5/05 exchanges integer and binary data with the 6K. The data exchange is accomplished by mapping integer variables (VARI) and binary variables (VARB) in the 6K with data elements in the PLC’s integer and binary data files. The 6K limits the amount of variable mapping to 100 binary variables (50 write, 50 read) and 100 integer variables

(50 write, 50 read).

Setup

1.

Follow the manufacturer’s setup procedure for each Allen-Bradley PLC, DVT camera

 

 

and OPTO22 Ethernet I/O rack.

 

2.

Connect the 6K and Allen-Bradley PLC in a network and configure the 6K for Ethernet

 

 

communication according to the procedures on page 4.

 

3.

Choose a connection number for this device. The 6K can support up to 6 simultaneous

 

 

client connections. Pick a number (1-6) that has not been used already for another client

 

 

connection. The number is used to reference the device from now on.

 

4.

Enter the IP address of the PLC and specify a 1 for connection type with the NTIP

 

 

command. For example, if the PLC is Server #5 and its IP address is 172.20.34.124, then

 

 

the command would be 3NTIP1,172,20,34,124.

 

5.

Attempt a connection to the device with NTCONN. For example, if the server number is 5,

 

 

the command would be 5NTCONN1. If the connection is successful, Network Status bit

 

 

#1 is set (see NTS, TNTS, TNTSF). If the connection is unsuccessful, Error Status bit #23

 

 

is set (see ER, TER, TERF).

 

6.

Map the required integer and binary variables between the 6K and the data files in the

 

 

Allen-Bradley PLC. There are four mappings possible (a programming example is

 

 

provided below).

• Use the NTMPRB command to read up to 50 binary elements from a PLC’s binary file and write them to VARB variables in the 6K.

n NTMPRB i, i, i, i

Network Server #

Range: 1-6

#of Allen-Bradley data file

#of first element in AB data file (beginning of range)

#of elements in range

#of first binary variable (VARB) in 6K (beginning of range, max value is 125)

EXAMPLE:

IF:

Allen-Bradley PLC is server #5

The PLC’s binary data file 3 has 30 elements. Use data elements 15-29 (15 elements total) for binary data that is to be shared with the 6K.

Use the 6K’s binary variables 35-49 (15 variables total) to store the data

from the PLC.

The required mapping command is:

5NTMPRB3,15,15,35

Use the NTMPRI command to read up to 50 integer elements from a PLC’s Integer file and write them to VARI variables in the 6K.

page 12

Page 16
Image 16
Parker Hannifin GEM6K manual Networking with an Allen-Bradley SLC 5/05 PLC, OPTO22 Ethernet I/O rack, Provided below