4.2 Conventional Data Treatment
FADL has smaller grain size expression than the conventional ISO NC data (G, M, T...) This characteristics of FADL makes it easy to represent the movement of the current data stream. As the translation from ISO NC to FADL, we provide some utility. For example, G81 (drilling) will be transferd like following:
sub drilling {
my $self = shift;
local($mode, $x, $y, $z, $r, $f, $c) = @_;
local($ReturnPos);
if ($ReturnToInitial) {
$ReturnPos = $z;
} else {
$ReturnPos = $r;
}
$self->Move($mode, $x, $y, @Target[2]);
$self->Set($DIDO{'blocking'}, 1);
$self->Speed($f);
$self->Line($mode, $x, $y, $z);
if ($#_ == 5 && $c == 1) {
$self->Keep(p);
}
$self->Move($mode, $x, $y, $retrun_pos);
$self->Set($DIDO{'blocking'}, 0);
}
Next Paragraph