If your scale does not listed here you can try integrating it by using “Custom Scale” option. To be able to make this configuration you need to know how regular expressions works.
Connect to COM Port to monitor what information scale sends. You can use a terminal application like putty to monitor that.
Our test scale is CAS ER model. This Scale continuously sends scale value as ** S x.xxxkg** format. We’ll use a regular expression to extract x.xxx value.
When you select Custom Scale option scale settings contains additional field called Match Pattern. Our Regular Expression to extract weight value is [^\d]+([0-9]+[.,]+[0-9]+) so I typed it to Match Pattern field.
If you are familiar with RegEx please notice we are using first group value to find weight.
Hi Emre, I’m new here and hope i posted in the correct category. I’ve successfully connected my CAS SW but it only display 0.001 in sambapos when i’ve placed an item weighing 1.28kg on the scale.
I tried weighing 2.5kg but only display as 0.002 and so on. It doesn’t seem to capture anything after the decimal.
Below is the output from hyperterminal
I’ve tried custom scale and it still give me the same results. Tried ([0-9]+[.,]+[0-9]+) and a few combination still the same What is the match pattern should i use in this case?
Please help…thank you
Yes, i’ve tried using [^\d]+([0-9]+[.,]+[0-9]+) and it’s the same result. My windows regional decimal seperator is as the picture. I’ve just tried changing to No. of digits after decimal to 3 and still the same result.
Please keep your questions to one post, asking the same questions twice will not get you any more help and just makes it harder for people to reply and help you as your answers are across different posts.
Its also harder for other people with the same problems to follow the links and advice being given as it isnt in one place