RIEVTECH — Руководство по эксплуатации Rievtech Studio Software (EN)

RIEVTECH STUDIO SOFTWARE MANUAL @Address Alias@: A register as the beginning address. It can be a bit type or word type register. Address Offset: an unsigned int number. The read beginning address=The address specified by @Address Alias@ + Address Offset. Number of Bytes: an unsigned int number, specifying how many bytes should be read. Please note: Number of Bytes = sizeof (Type of the Array) * (number of elements in the array). The upper limit of Number of Bytes is 20480. Return Value: int type, 0-Failure, 1-Success. Example: unsigned short data[10]; int error = SetMem(data,@Array Data@,2,10*sizeof(unsigned short)):

In this example, @Array Data@ = LW0, so the function will copy 10 words to the 10 word register address starting from LW2. char data[5]; int error = SetMem(data,@Array Data@,2,5): @Array Data@ = LW0, so the function will copy the value from the array named "data" to 3 words starting from LW2(each word contains 2 variables of char type, the higher half of the last word is invalid) 6.2.2 System Functions 6.2.2.1 Call Macro: CallMacro intCallMacro( "Macro Name" ): Call Designated Macro. Macro Name: The content within the double quotes is the name of the macro being called, don't use any file name suffix. Return Value:

int type, the return value of the main function of the macro will be returned. Example: 585