jpen_110

MrPLC Member
  • Content count

    28
  • Joined

  • Last visited

Posts posted by jpen_110


  1. Here you go. 

    Step

    Function Logic Time
    000 TIM 4 000
    001 TIM 5 010
    002   6 010
    003   1 010
    004   2 030
    005 AND   68
    006 AND   0
    007 __LR KR 7
    008 __OR LD  
    009 OUT   27
    010 __LD   15
    011 __OR   14
    012 AND NOT 8
    013 OUT   24
    014 __LD_NOT_CNT   0
    015 __OR   65
    016 AND NOT   67
    017 AND NOT   66
    018 AND   68
    019 __OR   19
    020 TIM 7 040
    021 __LD_NOT  KR 7
    022 __IL_END    
    023 __LD_NOT   11
    024 AND_NOT   81
    025 AND_NOT   82
    026 AND_NOT   66
    027 AND   65
    028 AND_CNT   0
    029 AND   19
    030 OUT   25
    031 _LD_NOT TIM 7
    032 AND   19
    033 OUT   26
    034 _LD    11
    035 AND_NOT KR 7
    036 _LD_TIM   7
    037 AND KR 0
    038 _OR LD  
    039 AND_NOT TIM 1
    040 AND_NOT   81
    041 _IL    
    042 TIM 0 005
    043 _LD_TIM   0
    044 AND_NOT KR 7
    045 OUT   12
    046 _IL_END    
    047 _LD_NOT   2
    048 _LD_NOT   28
    049 _OR_LD    
    050 AND   81
    051 AND   4
    052 _LD   2
    053 AND   28
    054 __LD   109
    055 __OR LD  
    056 _KR   0
    057 _LD_TIM   1
    058 AND_NOT   82
    059 AND_NOT KR 7
    060 OUT   13
    061 _LD   16
    062 _OR   17
    063 _OR   23
    064 _OR   25
    065 _OR   23
    066 AND NOT   15
    067 OUT   21
    068 _LD   15
    069 OUT   22
    070 _LD   6
    071 _OR   7
    072 _LD   3
    073 _OR   15
    074 AND__LD    
    075 AND   81
    076 AND NOT   4
    077 AND_NOT TIM 1
    078 AND_NOT KR 7
    079 OUT   15
    080 _LD TIM 1
    081 AND_NOT   3
    082 AND   82
    083 AND NOT KR 7
    084 OUT   14
    085 _LD   4
    086 AND   81
    087 _LD   64
    088 _OR__LD    
    089 AND_NOT   67
    090 OUT   64
    091 _LD   64
    092 TIM 1 010
    093 _LD   3
    094 TIM 2 030
    095 _LD_NOT TIM 2
    096 AND   3
    097 OUT   67
    098 _LD   9
    099 _OR   68
    100 AND   0
    101 OUT   68
    102 _LD   3
    103 AND_NOT   75
    104 OUT   74
    105 _LD   3
    106 OUT   75
    107 _LD   74
    108 AND   77
    109 _LD_NOT   74
    110 AND   76
    111 _OR__LD    
    112 OUT   76
    113 _LD   74
    114 AND_NOT   76
    115 _LD_NOT   74
    116 AND   77
    117 _OR__LD    
    118 OUT   77
    119 _LD   76
    120 AND_NOT   17
    121 AND_NOT   6
    122 AND   27
    123 AND   3
    124 AND_NOT KR 7
    125 OUT   16
    126 _LD_NOT   76
    127 AND_NOT   16
    128 AND_NOT   7
    129 AND   27
    130 AND   3
    131 AND_NOT KR 7
    132 OUT   17
    133 _LD   74
    134 _OR   80
    135 AND_NOT TIM 3
    136 OUT   80
    137 _LD   80
    138 TIM 3 020
    139 _LD   80
    140 _LD   9
    141 _OR_NOT   10
    142 _OR_NOT   0
    143 _OR   109
    144 CNT 0 002
    145 _LD_TIM   5
    146 LD_TIM   6
    147 OR__LD    
    148 AND_NOT KR 7
    149 AND   27
    150 OUT   18
    151 _LD   1
    152 OUT   20
    153 _LD   76
    154 AND_NOT   6
    155 TIM 5 010
    156 _LD   77
    157 AND_NOT   7
    158 TIM 6 010
    159 _LD_TIM   5
    160 _OR_TIM   6
    161 OUT   66
    162 _LD   31
    163 AND   10
    164 _LD   109
    165 _OR   9
    166 _OR_NOT   10
    167 _KR   7
    168 _LD   12
    169 AND   5
    170 _LD   81
    171 AND_NOT_TIM   1
    172 _OR__LD    
    173 OUT   81
    174 _LD   13
    175 AND   5
    176 _LD   82
    177 AND_NOT   3
    178 _OR_LD    
    179 OUT   82
    180 END    

  2. Hello-


    I am looking for some existing code to reference to try to troubleshoot an old machine.  It has a Omron Sysmac S6 console and I've been able to get the individual inputs and outputs to activate via the console, but the code that is in the machine seems to not be correct.  I suspect someone got in there and overwrote a bunch of the initial lines of the program.  Again, I can control the machine manually through using the console, but want to now automate it.  I've done the program checks and have a whole host of errors, including double coil errors, a missing IL error and circuit errors.  

    Ideally, I'd like to see what the code looks like to "start" the machine with a button (input 9) as an example and also see how that input can keep one output "ON" or running constantly (output 27) while then activating several outputs in sequential order, individually for a set period of time or until they activate a certain sensor (as an example input 6). 

     I've mapped out and am attaching what I believe the process flow to be.   I am also attaching the code as I pulled it off the machine.  Again, I don't believe the code to be correct.  Thank you for reading this.

    Any help would be greatly appreciated.