Syntax
PrtRegion.SetStatusBit 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 Seq Bit |
PRT_REGION_CAP_EXCEEDED |
Region Capacity Exceeded Bit |
PRT_REGION_NORMAL |
Region Normal Bit |
Example
Dim Prt as new prt
Prt.GetRegionList
'Get a list of regions in PRT, check each one's first status
' bit, then set it if it's not already set.
For J% = 0 to Prt.RegionCount -1
If Prt.Region(J%).StatusBit(0) = FALSE Then
CurPrt.Item(I).SetStatusBit 0
CurPrt.Item(I).Modify
End If
next J%
PRT Object Model member list. |