Parker Hannifin GEM6K manual Ani, Network Analog Input Voltage Status, Ntio, \Tani, \Tio, Var

Page 38

[ \ANI ]

Type:

Syntax:

Units:

Range:

Default:

Response:

See Also:

Network Analog Input Voltage Status

Network;

Assignment or

Comparison

Product

Rev

n\mANI.i

 

(see example

below)

6K

5.3

n = network server

#

 

 

 

m

=

module

#

 

 

 

 

i

=

analog

input #

on module “m”

 

 

n= 1-6 m = 0-7 j = 1-2 n/a n/a

NTIO, \TANI, \TIO, VAR

Use the \ANI operand to assign the voltage level of an OPTO22 analog input to a real variable (VAR), or to make a comparison against another value.

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

; Server

#2

(OPTO22), module

#6

is

an analog input module

 

2\7NTIO3

; Server

#2

(OPTO22), module

#7

is

an analog input module

 

WAIT(2\6ANI.1<=+1.5)

; Wait until the voltage at analog

input #1 of module #6 on

 

IF(2\7ANI.2>+2.4)

; Server

#2

(OPTO22) is less

than or equal to +1.5VDC

 

 

; If the

voltage at analog input #2 of module 7 on Server #2

 

 

; (OPTO22) is greater than +2.4

VDC ...

 

 

page 34

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