BC9137 - ShadowJonathan/ByteCart GitHub Wiki
Abstract
BC9137 is a sign to select carts whose destination address is outside the range defined by 2 address.
Function
This sign is placed under the rail and reads the destination of all carts passing on it. If the destination address is strictly less than the address on line #3 or strictly more than the address on line #4, it activates a button or a lever placed on its left or its right. The signal can be used to trigger a rail intersection to extract the matching cart and send it to another track.
The comparison is made field by field with a final AND operation.
comparison with other BC9XXX signs
The BC9137 is strictly equivalent to any other BC9XXX if address bounds are chosen properly, but with an inversed effect on the lever, with a difference: updater carts (launched with bcupdater) will never power the lever when passing on the sign.
It means that it is possible to implement an output where updater carts may always "enter" or "stay inside" the subnet defined by the address bounds, while other carts will be routed. This allows the implementation of additional outputs for the subtrack that will be transparent for the automatic configuration: the updater will stay in the subtrack since it is not the main output (the automatic configuration process only recognizes a single output through a BC9XXX subtrack sign)
Usage
BC9137 sign must be placed under a rail. At least a button or a lever (if anti-collision feature is used with BC9000) should be present on the left or on the right of the sign to command an intersection.
Syntax
Line #1 : Free
Line #2 : [BC9137]
Line #3 : first address of the range in the form XX.YY.ZZ
Line #4 : last address of the range in the form XX.YY.ZZ
Example
Check BC9000 example to see how BC9137 can be used with anti-collision feature.