7. Vpt object

Vpt object allows to communicate with Massa-K VP-15T electronic scales via serial interface.

Note

For more information please refer to the scales manual

The members of the Vpt class (in alphabetical order, Visual Basic notation):

7.1. Connect

Function Connect(hostname As String, portnum As Integer) As Integer

Connect to the scales.

Parameters: hostname - not used (any string); portnum - serial port number

Return value: 1 - successful, 0 - failed

7.2. Disconnect

Sub Disconnect()

Disconnect from the scales.

Parameters: -

Return value: -

7.3. ExpDate

Property ExpDate As String

Date of lifetime expiration for the goods.

7.4. GoodsCode

Property GoodsCode As Long

Code for the goods. Usually it means the code assigned to this goods item in your business software. The range of codes for Massa-K VP-15T scales model is 0..999999.

7.5. GoodsKind

Property GoodsKind As Integer

0 - goods sold by weight, 1 - goods sold by piece.

7.6. GoodsNumber

Property GoodsNumber As Long

The goods number stored in the scales. The range of numbers for Massa-K VP-15T scales model is 1..999.

7.7. GoodsPrice

Property GoodsPrice As Double

Price for the goods.

7.8. GroupCode

Property GroupCode As Long

Group code for the goods. The range of group codes for Massa-K VP-15T scales model is 0..999999.

7.9. Life

Property Life As Integer

Lifetime (in days) for the goods.

7.10. Name1

Property Name1 As String

The name of the goods, first line. The maximum length of this string is 24 characters.

7.11. Name2

Property Name2 As String

The name of the goods, second line. The maximum length of this string is 24 characters.

7.12. Receive

Function Receive(pScales As Integer, pItem As Long) As Integer

Recieve goods item data from the scales. All received data are stored in the properies ExpDate, GoodsCode, GoodsKind, GoodsNumber, GoodsPrice, GroupCode, Life, Name1, Name2, Tare.

Parameters: pScales - scales number (programmed internally in scales); pItem - goods item number (1..999)

Return value: 1 - successful, 0 - failed

7.13. ScalesNum

Property ScalesNum As Byte

Not used. For compatibility with earlier versions only.

7.14. Send

Function Send(pScales As Integer, pItem As Long) As Integer

Send goods item data to the scales. All sending data are taken from the properies ExpDate, GoodsCode, GoodsKind, GoodsNumber, GoodsPrice, GroupCode, Life, Name1, Name2, Tare.

Parameters: pScales - scales' number (programmed internally in scales); pItem - goods item number (1..999)

Return value: 1 - successful, 0 - failed

7.15. Tare

Property Tare As Integer

Tare weight for the goods item.