RIEVTECH — RIEVTECH STUDIO SOFTWARE MANUAL(2.0 Version).docx

RIEVTECH STUDIO SOFTWARE MANUAL Set Value: int type, the value to be written into the designated register. Return Value: int type, 0-Failure, 1-Success. Example: unsignedint speed; int error=SetDWord(@Speed@,3,speed): In this example, the alias @Speed@ refers to LW0, so the function will write the value of speed into the word registers LW3 and LW4. 6.2.1.9 Set Float Register: SetFloat intSetFloat( @Address Alias@,AddressOffset,Set Value ): Write one single precision float number into a designated word register. @Address Alias@: Select a word or dword type address. Address Offset: unsigned int, TargetAddress=The address represented by @Address Alias@+Offset. Set Value:

float type, the float value to be written into the designated register. Return Value: int type, 0-Failure, 1-Success. Example: float speed=3.14; int error=SetFloat(@Speed@,3,speed): In this example, the alias @Speed@ refers to LW0, so the function will write the value of speed into the dword registers consist of LW3 and LW4. 6.2.1.10 Set Consecutive Registers: SetMem intSetMem( Array Pointer,@AddressAlias@,AddressOffset,Byte Number ): Write the array data into consecutive registers. Array Pointer: pointer type, point to a pre-defined array. 584