Vpt
object allows to communicate with Massa-K VP-15T electronic scales via serial interface.
For more information please refer to the scales manual
The members of the Vpt
class (in alphabetical order, Visual Basic notation):
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
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.
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.
Property GroupCode As Long
Group code for the goods. The range of group codes for Massa-K VP-15T scales model is 0..999999.
Property Name1 As String
The name of the goods, first line. The maximum length of this string is 24 characters.
Property Name2 As String
The name of the goods, second line. The maximum length of this string is 24 characters.
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
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