Parker Hannifin GEM6K manual Ano, Network Analog Output Status

Page 40

[ \ANO ]

Network Analog Output Status

 

 

Type:

Network; Assignment or

Comparison

Product

Rev

Syntax:

n\mANO.i (see example

below)

6K

5.3

Units:

n = network server #

 

 

 

 

m = module #

 

 

 

 

i = analog output # on

module “m”

 

 

Range:

n = 1-6

 

 

 

m= 0-7 j = 1-2

Default:

n/a

Response:

n/a

See Also:

\ANO, NTIO, \TANI, \TIO, VAR

Use the \ANO operand to assign the voltage level of an OPTO22 analog output to a real variable (VAR), or to make a comparison against another value. The voltage at the analog outputs is controlled with the \ANO command.

Syntax: VARx=n\mANO.i where “n” is the network server number of the OPTO22 unit, “m” is the I/O module number, and “i” is the output/channel number on the module (e.g., VAR3=2\5ANO.1 assigns the voltage at analog input 1 on module 5 of OPTO22 server 2 to VAR3). The \ANO operand can also be used in a condition expression such as IF(2\3ANO.1>=2.0) or WAIT(2\4ANO.1<=1.5).

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\4NTIO4

; Server #2 (OPTO22), module #4 is an analog output module

2\4ANO.1=4.8

; On Server #3, module #4, set the voltage on analog output #1 to

VAR23=2\4ANO.1

; +4.8 VDC

 

 

 

 

 

 

 

 

; Assign the voltage at analog output #1 on module #4 of Server #2

;to real variable #23 (VAR23). Based on the preceding command,

;the value should be +4.80.

WAIT(2\4ANO.2<=+1.5) ;

Wait until the voltage

at

analog output #1

of module #4 on

;

Server #2 is less than

or

equal to +1.5VDC

 

page 36

Image 40
Contents Ethernet Networking for 6K and Gem6K User Information Ethernet Networking Page Overview Setup Wizard AvailableExample Direct Connect to One Server 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, TerfInputs Ntio command to specify the type of module in that positionNetwork Server # Is set see ER, TER, Terf Networking with a DVT Vision SystemModule # on Server n Range 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 messages related to Ethernet networking Error ConditionsError Response Possible Cause Related Error Status register bits are noted below Network Connect NtconnER, TER, and Terf 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=22Network Polling Rate NtpollRange n = Ntrate Network Sharing Rate for Peer-to-Peer CommunicationNtrate *NTRATE50 NTFEN, NTID, SYSPER, VARSHO, VarshiNetwork Program Select Enable NTSNtselp Network StatusNtwrit Default Response See AlsoNetwork Write Ascii String to DVT Camera Tnts TntsfTransfer Network Status Transfer Network Status full-text reportVarshi Default n/aShared Input Variable for Peer-to-Peer Data Exchange Varsho Range i = Default n/aShared Output Variable for Peer-to-Peer Data Exchange Output variable #1 This code is executed on unit #2 Network Analog Input Voltage Status \ANINTIO, \TANI, \TIO, VAR Network Analog Output \ANO\ANO , NTIO, \TANO, \TIO \ANO Network Analog Output StatusNetwork Digital Input Status \INNTIO, \TIN, \TIO, Varb Network Digital Output \OUT\OUT , NTIO, \TIO, \TOUT Network Digital Output Status \OUTVARB9=2\3OUT \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