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

RIEVTECH STUDIO SOFTWARE MANUAL Set Value: BOOL, the value to be written into the designated bit register, 0 or 1. Return Value: int type, 0-Failure, 1-Success. Example: int error=SetBit(@power@,2,1) In this example, power is the alias of LB0, so the function SetBit will write “ 1 ” into the bit LB2. 6.2.1.7 Set Word Register: SetWord intSetWord( @Address Alias@,AddressOffset,Set Value ): Write one 16-bit number into a designated word register. @Address Alias@: Select a word type address. Address Offset: unsigned int, TargetAddress=The address represented by @Address Alias@+Offset. Set Value: short type, the value to be written into the designated register. Return Value:

int type, 0-Failure, 1-Success. Example: short speed; int error=SetWord(@Speed@,3,speed); In this example, the alias @Speed@ refers to LW0, so the function will write the value of speed into the word register LW3 . 6.2.1.8 Set Double Word Register: SetDWord boolSetDWord( @Address Alias@,AddressOffset,Set Value ): Write one 32-bit number into a designated word register, the register could be a Dword register or two consecutive word registers. @Address Alias@: Select a word or dword type address. Address Offset: unsigned int, TargetAddress=The address represented by @Address Alias@+Offset. 583