Prog Pdemo_MainSEQ
LANGUAGE: Karel
CREATED: 2019-06-08
MODIFIED: 2019-11-21
CODE 
/PROG PDEMO_MAINSEQ
/ATTR
OWNER = MNEDITOR;
COMMENT = “”;
PROG_SIZE = 1469;
CREATE = DATE 19-06-08 TIME 12:44:54;
MODIFIED = DATE 19-11-21 TIME 11:35:32;
FILE_NAME = ;
VERSION = 0;
LINE_COUNT = 44;
MEMORY_SIZE = 1925;
PROTECT = READ_WRITE;
TCD: STACK_SIZE = 0,
TASK_PRIORITY = 50,
TIME_SLICE = 0,
BUSY_LAMP_OFF = 0,
ABORT_REQUEST = 0,
PAUSE_REQUEST = 0;
DEFAULT_GROUP = 1,*,*,*,*;
CONTROL_CODE = 00000000 00000000;
/APPL
AUTO_SINGULARITY_HEADER;
ENABLE_SINGULARITY_AVOIDANCE : FALSE;
/MN
1: –eg:Copyright (c) 2019 DIY-Robotics.com All rights reserved. ;
2: –eg: ;
3: –eg:Redistribution and use in source and binary forms, with or without ;
4: –eg:modification, are permitted provided that the following conditions
: are ;
5: –eg:met: ;
6: –eg: ;
7: –eg:Redistributions of source code must retain the above copyright ;
8: –eg:notice, this list of conditions and the following disclaimer. ;
9: –eg:Redistributions in binary form must reproduce the above ;
10: –eg:copyright notice, this list of conditions and the following
: disclaimer ;
11: –eg:in the documentation and/or other materials provided with the ;
12: –eg:distribution. ;
13: –eg:Neither the name of DIY-Robotics.com nor the names of its ;
14: –eg:contributors may be used to endorse or promote products derived from ;
15: –eg:this software without specific prior written permission. ;
16: –eg: ;
17: !CALL PARAM ;
18: CALL SR[4] ;
19: ;
20: !CALL INIT ;
21: CALL SR[5] ;
22: ;
23: LBL[1] ;
24: !CYCLE TIMER ;
25: TIMER[1]=STOP ;
26: R[18:CycleTime]=TIMER[1] ;
27: TIMER[1]=RESET ;
28: TIMER[1]=START ;
29: ;
30: !STOP REQ OR ALARM ;
31: IF (F[30:CellAlarm] OR F[14:StopProdReq]),JMP LBL[9000] ;
32: ;
33: !CALL PICK ;
34: CALL SR[6] ;
35: ;
36: IF (F[30:CellAlarm]),JMP LBL[9000] ;
37: !CALL DROP ;
38: CALL SR[7] ;
39: ;
40: JMP LBL[1] ;
41: ;
42: !END OF PRODUCTION ;
43: LBL[9000] ;
44: SR[21]=SR[29] ;
/POS
/END