New Member
Group: Members
Posts: 1
Member No.: 58181
Joined: 22-May 13
|
The terminal should accept a input from the user (Example : new temperature value) and convert into integer. This integer value will be transferred across the interface (RS232 interface) to the memory.
example : the message structure - struct memoryTag1; typedef struct memoryTag1{
char a[10]= {'+','0','2','6','.','5','E','A','\r'}; // first five bits is the new temperature value (+26.5), two bits (euipment name- EA), carriage reurn.
char b[10]= {'-','0','2','4','.','5','E','B','\r'};
char c[8]= {'+','0','2','0','E','C','\r'};
}Memory1;
thank you in advance.
|