MCH1 INTERLOCK ON

 (INTRO)

 

LANGUAGE
Karel
CREATED
2019-07-08
MODIFIED
2019-11-21

 

CODE  mceclip0.png

/PROG  INTLK_ON_MCH1
/ATTR
OWNER  = MNEDITOR;
COMMENT  = "Mch1 Interlock";
PROG_SIZE = 1607;
CREATE  = DATE 19-07-08  TIME 22:13:50;
MODIFIED = DATE 19-11-21  TIME 11:34:52;
FILE_NAME = INTLK_ON;
VERSION  = 0;
LINE_COUNT = 39;
MEMORY_SIZE = 2083;
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   : TRUE;
/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:  !THIS PART OF THE PROGRAM ;
  18:  !DISABLE THE CLOSING OF THE ;
  19:  !MACHINE. DO NOT CHANGE ;
  20:  !UNLESS YOU HAVE A GOOD ;
  21:  !UNDERSTANDING OF THE PROGRAM ;
  22:   ;
  23:   ;
  24:  LBL[10] ;
  25:  !WAIT NEW PART AND ;
  26:  !MACHINE MODE AUTO AND ;
  27:  !MACHINE OPEN POSITION ;
  28:  WAIT (DI[209:MoldOpen] AND F[1:NewPartMachine1] AND DI[214:PressInAuto]) TIMEOUT,LBL[20] ;
  29:  !ENABLE MACHINE CLOSE OFF ;
  30:  DO[210:EnbMoldClose]=OFF ;
  31:  DO[213:EnbEjectorFwd]=OFF ;
  32:  END ;
  33:  LBL[20] ;
  34:  !IF MACHINE AUTO JUMP LB 10 ;
  35:  IF (DI[214:PressInAuto]),JMP LBL[10] ;
  36:   ;
  37:  LBL[500] ;
  38:  F[36:UAlarm6]=(ON) ;
  39:  F[30:CellAlarm]=(ON) ;
/POS
/END

 

mceclip0.png

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.