Omron SYSMAC CJ Operation Manual page 200

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

All BASIC commands
4-2-154 MOD
188
/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.
/i
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
Section 4-2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents