Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dt21breakenc [2017/02/07 16:01] – created qem103 | en:software:qview:qview_6:qcl_library:dt21breakenc [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DT21BreakEnc ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **T = **//Control functions// | ||
+ | |||
+ | The __DT21BreakEnc function executes a check to see any problems on the On/Off axes movement__. The function commands a stop device (or report the emergency through the flag), when with the active forward or back output, the axis, in the time set in //TmCntrl// parameter, covered at least the space set to the //MinSpost parameter.// | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DT21BreakEnc(Axis, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | OOPOS OOPOS2\\ OOPOS3 | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM/\\ GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | MinSpost = 10 ;(10 units of measure of displacement) | ||
+ | TmCntrl = 1000 ; | ||
+ | EmrgOn = 0 ;(Enable only the flag and not the stop command directed to the device) | ||
+ | |||
+ | DT21BreakEnc(Axis, | ||
+ | |||
+ | IF AlmEnc | ||
+ | IF NOT Axis: | ||
+ | STOP Axis | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * The AlmEnc flag is reset automatically when the emergency situation becomes invalid (stoped device). | ||