Remote Mode Operations U511 User’s Manual
6-10 Aerotech, Inc. Version 1.1
6.4.8. FMn: Format of Returned Data
This command specifies the format of returned data where n = :
0 = decimal ASCII format:
The UNIDEX 511 prints data as a decimal number followed by the <EOS>
character. Data should be converted to binary format by the C conversion
function “atol()” or equivalent.
1 = hex ASCII format:
Leading zeros will be appended to the string displayed in hexadecimal format.
This mode is useful for debugging.
2 = binary format:
Binary output data is always a fixed number of bytes. There is no EOS
character in RS-232 mode. In GPIB mode, the EOI signal is used to end the
transmission.
The least significant byte (LSB) is always sent first in binary mode. The PS and PX
commands return 4 bytes in binary mode. The Q command returns one byte.
Binary mode overrides the ASCII modes.
Example: Status word 0x01234567 printed in:
HEXASCII: “01234567”<EOS>
DECIMAL: “19088743”<EOS>
BINARY: 67 45 23 01
Table 6-14 shows the communication sequence for the Format of Returned Data
command.
Table 6-14. Format of Return Data Command Sequence
Direction of Transfer Command Description
Host→U511
FM Format command
Host→U511
Format code Format code character (0, 1, or
2)
Host→U511
EOS character End of string character (LF)
U511→Host
ACK/NAK character Acknowledge character (0x06)
Example: FM0 <EOS character>
See the “RR,” “WR,” and “FM” commands for more information.
F
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com