Most of those features are not needed to simply collect component data (with no interest in controlling the instrument). Fortunately Foss provides a "Simple CS83" option that can simply output data on the serial port.
This feature was introduced in LabSystem versions 5.72 (build 572.20070202.1) and 6.01 (build 601.20070202.1).
Configuration
In the LabSystem a milk analysis instrument is referred to as a "machine." The Foss CS83 interface is enabled in the LabSystem machine configuration file using a text editor. This option is not available in the LabSystem machine configuration screen. The machine configuration files are located in the same directory as the LabSystem program files (usually C:\LABSYS). The machine configuration files are named LSCONFIG.Mxy where x is the machine number 1 (left) or 2 (right) and y is the configuration sequence (0 to 9 allowing up to 10 different configurations per machine). For example, the file for the first configuration (0) for machine 1 (displayed on left side of data collection screen) is LSCONFIG.M10.
To enable the Foss CS83 interface, set the _FossCS83Mode= option in the [SERIAL] section.
The following values control functions of the CS83 interface:
Value
|
Function |
| 1 |
Enabled. Any non-zero value will enable the CS83 interface so the value 1 is only needed if none of the other functions are enabled. |
| 2 |
Read sample numbers from the machine. Default is to ignore sample numbers from the machine and use the internal sequence counter in the LabSystem. |
| 4 |
Use Fat-A result. Default is to use Fat-B. |
| 8 |
Use SNF. Default is to use Total Solids. Only applies if solids are being collected. |
| 16 |
Verbose mode: Displays additional messages for troubleshooting. |
| 32 |
Use the #0B/ component to provide a default lactose value. Required by NMR's WizHerd system if a machine does not produce actual lactose values. |
To enable multiple functions set the _FossCS83Mode= option to the sum of the values of the above functions you wish to enable.
For example, to enable the CS83 interface (1), in verbose mode (16), and using default lactose values (32), set the option as follows:
_FossCS83Mode=49
The value 48 would work here also since the enabled (1) value is optional if other functions are enabled.
To disable CS83 mode set the option to zero:
_FossCS83Mode=0
Notes
Foss CS83 mode overrides the component position and length settings in the machine configuration. It is still necessary to set Active to Y for any components that are to be collected.
The EndOfRead= setting in the [READ] section is also ignored since CS83 packets always end with the ']' (ASCII 93) character.
CS83 Components
The following CS83 components are handled:
Prefix
|
Description |
| #FF/ |
RESULT TYPE |
| #F3/ |
Numerator: Sample number in current batch (see function 2). |
| #69/ |
SAMPLE-ID: Bar code, rightmost (least significant) 10 digits. |
| #6F/ |
EXTENDED-ID: Bar code, leftmost (most significant) digits, if more than 10 digits. |
| #0B/ |
H-Index (see function 32). |
| #00/ |
Normal sample; Fat A (see function 4). |
| #01/ |
Normal sample; Fat B. |
| #03/ |
Normal sample; Lactose. |
| #DA/ |
Normal sample (derived); Total Solids. |
| #D9/ |
Normal sample (derived); Solids Non-Fat (see function 8). |
| #06/ |
Normal sample; Cells (SCC). |
| #09/ |
Normal sample; Urea (MUN). |
| #80/ |
Pilot sample; Fat A. |
| #81/ |
Pilot sample; Fat B. |
| #82/ |
Pilot sample; Protein. |
| #83/ |
Pilot sample; Lactose. |
| #9A/ |
Pilot sample (derived); Total Solids. |
| #99/ |
Pilot sample (derived); Solids Non-Fat. |
| #86/ |
Pilot sample; Cells (SCC). |
| #89/ |
Pilot sample; Urea (MUN). |
|