Files
dev/script/tutorial/20_Relative.js
2018-04-17 12:05:48 +02:00

13 lines
574 B
JavaScript
Executable File

///////////////////////////////////////////////////////////////////////////////////////////////////
// Demonstrate use of Relative Line Scan.
// The arguments start and end are relative to the current position.
// After the scan the positioner(s) move back to the initial position.
///////////////////////////////////////////////////////////////////////////////////////////////////
print ("Initial position = " + m1.position)
r1 = lscan(m1, [ai1,ai2,wf1], start = -2, end =2, steps = 20, latency = undefined, relative = true)
print ("Final position = " + m1.position)