- 45 -
Chapter 2. MC Programming
41) Comment
Input type
/*
Explanation If a block in a program starts with‘/*’, then regard it as a comment.
Start with /* by all means, and there shall be no letter before /*.
Example
VEL 0
MOV P0
/* SECOND POINT
IMOV P1
42) Macro operation function
Type
+,-,*,/, %, =, (, )
Variable
L variable, E variable, constant
Explanation Can execute an operation function with a variable during programming.
Using a (,) function can perform up to 7 multiple operation functions.
Example
L0 = L0 + L1
L0 = L0 - L1
L0 = L0 * L1
L0 = L0 / L1
L0 = L0 % L1
Store a value of L1 added to L0 in L0.
Store a value of L1 subtracted from L0 in L0.
Store a value of L1 multiplied to L0 in L0.
Store the quotient of L0 divided by L1 in L0.
Store the remainder of L0 divided by L1 in L0.
L0 = L0 + 1
L0 = L0 - 1
L0 = L0 * 10
L0 = L0 / 10
L0 = L0 % 10
L0 = (L0 + L1) * L2
Store a value of 1 added to L0 in L0.
Store a value of 1 subtracted from L0 in L0.
Store a value of 10 multiplied to L0 in L0.
Store the quotient of L0 divided by 10 in L0.
Store the remainder of L0 divided by 10 in L0.
Operation function using (,)
Summary of Contents for MCU 2 Axis
Page 1: ...User s Manual 2 AXES...