Parker Hannifin GEM6K manual Network Digital Output, Out , Ntio, \Tio, \Tout

Page 42

\OUT

Type:

Syntax:

Units:

Range:

Default:

Response:

See Also:

Network Digital Output

Network

Product

Rev

<!>n\mOUT<b><b><b><b>

6K

5.3

<!>n\mOUT.i-b

 

 

n = network server #

 

 

m = module #

 

 

b = enable bit

 

 

i = digital output # on module “m”

 

 

n= 1-6 m = 0-7

b = 1 (turn on), 0 (turn off), or X (don’t change) i = 1-4

n\mOUT0000

n/a

[ \OUT ], NTIO, \TIO, \TOUT

Controlling Multiple Outputs

Output #1

Output #2

Output #3

Output #4

n \ m OUT b b b b

Network Server #

 

 

 

 

 

(Range: 1-6)

 

 

 

Options for “b” are:

 

 

 

 

 

 

 

 

 

 

1 = Turn on

Module # on Server “n

 

 

 

0 = Turn off

 

 

 

x = Don’t Change

(Range: 0-7)

 

 

 

 

Controlling One Output

 

 

 

 

 

 

 

Output Number

 

 

 

 

 

 

 

(Range: 1-4)

 

 

n \ m OUT .i - b

Network Server #

 

 

 

 

 

 

Options for “b” are:

 

 

 

 

 

 

 

 

 

 

 

 

(Range: 1-6)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = Turn on

 

 

 

 

 

 

 

0 = Turn off

Module # on Server “n

 

 

 

 

 

x = Don’t Change

 

 

(Range: 0-7)

 

 

 

 

 

 

Use the \OUT command to control the state of each digital output on the OPTO22 unit.

The controller addresses the OPTO22 I/O locations as follows:

Each I/O bit is addressed by its location on a specific module. (NOTE: I/O points are not addressed by an absolute

32-bit location on the OPTO22.) Digital input and output modules have four I/O points, or channels, and are numbered 1-4. Analog input and output modules have two I/O points, or channels, and are numbered 1-2.

EXAMPLE: OPTO22 is Network Server #2

0

1

2

3

4

5

6

7

Digital

Digital

Digital

Digital

Analog

Analog

Analog

Analog

Input

Input

Output

Output

Output

Output

Input

Input

Module

Module

Module

Module

Module

Module

Module

Module

Input

Input

Output

Output

Output

Output

Input

Input

1

1

1

1

1

1

1

1

Input

Input

Output

Output

Output

Output

Input

Input

2

2

2

2

2

2

2

2

Input

Input

Output

Output

 

 

 

 

3

3

3

3

 

 

 

 

Input

Input

Output

Output

 

 

 

 

4

4

4

4

 

 

 

 

 

2\0IN.3

 

 

 

2\3OUT.2

 

 

2\5ANO.1

 

 

2\7ANI.2

 

 

 

 

 

 

Example:

; Identify network server #2 as an OPTO22 unit at IP address

 

2NTIP2,172,54,125,34

 

2NTCONN1

; 172.54.125.34

 

 

 

 

 

 

 

 

; Attempt a

connection to network server #2 (OPTO22 unit)

 

2\2NTIO2

; Server #2

(OPTO22), module #2 is a digital output module

 

2\3NTIO2

; Server #2

(OPTO22), module #3 is a digital output module

 

2\3OUT1001

; On Server

#2, module #3, turn on Outputs #1 and #4 and turn off

 

2\2OUT.3-1

; Outputs #2 and #3

 

 

 

 

 

 

 

; On Server

#2, module #2, turn on only Output #1

 

 

 

 

page 38

Image 42
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 Networking Guidelines DevicePing Preparing the Controller over RS-232 Configuring the 6K for Ethernet CommunicationSetting TCP/IP Properties and Static Mapping 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 MillisecondsNetworking with OPTO22 Snap I/O Communication according to the procedures onThen the command would be 3NTIP2,172,20,34,170 Set see ER, TER, TerfNtio 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 OPTO22 Ethernet I/O rack Command would be 3NTIP1,172,20,34,124Networking with an Allen-Bradley SLC 5/05 PLC Provided belowVARB100-VARB103 NTFEN2 Reset5NTCONN1 5NTPOLL50VARB106 Exchanging data automatically with the PLC. Here is how toHAB79 PLCError Conditions Error messages related to Ethernet networkingError Response Possible Cause Related Error Status register bits are noted below Ntconn Network ConnectER, TER, and Terf Network Sharing Unit ID for Peer-to-Peer Communication Type Syntax Units Range Default Response See AlsoNtid ProductNetwork I/O OPTO22 Configuration Ntio\OUT , \TANI, \TANO, \TIN, \TIO, \TOUT Network IP Address Type Syntax Units Range Default ResponseNtip 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, VariVARI35-VARI49 NtmpwiNetwork Map Integer Variables for Writing to PLC WAITVARI40=22Ntpoll Network Polling RateRange n = Ntrate *NTRATE50 NtrateNetwork Sharing Rate for Peer-to-Peer Communication NTFEN, NTID, SYSPER, VARSHO, VarshiNtselp Network Program Select EnableNTS Network StatusDefault Response See Also NtwritNetwork Write Ascii String to DVT Camera Transfer Network Status TntsTntsf Transfer Network Status full-text reportDefault 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 \ANO Network Analog Output Status\IN Network Digital Input StatusNTIO, \TIN, \TIO, Varb \OUT Network Digital Output\OUT , NTIO, \TIO, \TOUT \OUT Network Digital Output StatusVARB9=2\3OUT \TANI Transfer Network Analog Input Status\TANO Transfer Network Analog Output Status\TIO Range n = Default n/a\TIN Transfer Network Digital Input StatusDigital Outputs \TOUTTransfer Network Digital Output Status Analog Outputs