LpeWeigh
object (new in version 0.2) allows to catch weigh events from CAS LP-15 electronic scales via Ethernet interface.
For more information please refer to the scales manual
The members of the LpeWeigh
class (in alphabetical order, Visual Basic notation):
Function Start(hostname As String, portnum As Integer, scales As Integer, millisec As Long) As Integer
Connect to the scales and poll for weighing with specified interval.
Parameters: hostname
- IP address of the scales; portnum
- port number; scales
- scales number; millisec
- polling time interval in milliseconds
Return value: 1 - successful, 0 - failed
Property StatePrice As Double
Goods price for kilogram or pound (depends on your locale).
Function Stop() As Integer
Stop polling and disconnect from the scales.
Parameters: -
Return value: 1 - successful, 0 - failed
Event Weighed()
This event is fired if weighing happened on the scales. After that, state parameters can be read from properties StateDualRange, StateItem, StateOverload, StatePrice, StateStableWeight, StateTareMode, StateValue, StateWeight, StateWeightSign and StateZeroWeight.
Parameters: -
Return value: -