mikkila.org


FSBUS projektit
FSBUS pääsivu
FSBUS sivusto suomeksi
Dokumentteja
LCD
Throttle
Gear Leveler

Own Projects
Linkit
fsbus.de
Jari's page
Feedback
     
FSBus CCC-Tutorial


No finnish versio available


FSBus 2.2 introduced great programmin tool. CCC, what allows to do complex systems simple way. It gives you guite nice logic components to make working programs to simulate different things what does not exist in MS Flight Simulator. Like APU or complex hydraulics or fuel systems.

In this example we make simple APU-unit with CCC.


APU Tutorial

To follow this example, you should know already basics about FSBus system.
First we create four switches. Three for APU operation and fourth for Engine start. Fifth would be second engine and so on. On screenshot everything else is correct way on switch settings, but both "Down event" and "Up event" should be checked.
Switches goes as:
- Master for APU master switch. - Starter For APU starting - Bleed to get APU power to engine - Engine start to start engine

Assign real switches for these FSBus objects.
Next we will make CCC unit. And press edit button on top right corner to get CCC-editor.
On left side there is different components and selection tool what are used to make CCC-programs. Under one icon, there is more components. Just select one component and keep mouse left button pressed for few seconds and other components will come visible.

Under Onput/Output icon, there is total 4 different I/O components.
Those with line going from right side are outputs. For reading for example switch positions and FSUIPC offsets.
And those with line going from left side are inputs to get data to FSUIPC and Displays/Leds and so on.
Type of icon says it is FSUIPC offset (plane) or FSBus (transistor).

Add four FSBus inputs. These will be assigned as switch inputs.
Select first switch. Press mouse right buttong and upcoming menu, select Properties. You will get this window. Give name to switch and select three dots (...).
From opening window you can select component what you want to assign to this FSBus input. Select first switch and press OK.
Do same to other switches too.
No we need other components to do working APU.
Three AND ports, timer and FSUIPC output object. Add these to editor. Position dont have to be exact. You can alter them later with selection too (arrow).
Next assign engine 1 starter to FSUIPC output. This is done same way as you assigned switches for FSBus input objects.
Next. Timer. If we don't use timer as delay circuit apu will be operational at same moment when you turn starter switch. With delay we can simulate real APU starting delay.

Get properties from Timer. OnTime value is milliseconds. Value 10000 says that starting delay is 10 seconds. OffTime is 0 and it says that when starter switch is turned off it will go down immediately. OneShot is true to get one pulse only. With False setting timer will go up and down forever.
Finally we connect all components together with wiring tool.

How it works.

CCC is Logic programming tool. Logic works with numbers 0 and 1. 0 is False and 1 is True. So basically we pass True signal thru different logical components to get wanted result.
Here we are using AND ports. AND port needs True (1) for both inputs to give True to output too.

When we turn Master switch to On position. It will give True to ADG-gate first input. Next we turn on Starter. It will give True to Delay circuit input. This will start Delay circuit. It waits 10 seconds before it give True to output port. This goes to second port of first AND gate. Now AND logic works as both inputs are True and it will give True to output too. APU is running.

Now turn Bleed to on. We get True to second AND gate. Another True is coming from running Apu. Engine gets bleed air. Finally we turn Engine starter. This True with Bleed air True goes to last AND gate what gives True to output. Finally. This True goes to FSUIPC component and starts engine.

If any of switches are tuned off. AND gate behind that will see that one of lines goes to False and it will drop output to False too.
This gives this program problem. Usually you could turn APU starter switch to off position when APU is running. Down below it is fixed.
Here we add RS-FlipFlop behind AND gate. Short explanation.
AND gate and timer works as before. But from Timer True goesto RS-FlipFlop S-port. S is for Set. This will give True to output. And it will stay there. Even when S goes down. As now we can switch Starter to Off position. Apu is still running.

Over first AND gate there is odd box. This is Inverter. It will convert incoming position to opposite. So when Master switch is on. It will give True to AND gate and to Inverter. Inverter output will be False as it is opposite to True. This False goes to RS-FilpFlop R port. R is for Reset.
When master switch is turned off, False, position. Inverter will give True to R port, it will reset FlipFlop and output drops to False. Apu shutdown.

Back
Updated: 1.01.1970