This example program demonstrates the use of Conditional messages.
This example program sets up BC so that if the Service Request bit is set in a status word, the BC sends a TX VECTOR WORD mode command.
This program sets up a simple BC message list. The list has two messages, 1-R-1-32 and 2-T-2-32, in a 20ms Minor Frame. This BC list runs until stopped by user input. You can display the data (or errors) for the 2-T-2-32 message or quit.
The program has inserted a CONDITIONAL block after the 1-R-1-32 message. If it sees the SERVICE REQUEST bit set in the status word from this message, then the BC branches to send 1-T-0-16 (TX VECTOR WORD mode command) before going on with the 2-T-2-32 message.
To test this, you need a bus analyzer (BusTools/1553) simulating RTs 1 and 2. Toggle the SR bit in the RT1 status word and use the bus monitor to verify that the TX VECTOR WORD mode command is sent when the SR bit is set.
Download this example by clicking the link on the right.