English
Language : 

CJ1W-MCH72 Datasheet, PDF (144/374 Pages) Omron Electronics LLC – Programmable Controller SYSMAC CJ-series CJ1W-MCH72
All BASIC commands
Section 4-2
/i
Example
After 2 axes returned to their homing positions, it is required to change
the DPOS values so that the home positions are not zero, but some
defined positions instead.
DATUM(5) AXIS(1) ' home both axes. At the end of the DATUM
DATUM(4) AXIS(3) ' procedure, the positions are 0,0.
WAIT IDLE AXIS(1)
WAIT IDLE AXIS(3)
BASE(1,3) ' set up the BASE array
DEFPOS(-10,-35) ' define positions of the axes to be -10 and -35
/i
Example
Set the axis position to 10, then start an absolute move, but make sure
the
axis has updated the position before loading the MOVEABS.
DEFPOS(10.0)
WAIT UNTIL OFFPOS=0
' Makes sure that DEFPOS is complete before next line
MOVEABS(25.03)
133