
23
7.3 - Auto-generated Script Components
Notice that the first section of the custom script has a few lines of auto-generated code. These are
minimum startup lines and must not be altered or deleted.
//AG_START
// All code between the AG_START and AG_END tags is auto
// generated and should not be modified.
// Script Generator GUI V1.1.1
variable: AG_scratch // Temporary scratch pad variable for AG actions.
action: STARTUP // The startup action is empty because blank a new file has no Start requirements.
{
// You can use the Script Wizard to point this startup to your own startup subroutine.
}
//See the next section for details.
//AG_END
7.4 - Custom Start up Subroutine
Let’s digress for a moment- sometimes you might want your panel to startup in a special state
prior to any button actions. Or perhaps the LED’s in your design are being driven from remote
logic states and you’d like to synchronize them on power-up of the GP –xx panel.
Use the Script Wizard’s Custom Action Startup dialog to point to your startup subroutine. In the
case below we will call “mystartup” subroutine when the GP-panel powers up.