You are here:
Print

The address of a user variables is automatically set in the order of declaration starting with 0x03B0 up to 0x03FF (80 words). First variable takes address 0x3B0, next one 0x3B1, etc.

The user variables type can be: integer, fixed (point) or long (integer).

 

 

An int variable takes one memory location. A long or fixed variable takes 2 consecutive memory locations. In this case the variable address is the lowest one. Hence, a TML program can contain up to 80 user integer variables or 40 long/fixed user variables.

If EasyMotion Studio is unable to allocate memory for a user variables (too many user variables declared) then it will display an error message similar with the one below. The first variable that caused the error is highlighted (RefESneg). The TML program must be re-organized such it will use only the user variables that can fit in the user memory (0x03B0 to 0x03FF).

 

Previous The relationship between the speed resolution and the SLOW LOOP sampling period [II]