SET
SAVE
= L 26.1
L W#16#0
T LW 28
L DW#16#87000000
T LD 30
L W#16#0
T LW 34
L DW#16#87000060
T LD 36
TAR2 LD 40
UC "RD_SINFO"
P#L 24.0
P#L 28.0
P#L 34.0
LAR2 LD 40
L #TOP_SI.NUM
AD DW#16#FF
L 100
TAK
==I
T LW 28
JC A7d1
JU A7d2
A7d1: CLR
A #MD_Signal
= #MD_R_TRIG.CLK
+AR2 P#68.0
UC "R_TRIG"
+AR2 P#8124.0
A BR
= #MD_R_TRIG_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Signal
= #MD_F_TRIG.CLK
+AR2 P#62.0
UC "F_TRIG"
+AR2 P#8130.0
A BR
= #MD_F_TRIG_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Sim_OUT
= #MD_Sim_R.CLK
+AR2 P#80.0
UC "R_TRIG"
+AR2 P#8112.0
A BR
= #MD_Sim_R_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Sim_OUT
= #MD_Sim_F.CLK
+AR2 P#74.0
UC "F_TRIG"
+AR2 P#8118.0
A BR
= #MD_Sim_F_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
JU A7d0
A7d2: CLR
A #MD_Signal
= #MD_R_TRIG.CLK
+AR2 P#68.0
UC "R_TRIG"
+AR2 P#8124.0
A BR
= #MD_R_TRIG_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Signal
= #MD_F_TRIG.CLK
+AR2 P#62.0
UC "F_TRIG"
+AR2 P#8130.0
A BR
= #MD_F_TRIG_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_ByPass
NOT
= #MD_OK_OUT
A #MD_Occupied
NOT
= #MD_NotOccupied_OUT
L #HeadPos
T LD 30
L #MDPos
T LD 34
TAR2 LD 40
UC "SUB_R"
P#L 30.0
P#L 34.0
P#L 44.0
LAR2 LD 40
L LD 44
T #Head_OUT
A BR
= #Head_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
ABS
T #B2_OUT
T LD 30
L #DeltaHeadPos
T LD 34
TAR2 LD 40
UC "CMP_R"
P#L 30.0
P#L 34.0
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
LAR2 LD 40
A L 26.6
= #HeadInWin_LT
A L 26.5
= #HeadInWin_LE
A L 26.4
= #HeadInWin_EQ
A L 26.3
= #HeadInWin_GE
A L 26.2
= #HeadInWin_GT
A BR
= #HeadInWin_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
L #TailPos
T LD 30
L #MDPos
T LD 34
TAR2 LD 40
UC "SUB_R"
P#L 30.0
P#L 34.0
P#L 44.0
LAR2 LD 40
L LD 44
T #Tail_OUT
A BR
= #Tail_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
ABS
T #B4_OUT
T LD 30
L #DeltaTailPos
T LD 34
TAR2 LD 40
UC "CMP_R"
P#L 30.0
P#L 34.0
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
LAR2 LD 40
A L 26.6
= #TailInWin_LT
A L 26.5
= #TailInWin_LE
A L 26.4
= #TailInWin_EQ
A L 26.3
= #TailInWin_GE
A L 26.2
= #TailInWin_GT
A BR
= #TailInWin_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
L #Head_OUT
T LD 30
L #DeltaHeadPos
T LD 34
TAR2 LD 40
UC "CMP_R"
P#L 30.0
P#L 34.0
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
LAR2 LD 40
A L 26.6
= #HeadAfterMD_HL_LT
A L 26.5
= #HeadAfterMD_HL_LE
A L 26.4
= #HeadAfterMD_HL_EQ
A L 26.3
= #HeadAfterMD_HL_GE
A L 26.2
= #HeadAfterMD_HL_GT
A BR
= #HeadAfterMD_HL_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
L #DeltaHeadPos
NEGR
T #B3_OUT
L #Head_OUT
T LD 30
TAK
T LD 34
TAR2 LD 40
UC "CMP_R"
P#L 30.0
P#L 34.0
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
LAR2 LD 40
A L 26.6
= #HeadBeforeMD_LL_LT
A L 26.5
= #HeadBeforeMD_LL_LE
A L 26.4
= #HeadBeforeMD_LL_EQ
A L 26.3
= #HeadBeforeMD_LL_GE
A L 26.2
= #HeadBeforeMD_LL_GT
A BR
= #HeadBeforeMD_LL_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
L #DeltaTailPos
NEGR
T #B1_OUT
L #Tail_OUT
T LD 30
TAK
T LD 34
TAR2 LD 40
UC "CMP_R"
P#L 30.0
P#L 34.0
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
LAR2 LD 40
A L 26.6
= #TailBeforeMD_LL_LT
A L 26.5
= #TailBeforeMD_LL_LE
A L 26.4
= #TailBeforeMD_LL_EQ
A L 26.3
= #TailBeforeMD_LL_GE
A L 26.2
= #TailBeforeMD_LL_GT
A BR
= #TailBeforeMD_LL_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
L #Tail_OUT
T LD 30
L #DeltaTailPos
T LD 34
TAR2 LD 40
UC "CMP_R"
P#L 30.0
P#L 34.0
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
LAR2 LD 40
A L 26.6
= #TailAfterMD_HL_LT
A L 26.5
= #TailAfterMD_HL_LE
A L 26.4
= #TailAfterMD_HL_EQ
A L 26.3
= #TailAfterMD_HL_GE
A L 26.2
= #TailAfterMD_HL_GT
A BR
= #TailAfterMD_HL_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Signal
NOT
= #MD_NotActive_OUT
A #HeadAfterMD_HL_GT
A #TailAfterMD_HL_GT
A #MD_OK_OUT
A #MD_Signal
= #B6_OUT
A #HeadBeforeMD_LL_LT
A #TailBeforeMD_LL_LT
A #MD_OK_OUT
A #MD_Signal
= #B10_OUT
A #HeadAfterMD_HL_GT
A #TailBeforeMD_LL_LT
A #MD_OK_OUT
A #MD_NotActive_OUT
= #DetectionFlt_OUT
A #B6_OUT
O #B10_OUT
= #LeaavingFlt_OUT
A #HeadBeforeMD_LL_GT
A #TailAfterMD_HL_LT
A #MD_OK_OUT
A #PlateExist
= #PlateInMDRange_OUT
A #HeadBeforeMD_LL_GT
A #TailAfterMD_HL_LT
A #MD_ByPass
= #MD_Sim_OUT
= #MD_Sim_R.CLK
+AR2 P#80.0
UC "R_TRIG"
+AR2 P#8112.0
A BR
= #MD_Sim_R_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Sim_OUT
= #MD_Sim_F.CLK
+AR2 P#74.0
UC "F_TRIG"
+AR2 P#8118.0
A BR
= #MD_Sim_F_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #MD_Enable
A #HeadInWin_LT
= #B17_OUT
A #MD_Enable
A #TailInWin_LT
= #B18_OUT
A #DetectionFlt_OUT
A #MD_NotOccupied_OUT
A #PlateExist
= #B5_OUT
A #LeaavingFlt_OUT
A #MD_NotOccupied_OUT
A #PlateExist
= #B11_OUT
A #MD_R_TRIG.Q
A #MD_OK_OUT
= #B12_OUT
A #MD_F_TRIG.Q
A #MD_OK_OUT
= #B13_OUT
A #B17_OUT
= L 26.2
A #B18_OUT
= L 26.3
A #B5_OUT
= L 26.4
A #B11_OUT
= L 26.5
A #PlateInMDRange_OUT
= L 26.6
A #Output_IN5
= L 26.7
A #Output_IN6
= L 27.0
A #Output_IN7
= L 27.1
TAR2 LD 40
UC "NOP8_BIT"
P#L 27.2
P#L 27.3
P#L 27.4
P#L 27.5
P#L 27.6
P#L 27.7
P#L 30.0
P#L 30.1
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
P#L 26.7
P#L 27.0
P#L 27.1
LAR2 LD 40
A L 30.1
= #Output_OUT7
A L 30.0
= #Output_OUT6
A L 27.7
= #Output_OUT5
A L 27.6
= #Output_OUT4
A L 27.5
= #Output_OUT3
A L 27.4
= #Output_OUT2
A L 27.3
= #Output_OUT1
A L 27.2
= #Output_OUT0
A L 27.1
= #Output_IN7
A L 27.0
= #Output_IN6
A L 26.7
= #Output_IN5
A L 26.6
= #PlateInMDRange_OUT
A L 26.5
= #B11_OUT
A L 26.4
= #B5_OUT
A L 26.3
= #B18_OUT
A L 26.2
= #B17_OUT
A BR
= #Output_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A #B12_OUT
= L 26.2
A #B13_OUT
= L 26.3
A #MD_Sim_R.Q
= L 26.4
A #MD_Sim_F.Q
= L 26.5
A #MD_Sim_OUT
= L 26.6
A #Output1_IN5
= L 26.7
A #Output1_IN6
= L 27.0
A #Output1_IN7
= L 27.1
TAR2 LD 40
UC "NOP8_BIT"
P#L 27.2
P#L 27.3
P#L 27.4
P#L 27.5
P#L 27.6
P#L 27.7
P#L 30.0
P#L 30.1
P#L 26.2
P#L 26.3
P#L 26.4
P#L 26.5
P#L 26.6
P#L 26.7
P#L 27.0
P#L 27.1
LAR2 LD 40
A L 30.1
= #Output1_OUT7
A L 30.0
= #Output1_OUT6
A L 27.7
= #Output1_OUT5
A L 27.6
= #Output1_OUT4
A L 27.5
= #Output1_OUT3
A L 27.4
= #Output1_OUT2
A L 27.3
= #Output1_OUT1
A L 27.2
= #Output1_OUT0
A L 27.1
= #Output1_IN7
A L 27.0
= #Output1_IN6
A L 26.7
= #Output1_IN5
A L 26.6
= #MD_Sim_OUT
A L 26.5
= #MD_Sim_F.Q
A L 26.4
= #MD_Sim_R.Q
A L 26.3
= #B13_OUT
A L 26.2
= #B12_OUT
A BR
= #Output1_ENO
= L 26.2
A L 26.2
A L 26.1
= L 26.1
A7d0: CLR
A #Output_OUT0
= #HeadInWindow
A #Output_OUT1
= #TailInWindow
A #Output_OUT2
= #DetectMDFlt
A #Output_OUT3
= #LeaveMDFlt
A #Output_OUT4
= #PlateInMDRange
A #Output1_OUT0
= #MD_R_TRIGG
A #Output1_OUT1
= #MD_F_TRIGG
A #Output1_OUT2
= #MD_Sim_R_TRIGG
A #Output1_OUT3
= #MD_Sim_F_TRIGG
A #Output1_OUT4
= #MD_Sim
A L 26.1
SAVE
BE