   0:# INIT TABLES
   4:# 
   5:# ======= START RUNG 1 =======
   6:LabelRung1:
   7:
   8:set bit '$rung_top'
  10:# start series [
  11:# start parallel [
  12:clear bit '$parOut_0'
  13:let bit '$parThis_0' := '$rung_top'
  14:# ELEM_CONTACTS
  15:if not 'Xin1' {
  16:    clear bit '$parThis_0'
  17:}
  19:if '$parThis_0' {
  20:    set bit '$parOut_0'
  21:}
  22:let bit '$parThis_0' := '$rung_top'
  23:# ELEM_CONTACTS
  24:if not 'Xin2' {
  25:    clear bit '$parThis_0'
  26:}
  28:if '$parThis_0' {
  29:    set bit '$parOut_0'
  30:}
  31:let bit '$rung_top' := '$parOut_0'
  32:# ] finish parallel
  33:# ELEM_COIL
  34:let bit 'Rout1' := '$rung_top'
  36:# ] finish series
  37:# 
  38:# ======= START RUNG 2 =======
  39:LabelRung2:
  40:
  41:set bit '$rung_top'
  43:# start series [
  44:# ELEM_CONTACTS
  45:if not 'Xin2' {
  46:    clear bit '$rung_top'
  47:}
  49:# ELEM_COIL
  50:let bit 'Yout2' := '$rung_top'
  52:# ] finish series
  53:LabelRung3:
  54:
  55:# Latest INT_OP here
