![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585176.webp)
All BASIC commands
Section 4-2
164
4-2-115 FPGA_VERSION
/i
4-2-116 FRAC
/i
Example
A machine that applies lids to cartons uses a simulated line shaft. This
example sets up a virtual axis running forward to simulate the line shaft.
Axis 0 is then connected, with the
CONNECT
command, to this virtual
axis to run the conveyor. Axis 1 controls a vacuum roller that feeds the
lids on to the cartons using the
MOVELINK
control.
BASE(4)
ATYPE=0 'Set axis 4 to virtual axis
REP_OPTION=1
SERVO=ON
FORWARD 'starts line shaft
BASE(0)
CONNECT(-1,4) 'Connects base 0 to virtual axis in reverse
WHILE IN(2)=ON
BASE(1)
'Links axis 1 to the shaft in reverse direction
MOVELINK(-4000,2000,0,0,4,2,1000)
WAIT IDLE
WEND
RAPIDSTOP
See also
AXIS
,
CANCEL
,
RAPIDSTOP
,
REVERSE
,
UNITS
.
Type
Slot parameter
Syntax
FPGA_VERSION
Description
This parameter returns the FPGA version of the CJ1W-MCH72.
Arguments
N/A
Example
N/A
See also
N/A
Type
Mathematical function
Syntax
FRAC(expression)
Description
The
FRAC
function returns the fractional part of the expression.
Arguments
•
expression
Any valid BASIC expression.
Example
>> PRINT FRAC(1.234)
0.2340
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...