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

RIEVTECH STUDIO SOFTWARE MANUAL Error Information:Get the error code using GetError() function. int error=GetError(); Example : unsignedint speed=GetDWord( @Speed@,3 ): The Alias @Speed@ represents the register LW0 in this example, so the target word register is LW3 and LW4, the value of LW3 and LW4 are returned to a Unsigned int variable named "speed". int speed = (int) GetDWord(@Speed@,3): //If use signed number, you can use force conversion. 6.2.1.4 Read Float Register: GetFloat floatGetFloat( @Address Alias@,Address Offset ): Read a single precision float number from specified register address. @Address Alias@ : Select a address register (word or double word) Address Offset:

An unsigned integer, Read Address=The address specified by @Address Alias@+Address Offset Return Value : float type, the value of the float number stored in the Word register or two consecutive word registers which are read. Error Information:Get the error code using GetError() function. int error=GetError(); Example : float speed=GetFloat(@Speed@,3): The Alias @Speed@ represents the register LW0 in this example, so the target word register is LW3 and LW4, the double word stored in LW3 and LW4 are returned to a float variable named "speed". 6.2.1.5 Read Consecutive Registers: GetMem 581