General command structure, Eneral, Ommand – RayTek 54301 User Manual

Page 75: Tructure, Programming guide 11.2 general command structure, Mid 67

Advertising
background image

Programming Guide 

11.2 General Command Structure 

Requesting a parameter (Poll Mode) 
?ECR 

“?“ is the command for “Request“ 

 

“E“ is the parameter requested 

 

“CR“ (carriage return, 0Dh) is closing the request. 

 

Remark:  It  is  possible  to  close  with  “CR“  “LF“,  0Dh, 
0Ah, but not necessary. 

Setting a parameter (Poll Mode) 
The parameter will be stored into the device EEPROM. 
E=0.975CR 

“E“ is the parameter to be set 

 

“=“ is the command for “set a parameter“ 

 

“0.975“ is the value for the parameter 

 

“CR“ (carriage return, 0Dh) is closing the request 

 

Remark:  It  is  possible  to  close  with  “CR“  “LF“,  0Dh, 
0Ah, but not necessary. 

Setting a parameter without writing into the EEPROM (Poll Mode) 
This function is for test purposes only. 
E#0.975CR 

“E“ is the parameter to be set 

 

“#“ is the command for “set parameter without writing 
into the EEPROM“ 

 

“0.975“ is the value for the parameter 

 

“CR“ (carriage return, 0Dh) is closing the request. 

 

Remark:  It  is  possible  to  close  with  “CR“  “LF“,  0Dh, 
0Ah, but not necessary. 

Device response format: 
!E0.975CRLF  “!“ is the parameter for “Answer“ 
 

“E“ is the parameter 

 

“0.975“ is the value for the parameter 

 

“CR“ „LF“ (0Dh 0Ah) is closing the answer. 

MID 

67 

Advertising