Parker Hannifin GEM6K manual Networking with a DVT Vision System, Is set see ER, TER, Terf

Page 15

Output #1

Output #2

Output #3

Output #4

n \ m OUT b b b b

Network Server #

Range: 1-6

Module # on Server “nRange: 0-7

Options for “b” are: 1 = Turn on

0 = Turn off

x = Don’t Change

For example (Server #3), to turn on outputs #1 and #4 and leave outputs #2 and #3 un- changed on module #2, type 3\2OUT1XX1. To turn off only output #4, type 3\2OUT.4-0.

To set an analog output voltage, type n\mANO.i-r, where “n” is the server number, “m” is the module number, “i” is the output number on that module and “r” is the voltage. For example, to set analog output #1 on module #5 of Server #3 to 6.4V, type 3\5ANO.1=6.4.

To read a digital input or output module, use the assignment/comparison operands (n\mIN or n\mOUT) or the transfer commands (n\mTIN or n\mTOUT). Following are examples:

-IF(3\0IN=b1100) is an IF condition that reads all four digital inputs on module #0. IF(3\0IN.2=b1) is an IF condition that reads only digital input #2 on module #0.

-IF(3\2OUT=b1100) is an IF condition that reads all four outputs on module #2. IF(3\2OUT.3=b1) is an IF condition that reads only digital output #3 on module #2.

-3\0TIN transfers the binary status of all four digital inputs on module #0. 3\0TIN.2 transfers the binary status of only digital input #2 on module #0.

-3\2TOUT transfers the binary status of all four digital outputs on module #2. 3\2TOUT.3 transfers the binary status of only digital output #3 on module #2.

To read an analog input or output module, use the assignment/comparison operands

(n\mANI or n\mANO) or the transfer commands (n\mTANI or n\mTANO). Following are examples:

-WAIT(3\7ANI.2<2.4) is an WAIT condition that reads analog input #2 on module #7.

-IF(3\5ANO.1>=1.0) is an IF condition that reads analog output #1 on module #5.

-3\6TANI transfers the voltage status of both analog inputs on module #6. 3\6TANI.2 transfers the voltage status of only analog input #2 on module #6.

-3\4TANO transfers the voltage status of both analog outputs on module #4. 3\4TANO.1 transfers the voltage status of only analog output #1 on module #4.

Networking with a DVT Vision System

The controller can send trigger commands to the camera. The camera should send back ASCII strings similar to what follows: VARn = 123.456, VARm = 234.567. The ASCII strings are VAR assignments set apart by commas. The values are then written to the controller’s VARs; This data can represent anything, such as an x-y coordinate.

Setup

1.

Follow the manufacturer’s setup procedure for the DVT camera.

 

2.

Connect the 6K and DVT camera in a network and configure the 6K for Ethernet

 

 

communication according to the procedures on page 4.

 

3.

Choose a Server 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 server connection. This will be used to reference the device from now on.

 

4.

Enter the IP address of the camera and specify a 3 for connection type with the NTIP

 

 

command. For example, if the DVT camera is Server #6 and its IP address is

 

 

172.20.34.150, then the command would be 6NTIP3,172,20,34,150.

 

5.

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

 

 

the command would be 6NTCONN1. 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).

page 11

Image 15
Contents Ethernet Networking for 6K and Gem6K User Information Ethernet Networking Page Setup Wizard Available OverviewExample 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/ONtio command to specify the type of module in that position InputsNetwork Server # Networking with a DVT Vision System Is set see ER, TER, TerfModule # 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 Conditions Error messages related to Ethernet networkingError Response Possible Cause Related Error Status register bits are noted below Ntconn Network ConnectER, 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-VARI49Ntpoll Network Polling RateRange n = NTFEN, NTID, SYSPER, VARSHO, Varshi NtrateNetwork Sharing Rate for Peer-to-Peer Communication Ntrate *NTRATE50Network Status Network Program Select EnableNTS NtselpDefault Response See Also NtwritNetwork Write Ascii String to DVT Camera Transfer Network Status full-text report TntsTntsf Transfer Network StatusDefault n/a VarshiShared Input Variable for Peer-to-Peer Data Exchange Range i = Default n/a VarshoShared Output Variable for Peer-to-Peer Data Exchange Output variable #1 This code is executed on unit #2 \ANI Network Analog Input Voltage StatusNTIO, \TANI, \TIO, VAR \ANO Network Analog Output\ANO , NTIO, \TANO, \TIO Network Analog Output Status \ANO\IN Network Digital Input StatusNTIO, \TIN, \TIO, Varb \OUT Network Digital Output\OUT , NTIO, \TIO, \TOUT \OUT Network Digital Output StatusVARB9=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