All BASIC commands
Section 4-2
188
/i
4-2-154 MOD
/i
Example
A PVC cutter uses 2 axes similar to a X-Y plotter. The third axis is used
to control the cutting angle of the knife. To keep the resultant cutting
speed for the x and y axis equal when cutting curves, mode 1 is applied
to the helical command.
BASE(0,1,2) : MERGE=ON
'merge moves into one continuous movement
MOVE(50,0)
MHELICAL(0,-6,0,-3,1,180,1)
MOVE(-22,0)
WAIT IDLE
MOVE(-90) AXIS(2) 'rotate the knife after stopping at corner
WAIT IDLE AXIS(2)
MOVE(0,-50)
MHELICAL(-6,0,-3,0,1,180,1)
MOVE(0,50)
WAIT IDLE 'pause again to rotate the knife
MOVE(-90) AXIS(2)
WAIT IDLE AXIS(2)
MOVE(-22,0)
MHELICAL(0,6,0,3,1,180,1)
WAIT IDLE
See also
MOVECIRC
.
Type
Mathematical function
Syntax
expression1 MOD expression2
Description
The
MOD
function returns the
expression2
modulus of
expression1
.
This function will take the integer part of any non-integer input.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
>> PRINT 122 MOD 13
5.0000
See also
N/A
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...