User manual
Planning Your Application Program 
Chapter 6 
$aaSiAFFff 
Name  Set Data Format 
Description  Sets the data format in engineering units or in two’s 
complement format for a specified analog input mod- 
ule in a specified system. 
Syntax $aaSiAFFff 
$ is a delimiter character. 
aa (range 00-FF) represents the 2-character hexadeci- 
mal address of the ADAM-5000/TCP system 
you want to configure. Si identifies the I/O slot of the 
ADAM-5000/TCP sys- tem containing the ADAM-
5017H/5017UH module you want to configure. 
AFF represents the set data format command. ff 
represents the 2-character hexadecimal code of the 
data format. 00 is for engineering unit format. 02 is for 
two’s complement format. 
(cr) is the terminating character, carriage return (0Dh). 
Note:  Each channel in an ADAM-5017H /5017UH module may be set 
to a differ- ent range, but the data formats of all channels in 
this module 
must be the same. 
Response !aa(cr) if the command is valid. 
?aa(cr) if an invalid operation was entered. There is 
no response if the module detects a syntax error or 
communication error or if the specified ad- dress 
does not exist. 
! delimiter character indicating a valid command was 
received. 
? delimiter character indicating the command was in- 
valid. 
aa (range 00-FF) represents the 2-character hexadeci- 
mal address of an ADAM-5000/TCP system. 
(cr) is the terminating character, carriage return (0Dh). 
Example  command: $01S3AFF00(cr) 
response: !01(cr) 
The data format of the ADAM-5017H /5017UH 
module in slot 3 of the ADAM-5000/TCP system at 
address 01h is configured for engineering unit format. 
The response indicates that the command has been 
received as a valid command. 
ADAM-5000/TCP User’s Manual 
6-83 










