
99
Returns
:
1 for valid setting (successful), 0 for invalid setting (failed).
write_com
Purpose
:
Send a string out through RS232 port
Syntax
:
int write_com(int port, char *s);
Example call
:
char s[20]={“Hello World\n”};
write_com(1,s);
Includes
:
#include “LIB_CL.h ”
Description
:
This routine is used to send a string through RS232 ports. If any prior
transmission is still in process, it is terminated then the current
transmission resumes. The character string is transmitted one by one
until a NULL character is met. A null string can be used to terminate
prior transmission. Use the argument “port” as the connect port which is
chosen to open. Now we only can choose 1(COM 1).
Returns
:
None
◆
Keyboard Wedge
Definition of the WedgeSetting array
:
Subscriptor
Bit
Description
0 7-0
Keyboard / Collector Type,1 = US Keyboard,101 =
Turkish Q Keyboard.
1 7
Reserve.
1 6
Reserve.
1 5
1:Ignore alphabets case.
0:Alphabets are case sensitive.
1 4-3
00,01,10:Reserve.
11:digits are upper position
1 2-1
Reserve.
1 0
1:use numeric key pad to transmit digits
0:use alpha-numeric key to transmit digits
2 7-0
inter-character
delay(0~255ms)
3 7-0
1:Use NoteBook
0:Use PC.
Composition of Output String
The keyboard wedge character mapping is shown below. When the SendData
routine transmits data, each character in the output string is translated by this table.
00
10
20
30
40
50
60
70
80
0
F2
SP
0
@
P
`
p
○
0
Dly:
delay 100ms.
○
0
~
○
9
:
Digits of Numeric
Key Pad.
CR*:Enter key on
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...