background image

 

 

Page 19 of 29 

BLOCKsignalling

www.blocksignalling.co.uk

Introduction to Programming 

This section of the document covers program 8, an additional program added to the M1 module 
which allows the user to set their own timings for the operations of the relays on the module. 

To fully understand this section, I recommend reading through once lightly, then concentrating on 
the examples at the end.  They should make it clear how to program the module for your 
requirements. 

Once the module is set to run program 8, the default operation of the relays is shown below. 

 

When the power is turned on, or immediately following setting the module to run on program 8, 
both relays will be de-energised. 

When the module is triggered, by the push button on the module (other options can be selected 
such as grounding the C terminal or TRIG input, or triggering the IR sensor).  The trigger point is 
shown as TR on the diagram. 

Sometime after triggering, Relay 1 energises. This is shown as m10 on the diagram, and this signifies 
that memory 10 holds the time in seconds for Relay 1 to energise after triggering.  The default value 
for m10 is 1, so Relay 1 will energise 1 second after the module is triggered.  It is possible to re-
program m10 to be any value from 1 to 255 seconds (this also applies to all the other timing values). 

At time m12 (which has a default of 2) Relay 1 de-energises. Note, this is 2 seconds after triggering, 
NOT 2 seconds after Relay 1 energises. 

Relay 2 operates in the same way, using memory values of m18 and m20 (which have default values 
of 3 and 4).  In this example, Relay 2 operates after Relay 1, but by changing the timings you can 
alter this to have Relay 2 operate first, or to have the operation of the relays overlapping. 

After both relays have completed their first operation (ie after the latest of the m12 and m20 
timings) the module turns on the infra-red sensor, and starts looking for a train.  Again different 
detection options can be selected. 

When a train is detected, marked by the dotted line IR on the diagram above, similar relay actions 
occur.  Finally a pulse output occurs on the DONE terminal, set by m16.  The module then restarts, 
and awaits a new trigger input. 

 

 

Содержание M1

Страница 1: ...co direction etc Action is triggered by push button switch reed relay or another module of the same type Action is carried out until the train is detected by the infra red sensor or the module times out When the action is completed the module provides an output signal which can be connected to other modules of the same type Programs can be easily adjusted to give great flexibility in operation ...

Страница 2: ...e task has been completed the DONE terminal The DONE output would normally be connected to the trigger TRIG input of another module of the same type which would then carry out its operation By linking several modules in series successive actions can be carried out one after another If the modules are connected in a loop the operation will continue indefinitely It the loop is not complete the actio...

Страница 3: ... Note the push button on the module connects the TRIG terminal to GND and so can be used to trigger the module This terminal must not be grounded at the time the module is powered otherwise it will enter programming mode see later The power input is designed for 12V DC Reverse polarity will not damage the module although the module will not function The current drawn is 50mA when one relay is ener...

Страница 4: ...that can be located below the track bed to reflect light off rolling stock Identify the Sensor 1 leads from the diagrams there is a small chamfer on the edge of the casing and connect to the terminals marked A and C on the module Leads E and K both connect to terminal GND The wires can be extended using small chocolate block and extra lengths of cable if required not supplied ...

Страница 5: ... programmed by the user The main memory location is memory 2 m2 which is used to select which program the module runs Program 1 Program 2 etc The remaining memory locations m3 m4 m5 etc can be set with different values to alter the operation of the module The uses of each memory location are given at the end of this document ...

Страница 6: ... it is in standby If not check the power supply and polarity and verify the infra red sensor connections are correct Press the push button on the module or the connected push button to simulate it being triggered After 5 seconds Relay 1 should energise you will hear it click and its led will light Five seconds later Relay 2 should energise you will hear it click and its led will light After a furt...

Страница 7: ...r Place you hand close to the sensor and after 5 seconds Relay 2 will turn on for five seconds then off after a further 5 seconds followed by Relay 1 turning off five seconds later Finally five seconds after Relay 1 turns off a final bright flash of the led for a second shows that the task is done this is the point at which the DONE signal is issued on the DONE output terminal ...

Страница 8: ...e will energise and this will allow power to flow to the isolated rail and the loco will move towards the left entering the powered section of track B When the loco reaches the sensor at C the train is detected and the relay on the module de energises making the isolated section dead again preventing any other locos entering the section The loco carries on until it reaches the isolated section at ...

Страница 9: ...ove its loco up also Obviously this can be extended to any number of modules and if the track forms a complete loop the modules can also be connected in a loop and will move the locos around the loop one at a time In the diagram below we have left out the power supply connections to the M1 modules for clarity We have also left out the push button because you can press the push button on the first ...

Страница 10: ...Page 10 of 29 BLOCKsignalling www blocksignalling co uk ...

Страница 11: ...2 is energised and selects the route direction then Relay 1 is energised for 1 second to operate the points When the train reaches the IR sensor Relay 2 is de energised and then Relay 1 is energised for 1 second to operate the points Wire the normal and reverse wires of the points to suite the direction you want the points to operate Always use with a CDU More than one set of points can be connect...

Страница 12: ...Page 12 of 29 BLOCKsignalling www blocksignalling co uk Wire the normal and reverse wires of the points to suite the direction you want the points to operate ...

Страница 13: ...to the points motor When the train reaches the sensor both relays are de energised and the feed to the points motors is restored to the previous polarity The wiring of the points will determine the direction they start in when the power is applied Swap the two wires to the points if you want them to operate in the reverse direction Below is an alternative wiring arrangement if you are powering you...

Страница 14: ...Page 14 of 29 BLOCKsignalling www blocksignalling co uk ...

Страница 15: ... is designed to change the direction of the traction current Before triggering both relays are de energised and the power passes straight through Once triggered the traction current direction is reversed When the train reaches the sensor the traction current is restored to the original direction ...

Страница 16: ...ed for 1 second to change the signal After a delay Relay 1 is operated for 1 second to change the signal When the train reaches the sensor Relay 1 is operated for 1 second to change the signal then after a delay Relay 2 is operated for 1 second to change the second signal After the second signal is operated the DONE indication is indicated on the output terminal ...

Страница 17: ...perate a Led or Filament Bulb Signals When the power is switched on with the signals wired as below the green aspect will show Once the module is triggered the signal will immediately switch to red then yellow after a delay When the loco passes the sensor the signal will return to green and the DONE output will be indicated ...

Страница 18: ...ou to design you own uses for the module and gives full flexibility to change the operation of the module There are many settings to adjust the timing of the pulses set the number of pulses change which action triggers the module ability to set the delays to be randomised and so on These are covered in detail below ...

Страница 19: ...and this signifies that memory 10 holds the time in seconds for Relay 1 to energise after triggering The default value for m10 is 1 so Relay 1 will energise 1 second after the module is triggered It is possible to re program m10 to be any value from 1 to 255 seconds this also applies to all the other timing values At time m12 which has a default of 2 Relay 1 de energises Note this is 2 seconds aft...

Страница 20: ...IG input is received or after the IR trigger or before the DONE output occurs This is a pretty big list but the following diagram should clarify the majority of the options For each relay there are 10 options for the operation called Modes These modes determine the action of the relays once a TRIG input is received or a train is detected by the IR sensor You can see that the default mode in progra...

Страница 21: ... relay actions have completed ie the last of m12 or m20 then the timing will immediately start for the second operation of the relays The setting of the triggers is done using memories m21 first trigger and m22 second trigger The settings are 1 for TRIG input 2 for IR 3 for none and 4 for trigger by grounding the C terminal If the IR sensor is not being used for the first or second trigger you can...

Страница 22: ...e is triggered there will be a delay of between 45 and 180 seconds which will change each time it is triggered Setting m8 determines where the delay occurs If it is set to 1 the delay occurs after the first trigger normally the TRIG input if this has not been altered If m8 is set to 2 the delay occurs after the second trigger normally IR unless this has been altered If m8 has been set to 4 the del...

Страница 23: ...y operations are completed before the DONE output signal is sent The setting for this is m16 The DONE pulse occurs after the following Both relays are de energised and the value of m16 has elapsed measured from the second trigger Then if Delay before DONE signal set in m8 the extra delay will be applied before the DONE output signal is sent ...

Страница 24: ... the IR input Set m5 to 1 sets Relay 2 to mode 1 ie 1 long pulse Set m18 to 1 so Relay 2 is energised 1 second after the TRIG input Set m20 to 1 we need to set it to the same as m18 as the module will not look for an IR trigger until after m20 Set m10 to 2 so Relay 1 is energised 2 seconds after the TRIG input Set m12 to 3 so Relay 1 is de energised 3 seconds after the TRIG input Set m17 to 1 so R...

Страница 25: ...re the value you want the memory to be set to After pressing the button the led flashes 10 times rapidly and the module starts operating Repeat the process for the any other values you want to change If you make a mistake selecting the memory location or setting the value you may want to perform a factory reset to return the module to its default settings Factory Reset To reset the module back to ...

Страница 26: ...pulse m9 5 1 to 10 Set sensitivity of the IR sensor 1 Most sensitive 10 least sensitive m10 1 1 to 250 Sets time in seconds see diagrams below m11 1 1 to 250 Sets time in seconds see diagrams below m12 2 1 to 250 Sets time in seconds see diagrams below m13 2 1 to 250 Sets time in seconds see diagrams below m14 5 1 to 250 Sets time in seconds see diagrams below m15 6 1 to 250 Sets time in seconds s...

Страница 27: ...ms show the settings for the timings of the inbuilt programs Refer to the table above for the default values The timings of the Default Program cannot be changed In the Points Program the pulse output of Relay 1 is always 1 second The settings for the Fiddle Yard Cobalt Tortoise and Direction Change Programs are identical ...

Страница 28: ...ing co uk In the Dapol Program the pulse output of Relay 1 and Relay 2 is always 1 second The colour of the aspect lit is shown in the background of the timing diagram for program 7 Here is a reminder of the memories used for the Universal Program ...

Страница 29: ...nd that input when pressed The led on the DONE output is also connected to the positive Vin terminal as the DONE output is grounded for the duration of the DONE signal A 1k resistor is wired in series with the led The status of the two relays can be seen from the leds on the board which illuminate when the relay coils are energised BLOCK signalling 12V DC POWER SUPPLY VIN GND A GND C INFRA RED SEN...

Отзывы: