Essae Scale Utility Manual
Essae Scale Utility Manual
Ver 1.01
Page 1 of 11
Software Interface:
The software DLL defines a standardized interface function using VB.net to interact with Essae-
scale.
Developing Environment:
Communication ->RS232
Page 2 of 11
Ethernet Port Settings:
Supported Environment:
Framework
Minimum : Dot Net framework 3.5 or Dot Net framework 4.0
Environment.
Functions:
Scale Status,
Re-Zero weight,
Tare weight,
Get Weight.
Page 3 of 11
SA_Scale_Status
Where as :
Parameter1- it will accept string datatype, string values “COM” or “NET” these are connection
type
Parameter2- it will accept string datatype, if Connection type as COM then comport No. has
to specify. Otherwise “NULL”.
Parameter3- it will accept string datatype, if Connection type as NET then specify Essae
scale IP address. Other wise “NULL”.
Parameter4- it will accept string datatype, if Connection type as NET then specify Essae
scale Port No. Other wise “NULL”.
1=>True=> Connected.
ex:
Connection type:RS232 (Comport)
lblComGetStatus.Text = status.ToString();
lblNetStatus.Text = status.ToString();
Page 4 of 11
SA_Scale_Rezero .(Special Version)
Sets the Gross-, Net-, Tare- or all weights value of the actual scale to 0.
Where as :
Parameter1- it will accept string datatype, string values “COM” or “NET” these are connection
type
Parameter2- it will accept string datatype, if Connection type as COM then comport No. has
to specify. Otherwise “NULL”.
Parameter3- it will accept string datatype, if Connection type as NET then specify Essae
scale IP address. Other wise “NULL”.
Parameter4- it will accept string datatype, if Connection type as NET then specify Essae
scale Port No. Other wise “NULL”.
ex:
Connection type:RS232 (Comport)
EssaeDLL.SA_Scale_Rezero("COM", txtComPortNo.Text, null, null);
SA_Scale_Tare
Tare with actual weight or with a user-specified value. Option: erase the actual tare value.
Where as :
Parameter1- it will accept string datatype, string values “COM” or “NET” these are connection
type
Parameter2- it will accept string datatype, if Connection type as COM then comport No. has
to specify. Otherwise “NULL”.
Parameter3- it will accept string datatype, if Connection type as NET then specify Essae
scale IP address. Other wise “NULL”.
Page 5 of 11
Parameter4- it will accept string datatype, if Connection type as NET then specify Essae
scale Port No. Other wise “NULL”.
ex:
Connection type:RS232 (Comport)
EssaeDLL.SA_Scale_Tare("COM", txtComPortNo.Text, null, null);
SA_Scale_GetWeight
The weight value is the actual value at the moment when the command has been called, and this
command return string value.
Where as :
Parameter1- it will accept string datatype, string values “COM” or “NET” these are connection
type
Parameter2- it will accept string datatype, if Connection type as COM then comport No. has
to specify. Otherwise “NULL”.
Parameter3- it will accept string datatype, if Connection type as NET then specify Essae
scale IP address. Other wise “NULL”.
Parameter4- it will accept string datatype, if Connection type as NET then specify Essae scale
Port No. Other wise “NULL”.
Return : string
ex:
Connection type:RS232 (Comport)
string Weight=EssaeDLL.SA_Scale_GetWeight("COM", txtComPortNo.Text, null, null);
Page 6 of 11
SA_Input_Variable_Assign (only on COM connection)
Gets input from users. It’s contains 5 parameter ( BaudRate, DataBits,Parity, StopBits, Handshake).
This parameter vales based on essae scale comport settings. If connection type “NET” then no need to assign
it.
Where as :
ex:
Connection type:RS232 (Comport)
EssaeDLL.SA_Input_Variable_Assign(BaudRate,DataBits,Parity,StopBits,Handshake)
Step 1: Copy and then paste DLL file in project Debug folder as following figure. (Project Name Folder->bin-
>Debug)
Page 7 of 11
Step 2: Go to menu Project->Add Reference then select Reference then window will appear or Right click
on References and then select Add Reference… as following figure.
Step 4: Select Browse tab and go to project debug folder (i.e. DLL copied, local folder location) select
EssaeScaleDLL.dll and click ok button. Finally DLL successfully added into the project.
Page 8 of 11
HOW TO LINK LIBRARY FILE IN TO PROJECT
Step 1: Go to source code page and add new namespace “using EssaeScaleDLL” as following figure.
Step 2: After adding name space, add EssaeScaleClass in to current project class scope. As following figure.
Page 9 of 11
Sample Utility Screen:
Ver 1.01
Page 10 of 11
Using Ethernet(IP & Port):
Ver 1.01
Page 11 of 11