IDEC FC4A-C10R2 User Manual page 286

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

17: U
C
SER
OMMUNICATION
Example:
The following example shows two methods to enter 3-byte ASCII data "1" (31h), "2" (32h), "3" (33h).
(1) Constant (Character)
(2) Constant (Hexadecimal)
Designating Data Register as S1
When a data register is designated as source operand S1, conversion type and transmit digits must also be designated. The
data stored in the designated data register is converted and a designated quantity of digits of the resultant data is transmit-
ted. Conversion types are available in Binary to ASCII, BCD to ASCII, and no conversion.
When repeat is designated, data of data registers as many as the repeat cycles are transmitted, starting with the designated
data register. Repeat cycles can be up to 99.
Conversion Type
The transmit data is converted according to the designated conversion type as described below:
Example: D10 stores 000Ch (12)
(1) Binary to ASCII conversion
D10
000Ch
(2) BCD to ASCII conversion
D10
000Ch
(3) No conversion
000Ch
D10
17-8
I
NSTRUCTIONS
Binary to ASCII conversion
Decimal value
No conversion
When transmitting 2 digits
« FC4A M
ASCII data
"0"
"0"
"0"
"C"
(30h)
(30h)
(30h)
(43h)
When transmitting 4 digits
00012
BCD to ASCII conversion
ASCII data
NUL
FF
(00h)
(0Ch)
S
U
'
M
ICRO
MART
SER
S
ANUAL
ASCII data
"0"
"0"
(30h)
(30h)
When transmitting 5 digits
»
"0"
"1"
"2"
(30h)
(31h)
(32h)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents