Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

How the tester works

Trigger as 8-bit binary


*FREE *FREE *FREE *FREE
LS1 LS2 RESTRAINT RELEASE
SPACE SPACE SPACE SPACE

The triggers at a particular stage of the


test can be represented by this 8-bit
binary value.
For example

1 0 0 0 1 0 0 0

This 8-bit binary would translate to:


LS1:ON
LS2:OFF
RESTRAINT:OFF
RELEASE:OFF
POWER:ON
State as 8-bit binary
TESTBOX TESTBOX CB20 CB20 *FREE
MS1 MS2 ALARM
RL GL RL GL SPACE

Likewise for states


For example

1 0 0 0 1 0 1 0

This 8-bit binary would translate to:


TESTBOX RED LIGHT:ON
TESTBOX GREEN:OFF
MS1:OFF
MS2:OFF
CB20 RED LIGHT:ON
CB20 GREEN LIGHT: OFF
ALARM: ON
Principle
const byte power_on_trigger = 0b00001000; You define, for what trigger you would
const byte power_on_state = 0b10001011;
expect what state
const byte ls1_on_trigger = 0b10001000;
const byte ls1_on_state = 0b01001011; For example,
If I send out a trigger 0b00001000, then I
const byte restraint_on_trigger = 0b10101000;
const byte restraint_on_state = 0b10101011; should receive state 0b10001011

const byte restraint_off_trigger = 0b00000000;


const byte restraint_off_state = 0b00000000;

const byte ls1_off_trigger = 0b00101000;


const byte ls1_off_state = 0b10001011;

const byte ls2_on_trigger = 0b01001000;


const byte ls2_on_state = 0b10000111;

const byte release_on_trigger = 0b01011000;


const byte release_on_state = 0b10011011;
State diagram (CB-20)
2x relay
Trigger
Serial out/Parallel in
i.e. 0b00101100 Shift register
2x Solenoid
pusher

CB20
Arduino

Voltage
SIPO divider
Shift registor

You might also like