Fixtures clamp <CLAMP>
Use <CLAMP> command to control part fixture devices (such as chucks, vices, collets, etc.) in the pick-and-place, takeover operations.
Command: CLAMP ClampID(ID) IsOn(71)|(IsOff(72) Direction(DIR)
Parameters:
Parameter |
Description |
|
ID |
CLD[1] |
Unique identifier of the clamping device you need to switch. Depend on the equipment settings inside a CAM project.
|
IsOn |
CLD[2] |
New state of the clamping device: ON(71) - clamp is on, OFF(72) - clamp is off. |
DIR |
CLD[3] |
Clamping direction (-1; 0; +1) - direction of the clamping jaw movement (sign of jaw axis coordinate change). |
Parameters available through the Cmd operator
Parameter |
Type |
Description |
ClampID |
Integer |
Unique identifier of the clamping device you need to switch. Depend on the equipment settings inside a CAM project.
|
IsOn |
Boolean |
Returns "true" if it is the clamp switch ON command. Otherwise returns "false". |
IsOff |
Boolean |
Returns "true" if it is the clamp switch OFF command. Otherwise returns "false". |
Direction |
Integer |
Clamping direction (-1; 0; +1) - direction of the clamping jaw movement (sign of jaw axis coordinate change). |
Here are two simple examples of programs handlers for this command.
program Clamp
if CLD[2] = 72 then begin
call OutPause(1)
if CLD[1] = 2 then begin
Mchuck = 111; Mchuck@ = Maxreal
Formblock
Outstr$ = Outstr$ + " (OTKRYT-PROTIVOSHPINDEL)"
Outstr$ = Outstr$ + " M114 (AIR ON)"
Output Outstr$
call OutPause(1)
Outstr$ = Outstr$ + " M115 (AIR OFF)"
Output Outstr$
end else begin
Mchuck = 11; Mchuck@ = Maxreal
Formblock
Outstr$ = Outstr$ + " (OTKRYT-GLAVNYi SHPINDEL)"
Outstr$ = Outstr$ + " M14 (AIR ON)"
Output Outstr$
call OutPause(1)
Outstr$ = Outstr$ + " M15 (AIR OFF)"
Output Outstr$
end
end else begin
if CLD[1] = 2 then begin
Mchuck = 110; Mchuck@ = Maxreal
Formblock
Outstr$ = Outstr$ + "(ZAKRIT-PROTIVOSHPINDEL)"
end else begin
Mchuck = 10; Mchuck@ = Maxreal
Formblock
Outstr$ = Outstr$ + "(ZAKRIT-GLAVNIY SHPINDEL)"
end
Output Outstr$
call OutPause(1)
end
end
See also:
Technology commands description