Scale Integration
Scale setup
You can communicate with scales using an IP address and port ID. Besides, there is also a way to communicate with scales trough EDI and the Weighing document detailed info. It is important that your scale can communicate with your Boltrics Print Service. Assuming that your printer can communicate with the Print Service, you then set up the scales in Business Central.
You go to your indicator list as shown in the screenshot below. In this example, you can see that 2 Scales have been added. SC1 was added using the OnPrem Agent SC2 was added using the Boltrics Service. For the Onprem Agent, enter the OnPrem Agent code you are using in the Boltrics Service field. In the case of the Boltrics Service, enter the transport location here, which is also entered in the Transport location field on your SND-PDF and SND-ZPL messages.
When adding the printers, some values are important to establish the connection with the scales.
- Communication server: IP-address of the scale.
- Communication setup: Port ID to communicate with the scale.
- Request Reading Text: This is the message that will be sent to the scale. It differs per scale in which text this should be. When the text arrives at the scale this should be the trigger for the scale to send the weight back to Business Central.
Test connection
After the scales have been added to the scale overview, you can test the connection by pressing Execute. You can then view the output by clicking on Value. Here you see the last retrieved value. The value that the scale returns is a so-called Dirty Value. This value may have a different design per scale. The final weight will then appear in the Value Decimal field.
The system must be able to translate the Dirty Value into an actual weight. Because the format of the Dirty Value can differ per scale, there are various functions to translate this value into an actual weight. You can set this per scale using the functions in the fields in the screenshot below. Several functions allow you to test whether the Dirty Value is ultimately translated into the correct weight. The final weight that has been translated ends up in the Weight Value field in your scale overview.
Scanner
All scan functions related to the scale integration are in codeunit 11191143. You use function 11 within this code unit to run the scale as you do from your scale overview. You can then use scan function 2 from this code unit to retrieve the weight and put it in a session of variables.