WARNING
After changing MainModule.mod or any PartCamX module, these modules MUST
be saved, otherwise the changes will be lost upon next start due to the automatic
program loading.
Example files
The following example programs show the principle structure of the robot code
and how the robot program should communicate with FlexLoader Vision.
There is no guarantee that any of the examples work unless the program has been
adjusted and tested for the specific robot cell.
RAPID example MainModule.mod
MainModule.mod contains the main routine which is the standard entry point. Some
typical example application skeleton for MainModule.mod are shown below. All
examples use the same initialization code.
PROC Main()
! set system specific control parameters
InitializeMain;
! set vision specific control parameters
InitVision;
WaitTime 2;
WHILE TRUE DO
! control end-of-cyle or entry requests
CheckSystem;
! ----------------------------
! see example codes below
! ----------------------------
WaitTime 0.05;
ENDWHILE
ENDPROC
Generic solution
Many standard feeding solutions can be handled by the following schematic code.
This is the most simple code example.
It can be used for picking from up to four feeders, e.g. FP 100, FP 300 and FP 400
or any FlexLoader function package.
! loop through desired cameras to perform picks and leave parts.
FOR i FROM nStartAcceptCamera TO nStopAcceptCamera DO
! This call will make the robot pick a part from camera i.
! When using desired position as in example, only parts found
! in position 1 is picked.
PickPartAtCamera i,\DesiredPosition:=1;
! call part specific routine for the found position
IF bDetailInGripper=TRUE THEN
%"Cam"+ValToStr(i)+"Position_"+ValToStr(nPosition)%;
ENDIF
ENDFOR
Continues on next page
Product manual - FlexLoader SC 6000
93
3HAC051768-001 Revision: D
© Copyright 2014-2020 ABB. All rights reserved.
7 RAPID program
7.2 FlexLoader application functionality
Continued
Содержание FlexLoader SC 6000
Страница 1: ...ROBOTICS Product manual FlexLoader SC 6000 ...
Страница 8: ...This page is intentionally left blank ...
Страница 12: ...This page is intentionally left blank ...
Страница 78: ...This page is intentionally left blank ...
Страница 172: ...This page is intentionally left blank ...
Страница 174: ...This page is intentionally left blank ...
Страница 176: ...This page is intentionally left blank ...
Страница 178: ...This page is intentionally left blank ...
Страница 182: ...This page is intentionally left blank ...
Страница 184: ...This page is intentionally left blank ...
Страница 186: ...This page is intentionally left blank ...
Страница 192: ...This page is intentionally left blank ...
Страница 224: ...This page is intentionally left blank ...
Страница 283: ......