MCEWizard v2.3.0: Additional Script Information
Script engine supports two tasks, named Task0 and Task1
• Script runs in a repeated loop with a configurable execution period for each task.
• Task0 executes each line of code every 1ms with default execution period of 50ms, which can be
configured to multiples of 1ms.
• Task1 executes 10 lines of code every 10ms with default execution period of 100ms, which can be
configured to multiples of 10ms
• Task0 has higher priority then Task1, but both have lesser priority than motor and PFC control loop functions.
• Ensure both tasks are fully executed within set execution period time.
Script engine capabilities and interfaces
• Max number of total global variables = 30, with max number of variables for each task = 24
• These can be plotted/ traced in MCEDesigner like other MCE parameters
• Max script code size = 16kB (approximately 1500 lines)
• Script engine supports 32-bit signed integer variables
• ADC pins are sampled every 1ms, GPIO pins are sampled/updated every 1ms
Example script files (.mcs) are installed w/ MCEWizard and opened from “script edit page”
• Typically stored within iMOTION2.0 folder in “Documents”
16
2020-05-13 Copyright © Infineon Technologies AG 2020. All rights reserved. Infineon Proprietary