![Rongta Technology RLS1000 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/rongta-technology/rls1000/rls1000_software-user-manual_1485091027.webp)
25
2.5
Message mechanism interaction for RLS1000
Hereinafter, it’s using example of Delphi, and reference for other developing environment.
Activate RLS1000
Use WinExec function
WinExec('XX\bin\RLS1000.exe DEMO.L32', SW_SHOWNORMAL);
Thereinto
:
XX is the installing catalogue, DEMO.L32 is the RLS1000 file for customer using.
Completely covered way
Send “Download plu” demand to RLS1000 program (send F9).
Handle:=FindWindow('TRLS1000Form',0);
PostMessage(Handle,WM_KeyDown,VK_F9,1);
Change the downloading way
Send “Update plu” demand to RLS100program(send F8).
Handle:=FindWindow('TRLS1000Form',0);
PostMessage(Handle,WM_KeyDown,VK_F8,1);
Notification message
After command executed, RLS1000 program will send a message to all top windows.
Hereinafter, the executed statement of RLS1000
RLS1000Message:=RegisterWindowMessage('RLS1000'); register one message
PostMessage(HWND_BROADCAST,RLS1000Message,0,0); send this message to all top
windows
Back stage->RLS1000
Code
Desp
Type Length
Remark
0102 Response for demand(ACK) digit
4
Order code
digit
4
Fresh food code
digit
6
Error code
digit
4
0110 PLU back stage sending
digit
4
Operate
digit
1
I: Update D: Delete
Rank
digit
2
Rank No.
Name
digit
36
Fresh food code
digit
6
Art. No.
digit
10
Barcode type
digit
2
Refer to barcode format
Unit price
digit
8
Non-decimals pattern
Weighing unit
digit
1
0:50g,1:g,2:10g,3:100g,4:kg,5:oz,6:lb,
7:500g,8:600g,9:PCS(g),A:PCS(Kg),
B:PCS(oz),C:PCS(Lb)
Dept.
digit
2
Refer to barcode format
Tare weight
digit
6
Within 15Kg after logic conversion
Saving period
digit
3
0-365
Packing type
digit
1
0: normal,1: fixed weight,2: fixed price,3:
barcode printer
Packing weight
digit
6
Within 15Kg after logic conversion
Packing error
digit
2
0-20, error for fixed weight or fixed price
Message 1
digit
3
0-197
Message 2
digit
3
0-197
Multi-barcode
digit
3
0-255
Discount
digit
3
0-99
Sales mark
digit
1
Discount mark
digit
1
0120
Request demand for sale
record uploading
digit
4