EasyManua.ls Logo

Emotiontek MCU 2 Axis - Page 55

Emotiontek MCU 2 Axis
204 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
- 48 -
Chapter 2. MC Programming
1) P variable
Type P<0~99>
Function Has a value for a 2-dimensional position related command to execute.
Related
command
SET,SET2,MOV,IMOV,PTP,IPTP,CW,CCW,ICW,ICCW
Explanation You can set 100 position values as a position variable to set the target point and the
distance. Set a value in a um unit.
Example VEL 0
MOV P0
This is a command to move to a value set in a P0 variable.
2)
F variable
Type F<0~9>
Function This has a value for the command related to a velocity to execute.
Related
command
VEL, XVEL, YVEL
Explanation Can set 10 velocity values as a velocity variable to set a velocity.
Example VEL 0
MOV P0
This is a command to apply to a movement command at a velocity set in a F0 variable.
3)
D(E) variable
Type D<0~9>, E<0~9>
Function D variable: Has a value for a time and external pulse related command to execute.
E variable: A macro(operation, comparison) function is possible.
A special function is applied to some variables by parameter setting.
Related
command
DWL, A, D, XA, YA, XD, YD, macro command
Explanation This is called a D or E variable, indicating the same area. That is, D0 and E0 are the
same variable.
This is a variable to set the value of time and pulses, so 10 values can be set.
When being used as time, this has a unit of msec.
This is a variable with which operation functions such as addition, subtraction,
multiplication and division are possible, and can be used in combination with an IF
statement.
Example 1 DWL 0
MOV P0
This is a command to pause for a time or external pulse by being set as a D0 variable.
Example 2 E1 = 100000
E2 = 100
E3 = E1/E2
As an example of use as an operation macro function, substitute‘100000’into the E1
variable, substitute‘100’into the E2 variable, divide E1 by E2, and then store its
quotient in the E3 variable.
As a result, a value of‘1000’is stored in E3.
Example 3 IF E1 .EQ 1000 LB0
LABL LB0
If the value stored in the E1 variable as a comparative macro function is‘1000’, then
branch to the declared label, and otherwise, proceed to the next command.