Macros are a very powerful feature of the iLCD panel controllers and allow you to condense multiple commands into one macro which can be executed at any time via a command.
Macros can even call other macros with the maximum nesting depth of 8. If the nesting depth is exceeded, the macro will be stopped and a [NACK] is returned to the user. The same is true if one of the commands executed returns an error. If all commands within the macro are executed successfully, one [ACK] is sent back to the user. This means that not all command responses within a macro are seen by the user.
New Commands or Touch Events Abort Running Macros
If a macro is active and a command introducer (\i) is entered, the currently running macro is stopped. No response is sent in this case as the command following the \i has to be acknowledged. Normal execution of macros will also be stopped if a touch field key is reported (refer to Enable/Disable Reporting Touch-Coordinates, a key is pressed and key reporting is enabled (refer to Enable/Disable Keyboard Reporting) or when the power switch is pressed and power-off notification is on (refer to Set Power-Off Notification On/Off). Protected macros are only aborted by a new command introducer (refer to Execute Protected Macro).
Macros are stored in the iLCD Controllers Flash via iLCD Manager XE and can be tested on the "Macros" page, although macro delays and execution speed settings are ignored when not executed from the memory.
Find following commands in this chapter as well as in the corresponding category when using the parameter completion feature of iLCD Manager XE:
Copyright © demmel products gmbh. All rights reserved.