Part program block data items – Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual

Page 102

Advertising
background image

4–54

OCI Data Server Data Items

Publication 8520-6.6 - August 1999

ACTIVE_PART_PROGRAM_BLOCKS, setup_buffers
Data Type

String

Read/Write

Read only

Array Index

setup_buffers

Control Type

Lathe/Mill/Grinder

1

1

Grinder Control Type is not available for Release 1 of 9/PC.

This data item is used to identify either the currently executing or
about to execute part program blocks. The control looks ahead a
certain number of blocks when a part program is selected as active.
These blocks are loaded into the controls setup buffer. The number
of blocks actually in the controls setup buffer are dependent on the
amount of available memory at any given time on the control.

The index for this data item is the number of the setup blocks. The
active block (the one that’s about to execute) is in setup buffer 1. To
request the active part program block you would link:

ACTIVE_PART_PROGRAM_BLOCKS,1

You must include the index with this data item. You can not return
more than one block per DDE request.

Important: Due to the speed at which the control is capable of

executing part program blocks, some very short or
no–motion blocks may not get passed to the DDE data
server before the next block moves into that slot in the
setup buffer. This can cause some very fast executing
blocks to not make it to your OCI DDE application.

The actual part program block data begins in column 3 of the
returned data. The first two characters are reserved for the following
symbols:

Symbol:

Identifies:

!

MDI Block

*

Current executing block

@

Block execution complete

n

Space

Part Program Block

Data Items

Advertising