[ \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

Page 40
Image 40
Parker Hannifin GEM6K manual Ano, Network Analog Output Status