3 automatic program execution with power up, 4 save to flash, 7 debugging – ElmoMC SimplIQ Software Manual User Manual

Page 88: 1 running, breaking and resuming, Automatic program execution with power up -26, Save to flash -26, 7 debugging -26, Running, breaking and resuming -26

Advertising
background image

SimplIQ

Software Manual

Program Development and Execution

MAN-SIMSW (Ver. 1.4)

6-26

The first task is invoked by XQ##TASK1. In order to switch to the second task, the first task
must be killed before:
HP;

XQ##TASK2;

6.6.3

Automatic Program Execution with Power Up

If the autoexec function is included in the user program, the program line following function
declaration will be performed at power up.

6.6.4

Save to Flash

Because a program is downloaded to a non-volatile memory, it is always saved. Therefore,
information is not lost in case of power down. As noted in

section

6.5.2.2

, the CP command

clears the entire user area in the flash and the running program must be killed (not halted)
before the command is issued.

6.7

Debugging

This procedure enables a user to debug a program that is downloaded to the flash memory
of the

SimplIQ

drive. This step may be useful when developing the user program and

examining the user flow.

6.7.1

Running, Breaking and Resuming

The XQ command starts program execution from a label or executes a function, as follows:
ƒ

XQ##MYFUNCTION(a,b,c) runs the function MYFUNCTION(a,b,c).

ƒ

XQ cannot return values from a function.

ƒ

XQ##LABEL runs from ##LABEL.

ƒ

XQ runs from the start of the user program code.

ƒ

XQ without a parameter is illegal.

ƒ

XQ does not return a value.

Notes:

ƒ

XQ without a label or function name is designed to run a program written in the
Elmo Saxophone or Clarinet; that is, without function definitions, local variables
and so on. If the program starts from a function definition, the XQ command
without a label or function name causes an error to occur. If the function starts
from a label, the dummy start label is inserted into the Function Symbol table and
execution begins at the start of the program.

ƒ

XQ does not change the current values of global variables; the initial values of
global parameters must be set by the programmer.

Advertising