Digital encoder for the Mettler 994/992 systems