67
Appendix O: - System Parameter Reading Commands
39
System parameter inquiry commands are used to check system parameter settings. Command format as below: -
e.
Hex code 0D (ASCII code $0D), then
f.
Hex code 0A (LF) (ASCII code $0A) then
g.
Command code listed on below table (all commands are case sensitive), then
h.
Hex code 20 (ASCII code $20).
Command Code
Description
Number & Description Responded Parameters
Notes: -
a.
If more than one parameter, semi colon separation is inserted between parameters.
b.
Response from instrument always end up with Hex code 0D 0A
Aa
Calibration weight unit
and application
d1
= calibration weight unit: - 0 = kg; 1 = lb.
d2
= application: - 0 = none; 1 = OIML; 2= NTEP
Ab
Decimal
format,
decimal point of kg, g
and lb
d1
= decimal format: - 0 = dot (fixed)
d2
= kg: - 0 = no decimal; 1 = 1 decimal place…… 4 = 4 decimal place
d3
= g: - 0 = no decimal; 1 = 1 decimal place…… 4 = 4 decimal place; n = not applicable
d4
= lb: - 0 = no decimal; 1 = 1 decimal place…… 4 = 4 decimal place
Ac
Capacity1 of kg, g, lb
d1
= capacity in kg. Data length = 8 including decimal with leading space (Hex code 20)
d2
= capacity = g. Data length = 8 including decimal with leading space (Hex code 20)
d3
= capacity = lb. Data length = 8 including decimal with leading space (Hex code 20)
Ad
Capacity 2 of kg, g, lb
d1
= mode: - 0 = Off; 1 = dual weighing range; 2 = dual interval
d2
= capacity in kg. Data length = 8 including decimal with leading space (Hex code 20)
d3
= capacity = g. Data length = 8 including decimal with leading space (Hex code 20)
d4
= capacity = lb. Data length = 8 including decimal with leading space (Hex code 20)
Ae
Division 1 of kg, g, lb
d1
= kg: - 0 = 1; 1 = 2; 2 = 5; 3 = 10; 4 = 20; 5 = 50
d2
= g: - 0 = 1; 1 = 2; 2 = 5; 3 = 10; 4 = 20; 5 = 50
d3
= lb: - 0 = 1; 1 = 2; 2 = 5; 3 = 10; 4 = 20; 5 = 50
Af
Division 2 of kg, g, lb
d1
= kg: - 0 = 1; 1 = 2; 2 = 5; 3 = 10; 4 = 20; 5 = 50
d2
= g: - 0 = 1; 1 = 2; 2 = 5; 3 = 10; 4 = 20; 5 = 50
d3
= lb: - 0 = 1; 1 = 2; 2 = 5; 3 = 10; 4 = 20; 5 = 50
Ag
Gravity
Factor
of
Calibration Place and
d1
= gravity factor of calibration place. Data length = 8 including decimal with leading space (Hex code 20).
d2
= gravity of location of operation place. Data length = 8 including decimal with leading space (Hex code 20).
39
Connect the external peripheral which generates system parameter inquiry commands to Comport 2 and set Comport 2 to CMD.