164 / 183
Assembly and Commissioning Instructions Servo amplifier D1-N
15.10.2015
sleep 2000;
move_p_v_a_d(166350,20000,200000,200000);
// in incr.
till(~X_run);
sleep 500;
_Loop:
// Jump mark for jumping to program
// reset signals after cover up
if (~I1) do
// If input 1 is reset, then ….
setoff O1;
// Deactivate O1
setoff O2;
// Deactivate O2
setoff O3;
// Deactivate O3
sleep 500;
end;
//Pos1
if (I1&I2&~I3&~I4) do
// If input I1=1 and I2=1 and I3=0 and I4=0, then ….
move_p_v_a_d(8850,20000,20000,20000);
//Position order in count absolute values, 1 count = 1µm standardised
till(~X_run);
seton O1;
setoff O2;
setoff O3;
sleep 500;
end;
//Pos2
if (I1&~I2&I3&~I4) do
// If input I1=1 and I2=0 and I3=1 and I4=0, then ….
move_p_v_a_d(113850,20000,200000,200000);//in count
till(~X_run);
setoff O1;
seton O2;
setoff O3;
sleep 500;
end;
// Pos5
if (I1&I2&~I3&I4) do
move_p_v_a_d(166350,30000,200000,200000);//in count
till(~X_run);
setoff O1;
setoff O2;
setoff O3;
sleep 500;
end;
goto _Loop;
// Jumps back
ret;