PrtRegion.ClearStatusBit (Method)

Syntax

PrtRegion.ClearStatusBit b%

Description

Clears a particular status bit in the regions status mask.

Comments

To obtain the region's status mask, use the PrtRegion.GetData method. To update the Region's status mask to PRT, use the PrtRegion.Modify.

Bits 0-15 are for User Use. Bits 16-31 are for GE Fanuc use. The following constants may be used to access GE Fanuc specific bits.

Constants

Description

PRT_REGION_FULL

Region Full Bit

PRT_REGION_EXT_HOLD

Region External Hold Bit

PRT_REGION_IN_LOCK

Region in Lock Bit

PRT_REGION_OUT_LOCK

Region Out Lock Bit

PRT_REGION_OUT_OF_SEQ

Region Out of Sequence Bit

PRT_REGION_CAP_EXCEEDED

Region Capacity Exceeded Bit

PRT_REGION_NORMAL

Region Normal Bit

Example

Dim Prt as new Prt

n% = 17

' Get a list of items from PRT and initialize a particular

'    status bit for each one.

Prt.GetRegionList

for j = 0 to prt.ItemCount - 1

       Prt.Region(j).ClearStatusBit n%

       Prt.Region(j).Modify

next j

More information

PRT Object Model member list.