Download "user manual"

Transcript
25: USER COMMUNICATION INSTRUCTIONS
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 device S1, conversion type and transmit digits must also be assigned. The data
stored in the designated data register is converted and the assigned quantity of digits of the resultant data is transmitted. The
conversion types that are available are: 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
ASCII data
D10
000Ch
Binary to ASCII conversion
“C”
“0”
“0”
“0”
(30h) (30h) (30h) (43h)
When transmitting 4 digits
(2) BCD to ASCII conversion
ASCII data
D10
000Ch
Decimal value
00012
BCD to ASCII conversion
“2”
“0”
“0”
“0”
“1”
(30h) (30h) (30h) (31h) (32h)
When transmitting 5 digits
(3) No conversion
ASCII data
D10
000Ch
No conversion
FF
NUL
(00h) (0Ch)
When transmitting 2 digits
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
25-3