Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual

Page 93

Advertising
background image

OC_GetStatusFile

Library of Routines

6–39

Publication 1747-6.5.3 June 1998

Return Value:

Considerations:

Supported in the DOS API library and the Windows NT API library

Example:

HANDLE

Handle;

STSFILE

stsfile;

int

retcode;

retcode = OC_GetStatusFile( Handle, &stsfile );

17

dynamic configuration

DII preset
When this value is 0 or 1, an interrupt is generated each time the bit
transition comparison is satisfied (see words 15 and 16). When this value
is 2-65535, a count occurs each time the bit transition comparison is
satisfied. When the total number of counts equals the DII preset value, an
interrupt will be generated.
This word is applied upon detection of the DII reconfigure bit 11/10 and
at the end of each I/O scan.

18

status

DII accumulator
The DII accumulator contains the number of count transitions that have
occurred (see word 17). When a count occurs and the accumulator is
greater than or equal to the preset value, a DII interrupt is generated.

19

status

Scanner firmware series
This word indicates the scanner firmware series number. The series and
revision numbers are used to identify versions of firmware.

20

status

Scanner firmware revision
This word indicates the scanner firmware revision number. The series and
revision numbers are used to identify versions of firmware.

21

status

1746 I/O PCI Interface hardware series
This word indicates the 1746 I/O PCI Interface hardware series number.
The series and revision numbers are used to identify versions of firmware.

22

status

1746 I/O PCI Interface hardware revision
This word indicates the 1746 I/O PCI Interface hardware revision number.
The series and revision numbers are used to identify versions of firmware.

23

status

Scanner RAM size
This word indicates the size of RAM in 16-bit K words. For example, a
value of 64 indicates 64K words, or 128K bytes.

24

status

Scanner flash ROM size
This word indicates the size of flash ROM in 16-bit K words. For example,
a value of 64 indicates 64K words, or 128K bytes.

Name:

Value:

Description:

SUCCESS

0

system status file was read successfully

ERR_OCACCESS

2

handle

does not have access to scanner

ERR_OCSCANCFG

14

scanner has not been configured

Word/Bit:

Classification:

Description:

Advertising
This manual is related to the following products: