Syntax
PrtRegion.StatusBit(b%)
Description
Accesses a particular status bit in the region's status mask.
Comments
To obtain the region's status mask from PRT, use the PrtRegion.GetData method.
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
'Example of PrtRegion.StatusBit Function using a constant to
' get the Region Full status bit and display it's status in'
a message box
Dim DestRegion as new PrtRegion
DestRegion.Id ="Region_Name" 'Replace Region Name
DestRegion.GetData
If DestRegion.StatusBit(PRT_REGION_FULL) Then
MsgBox "Region Full"
Else
MsgBox "Region Not Full"
End If
PRT Object Model member list. |