10: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
10-9
Transmit Digits (Bytes)
After conversion, the transmit data is taken out in specified digits. Possible digits depend on the selected conversion
type.
Example: D10 stores 010Ch (268)
(1) Binary to ASCII conversion, Transmit digits = 2
010Ch
D10
Binary to ASCII conversion
“0”
(30h)
“1”
(31h)
“0”
(30h)
“C”
(43h)
Transmitted data
“0”
(30h)
“C”
(43h)
Lowest 2 digits
ASCII data
(2) BCD to ASCII conversion, Transmit digits = 3
010Ch
D10
Decimal
“0”
(30h)
“0”
(30h)
“2”
(32h)
“6”
(36h)
“8”
(38h)
Lowest 3 digits
“2”
(32h)
“6”
(36h)
“8”
(38h)
BCD to ASCII
00268
value
conversion
Transmitted data
ASCII data
(3) No conversion, Transmit digits = 1
010Ch
D10
No conversion
SOH
(01h)
FF
(0Ch)
FF
(0Ch)
Lowest 1 digit
ASCII data
Transmitted data
Repeat Cycles
When a data register is designated to repeat, consecutive data registers, as many as the repeat cycles, are used for trans-
mit data in the same conversion type and transmit digits.
Example:
000Ch
D10
0022h
D11
0038h
D12
Data register No.: D10
Transmit digits:
2
Conversion type:
BCD to ASCII
Data of data registers starting with D10 is converted in BCD to ASCII and is transmitted according to the designated repeat
cycles.
000Ch
D10
“1”
(31h)
“2”
(32h)
“3”
(33h)
“4”
(34h)
00012
Repeat 1
0022h
D11
Decimal value
00034
BCD to ASCII conversion
Repeat 2
ASCII data
(1) Repeat cycles = 2
000Ch
D10
“1”
(31h)
“2”
(32h)
“3”
(33h)
“4”
(34h)
00012
Repeat 1
0022h
D11
Decimal value
00034
BCD to ASCII conversion
Repeat 2
0038h
D12
00056
Repeat 3
“5”
(35h)
“6”
(36h)
ASCII data
(2) Repeat cycles = 3
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]