Ascii-To-Hexadecimal - Hex - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Data Conversion
Parity
Flags
5-18-11 ASCII-TO-HEXADECIMAL – HEX(––)
Some examples of Di values and the 4-bit binary to 8-bit ASCII conversions that
they produce are shown below.
Di: 0011
S
0
1
2
3
Di: 0112
S
0
1
2
3
The leftmost bit of each ASCII character (2 digits) can be automatically adjusted
for either even or odd parity. If no parity is designated, the leftmost bit will always
be zero.
When even parity is designated, the leftmost bit will be adjusted so that the total
number of ON bits is even, e.g., when adjusted for even parity, ASCII "31"
(00110001) will be "B1" (10110001: parity bit turned ON to create an even num-
ber of ON bits); ASCII "36" (00110110) will be "36" (00110110: parity bit turned
OFF because the number of ON bits is already even). The status of the parity bit
does not affect the meaning of the ASCII code.
When odd parity is designated, the leftmost bit of each ASCII character will be
adjusted so that there is an odd number of ON bits.
ER:
Incorrect digit designator, or data area for destination exceeded.
Indirectly addressed DM word is non-existent. (Content of ∗DM word is
not BCD, or the DM area boundary has been exceeded.)
Ladder Symbols
HEX(––)
@HEX(––)
S
Di
D
S
D
0
1st half
1
2nd half
2
3
S
D
0
1st half
1
2nd half
2
D+1
3
1st half
2nd half
IR, SR, AR, DM, HR, TC, LR
S
IR, SR, AR, DM, HR, TC, LR
Di
D
Section 5-18
Di: 0030
D
1st half
2nd half
D+1
1st half
2nd half
Di: 0130
D
1st half
2nd half
D+1
1st half
2nd half
D+2
1st half
2nd half
Operand Data Areas
S: First source word
Di: Digit designator
D: Destination word
IR, SR, AR, DM, HR, LR
195

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents