29
;AD7!===IgYfAUbiU`
Ex.) < CProgram >
char RxBuffer[16];
float IR,IS, IT;
int I;
for(I=0;I<4;I++){
((char *)(&IR))[I] = RxBuffer[I+1];
((char *)(&IS))[I] = RxBuffer[I+5];
((char *)(&IT))[I] = RxBuffer[I+9];
}
10.3 Control Command I
COMMAND(1BYTE) +SUBCOMMAND(1BYTE)+CHECKSUM(1BYTE)
* COMMAND : 0x20
** SUBCOMMAND : See the table below.
*** CHECKSUM = (COMMAND+ SUBCOMMAND) % 0x100
SUB COMMAND Description
42h WH/VARH RESET
43h FAULT RESET
44h RESET the Number of times of CB operation
45h RESET accumulated time when CB is on
10.4 Control Command II
10.4.1 Command of selecting control point
COMMMAND(1BYTE) +
SUBCOMMAND(1BYTE)+
Control CODE1(1 BYTE) + Control CODE2(1 BYTE) + CHECK SUM(1BYTE)
* COMMAND : 0x2e
** SUBCOMMAND : 0xaa
*** Control CODE1, Control CODE2 : See the table below
****CHECKSUM=(COMMAND + SUBCOMMAND + Control CODE1 + Control CODE
2) % 0x100