Parker Hannifin GEM6K Ntio command to specify the type of module in that position, Inputs

Page 14

NTIO command to specify the type of module in that position.

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

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

NTADDR172,34,54,123

; Set the IP address of the 6K

 

 

OPTEN0

; Disable the option card (for Fieldbus units only)

 

RESET

; Enable network function on 6K

 

 

NTFEN2

 

 

RESET

 

 

 

 

DEL OPTOSU

 

 

 

 

DEF OPTOSU

; Identify an OPTO22 device as

Server #2, which is

 

2NTIP2,172,34,54,124

 

2NTCONN1

; located at IP address 172.34.54.124

 

; Attempt connection to Server

#2 (OPTO22)

 

2\1NTIO2

; Configure OPTO22 module 1

as

digital output

 

2\2NTIO2

; Configure OPTO22 module 2

as

digital output

 

2\3NTIO1

; Configure OPTO22 module 3

as

digital input

 

2\4NTIO3

; Configure OPTO22 module 4

as

analog input

 

2NTPOLL50

; Begin polling, set polling interval to 50 ms

Program

END

 

 

 

Once the OPTO22 is configured and a connection is made, you can then set outputs and check

Interaction

inputs.

 

 

 

How the 6K addresses OPTO22 I/O locations:

The 6K addresses each I/O bit 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 #3

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

 

 

 

 

 

3\0IN.3

 

 

3\3OUT.2

 

 

3\5ANO.1

 

 

3\7ANI.2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To verify the I/O configuration (as per NTIO) and to check the status of each module’s inputs and outputs, type n\TIO, where “n” is the server number.

To set a digital output, type n\mOUT.i-b, where “n” is the server number, “m” is the module number, “i” is the point number on that module and “b” is the state (1 = on,

0 = off). To set multiple digital outputs on the same module, type n\mOUTbbbb:

O t t #1

page 10

Image 14
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