
2.4 Instruction Details
3-184
2
Chapter 2 Instructions
Hex number Bit configuration Code Bit configuration
0 0000 $30 0 0 110000
1 0001 $31 0 0 110001
2 0010 $32 0 0 110010
3 0011 $33 0 0 110011
4 0100 $34 0 0 110100
5 0101 $35 0 0 110101
6 0110 $36 0 0 110110
7 0111 $37 0 0 110111
8 1000 $38 0 0 111000
9 1001 $39 0 0 111001
A 1010 $41 0 1 000001
B 1011 $42 0 1 000010
C 1100 $43 0 1 000011
D 1101 $44 0 1 000100
E 1110 $45 0 1 000101
F 1111 $46 0 1 000110
Description
Operation using the ASC instruction
When input relay 0000 turns ON, the contents of DM0000 are transferred to the
internal register. The contents of the internal register (low-order 8-bit, 2-digit numeri-
cal value) are converted into 2-digit ASCII code. This 2-digit code is input back to the
internal register, and then transferred to DM0001.
Operation using the RASC instruction
When input relay 0001 turns ON, the contents of DM0010 are transferred to the
internal register. The contents of the internal register (2-digit ASCII code) is con-
verted into a low-order 8-bit, 2-digit numeric value. This 2-digit numeric value is input
back to the internal register, then transferred to DM0011..
The value is converted only when the high- and low-order 8-bit value of the internal
register is within the range of "$30" to "$39" and "$41" to "$46", respectively, before
the conversion. (When either of the high- or low-order 8-bit value is not within the
range, the conversion is disabled. In this case, special utility relay 2012 turns ON.)
Example of conversion between hex and ASCII numbers
10100101
01000001001101
4135
A5
01
00000000011011
4336
6C
00
0011011001000011
ASC / @ASC / RASC / @RASC
KVNKA Chap 02_4dP.p65 08.3.11, 0:04 PM184
Comentarios a estos manuales