Hi all,
we need to make an update to control sensors during one movement. The controler has RobotWare ver.5 and it has no multitasking. So we used Trap routine to detect if the sensor switches on during movent.
Here is the definition of trap:
CONNECT trpInsertionCheck WITH CheckInsSensorTrap;
ISignalDI IN_InsertionVirtualCheck,1,trpInsertionCheck;
the input IN_InsertionVirualCheck is virtual cross connected signal. It was tested and it works OK.
The trap routine itself is:
TRAP CheckInsSensorTrap
IF ( bCheckInsertSens=TRUE ) AND
( DI1= high OR DI1= high )
THEN
PulseDO \Plength:=0.5, Out_100;
ENDIF
RETURN;
ENDTRAP
Also here is the movement where the detection is needed:
IWatch trpInsertionCheck;
bCheckInsertSens:=TRUE;
MoveL RelTool(…;
bCheckInsertSens := FALSE;
ISleep trpInsertionCheck;
Also there is no data in variable Trapdata in Program data/Used types. Trapdata is not shown in used variables…
So my question is: how can we detect the sensor during movement without TRAP or how can we setup the trap?
Thanks to all.