4MELFA-BASIC IV
Detailed explanation of command words
4-174
ColChk (Col Check)
[Function]
Set to enable/disable the impact detection function in automatic operation.
The impact detection function quickly stops the robot when the robot's hand and/or arm interferes with
peripheral devices so as to minimize damage to and deformation of the robot's tool part or peripheral
devices. However, it cannot completely prevent such damage and deformation.
The impact detection function can only be used in certain models (Refer to "[Available robot type]".).
[Format]
[Terminology]
On
Enable the impact detection function.
Once an impact is detected, it immediately stops the robot, issues an error numbered
in 1010's, and turns OFF the servo.
Off
Disable the impact detection function
NOErr
Even if an impact is detected, no error is issued. (If omitted, an error will occur.)
[Reference Program 1]
If an error is set in the case of impact
1 COlLvl 80,80,80,80,80,80,,
'Specify the allowable level for impact detection.
2 ColChk On
'Enable the impact detection function.
3 Mov P1
4 Mov P2
5 Dly 0.2
'Wait until the completion of operation
(Fine instruction can also be used).
6 ColChk Off
'Disable the impact detection function.
7 Mov P3
[Reference Program 2]
If interrupt processing is used in the case of impact
1 Def Act 1,M_ColSts(1)=1 GoTo *HOME,S
'Define the processing to be executed when an impact is
detected using an interrupt.
2 Act 1=1
3 ColChk On,NOErr
'Enable the impact detection function in the error non-occurrence mode.
4 Mov P1
5 Mov P2
'If an impact is detected while executing steps 40 through 70, it
jumps to interrupt processing.
6 Mov P3
7 Mov P4
8 Act 1=0
:
10 *HOME
'Interrupt processing during impact detection
11 ColChk Off
'Disable the impact detection function.
12 Servo On
'Turn the servo on.
13 PESC=P_ColDir(1)*(-2)
'Create the amount of movement for escape operation.
14 PDst=P_Fbc(1)+PESC
'Create the escape position.
15 Mvs PDst
'Move to the escape position.
16 Error 9100
'Stop operation by generating a user-defined L level error.
ColChk[]On [, NOErr] / Off