# CollectBox Methods to interact with the bank pin interface. ```{figure} ../../images/CollectBox_interface.png ``` - - - ## TRSCollectBox Main record to interact with the {ref}`CollectBox` interface. - - - ## CollectBox.SetupInterface ```pascal procedure TRSCollectBox.SetupInterface(); ``` Internal method used to setup the {ref}`TRSCollectBox` coordinates. This is automatically called for you on the {ref}`CollectBox variable`. - - - ## CollectBox.IsOpen ```pascal function TRSCollectBox.IsOpen(): Boolean; ``` Returns true if the bank pin is open. Example: ```pascal WriteLn CollectBox.IsOpen(); ``` - - - ## CollectBox.WaitOpen ```pascal function TRSCollectBox.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}`TRSCollectBox` variable.