Files
mxsc/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/startTraining.pgx
2017-02-22 14:09:56 +01:00

31 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Programs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.staubli.com/robotics/VAL3/Program/2">
<Program name="startTraining" access="public">
<Locals>
<Local name="l_nIndex" type="num" xsi:type="array" size="1" />
</Locals>
<Code><![CDATA[begin
//-----------------------------------------------------------------------
//Header begin
// Reads and store the current joint force values.
// It is used to record the forces required for a specific robot cycle
// that will need to be monitored for collisions afterwards.
// The recording is active when the robot is inside the specified zone
// (function setInZone()).
//
//Example
// call startTraining()
//
//History
// Creation : 23-04-08 - f.Rob
// Modification: 11-03-09 - ffab
//Header end
//-----------------------------------------------------------------------
// Wait the previous task is ended
bInZone=false
wait(taskStatus("train")==-1 and taskStatus("detect")==-1)
// Create the task
taskCreate "train",100,train()
end]]></Code>
</Program>
</Programs>