Weight = (Convert.ToDecimal(inData.Data) +Ĭonvert.ToDecimal(inData. every scale, need to figure out what to do with FIXME: dividing by 100 probably wont work with Byte 3 = Data Scaling (decimal placement) Byte 1 = Scale Status (1 = Fault, 2 = Stable 0, 3 = In Motion, 4 = Stable, 5 = Under 0, 6 = Over Weight, 7 = Requires Calibration, 8 = Requires Re-Zeroing) Public void GetWeight(out decimal? weight, out bool? isStable) Sorry should have added that I am using Mike Obrien's HidLibrary from here: Ĭonsole.WriteLine("Weight: ", i, inData.Data) HidDeviceList = HidDevices.Enumerate(0x0B67, 0x555E) They also bought us some Dell Optiplex 380's running Windows 7 for use with WorldShip. We have some Fairbanks SCB R9000-14U scales we got from UPS for use with their WorldShip program. ![]() Here is the method in question: public HidDevice GetDevices() The following scale models are supported: Fairbanks model 70-2453, Ultegra, SCB-9000, R9000, Ultegra 21860, and compatible (the type distributed by many shipping. Any suggestions here, or has anyone ever written any code for this particular scale? It is giving me an error: "Cannot Implicity Convert Type '' to 'HidLibrary.HidDevice'." I have tried several ways of casting this, but I can't get it to work. I am specifically having an issue with the following method. I have found some code that was for a different model scale, but it is not quite working for me. SCB-R9000-14 is the standard model equipped with a textured weighing platform. ![]() I am trying to create an executable that can be called and pass back a weight from a Fairbanks SCB-9000 USB scale.
0 Comments
Leave a Reply. |