
Safet
Introducti
Inst
Pow
Pro Sof
C
How
How
C
S
S
Parame
Drive
D
G
Ind
e
EZMotion User/Programming Guide
109
Revision A8
www.controltechniques.com
Wait For Timer.#.Active = ON
Other examples:
If((Timer.#.Active=ON) AND (Timer.#.ElapsedTimer<0.500)) Then
Some code
.
.
Endif
If ((Timer.#.Output = ON) AND (Index.#.CommandComplete)) Then
Timer.#.Reset = ON 'Self-resetting - No need to turn OFF
Endif
8.5.7
Variables View
Variables allow the user to store data related to their application into a parameter, which the user can name. The user must
define each variable by giving it a Name, Resolution (number of decimal places), and Initial Value. All variables are signed 32-
bit parameters. Figure 116 shows an example of the Variables view.
Figure 116:
Variables View
The following parameters are part of the Variable definition:
Name
This is a twelve-character string that allows the user to assign a descriptive name to the parameter. Spaces are not allowed in
the name of a variable.
Decimal
This parameter defines the number of digits (up to 6) to be used after the decimal point for the specific variable. This is the
maximum resolution that the parameter will have.
Initial Value
This is the initial value of the variable that will be used on power up. If the variable has been configured as a Save to NVM
parameter, then the value in NVM will overwrite the initial value on power up.
Adding and Deleting Variables
The default number of variables is ten. To add more user variables, click the up arrow next to the Number of User Variables
spin box on the User Variables view. The maximum number of user variables is 256.
Only the last variable in the list can be deleted. To delete the last variable, simply click the down arrow next to the Number of
User Variables spin box.
User variables are all Global variables. A Global variable means that it can be accessed from any program.
Using User Variables in a Program
Once setup, Variables can be used inside a program for calculations, motion profile setup, or any other user-desired function.
To access User Variables, click
Drag In Variables
button in the user program toolbar. User Variables is a branch in the Select
EZMotion Variables box.
8.5.8
Bits View
Bits act just like Variables except that they allow the user to store bit level parameters rather than 32-bit parameters. The user
may customize each Bit by giving it a Name and an Initial Value.
The Name for each Bit may be up to 12 characters in length, and must start with a alpha character (non-numeric character).
Summary of Contents for EZMotion
Page 2: ......
Page 12: ...x EZMotion User Programming Guide www controltechniques com Revision A8 ...
Page 18: ...6 EZMotion User Programming Guide www controltechniques com Revision A8 ...
Page 36: ...24 EZMotion User Programming Guide www controltechniques com Revision A8 ...
Page 158: ...146 EZMotion User Programming Guide www controltechniques com Revision A8 ...
Page 186: ...174 EZMotion User Programming Guide www controltechniques com Revision A8 ...
Page 266: ...256 EZMotion User Programming Guide www controltechniques com Revision A8 ...
Page 267: ......