14.01.2015 Views

Gemini GV6K and Gemini GT6K Programmer's Guide

Gemini GV6K and Gemini GT6K Programmer's Guide

Gemini GV6K and Gemini GT6K Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Network Server #<br />

Range: 1-6<br />

n NTMPRB i, i, i, i<br />

# of Allen-Bradley data file<br />

# of first element in AB data file<br />

(beginning of range)<br />

# of elements in range<br />

# of first binary variable (VARB) in 6K<br />

(beginning of range, max value is 125)<br />

EXAMPLE:<br />

IF:<br />

• Allen-Bradley PLC is server #5<br />

• The PLC’s binary data file 3 has 30<br />

elements. Use data elements 15-29<br />

(15 elements total) for binary data<br />

that is to be shared with the 6K.<br />

• Use the 6K’s binary variables 35-49<br />

(15 variables total) to store the data<br />

from the PLC.<br />

The required mapping comm<strong>and</strong> is:<br />

5NTMPRB3,15,15,35<br />

• Use the NTMPRI comm<strong>and</strong> to read up to 50 integers elements from a PLC’s Integer<br />

file <strong>and</strong> write them to VARI variables in the Gem6K.<br />

Network Server #<br />

Range: 1-6<br />

n NTMPRI i, i, i, i<br />

# of Allen-Bradley data file<br />

# of first element in AB data file<br />

(beginning of range)<br />

# of elements in range<br />

# of first integer variable (VARI) in 6K<br />

(beginning of range, max value is 225)<br />

EXAMPLE:<br />

IF:<br />

• Allen-Bradley PLC is server #5<br />

• The PLC’s integer data file 9 has 30<br />

elements. Use data elements 15-29<br />

(15 elements total) for integer data<br />

that is to be shared with the 6K.<br />

• Use the 6K’s integer variables 35-49<br />

(15 variables total) to store the data<br />

from the PLC.<br />

The required mapping comm<strong>and</strong> is:<br />

5NTMPRI9,15,15,35<br />

• Use the NTMPWB comm<strong>and</strong> to write up to 50 binary values from VARB variables in the<br />

Gem6K to binary elements in a PLC’s binary file.<br />

Network Server #<br />

Range: 1-6<br />

n NTMPWB i, i, i, i<br />

# of Allen-Bradley data file<br />

# of first element in AB data file<br />

(beginning of range)<br />

# of elements in range<br />

# of first binary variable (VARB) in 6K<br />

(beginning of range, max value is 125)<br />

EXAMPLE:<br />

IF:<br />

• Allen-Bradley PLC is server #5<br />

• In the PLC’s binary data file 3, use<br />

data elements 0-14 (15 elements<br />

total) for binary data that is to be<br />

transmitted from the 6K.<br />

• Use the 6K’s binary variables 20-34<br />

(15 variables total) to store the data<br />

to be transmitted to the PLC.<br />

The required mapping comm<strong>and</strong> is:<br />

5NTMPWB3,0,15,20<br />

• Use the NTMPWI comm<strong>and</strong> to write up to 50 integers values from VARI variables in<br />

the Gem6K to a integer elements in a PLC’s integer file.<br />

Network Server #<br />

Range: 1-6<br />

n NTMPWI i, i, i, i<br />

# of Allen-Bradley data file<br />

# of first element in AB data file<br />

(beginning of range)<br />

# of elements in range<br />

# of first integer variable (VARI) in 6K<br />

(beginning of range, max value is 225)<br />

EXAMPLE:<br />

IF:<br />

• Allen-Bradley PLC is server #5<br />

• The PLC’s integer data file 9 has 30<br />

elements. Use data elements 0-14<br />

(15 elements total) for integer data<br />

to be transmitted from the 6K.<br />

• Use the 6K’s integer variables 20-34<br />

(15 variables total) to store the data<br />

to be transmitted to the PLC.<br />

The required mapping comm<strong>and</strong> is:<br />

5NTMPWI9,0,15,20<br />

7. Set the polling rate with the NTPOLL comm<strong>and</strong>. 50 milliseconds is recommended. For<br />

example, to set the polling rate to 50 ms on Server #5, use the 5NTPOLL50 comm<strong>and</strong>. If<br />

there is an error during polling, Error Status bit #24 will be set (see ER, TER or TERF).<br />

52 Gem6K Series Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!