interlocking.lyx~ 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018
  1. #LyX 2.2 created this file. For more info see http://www.lyx.org/
  2. \lyxformat 508
  3. \begin_document
  4. \begin_header
  5. \save_transient_properties true
  6. \origin unavailable
  7. \textclass paper
  8. \use_default_options true
  9. \maintain_unincluded_children false
  10. \language english
  11. \language_package default
  12. \inputencoding auto
  13. \fontencoding global
  14. \font_roman "default" "default"
  15. \font_sans "default" "default"
  16. \font_typewriter "default" "default"
  17. \font_math "auto" "auto"
  18. \font_default_family default
  19. \use_non_tex_fonts false
  20. \font_sc false
  21. \font_osf false
  22. \font_sf_scale 100 100
  23. \font_tt_scale 100 100
  24. \graphics default
  25. \default_output_format default
  26. \output_sync 0
  27. \bibtex_command default
  28. \index_command default
  29. \paperfontsize default
  30. \spacing single
  31. \use_hyperref false
  32. \papersize default
  33. \use_geometry true
  34. \use_package amsmath 1
  35. \use_package amssymb 1
  36. \use_package cancel 1
  37. \use_package esint 1
  38. \use_package mathdots 1
  39. \use_package mathtools 1
  40. \use_package mhchem 1
  41. \use_package stackrel 1
  42. \use_package stmaryrd 1
  43. \use_package undertilde 1
  44. \cite_engine basic
  45. \cite_engine_type default
  46. \biblio_style plain
  47. \use_bibtopic false
  48. \use_indices false
  49. \paperorientation portrait
  50. \suppress_date false
  51. \justification true
  52. \use_refstyle 1
  53. \index Index
  54. \shortcut idx
  55. \color #008000
  56. \end_index
  57. \leftmargin 1cm
  58. \topmargin 1cm
  59. \rightmargin 1cm
  60. \bottommargin 1cm
  61. \secnumdepth 3
  62. \tocdepth 3
  63. \paragraph_separation indent
  64. \paragraph_indentation 0bp
  65. \quotes_language english
  66. \papercolumns 1
  67. \papersides 1
  68. \paperpagestyle default
  69. \tracking_changes false
  70. \output_changes false
  71. \html_math_output 0
  72. \html_css_as_file 0
  73. \html_be_strict false
  74. \end_header
  75. \begin_body
  76. \begin_layout Title
  77. Minetest Mod - Advanced Trains [advtrains]
  78. \end_layout
  79. \begin_layout Title
  80. Interlocking System Guide
  81. \end_layout
  82. \begin_layout Section
  83. Introduction
  84. \end_layout
  85. \begin_layout Standard
  86. In real-world railways, a so-called interlocking system is a set of railway
  87. signals and trackside equipment.
  88. Its purpose is to prevent conflicting train movements which otherwise could
  89. result in derailing or colliding trains.
  90. If you want more information, just search for
  91. \begin_inset Quotes eld
  92. \end_inset
  93. railway interlocking
  94. \begin_inset Quotes erd
  95. \end_inset
  96. on the internet.
  97. \end_layout
  98. \begin_layout Standard
  99. Real-world interlocking systems perform this task by setting routes.
  100. A route is a path along a track that a train can safely pass.
  101. To set a route for a train, the signalman (the operator of a signal box)
  102. has to set switches (turnouts) to the correct position and lock them in
  103. order to make a signal for a train show
  104. \begin_inset Quotes eld
  105. \end_inset
  106. Proceed
  107. \begin_inset Quotes erd
  108. \end_inset
  109. .
  110. In newer systems, this is done automatically by the interlocking system.
  111. A route can not be set if switches are locked to a wrong position by another
  112. route or if any portion of the route is occupied by a train.
  113. \end_layout
  114. \begin_layout Standard
  115. The interlocking system in this Minetest mod tries to follow real-world
  116. interlocking systems as far as applicable.
  117. It divides tracks into track sections and implements a route setting mechanism
  118. following the same principle.
  119. \end_layout
  120. \begin_layout Standard
  121. However, for the sake of simplicity of implementation and usage, not all
  122. concepts of real-world interlocking have been taken over.
  123. Especially, there is no mechanism for overlap.
  124. \end_layout
  125. \begin_layout Standard
  126. If you are looking for a place to learn how real-world interlocking systems
  127. work, have a look at
  128. \begin_inset Quotes eld
  129. \end_inset
  130. SimSig
  131. \begin_inset Quotes erd
  132. \end_inset
  133. .
  134. By looking at their simulations, you can obtain experience on how to set
  135. up your own interlocking systems in AdvTrains.
  136. The SimSig glossary is a good place to look up unknown terms in this document.
  137. \end_layout
  138. \begin_layout Section
  139. Setting up track sections
  140. \end_layout
  141. \begin_layout Standard
  142. In the real world, a line of track is divided into so-called track sections,
  143. or track circuits.
  144. Those systems often can not tell where exactly a train is, but only which
  145. track sections it occupies.
  146. A route can never be set through an occupied track section.
  147. \end_layout
  148. \begin_layout Standard
  149. A track section often covers:
  150. \end_layout
  151. \begin_layout Itemize
  152. A section on a main running line, between two signals
  153. \end_layout
  154. \begin_layout Itemize
  155. A single turnout
  156. \end_layout
  157. \begin_layout Itemize
  158. A rail crossing, or a set of turnouts acting as a double/single slip switch
  159. \end_layout
  160. \begin_layout Itemize
  161. A siding
  162. \end_layout
  163. \begin_layout Standard
  164. You will find some examples on how to interlock certain patterns later.
  165. \end_layout
  166. \begin_layout Subsection
  167. Track Circuit Breaks
  168. \end_layout
  169. \begin_layout Standard
  170. In this mod, you will not directly configure the locations of track sections.
  171. Instead, you designate the borders of each track section using a special
  172. node, the Track Circuit Break, abbreviated TCB.
  173. \end_layout
  174. \begin_layout Standard
  175. For example, if you want to create a track section for a piece of a main
  176. running line, you set up two TCBs at the ends of this track circuit.
  177. \end_layout
  178. \begin_layout Standard
  179. Setting up a TCB works as follows:
  180. \end_layout
  181. \begin_layout Enumerate
  182. Place a TCB node somewhere near the place where the circuit break is going
  183. to be located.
  184. \end_layout
  185. \begin_layout Enumerate
  186. Right-click the TCB node
  187. \end_layout
  188. \begin_layout Enumerate
  189. Punch the rail which should act as TCB
  190. \end_layout
  191. \begin_layout Standard
  192. The result should look like this:
  193. \end_layout
  194. \begin_layout Standard
  195. \begin_inset Graphics
  196. filename lyx_img/screenshot_20180830_142551.png
  197. width 10cm
  198. \end_inset
  199. \end_layout
  200. \begin_layout Standard
  201. Now you have assigned the TCB node to a rail.
  202. Right-click the TCB node once again.
  203. This will bring up a form which looks as follows:
  204. \end_layout
  205. \begin_layout Standard
  206. \begin_inset Graphics
  207. filename lyx_img/Bildschirmfoto_2018-08-30_14-26-35.png
  208. width 10cm
  209. \end_inset
  210. \end_layout
  211. \begin_layout Standard
  212. You see that the form is divided in side A and side B.
  213. To designate where each side is, a marker is displayed on the rail.
  214. You can always make this marker show up by punching the TCB node, and remove
  215. it by punching the marker.
  216. Both sides are shown as
  217. \begin_inset Quotes eld
  218. \end_inset
  219. End of interlocking
  220. \begin_inset Quotes erd
  221. \end_inset
  222. .
  223. This means that there is no track section set up at this place.
  224. \end_layout
  225. \begin_layout Standard
  226. You should repeat this procedure once again a few meters away from the first
  227. TCB to create a second TCB on the same track.
  228. \end_layout
  229. \begin_layout Standard
  230. \begin_inset Graphics
  231. filename lyx_img/Bildschirmfoto_2018-08-30_14-32-48.png
  232. width 10cm
  233. \end_inset
  234. \end_layout
  235. \begin_layout Standard
  236. Once you have both bordering TCBs set up, you can now create the actual
  237. track section.
  238. To do this:
  239. \end_layout
  240. \begin_layout Enumerate
  241. Right-click one of the TCBs
  242. \end_layout
  243. \begin_layout Enumerate
  244. Locate the correct side (A or B) to create the track section
  245. \end_layout
  246. \begin_layout Enumerate
  247. Click
  248. \begin_inset Quotes eld
  249. \end_inset
  250. Create interlocked Track Section
  251. \begin_inset Quotes erd
  252. \end_inset
  253. in the formspec on the chosen side.
  254. \end_layout
  255. \begin_layout Standard
  256. Now, the text on the formspec has changed.
  257. It shows something like this:
  258. \end_layout
  259. \begin_layout Standard
  260. \begin_inset Graphics
  261. filename lyx_img/Bildschirmfoto_2018-08-30_14-27-25.png
  262. width 5cm
  263. \end_inset
  264. \end_layout
  265. \begin_layout Standard
  266. Clicking
  267. \begin_inset Quotes eld
  268. \end_inset
  269. Show Track Section
  270. \begin_inset Quotes erd
  271. \end_inset
  272. brings up another formspec:
  273. \end_layout
  274. \begin_layout Standard
  275. \begin_inset Graphics
  276. filename lyx_img/Bildschirmfoto_2018-08-30_14-28-32.png
  277. width 5cm
  278. \end_inset
  279. \end_layout
  280. \begin_layout Standard
  281. On the top, you see a list of all TCBs that border this track section.
  282. In your case, there should be two TCBs listed.
  283. If there's only one, head over to
  284. \begin_inset CommandInset ref
  285. LatexCommand ref
  286. reference "subsec:Long-track-sections,"
  287. \end_inset
  288. .
  289. You should now select a name for the track section, to identify it later.
  290. \end_layout
  291. \begin_layout Standard
  292. The same procedure is applicable when you create a turnout track section,
  293. except that you have to set up three or more TCBs.
  294. \end_layout
  295. \begin_layout Standard
  296. The AdvTrains interlocking system allows you to add more TCBs after you
  297. have created a track section.
  298. This works without problems in most cases.
  299. For example, you can easily insert a turnout into an already set-up track
  300. section and create another TCB behind it, and AdvTrains will automatically
  301. detect the existing track section.
  302. Problems arise only if you try to insert a TCB in-between a section, in
  303. which case both sides of the TCB will end up assigned to the same section.
  304. The code currently does not handle this case properly, so try to avoid
  305. this situation by all means.
  306. As a last resort, you can always dissolve a faulty track section, as described
  307. in the next chapter.
  308. \end_layout
  309. \begin_layout Subsection
  310. Long track sections, crossings and other edge cases
  311. \begin_inset CommandInset label
  312. LatexCommand label
  313. name "subsec:Long-track-sections,"
  314. \end_inset
  315. \end_layout
  316. \begin_layout Subsubsection
  317. Very long track sections
  318. \end_layout
  319. \begin_layout Standard
  320. If you try to set up a track section that is longer than 1000 nodes, advtrains
  321. won't recognize the TCB at the other end because of a safety limit in the
  322. traverser function, which is supposed to prevent deadlocks.
  323. This case has happened when the Track Section overview screen only shows
  324. one TCB in the list.
  325. The procedure for this is as follows:
  326. \end_layout
  327. \begin_layout Enumerate
  328. Go to the second TCB (the one that wasn't recognized).
  329. It should show
  330. \begin_inset Quotes eld
  331. \end_inset
  332. End of Interlocking
  333. \begin_inset Quotes erd
  334. \end_inset
  335. on the relevant side.
  336. \end_layout
  337. \begin_layout Enumerate
  338. Click
  339. \begin_inset Quotes eld
  340. \end_inset
  341. Create interlocked track section
  342. \begin_inset Quotes erd
  343. \end_inset
  344. .
  345. The section created will be different from the one that is already present.
  346. \end_layout
  347. \begin_layout Enumerate
  348. In the track section overview, click
  349. \begin_inset Quotes eld
  350. \end_inset
  351. Join into other section
  352. \begin_inset Quotes erd
  353. \end_inset
  354. \end_layout
  355. \begin_layout Enumerate
  356. Go back to the first TCB, bring up the Track Section overview screen of
  357. the first track section and click
  358. \begin_inset Quotes eld
  359. \end_inset
  360. Join with ???
  361. \begin_inset Quotes erd
  362. \end_inset
  363. \end_layout
  364. \begin_layout Standard
  365. The other, missing TCB should now appear in the list.
  366. If you accidentally started such a joining procedure, click the
  367. \begin_inset Quotes eld
  368. \end_inset
  369. X
  370. \begin_inset Quotes erd
  371. \end_inset
  372. button on the right.
  373. \end_layout
  374. \begin_layout Subsubsection
  375. Rail crosses
  376. \end_layout
  377. \begin_layout Standard
  378. Since rail crosses are created by laying tracks across each other without
  379. logical connection, there's no way for advtrains to know whether rails
  380. cross each other.
  381. \end_layout
  382. \begin_layout Standard
  383. Rail crossings in interlocking systems are always one single track section,
  384. which in most cases has 4 TCBs adjacent.
  385. \end_layout
  386. \begin_layout Standard
  387. \begin_inset Graphics
  388. filename lyx_img/Bildschirmfoto_2018-08-30_14-51-25.png
  389. width 5cm
  390. \end_inset
  391. \end_layout
  392. \begin_layout Standard
  393. The procedure is quite similar to the one for long sections: First, create
  394. two track sections for the branches, and then use the
  395. \begin_inset Quotes eld
  396. \end_inset
  397. Join
  398. \begin_inset Quotes erd
  399. \end_inset
  400. function to merge both sections into one.
  401. \end_layout
  402. \begin_layout Subsubsection
  403. Deleting and re-adding single TCBs to a section
  404. \end_layout
  405. \begin_layout Standard
  406. In some occasions, for example when you remove a siding or a crossover,
  407. it can be necessary to unassign a TCB from a track section.
  408. There are multiple ways to do this:
  409. \end_layout
  410. \begin_layout Itemize
  411. In the TCB form, click the
  412. \begin_inset Quotes eld
  413. \end_inset
  414. Remove from section
  415. \begin_inset Quotes erd
  416. \end_inset
  417. button
  418. \end_layout
  419. \begin_layout Itemize
  420. In the track section form, first select the TCB in the list and then click
  421. \begin_inset Quotes eld
  422. \end_inset
  423. Unlink selected TCB
  424. \begin_inset Quotes erd
  425. \end_inset
  426. \end_layout
  427. \begin_layout Standard
  428. The result is that the TCB shows
  429. \begin_inset Quotes eld
  430. \end_inset
  431. End of Interlocking
  432. \begin_inset Quotes erd
  433. \end_inset
  434. and the section does not list the TCB as an endpoint anymore.
  435. \end_layout
  436. \begin_layout Standard
  437. The other case is adding a siding or a crossover, in which case one or more
  438. TCBs still show
  439. \begin_inset Quotes eld
  440. \end_inset
  441. End of Interlocking
  442. \begin_inset Quotes erd
  443. \end_inset
  444. although they should be part of a section:
  445. \end_layout
  446. \begin_layout Itemize
  447. Go to another TCB that is registered in the track section and click
  448. \begin_inset Quotes eld
  449. \end_inset
  450. Update near TCBs
  451. \begin_inset Quotes erd
  452. \end_inset
  453. \end_layout
  454. \begin_layout Itemize
  455. If that did not work, follow the procedure of creating a long track section
  456. \end_layout
  457. \begin_layout Subsubsection
  458. Dissolving sections
  459. \end_layout
  460. \begin_layout Standard
  461. If you made a mistake setting up something and you don't see any other way
  462. to fix a misconfigured track section, you can always delete it using the
  463. \begin_inset Quotes eld
  464. \end_inset
  465. Dissolve section
  466. \begin_inset Quotes erd
  467. \end_inset
  468. button.
  469. This operation removes the track section and sets all TCBs that previously
  470. belonged to the section as
  471. \begin_inset Quotes eld
  472. \end_inset
  473. End of Interlocking
  474. \begin_inset Quotes erd
  475. \end_inset
  476. .
  477. This will always work and lets you start over new with setting up track
  478. sections.
  479. \end_layout
  480. \begin_layout Subsection
  481. Interlocking patterns
  482. \end_layout
  483. \begin_layout Standard
  484. Have a look at the following images.
  485. They show you how you can set up sections so that reasonable train moves
  486. are possible.
  487. \end_layout
  488. \begin_layout Standard
  489. You should settle on a naming scheme for your sections.
  490. This way, you can determine the source of an issue faster
  491. \end_layout
  492. \begin_layout Section
  493. Signals and routes
  494. \end_layout
  495. \begin_layout Standard
  496. Signals are appliances that can give instructions to trains.
  497. That can be the permission to proceed, a speed restriction, or other informatio
  498. n.
  499. \end_layout
  500. \begin_layout Standard
  501. There are 2 types of signals:
  502. \end_layout
  503. \begin_layout Itemize
  504. Static signals always display the same information to the train.
  505. This can be a speed restriction (or the end of one), a disallowal to proceed
  506. as shunt move or similar things.
  507. In most cases, these are signs.
  508. \end_layout
  509. \begin_layout Itemize
  510. Dynamic signals are what most people would call a
  511. \begin_inset Quotes eld
  512. \end_inset
  513. signal
  514. \begin_inset Quotes erd
  515. \end_inset
  516. .
  517. Its function is to inform trains about whether and at which speed they
  518. can proceed into the next section safely.
  519. \end_layout
  520. \begin_layout Subsection
  521. Signal Influence Point
  522. \end_layout
  523. \begin_layout Standard
  524. Every signal is associated to a track on which the instruction should be
  525. followed.
  526. Signals are usually placed right next to the track on the right side.
  527. Human observers do know then that the signal belongs to the track left
  528. of it, however, train safety systems (like the one in advtrains) can not.
  529. \end_layout
  530. \begin_layout Standard
  531. This is the reason why a so-called
  532. \begin_inset Quotes eld
  533. \end_inset
  534. influence point
  535. \begin_inset Quotes erd
  536. \end_inset
  537. needs to be assigned to any signal that should actually give instructions
  538. to trains, should the driver (if even there is one) fail to recognize the
  539. instructions.
  540. \end_layout
  541. \begin_layout Standard
  542. Depending on the signal and the mod that adds the signal, there are different
  543. ways to configure this.
  544. Signals integrated into advtrains behave as follows:
  545. \end_layout
  546. \begin_layout Itemize
  547. Static signals and all red-green light signals from core advtrains that
  548. are not assigned to a TCB can be configured by holding the
  549. \begin_inset Quotes eld
  550. \end_inset
  551. Use
  552. \begin_inset Quotes erd
  553. \end_inset
  554. key and then right-clicking the signal
  555. \end_layout
  556. \begin_layout Itemize
  557. All signals that are assigned to a TCB can be configured by first right-clicking
  558. them, then selecting
  559. \begin_inset Quotes eld
  560. \end_inset
  561. Influence Point
  562. \begin_inset Quotes erd
  563. \end_inset
  564. in the signalling formspec.
  565. \end_layout
  566. \begin_layout Standard
  567. The small formspec that opens allows you to set and later view or clear
  568. the Influence Point.
  569. To set the influence point, click the
  570. \begin_inset Quotes eld
  571. \end_inset
  572. Set
  573. \begin_inset Quotes erd
  574. \end_inset
  575. button, face towards the signal and punch a rail about 2m in front of the
  576. signal.
  577. A small marker will be shown, indicating success.
  578. To cancel setting an influence point, punch anything other.
  579. (note that then the influence point remains unset, regardless of its previous
  580. state)
  581. \end_layout
  582. \begin_layout Standard
  583. The advtrains-internal train safety system ensures that the train always
  584. obeys any restrictions imposed by signals, if (and only if) the influence
  585. point is set properly.
  586. \end_layout
  587. \begin_layout Subsection
  588. Signal Aspects
  589. \end_layout
  590. \begin_layout Standard
  591. While static signals are mainly used for speed restrictions, the interesting
  592. ones are variable signals.
  593. Of course, you can always control any variable signal by traditional means
  594. (mesecons, digiline, right-click) if the signal allows it, but that misses
  595. the point of this interlocking system.
  596. \end_layout
  597. \begin_layout Standard
  598. A signal aspect is a piece of information that a signal shows to the train
  599. driver.
  600. It contains information about whether and at what speed the driver may
  601. proceed at the signal.
  602. \end_layout
  603. \begin_layout Standard
  604. Every signal, both static and dynamic ones, imposes a certain aspect to
  605. trains passing the signal.
  606. For static signals, this is always the same aspect, such as
  607. \begin_inset Quotes eld
  608. \end_inset
  609. Proceed at speed of 8
  610. \begin_inset Quotes erd
  611. \end_inset
  612. or
  613. \begin_inset Quotes eld
  614. \end_inset
  615. Shunt moves may not pass
  616. \begin_inset Quotes erd
  617. \end_inset
  618. .
  619. Dynamic signals, however, can display multiple different aspects.
  620. The default for them is always as restrictive as possible, mostly
  621. \begin_inset Quotes eld
  622. \end_inset
  623. Halt!
  624. \begin_inset Quotes erd
  625. \end_inset
  626. .
  627. \end_layout
  628. \begin_layout Standard
  629. You should know that both static and dynamic signals use exactly the same
  630. properties for signal aspects.
  631. There is no difference in the meaning of the aspect definitions.
  632. \end_layout
  633. \begin_layout Standard
  634. In the following sections, we will talk about main signals.
  635. By this, we mean a variable signal that can display both a
  636. \begin_inset Quotes eld
  637. \end_inset
  638. Danger
  639. \begin_inset Quotes erd
  640. \end_inset
  641. aspect (trains are not allowed to proceed) and at least one
  642. \begin_inset Quotes eld
  643. \end_inset
  644. Proceed
  645. \begin_inset Quotes erd
  646. \end_inset
  647. aspect (train may proceed as train/shunt move, with optional speed restriction)
  648. , which act as an
  649. \begin_inset Quotes eld
  650. \end_inset
  651. entry signal
  652. \begin_inset Quotes erd
  653. \end_inset
  654. for one or multiple routes.
  655. \end_layout
  656. \begin_layout Subsection
  657. Train moves and Shunt Moves
  658. \end_layout
  659. \begin_layout Itemize
  660. A
  661. \begin_inset Quotes eld
  662. \end_inset
  663. Train move
  664. \begin_inset Quotes erd
  665. \end_inset
  666. is a train that is running, going to run on or coming from a main line
  667. between stations, passing through or stopping at a station.
  668. Train moves can expect that there are no obstacles on the route and they
  669. can proceed at the maximum permitted speed of the line.
  670. This is the regular operation mode for trains.
  671. Shunt signals have no meaning for train moves.
  672. \end_layout
  673. \begin_layout Itemize
  674. A
  675. \begin_inset Quotes eld
  676. \end_inset
  677. Shunt move
  678. \begin_inset Quotes erd
  679. \end_inset
  680. is a train that moves within a station and/or is coupling or decoupling
  681. wagons or engines.
  682. A shunt move may never leave a station except into a siding.
  683. Also, shunt moves may drive at a maximum speed of 6 speed units, because
  684. it is usually not ensured that the path is free of obstacles.
  685. (however, advtrains ensures that every route is free of railway vehicles,
  686. even shunt routes)
  687. \end_layout
  688. \begin_layout Standard
  689. There are also 2 general types of signals: Main signals and Shunt signals.
  690. While main signals have a meaning for all types of trains, Shunt signals
  691. only have to be followed by shunt moves.
  692. Usually, Shunt signals that are on a train move route are set to a Proceed
  693. aspect as well.
  694. \end_layout
  695. \begin_layout Standard
  696. When a train reverses, its mode automatically changes to
  697. \begin_inset Quotes eld
  698. \end_inset
  699. shunt move
  700. \begin_inset Quotes erd
  701. \end_inset
  702. until it passes a main signal that shows
  703. \begin_inset Quotes eld
  704. \end_inset
  705. Proceed as train move
  706. \begin_inset Quotes erd
  707. \end_inset
  708. , which is usually designated by a green light.
  709. From this point on, it can accelerate to maximum permitted speed.
  710. \end_layout
  711. \begin_layout Standard
  712. Some main signals, like the ones from the Ks signals mod included by default,
  713. can also display
  714. \begin_inset Quotes eld
  715. \end_inset
  716. Proceed as shunt move
  717. \begin_inset Quotes erd
  718. \end_inset
  719. , which is designated by 2 white lights along with the red light.
  720. Once a train passes this signal, it becomes a shunt move.
  721. \end_layout
  722. \begin_layout Subsection
  723. The concept of routes
  724. \end_layout
  725. \begin_layout Standard
  726. A so-called route is a locked path between two main signals, which locks
  727. all turnouts in the correct position.
  728. Its purpose is to offer a train a path on which it can safely proceed without
  729. interfering with any other train.
  730. A route always incorporates and locks one to multiple track sections, starting
  731. with the one that lies directly behind the
  732. \begin_inset Quotes eld
  733. \end_inset
  734. entry
  735. \begin_inset Quotes erd
  736. \end_inset
  737. signal.
  738. \end_layout
  739. \begin_layout Standard
  740. Example: Imagine a station with 2 platforms on a single track running line.
  741. We are looking at signal A.
  742. You probably want trains coming from the right to go into platform 1 or
  743. into platform 2, so you need to program 2 routes.
  744. \end_layout
  745. \begin_layout Standard
  746. \begin_inset Graphics
  747. filename lyx_img/route_ex1.png
  748. width 7cm
  749. \end_inset
  750. \end_layout
  751. \begin_layout Standard
  752. This leads us to the most important aspect of route programming: Routes
  753. always start at a signal (A) and end at a signal facing in the
  754. \series bold
  755. same direction
  756. \series default
  757. (D and E), not at an opposite-facing signal (B and C).
  758. There are only few exceptions, we'll cover this later.
  759. \end_layout
  760. \begin_layout Standard
  761. When you set a route to make a train proceed on it, the interlocking system
  762. ensures that:
  763. \end_layout
  764. \begin_layout Itemize
  765. There are no rail vehicles on the route
  766. \end_layout
  767. \begin_layout Itemize
  768. All turnouts are set to the correct position and it is impossible to move
  769. them
  770. \end_layout
  771. \begin_layout Itemize
  772. No other routes can be set that would in any way conflict with this route
  773. \end_layout
  774. \begin_layout Standard
  775. For this to work, you need to specify all track sections the train will
  776. pass along, as well as the positions of all turnouts that need to be locked.
  777. Those are not only the turnouts that lay directly on the train's route,
  778. but also some turnouts on adjacent tracks, the so-called flank protection.
  779. \end_layout
  780. \begin_layout Standard
  781. The purpose of flank protection is to prevent runaway trains and/or wagons
  782. to pass into a route.
  783. This is achieved by setting nearby turnouts to a position that points
  784. \begin_inset Quotes eld
  785. \end_inset
  786. away
  787. \begin_inset Quotes erd
  788. \end_inset
  789. from the route.
  790. Example:
  791. \end_layout
  792. \begin_layout Standard
  793. \begin_inset Graphics
  794. filename lyx_img/route_ex2.png
  795. width 7cm
  796. \end_inset
  797. \end_layout
  798. \begin_layout Standard
  799. The upper turnout, of course, needs to be locked in straight (normal) position,
  800. while the lower one is not relevant for the route itself.
  801. But what if the lower turnout was set to the diverging (reverse) position
  802. and the driver of another train approaching signal B fails to see the red
  803. light? This train would crash into the first one.
  804. To minimise danger, that other train would need to be routed towards signal
  805. D.
  806. \end_layout
  807. \begin_layout Standard
  808. There are, of course, situations, where both positions of a turnout would
  809. conflict with a route equally.
  810. In those situations, there's nothing you can do and no flank lock needs
  811. to be set.
  812. \end_layout
  813. \begin_layout Subsection
  814. Assigning main signals to TCBs
  815. \end_layout
  816. \begin_layout Standard
  817. Main signals in the advtrains interlocking system are positioned - like
  818. in real life - at the border of track sections, because routes also start
  819. and end there.
  820. For advtrains to know from which signal which routes can be set, you need
  821. to assign the signal to a TCB.
  822. \end_layout
  823. \begin_layout Standard
  824. To do this, perform the following steps:
  825. \end_layout
  826. \begin_layout Enumerate
  827. If not already happened, set up a TCB (you don't need to, but are advised
  828. to, configure track sections there)
  829. \end_layout
  830. \begin_layout Enumerate
  831. Place the signal a few meters in front of the TCB, so that trains stopping
  832. at the signal do never pass the TCB
  833. \end_layout
  834. \begin_layout Enumerate
  835. Locate the side of the TCB which points in the direction that trains will
  836. proceed past the signal, as shown in the figure below.
  837. \end_layout
  838. \begin_layout Enumerate
  839. Right-click the TCB, and click
  840. \begin_inset Quotes eld
  841. \end_inset
  842. Assign a signal
  843. \begin_inset Quotes erd
  844. \end_inset
  845. on this side.
  846. \end_layout
  847. \begin_layout Enumerate
  848. Punch the signal.
  849. \end_layout
  850. \begin_layout Standard
  851. \begin_inset Graphics
  852. filename lyx_img/assign_signal.png
  853. width 8cm
  854. \end_inset
  855. \end_layout
  856. \begin_layout Standard
  857. If you haven't set an influence point for the signal yet, the influence
  858. point formspec automatically opens.
  859. \end_layout
  860. \begin_layout Standard
  861. You can assign a signal to each side of a TCB.
  862. This is, for example, useful when creating block sections on a bi-directional
  863. main running line.
  864. \end_layout
  865. \begin_layout Standard
  866. Only main signals can ever be assigned to TCBs, because static ones can
  867. either not display
  868. \begin_inset Quotes eld
  869. \end_inset
  870. Danger
  871. \begin_inset Quotes erd
  872. \end_inset
  873. or do not permit to proceed at all.
  874. \end_layout
  875. \begin_layout Subsection
  876. Shunt routes
  877. \end_layout
  878. \begin_layout Standard
  879. \series bold
  880. The information in this section is subject to future change because of safety
  881. issues!
  882. \end_layout
  883. \begin_layout Standard
  884. Operating railways is not all about driving trains around.
  885. Coupling, decoupling and moving single engines, wagons or groups of wagons
  886. across a station, called shunting, also plays an important role.
  887. \end_layout
  888. \begin_layout Standard
  889. Remember what we said about routes: There must be no rail vehicles on the
  890. route.
  891. So what if you have some goods wagons ready on a siding, and want to couple
  892. an engine to it? You can not set a regular route into the siding, because
  893. it is occupied.
  894. \end_layout
  895. \begin_layout Standard
  896. The solution is to program a second route into the siding, but with the
  897. difference that it already ends at the rear-facing signal of it, so it
  898. doesn't include the siding section itself:
  899. \end_layout
  900. \begin_layout Standard
  901. \begin_inset Graphics
  902. filename lyx_img/route_ex3.png
  903. width 7cm
  904. \end_inset
  905. \end_layout
  906. \begin_layout Standard
  907. The Sht2 route then needs to show a shunt aspect, which instructs the driver
  908. to proceed slowly and watch out for vehicles on the route.
  909. See later on for how to set this up.
  910. \end_layout
  911. \begin_layout Standard
  912. Shunt routes like this are, so far, the only exception to the
  913. \begin_inset Quotes eld
  914. \end_inset
  915. Routes should end at a signal facing the same direction
  916. \begin_inset Quotes erd
  917. \end_inset
  918. rule.
  919. \end_layout
  920. \begin_layout Subsection
  921. Route Release
  922. \end_layout
  923. \begin_layout Standard
  924. In early real-life interlocking systems, routes either had to be cancelled
  925. by the signalman after the train had passed the route, or there was a single
  926. release contact at the end of the route.
  927. However, as interlocking systems evolved and the position of trains is
  928. now roughly known by the track sections, portions of the route can be freed
  929. as soon as the train has left the corresponding section.
  930. \end_layout
  931. \begin_layout Standard
  932. AdvTrains has chosen a modern approach to route releasing.
  933. Each turnout lock is associated to a track section belonging to the route's
  934. path.
  935. Once the train leaves this section, all assigned locks are also freed.
  936. \end_layout
  937. \begin_layout Standard
  938. Please note that reversing a train outside of stations is not only discouraged,
  939. but also very dangerous, because even real-world interlocking system do
  940. not expect this.
  941. There is a clear, human-sense rule that you should never reverse the driving
  942. direction of a train while on a main line or on a turnout.
  943. Else, you can be considered a terrorist.
  944. (quote from professional!)
  945. \end_layout
  946. \begin_layout Subsection
  947. Programming a route
  948. \end_layout
  949. \begin_layout Standard
  950. The route programming procedure is quite straightforward if you've read
  951. the previous sections and understood how routes should be set.
  952. \end_layout
  953. \begin_layout Standard
  954. Routes always start at a main signal.
  955. You must have assigned the signal to a TCB, as described earlier.
  956. \end_layout
  957. \begin_layout Standard
  958. When you right-click the main signal, it no longer changes its aspect.
  959. Instead, a formspec pops up, showing you an (empty) list of routes with
  960. the possibility to set them or to create new routes.
  961. Click the
  962. \begin_inset Quotes eld
  963. \end_inset
  964. Create new route
  965. \begin_inset Quotes erd
  966. \end_inset
  967. button to start programming a new route.
  968. \end_layout
  969. \begin_layout Standard
  970. The form closes, and an arrow is displayed on the TCB.
  971. You are now in
  972. \begin_inset Quotes eld
  973. \end_inset
  974. Route Programming
  975. \begin_inset Quotes erd
  976. \end_inset
  977. mode, programming the first track section of the route.
  978. Now:
  979. \end_layout
  980. \begin_layout Itemize
  981. Put any turnouts you need to lock in the correct position (e.g.
  982. by right-clicking them).
  983. This includes flank protection.
  984. \end_layout
  985. \begin_layout Itemize
  986. Punch them.
  987. This makes a marker with a blue lock symbol appear.
  988. \end_layout
  989. \begin_layout Itemize
  990. If you punch a turnout again, or punch the marker, you can remove the lock
  991. again.
  992. \end_layout
  993. \begin_layout Itemize
  994. When you've locked all turnouts in the current section, go to and punch
  995. the TCB that is the border to the next track section the train proceeds
  996. into.
  997. \end_layout
  998. \begin_layout Standard
  999. Depending on the situation, you are now offered some possibilities to proceed:
  1000. \end_layout
  1001. \begin_layout Itemize
  1002. Click the
  1003. \begin_inset Quotes eld
  1004. \end_inset
  1005. Advance to next section
  1006. \begin_inset Quotes erd
  1007. \end_inset
  1008. button if your route consists of more sections with turnouts to lock, and
  1009. you need to continue programming.
  1010. Follow the above steps to set locks for the next section.
  1011. \end_layout
  1012. \begin_layout Standard
  1013. Once you've clicked the
  1014. \begin_inset Quotes eld
  1015. \end_inset
  1016. Advance
  1017. \begin_inset Quotes erd
  1018. \end_inset
  1019. button, the lock markers change to a red lock symbol, telling they can't
  1020. be changed anymore.
  1021. Repeat the above procedure until you are ready to complete the programming
  1022. procedure:
  1023. \end_layout
  1024. \begin_layout Itemize
  1025. Click the
  1026. \begin_inset Quotes eld
  1027. \end_inset
  1028. Finish route HERE
  1029. \begin_inset Quotes erd
  1030. \end_inset
  1031. button when you've set up the locks for the last track section of the route
  1032. and punched the final TCB (the one with the next signal).
  1033. You will be asked for a route name and your route will be saved.
  1034. \end_layout
  1035. \begin_layout Itemize
  1036. The
  1037. \begin_inset Quotes eld
  1038. \end_inset
  1039. Finish route at end of NEXT section
  1040. \begin_inset Quotes erd
  1041. \end_inset
  1042. button (third button) is an useful quickhand to make the route proceed
  1043. one more section.
  1044. Using this button is equivalent to first clicking the
  1045. \begin_inset Quotes eld
  1046. \end_inset
  1047. Advance
  1048. \begin_inset Quotes erd
  1049. \end_inset
  1050. button, then flying to the end of the next track section and finishing
  1051. the route there.
  1052. You can not (officially) set turnout locks in the final section using this
  1053. method.
  1054. \end_layout
  1055. \begin_layout Standard
  1056. A few hints:
  1057. \end_layout
  1058. \begin_layout Itemize
  1059. If you accidentally advanced the route wrongly, you can use the
  1060. \begin_inset Quotes eld
  1061. \end_inset
  1062. Step back one section
  1063. \begin_inset Quotes erd
  1064. \end_inset
  1065. button to undo this.
  1066. \end_layout
  1067. \begin_layout Itemize
  1068. If you want to stop programming the entire route without saving it, use
  1069. the
  1070. \begin_inset Quotes eld
  1071. \end_inset
  1072. Cancel route programming
  1073. \begin_inset Quotes erd
  1074. \end_inset
  1075. button.
  1076. \end_layout
  1077. \begin_layout Itemize
  1078. The third button is especially useful for programming simple block sections
  1079. on a main running line, since you can stay at the starting signal (punch
  1080. starting TCB and select third button).
  1081. \end_layout
  1082. \begin_layout Itemize
  1083. If a route should end in a dead end, you MUST use the
  1084. \begin_inset Quotes eld
  1085. \end_inset
  1086. Finish in NEXT section
  1087. \begin_inset Quotes erd
  1088. \end_inset
  1089. button, because there is no final TCB that you could punch.
  1090. \end_layout
  1091. \begin_layout Itemize
  1092. The third button does NOT work on sections with more than 2 exits, because
  1093. the system won't be able to determine the final TCB of the route then.
  1094. \end_layout
  1095. \begin_layout Subsection
  1096. Route information screen
  1097. \end_layout
  1098. \begin_layout Standard
  1099. \begin_inset Graphics
  1100. filename lyx_img/Bildschirmfoto_2019-01-15_19-28-09.png
  1101. width 10cm
  1102. \end_inset
  1103. \end_layout
  1104. \begin_layout Standard
  1105. This is the screen that appears when you click
  1106. \begin_inset Quotes eld
  1107. \end_inset
  1108. Edit Route
  1109. \begin_inset Quotes erd
  1110. \end_inset
  1111. .
  1112. It lets you change the route name and delete the route.
  1113. Also, it shows a summary of the route and its elements.
  1114. \end_layout
  1115. \begin_layout Standard
  1116. The route summary lists information per track section on the route, so the
  1117. line starting with
  1118. \begin_inset Quotes eld
  1119. \end_inset
  1120. 1
  1121. \begin_inset Quotes erd
  1122. \end_inset
  1123. is the first section of the route.
  1124. \end_layout
  1125. \begin_layout Standard
  1126. The ARS rule list and its purpose is explained later.
  1127. \end_layout
  1128. \begin_layout Subsection
  1129. Specifying signal aspects
  1130. \end_layout
  1131. \begin_layout Standard
  1132. By default, newly programmed routes show an aspect that comes closest to
  1133. \begin_inset Quotes eld
  1134. \end_inset
  1135. Proceed at maximum speed
  1136. \begin_inset Quotes erd
  1137. \end_inset
  1138. .
  1139. However, it can be desirable to change this behavior, like when the route
  1140. passes a diverging turnout, the train should be signalled to drive slower,
  1141. or the route is a shunt route and therefore only
  1142. \begin_inset Quotes eld
  1143. \end_inset
  1144. Shunting allowed
  1145. \begin_inset Quotes erd
  1146. \end_inset
  1147. should be shown.
  1148. \end_layout
  1149. \begin_layout Standard
  1150. This is the purpose of the
  1151. \begin_inset Quotes eld
  1152. \end_inset
  1153. Change Aspect
  1154. \begin_inset Quotes erd
  1155. \end_inset
  1156. button in the route info screen.
  1157. \end_layout
  1158. \begin_layout Standard
  1159. Signal aspects in advtrains consist of 4 sections: main (Information for
  1160. train moves), dst (Distant signal information, not implemented yet), shunt
  1161. (Information for shunt moves) and info (additional information, currently
  1162. not in use).
  1163. \end_layout
  1164. \begin_layout Itemize
  1165. Train may proceed as train move at maximum speed:
  1166. \begin_inset Quotes eld
  1167. \end_inset
  1168. main: free, speed -1
  1169. \begin_inset Quotes erd
  1170. \end_inset
  1171. \end_layout
  1172. \begin_layout Itemize
  1173. Train may proceed as train move at speed of 8:
  1174. \begin_inset Quotes eld
  1175. \end_inset
  1176. main: free, speed 8
  1177. \begin_inset Quotes erd
  1178. \end_inset
  1179. \end_layout
  1180. \begin_layout Itemize
  1181. Train may proceed as shunt move:
  1182. \begin_inset Quotes eld
  1183. \end_inset
  1184. shunt: free
  1185. \begin_inset Quotes erd
  1186. \end_inset
  1187. \end_layout
  1188. \begin_layout Standard
  1189. There's a field in the
  1190. \begin_inset Quotes eld
  1191. \end_inset
  1192. shunt
  1193. \begin_inset Quotes erd
  1194. \end_inset
  1195. part of signal aspects that is not displayed in the GUI, but is of potential
  1196. interest to developers of signal addons: shunt.proceed_as_main.
  1197. \end_layout
  1198. \begin_layout Itemize
  1199. A train move can always become a shunt move by passing a signal that shows
  1200. \begin_inset Quotes eld
  1201. \end_inset
  1202. Halt for train moves, shunting permitted
  1203. \begin_inset Quotes erd
  1204. \end_inset
  1205. \end_layout
  1206. \begin_layout Itemize
  1207. A shunt move can only pass a signal saying
  1208. \begin_inset Quotes eld
  1209. \end_inset
  1210. Proceed as train move, shunting not permitted
  1211. \begin_inset Quotes erd
  1212. \end_inset
  1213. when proceed_as_main is true.
  1214. \end_layout
  1215. \begin_layout Standard
  1216. The property is used by the Limit Of Shunt sign, where proceed_as_main is
  1217. set to false.
  1218. Shunt moves have to stop in front of it, while train moves are signalled
  1219. \begin_inset Quotes eld
  1220. \end_inset
  1221. Proceed
  1222. \begin_inset Quotes erd
  1223. \end_inset
  1224. .
  1225. Regular main signals that show
  1226. \begin_inset Quotes eld
  1227. \end_inset
  1228. green
  1229. \begin_inset Quotes erd
  1230. \end_inset
  1231. have the field set to true, so that all trains can pass it.
  1232. \end_layout
  1233. \begin_layout Section
  1234. Interlocking system operation
  1235. \end_layout
  1236. \begin_layout Standard
  1237. Setting up the interlocking for a portion of a railway network requires
  1238. some time, experience and planning, but once done, there's not much to
  1239. do anymore to make trains run on your, now safer, railway.
  1240. This section covers some useful practices to route trains across your network.
  1241. \end_layout
  1242. \begin_layout Standard
  1243. At the moment, routes can either be set by clicking the signal or via LuaATC,
  1244. or by using the
  1245. \begin_inset Quotes eld
  1246. \end_inset
  1247. Remote Routesetting
  1248. \begin_inset Quotes erd
  1249. \end_inset
  1250. button from the Onboard Computer.
  1251. It is planned to control this via a
  1252. \begin_inset Quotes eld
  1253. \end_inset
  1254. signal box
  1255. \begin_inset Quotes erd
  1256. \end_inset
  1257. view based on the currently broken itrainmap.
  1258. \end_layout
  1259. \begin_layout Subsection
  1260. Train Safety System
  1261. \end_layout
  1262. \begin_layout Standard
  1263. The Train Safety System, called
  1264. \begin_inset Quotes eld
  1265. \end_inset
  1266. LZB
  1267. \begin_inset Quotes erd
  1268. \end_inset
  1269. in the code (from the german term Linienzugbeeinflussung, although this
  1270. is a completely different system), ensures that trains obey any restrictions
  1271. imposed by signals when influence points are set.
  1272. This way, it is not possible to pass signals at danger or to bypass speed
  1273. restrictions.
  1274. \end_layout
  1275. \begin_layout Standard
  1276. It is possible to overrun red signals, if a route is cancelled while a train
  1277. is approaching.
  1278. Real interlocking systems use a mechanism called Approach locking for this,
  1279. however, as of now, there's no similar system in this mod.
  1280. If a red signal is overrun, the train brakes using emergency brake (
  1281. \begin_inset Quotes eld
  1282. \end_inset
  1283. BB
  1284. \begin_inset Quotes erd
  1285. \end_inset
  1286. ) and can not be moved any further.
  1287. You should then examine the situation and drive the train backwards out
  1288. of the section.
  1289. \end_layout
  1290. \begin_layout Subsection
  1291. Simple route setting and cancelling
  1292. \end_layout
  1293. \begin_layout Standard
  1294. To set a route, simply right-click the signal, select a route and click
  1295. \begin_inset Quotes eld
  1296. \end_inset
  1297. set route
  1298. \begin_inset Quotes erd
  1299. \end_inset
  1300. .
  1301. If there are no conflicts, the signal turns green and the train is allowed
  1302. to proceed.
  1303. \end_layout
  1304. \begin_layout Standard
  1305. It may be possible that the route can not be set, because one or more other
  1306. routes conflict with the current one, or a section is blocked.
  1307. In this case, the signal stays red, and the conflicting item is shown in
  1308. the formspec.
  1309. As soon as the conflict is resolved (by cancellation or release of the
  1310. conflicting route, or the section becoming free), the requested route will
  1311. be set and the signal turns green.
  1312. \end_layout
  1313. \begin_layout Standard
  1314. If a route is either requested or set, it can be cancelled from the signalling
  1315. formspec.
  1316. This means that all turnouts and sections are released, and the signal
  1317. reverts back to red.
  1318. This of course only works when the train has not passed the signal yet.
  1319. There is no mechanism for Approach Locking.
  1320. \end_layout
  1321. \begin_layout Subsection
  1322. Automatic Working
  1323. \end_layout
  1324. \begin_layout Standard
  1325. Block signals on main running lines usually only have a single route to
  1326. set, the one proceeding along the main line.
  1327. Their purpose is only to show whether there are trains in the next section.
  1328. So, it would be convenient if this only route would set itself again after
  1329. a train passed.
  1330. \end_layout
  1331. \begin_layout Standard
  1332. This is what Automatic Working is for.
  1333. Set a route, click
  1334. \begin_inset Quotes eld
  1335. \end_inset
  1336. Enable Automatic Working
  1337. \begin_inset Quotes erd
  1338. \end_inset
  1339. , and as soon as a train passes, the route is automatically re-set.
  1340. \end_layout
  1341. \begin_layout Standard
  1342. This function is nearly identical to SimSig automatic signals.
  1343. It can also be useful on a line with high traffic, when there's a low-frequente
  1344. d access to a siding.
  1345. You'd enable automatic working for the main route and cancel it only when
  1346. you need a train to go into the siding.
  1347. \end_layout
  1348. \begin_layout Subsection
  1349. Automatic Route Setting (ARS)
  1350. \end_layout
  1351. \begin_layout Standard
  1352. As interlocking systems evolved, the goal always was to offload work from
  1353. the human to the system, automating things.
  1354. Modern interlocking systems can automatically set routes based on a pre-program
  1355. med routing table for each particular train.
  1356. Since one outstanding feature of Advtrains is it's high degree of automation,
  1357. it has a similar system to automatically set routes for a train depending
  1358. on certain parameters.
  1359. \end_layout
  1360. \begin_layout Standard
  1361. Every train in Advtrains has 2 internal properties that can be set through
  1362. the Onboard Computer of every engine in the train, the
  1363. \begin_inset Quotes eld
  1364. \end_inset
  1365. Line
  1366. \begin_inset Quotes erd
  1367. \end_inset
  1368. and the
  1369. \begin_inset Quotes eld
  1370. \end_inset
  1371. Routing Code
  1372. \begin_inset Quotes erd
  1373. \end_inset
  1374. \end_layout
  1375. \begin_layout Itemize
  1376. The
  1377. \begin_inset Quotes eld
  1378. \end_inset
  1379. Line
  1380. \begin_inset Quotes erd
  1381. \end_inset
  1382. property is supposed to distinguish trains of multiple lines that share
  1383. a track.
  1384. \end_layout
  1385. \begin_layout Itemize
  1386. The
  1387. \begin_inset Quotes eld
  1388. \end_inset
  1389. Routing Code
  1390. \begin_inset Quotes erd
  1391. \end_inset
  1392. property is supposed to tell the target of a train or which route it should
  1393. take to reach the target
  1394. \end_layout
  1395. \begin_layout Standard
  1396. Examples:
  1397. \end_layout
  1398. \begin_layout Standard
  1399. \begin_inset Graphics
  1400. filename lyx_img/arslin_ex1.png
  1401. \end_inset
  1402. \end_layout
  1403. \begin_layout Standard
  1404. Both lines share the section between Blackbirdshire and Parktown.
  1405. To divert them again, they can save their line number in the
  1406. \begin_inset Quotes eld
  1407. \end_inset
  1408. Line
  1409. \begin_inset Quotes erd
  1410. \end_inset
  1411. field.
  1412. \end_layout
  1413. \begin_layout Standard
  1414. \begin_inset Graphics
  1415. filename lyx_img/arslin_ex2.png
  1416. \end_inset
  1417. \end_layout
  1418. \begin_layout Standard
  1419. Some trains should go to B, some to C, the direction can be set with a routing
  1420. code.
  1421. \end_layout
  1422. \begin_layout Standard
  1423. One single routing code should not contain spaces.
  1424. You can set multiple routing codes by just separating them with spaces
  1425. in the Routing Code field.
  1426. So,
  1427. \begin_inset Quotes eld
  1428. \end_inset
  1429. Stn Ori
  1430. \begin_inset Quotes erd
  1431. \end_inset
  1432. would be matched by ARS rules either containing
  1433. \begin_inset Quotes eld
  1434. \end_inset
  1435. Stn
  1436. \begin_inset Quotes erd
  1437. \end_inset
  1438. or
  1439. \begin_inset Quotes eld
  1440. \end_inset
  1441. Ori
  1442. \begin_inset Quotes erd
  1443. \end_inset
  1444. .
  1445. This does not work for lines.
  1446. \end_layout
  1447. \begin_layout Subsubsection
  1448. Writing ARS Rules
  1449. \end_layout
  1450. \begin_layout Standard
  1451. Every route of every signal can be given a set of ARS rules.
  1452. A single ARS rule can either match a line or a routing code (combinations,
  1453. e.g.
  1454. and's, are not yet supported).
  1455. The first rule in the first route that matches any of the properties of
  1456. the train is selected, and that route is set for the train.
  1457. \end_layout
  1458. \begin_layout Standard
  1459. You can add an asterisk (
  1460. \begin_inset Quotes eld
  1461. \end_inset
  1462. *
  1463. \begin_inset Quotes erd
  1464. \end_inset
  1465. ) to the ARS rules of one route.
  1466. That route then becomes the default route.
  1467. \end_layout
  1468. \begin_layout Standard
  1469. If no explicit ARS rule matches the train, then the default route is chosen
  1470. and set.
  1471. If there is no default route, nothing happens and the signal remains red.
  1472. \end_layout
  1473. \begin_layout Subsubsection
  1474. Using ARS
  1475. \end_layout
  1476. \begin_layout Standard
  1477. In contrast to Automatic working, where the route is re-set immediately
  1478. after the train passed, ARS sets the route only when the train approaches
  1479. the signal, e.g.
  1480. is just about to start braking in front of it.
  1481. \end_layout
  1482. \begin_layout Standard
  1483. At any place where one of the following things take place, you should use
  1484. the ARS system in favor of Automatic Working:
  1485. \end_layout
  1486. \begin_layout Itemize
  1487. A main line diverts into 2 or more lines: Using ARS, you can direct the
  1488. trains along the line where they should go
  1489. \end_layout
  1490. \begin_layout Itemize
  1491. Two or more main lines join into one: You cannot use automatic working here,
  1492. because all routes are tried to be set at the same time and it is a matter
  1493. of luck which one
  1494. \begin_inset Quotes eld
  1495. \end_inset
  1496. wins
  1497. \begin_inset Quotes erd
  1498. \end_inset
  1499. .
  1500. In a bad situation, you have a train coming from A, but it cannot proceed
  1501. because Signal B has won the
  1502. \begin_inset Quotes eld
  1503. \end_inset
  1504. route race
  1505. \begin_inset Quotes erd
  1506. \end_inset
  1507. into the shared section, even if there's no train coming from B.
  1508. Using ARS, by just specifying the
  1509. \begin_inset Quotes eld
  1510. \end_inset
  1511. default route
  1512. \begin_inset Quotes erd
  1513. \end_inset
  1514. by a *, the inward route is only set when a train approaches.
  1515. \end_layout
  1516. \begin_layout Itemize
  1517. Complex intersections, which are probably a combination of the above two
  1518. \end_layout
  1519. \begin_layout Itemize
  1520. sometimes-used branching tracks on which only certain trains (with certain
  1521. routing code or line) should head off, like the entrance to a factory where
  1522. only one specific goods train should drive in.
  1523. \end_layout
  1524. \begin_layout Standard
  1525. In the route overview, you can see some information on the ARS settings:
  1526. All routes that have ARS rules are highlighted red, the
  1527. \begin_inset Quotes eld
  1528. \end_inset
  1529. default route
  1530. \begin_inset Quotes erd
  1531. \end_inset
  1532. is highlighted green.
  1533. \end_layout
  1534. \begin_layout Standard
  1535. ARS does not affect signals which already have a route set, and signals
  1536. which are operating under
  1537. \begin_inset Quotes eld
  1538. \end_inset
  1539. Automatic Working
  1540. \begin_inset Quotes erd
  1541. \end_inset
  1542. .
  1543. \end_layout
  1544. \begin_layout Section
  1545. Final notes
  1546. \end_layout
  1547. \begin_layout Standard
  1548. The interlocking system is mainly finished, though there are still some
  1549. plans and ideas.
  1550. They include:
  1551. \end_layout
  1552. \begin_layout Itemize
  1553. Signalbox panels, as revival of itrainmap
  1554. \end_layout
  1555. \begin_layout Itemize
  1556. Distant signals
  1557. \end_layout
  1558. \begin_layout Itemize
  1559. On-Train head-up display for oncoming signals (they have something like
  1560. this in Czech Republic, I forgot how it's called.)
  1561. \end_layout
  1562. \begin_layout Standard
  1563. Apart from this, there's the large oncoming project of a new timetable-based
  1564. train automation system, but this will take some time to evolve and is
  1565. out of the scope of this document.
  1566. \end_layout
  1567. \begin_layout Standard
  1568. If you have any suggestions, corrections, improvements, criticism or cute
  1569. kittens and stuff, you can always contact me by various means (Forum PM,
  1570. E-Mail (orwell@bleipb.de), Linuxworks server chat a.s.o.).
  1571. Have fun!
  1572. \end_layout
  1573. \begin_layout Standard
  1574. - orwell
  1575. \end_layout
  1576. \end_body
  1577. \end_document