Set Macro Offset
\i X O O word::offset
Parameter |
Type |
Range |
Description |
offset |
word |
0 ... max. macro index - 1 |
offset of the macro index |
Sets an offset for the macro index (see Execute Macro).
Note
- This functionality can be used to support multiple languages without conditional commands or macros. For example, if the macros for the English language are indexed 0 to 9 and for the German language 10 to 19, setting the Macro Offset to 10 will automatically execute the German macros instead of the corresponding English ones.
- When addressing macros by name, a prefix or suffix can be used to realize language switching. (see Set Macro Name Prefix or Set Macro Name Suffix).
- The default value for offset is 0. It will be automatically set to default on startup and by the commands Reset All or Reboot Panel Controller if the "Extras on Reset" option on the "Settings" page of iLCD Manager XE is set to "Clear". Selecting "Keep" allows for using the reset commands without loosing e.g. the selected language. This setting is ignored in firmware versions < 3.02.
Example
\iXOO\D10
\iOE\D10
Sets the macro offset to 10. The subsequently called command to execute the macro with index 1 will now execute the macro with index 11 instead.
Not supported by: DPC3020, DPC2060, DPC10xx
See also:
Draw Touch Field Text Message
Set Touch Field Text Message
Execute Touch Break Macro
Execute Touch Make Macro
Set Touch Field Break Macro
Set Touch Field Make Macro
Jump to Macro
Reset All
Set Message Offset
Set Graphic Offset
Set Font Offset
Copyright © demmel products gmbh. All rights reserved.