Page 61
Serial Interface RS422
optoNCDT 1700
Conversion must be done in the application program.
Example:
Digital value: 2099 (= 0x0833 = 0b0010000 0110011) 14 Bit
Binary format
H-Byte: Transfer 0x90 (0b10010000) with flag bit 8 Bit
-> converted 0x10 (0b0010000) without flag bit 7 Bit
L-Byte: Transfer 0x33 (0b00110011) with flag bit 8 Bit
-> converted 0x33 (0b110011) without flag bit 7 Bit
Flag bits deleted and compiled: 0x833
8.2.2 ASCII Format
Output of 5 characters (digits) in ASCII code for the digital value + 1 tag „CR“ (= 0x0D), i.e. a total of 6
characters. Digital values with just 3 or 4 digits are preceded by blank characters.
Example: Digital value 2099
Transfer: “_2099“ (preceded by 1 blank character) „CR“
ASCII-Code (Hex.) 0x20 0x32 0x30 0x39 0x39 0x0D
Characters SP 2 0 9 9 CR
Advices:
ASCII characters can be easily shown using a terminal program.
The output rate in ASCII format is reduced automatically by skipping individual measurement values, see
Chap. 6.9.