# CollectBox Methods to interact with the bank pin interface. ```{figure} ../../images/collectionbox_interface.png ``` - - - ## TCollectBox Main record to interact with the {ref}`CollectBox` interface. - - - ## CollectBox.SetupInterface ```pascal procedure TCollectBox.SetupInterface(); ``` Internal method used to setup the {ref}`TCollectBox` coordinates. This is automatically called for you on the {ref}`CollectBox variable`. - - - ## CollectBox.IsOpen ```pascal function TCollectBox.IsOpen(): Boolean; ``` Returns true if the bank pin is open. Example: ```pascal WriteLn CollectBox.IsOpen(); ``` - - - ## CollectBox.WaitOpen ```pascal function TCollectBox.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean; ``` Returns true if the bank pin opens within `time` milliseconds.. Example: ```pascal WriteLn CollectBox.WaitOpen(); ``` - - - ## CollectBox variable Global {ref}`TCollectBox` variable.