Parker Hannifin GEM6K manual Ntio, Network I/O OPTO22 Configuration

Page 23

NTIO

Network I/O (OPTO22) Configuration

 

 

Type:

Network

Product

Rev

Syntax:

<!><n>\<m>NTIO<i>

6K

5.3

Units:

n = network server #

 

 

 

m = OPTO22 I/O module #

 

 

 

i = I/O module type identifier

 

 

Range:

n = 1-6

 

 

 

m = 0-7

 

 

 

i = 1 (digital inputs), 2 (digital outputs), 3 (analog inputs),

 

 

 

or 4 (analog outputs)

 

 

Default:

0\0NTIO0

 

 

Response:

2\3NTIO: *2\3NTIO2

 

 

See Also:

\ANI, [ \ANI ], \ANO, [ \ANO ], \IN, NTCONN, NTIP, \OUT, [ \OUT ], \TIO

 

 

 

n \ m NTIO <i>

 

 

Network Server #

Range: 1-6

Module # on Server “nRange: 0-7

Module Type. Options are: 1 = Digital/Discrete Inputs

2 = Digital/Discrete Outputs

3 = Analog Inputs

4 = Analog Outputs

Use the NTIO command to identify to the server. The 6K, in turn, can use these I/O

6K controller the type(s) of I/O modules that are used by a specific OPTO22 with the network I/O handling commands (\IN, \OUT, \ANI, and \ANO).

Saved in Non-Volatile Memory

This command is saved in the controller’s non-volatile memory, and is remembered on power-up and RESET.

Implementation process for client/server connection to an OPTO22 unit (further details are provided in the Programmer’s Guide):

1.Follow the manufacturer’s setup procedure for the OPTO22 Ethernet I/O rack.

2.Connect the 6K and OPTO22 products in a network and configure the 6K for Ethernet communication according to the Ethernet Networking configuration procedures in the Programmer’s Guide

3.Choose a Server Connection Number for this device. The 6K can support up to 6 simultaneous server connections. Pick a number (1-6) that has not been used already for another connection. This will be used to reference the OPTO22 unit from now on.

4.Enter the IP address of the OPTO22 and specify a 2 for connection type with the NTIP command. For example, if the OPTO22 is Server #3 and its IP address is 172.20.34.170, then the command would be

3NTIP2,172,20,34,170.

5.Attempt a connection to the device with NTCONN. For example, if the server number is 3, the command would be 3NTCONN1. 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.Inform the 6K of the configuration of the OPTO22. For each module position, use the NTIO command to specify the type of module in that position. For example, if there is a digital input module in slot 0, then the command would be 3\0NTIO1. If there is an Analog Input module in slot 7, then the command would be 3\7NTIO3.

7.Set the polling rate with the NTPOLL command. 50 milliseconds is recommended. For example, to set the polling rate to 50 ms on server #3, use the 3NTPOLL50 command. If there is an error during polling, then Error Status bit #24 will be set.

Example:

; Identify network server #2

as an OPTO22 device at IP address

2NTIP2,172,54,125,34

2NTCONN1

; 172.54.125.34

 

 

 

 

; Attempt connection to network server #2

input module

2\0NTIO1

; Server #2 (OPTO22), module

0

is

a digital

2\1NTIO2

; Server #2 (OPTO22), module

1

is

a digital

output module

2\2NTIO3

; Server #2 (OPTO22), module

2

is

an analog

input module

2NTPOLL50

; Start polling the OPTO22 (start

reading and writing I/O),

;set the polling interval to 50 milliseconds.

;After this point, you can read and write to the inputs with

page 19

Image 23
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 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/ONetwork 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 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 Response Possible Cause Error ConditionsError messages related to Ethernet networking Related Error Status register bits are noted below ER, TER, and Terf NtconnNetwork Connect 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-VARI49Range n = NtpollNetwork Polling Rate NTFEN, NTID, SYSPER, VARSHO, Varshi NtrateNetwork Sharing Rate for Peer-to-Peer Communication Ntrate *NTRATE50Network Status Network Program Select EnableNTS NtselpNetwork Write Ascii String to DVT Camera Default Response See AlsoNtwrit Transfer Network Status full-text report TntsTntsf Transfer Network StatusShared 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 Network Analog Output Status \ANONTIO, \TIN, \TIO, Varb \INNetwork Digital Input Status \OUT , NTIO, \TIO, \TOUT \OUTNetwork Digital Output VARB9=2\3OUT \OUTNetwork Digital Output Status 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