  21:# 
  22:# ======= START RUNG 1 =======
  23:LabelRung1:
  24:
  25:# --a¤ade el comentario aqu¡--
  26:# 
  27:# ======= START RUNG 2 =======
  28:LabelRung2:
  29:
  30:# --a¤ade el comentario aqu¡--
  31:# 
  32:# ======= START RUNG 3 =======
  33:LabelRung3:
  34:
  35:# Correcto: 
  36:# Correct:
  37:# 
  38:# ======= START RUNG 4 =======
  39:LabelRung4:
  40:
  41:set bit '$rung_top'
  43:# start series [
  44:# ELEM_CONTACTS
  45:if not 'Xnew1' {
  46:    clear bit '$rung_top'
  47:}
  49:# ELEM_COIL
  50:let bit 'Ynew1' := '$rung_top'
  52:# ] finish series
  53:# 
  54:# ======= START RUNG 5 =======
  55:LabelRung5:
  56:
  57:set bit '$rung_top'
  59:# start series [
  60:# start parallel [
  61:clear bit '$parOut_0'
  62:let bit '$parThis_0' := '$rung_top'
  63:# ELEM_CONTACTS
  64:if not 'Xnew2' {
  65:    clear bit '$parThis_0'
  66:}
  68:if '$parThis_0' {
  69:    set bit '$parOut_0'
  70:}
  71:let bit '$parThis_0' := '$rung_top'
  72:# ELEM_CONTACTS
  73:if not 'Xnew3' {
  74:    clear bit '$parThis_0'
  75:}
  77:if '$parThis_0' {
  78:    set bit '$parOut_0'
  79:}
  80:let bit '$rung_top' := '$parOut_0'
  81:# ] finish parallel
  82:# ELEM_COIL
  83:let bit 'Ynew2' := '$rung_top'
  85:# ] finish series
  86:# 
  87:# ======= START RUNG 6 =======
  88:LabelRung6:
  89:
  90:# incorecto:
  91:# incorrect:
  92:# 
  93:# ======= START RUNG 7 =======
  94:LabelRung7:
  95:
  96:set bit '$rung_top'
  98:# start series [
  99:# ELEM_CONTACTS
 100:if not 'Xnew4' {
 101:    clear bit '$rung_top'
 102:}
 104:# ELEM_COIL
 105:let bit 'Ynew4' := '$rung_top'
 107:# ] finish series
 108:# 
 109:# ======= START RUNG 8 =======
 110:LabelRung8:
 111:
 112:set bit '$rung_top'
 114:# start series [
 115:# ELEM_CONTACTS
 116:if not 'Xnew5' {
 117:    clear bit '$rung_top'
 118:}
 120:# ELEM_COIL
 121:let bit 'Ynew4' := '$rung_top'
 123:# ] finish series
 124:# 
 125:# ======= START RUNG 9 =======
 126:LabelRung9:
 127:
 128:# incorecto:
 129:# incorrect:
 130:# 
 131:# ======= START RUNG 10 =======
 132:LabelRung10:
 133:
 134:set bit '$rung_top'
 136:# start series [
 137:# ELEM_CONTACTS
 138:if not 'Xnew6' {
 139:    clear bit '$rung_top'
 140:}
 142:# ELEM_COIL
 143:let bit 'Rnew6' := '$rung_top'
 145:# ] finish series
 146:# 
 147:# ======= START RUNG 11 =======
 148:LabelRung11:
 149:
 150:set bit '$rung_top'
 152:# start series [
 153:# ELEM_CONTACTS
 154:if not 'Xnew7' {
 155:    clear bit '$rung_top'
 156:}
 158:# ELEM_COIL
 159:let bit 'Rnew6' := '$rung_top'
 161:# ] finish series
 162:# 
 163:# ======= START RUNG 12 =======
 164:LabelRung12:
 165:
 166:set bit '$rung_top'
 168:# start series [
 169:# ELEM_CONTACTS
 170:if not 'Rnew6' {
 171:    clear bit '$rung_top'
 172:}
 174:# ELEM_COIL
 175:let bit 'Ynew6' := '$rung_top'
 177:# ] finish series
 178:# 
 179:# ======= START RUNG 13 =======
 180:LabelRung13:
 181:
 182:# --a¤ade el comentario aqu¡--
 183:# 
 184:# ======= START RUNG 14 =======
 185:LabelRung14:
 186:
 187:set bit '$rung_top'
 189:# start series [
 190:# ELEM_CONTACTS
 191:if not 'Xnew8' {
 192:    clear bit '$rung_top'
 193:}
 195:# ELEM_COIL
 196:let bit 'Rnew8' := '$rung_top'
 198:# ] finish series
 199:# 
 200:# ======= START RUNG 15 =======
 201:LabelRung15:
 202:
 203:set bit '$rung_top'
 205:# start series [
 206:# ELEM_CONTACTS
 207:if not 'Xnew9' {
 208:    clear bit '$rung_top'
 209:}
 211:# ELEM_COIL
 212:let bit 'Rnew9' := '$rung_top'
 214:# ] finish series
 215:# 
 216:# ======= START RUNG 16 =======
 217:LabelRung16:
 218:
 219:set bit '$rung_top'
 221:# start series [
 222:# start parallel [
 223:clear bit '$parOut_1'
 224:let bit '$parThis_1' := '$rung_top'
 225:# ELEM_CONTACTS
 226:if not 'Rnew8' {
 227:    clear bit '$parThis_1'
 228:}
 230:if '$parThis_1' {
 231:    set bit '$parOut_1'
 232:}
 233:let bit '$parThis_1' := '$rung_top'
 234:# ELEM_CONTACTS
 235:if not 'Rnew9' {
 236:    clear bit '$parThis_1'
 237:}
 239:if '$parThis_1' {
 240:    set bit '$parOut_1'
 241:}
 242:let bit '$rung_top' := '$parOut_1'
 243:# ] finish parallel
 244:# ELEM_COIL
 245:let bit 'Ynew8' := '$rung_top'
 247:# ] finish series
 248:# 
 249:# ======= START RUNG 17 =======
 250:LabelRung17:
 251:
 252:set bit '$rung_top'
 254:# start series [
 255:# ELEM_CONTACTS
 256:if not 'Xnew10' {
 257:    clear bit '$rung_top'
 258:}
 260:# ELEM_COIL
 261:let bit 'Rnew10' := '$rung_top'
 263:# ] finish series
 264:# 
 265:# ======= START RUNG 18 =======
 266:LabelRung18:
 267:
 268:set bit '$rung_top'
 270:# start series [
 271:# ELEM_CONTACTS
 272:if not 'Xnew11' {
 273:    clear bit '$rung_top'
 274:}
 276:# ELEM_COIL
 277:let bit 'Rnew11' := '$rung_top'
 279:# ] finish series
 280:# 
 281:# ======= START RUNG 19 =======
 282:LabelRung19:
 283:
 284:set bit '$rung_top'
 286:# start series [
 287:# ELEM_CONTACTS
 288:if not 'Rnew10' {
 289:    clear bit '$rung_top'
 290:}
 292:# ELEM_COIL
 293:let bit 'Ynew11' := '$rung_top'
 295:# ] finish series
 296:# 
 297:# ======= START RUNG 20 =======
 298:LabelRung20:
 299:
 300:set bit '$rung_top'
 302:# start series [
 303:# ELEM_CONTACTS
 304:if not 'Rnew11' {
 305:    clear bit '$rung_top'
 306:}
 308:# ELEM_COIL
 309:let bit 'Ynew11' := '$rung_top'
 311:# ] finish series
 312:LabelRung21:
 313:
 314:# Latest INT_OP here
