Elvas Tower: Signal Options List - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Signal Options List Missing subobj 30 and 31 Rate Topic: -----

#1 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,424
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 07 July 2020 - 09:18 AM

The signal options list (the list of setting optional signal subobjects) has a maximum length of 30. But the maximum possible number of subobjects is 32.
For a signal which has subobj 30 and 31 defined, these two subobjects cannot be accessed to set or reset.

Signal definition :
	SignalShape (
		"NF_JUNCTION.s"
		"NF Junction"
		SignalSubObjs( 31
			SignalSubObj ( 0
				"HEAD1"
				"Top"
				SigSubType ( SIGNAL_HEAD )
				SigSubSType ("NF_JUNCTION")
			)
			SignalSubObj ( 1
				"TOP"
				"Top Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 2
				"MID"
				"Mid Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 3
				"MIDALTTOP"
				"Mid Alt Top Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 4
				"LOW"
				"Low Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 5
				"LOWALTTOP"
				"Low Alt Top Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 6
				"LOWALTMID"
				"Low Alt Mid Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 7
				"LOWSHUNT"
				"Low Alt Shunt Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 8
				"LOWOCC"
				"Low on Occupied"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 9
				"ALLOCC"
				"No Check block"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 10
				"CALLON"
				"Allow CallOn"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 11
				"OCCAPC"
				"APC on Occupied"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 12
				"APCLOW"
				"APC Low Speed"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 13
				"APCLINE"
				"APC Line Speed"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 14
				"LAST"
				"Last Signal"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 15
				"NOTALLOW"
				"Route not Allowed"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 16
				"TOP"
				"Top Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 17
				"MID"
				"Mid Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 18
				"MIDALTTOP"
				"Mid Alt Top Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 19
				"LOW"
				"Low Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 20
				"LOWALTTOP"
				"Low Alt Top Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 21
				"LOWALTMID"
				"Low Alt Mid Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 22
				"LOWSHUNT"
				"Low Alt Shunt Aspect"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 23
				"LOWOCC"
				"Low on Occupied"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 24
				"ALLOCC"
				"No Check block"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 25
				"CALLON"
				"Allow CallOn"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 26
				"OCCAPC"
				"APC on Occupied"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 27
				"APCLOW"
				"APC Low Speed"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 28
				"APCLINE"
				"APC Line Speed"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 29
				"LAST"
				"Last Signal"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
			SignalSubObj ( 30
				"NOTALLOW"
				"Route not Allowed"
				SigSubType( DECOR )
				SignalFlags ( OPTIONAL )
			)
		)
	)


Displayed list :
Attached File  optionlist.jpg (48.75K)
Number of downloads: 6

SubObj 30 ("Route not Allowed") is not shown in list.

Regards,
Rob Roeterdink

#2 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 629
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 07 July 2020 - 11:02 AM

Is it a limitation of the OR code itself?
Or from TSRE5?

#3 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,424
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 07 July 2020 - 11:40 AM

The max. of 32 is a general data limit. Each subobj is represented by a bit, so a 32-bit word can hold 32 states. In the signal definition in the world file, this state is shown as a hex-representation of that word, e.g. :

		SignalSubObj ( 00000d03 )


The problem that states 30 and 31 are not shown in the list is a TSRE error.

Regards,
Rob Roeterdink

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users