Laser PolyDelay
A polygon delay is a delay automatically inserted between two marking segments. The minimum delay allows enough time for the galvos and mirror to “catch-up” with the command signal before a new command is issued to move on to the next point.
If variable polygon delay mode is selected, then the delay is variable and changes as a function as to how large an angular change is required to move on to the next point. The larger the angular change, the longer it takes for the galvos to change direction and accelerate to the required speed in the new direction. The delay is scaled proportionally to the size of the angle.
Syntax
PolyDelay = int value (Polygon delay in microseconds) |
--This program demonstrates how the global settings of a laser works. User can change the parameters and observe the marking quality of a rectangle. This program will also display the Marking time.
--Set the units as Millimeters
SetUnits(Units.Millimeters)
--Start the timer
Stopwatch.Start()
-----------------Laser Delay control Settings-------------------
--Delay in time before the laser is turned off
Laser.LaserOffDelay = 0
--Delay in time before the laser is turned on when marking relative to micro-vector generation. A negative value means that LASERON is asserted before micro-vectoring begins.
Laser.LaserOnDelay = 0
--Set the time that all laser signals are time shifted relative to the issuance of galvo position commands.
Laser.LaserPipelineDelay = 3200
-----------------Laser Motion Delay Setting--------------
--Set the delay in time at the end of a laser jump
Laser.JumpDelay = 60
--Set the delay in time at the end of a series of marks
Laser.MarkDelay = 60
--Set the delay in time at the junction of two marks
Laser.PolyDelay = 0
--Variable polygon delay disabled. (true = enabled, false = disabled)
Laser.VariPolyDelayFlag = false
----------------Laser Marking Settings------------------
--Set Laser Modulation frequency
Laser.Frequency = 6
--Set laser jump speed in mm/sec
Laser.JumpSpeed = 250
--Set Laser Marking speed in mm/sec
Laser.MarkSpeed = 150
--Set channel 1 duty cycle as a percentage
Laser.Dutycycle1 = 50
--Draw a box with a width and height of 25 Millimeters
Image.Box(0, 0, 25, 25, 0)
--Blocks the script execution until the device finishes processing instructions in the buffer.
Laser.WaitForEnd()
--Display the time
Report(Stopwatch.Time())