4-2
IM 34M6H21-01E
2nd Edition : Aug, 2001-00
(Example)
When using slot number 5, port 2 at 9600bps, odd parity with 2 stop bits,
10 ASSIGN RS22=5
20 RESET 5,2
: !Port Reset
30 CONTROL 5,2,14;7
: !9600 bps
40 CONTROL 5,2,13;1
: !parity Odd
50 CONTROL 5,2,12;2
: !2 Stop bits
60 RESET 5,2,1
: !Buffer Reset
The main registers for setting the communication conditions are shown in Table 4.2.
See Table 4.7 in Section 4.4 for a list of all the registers.
Table 4.2 List of Main Registers for Setting Communication Conditions
Data Position
Number
Type of
Register
Contents Default
Value
11 S/C
Character
length
0: 7 bits
1: 8 bits
Others: 8 bits
1
12
S/C
Stop bit length
0: 1 bit
1: 1.5 bits
2: 2 bits
Others: 2 bits
0
13 S/C
Parity
0: none
1: odd
2: even
Others: even
2
14 S/C
Data transfer rate
(bps)
0: 75
1: 150
2: 300
3: 600
4: 1200
5: 2400
6: 4800
7: 9600
8: 19200
others: 19200
6
S/C: status/control register
Output
Use the OUTPUT statement to send text.
OUTPUT S,P;
output data
(Example)
To send the character string “ABCDE” from slot 5, port 2,
OUTPUT 5, 2; “ABCDE”
The ending characters CR-LF (default value) are added and output on the line as
shown below.
Numeric values or variables, or character strings or character string
variables.
Enclose numeric values or character strings within double quotes (“).
A
B
C
D
E
CR
LF
Summary of Contents for F3RS22-0N
Page 11: ...Blank Page...
Page 15: ...Blank Page...
Page 28: ...3 3 IM 34M6H21 01E 2nd Edition Aug 2001 00 External Dimensions Unit mm 83 2 28 9 2 12 1 100...
Page 31: ...Blank Page...
Page 59: ...Blank Page...
Page 63: ...Appx 3 2 IM 34M6H21 01E 2nd Edition Aug 2001 00 Blank Page...
Page 65: ...Blank Page...