Transformer (GregTech 6)

The Transformer is a machine added by GregTech 6 that converts voltage of electricity or EU.

Usage
Transformers have 1 input side and 5 output sides. They have two operational modes, namely Normal mode and Reversed mode. You can toggle their mode by right-clicking them with a monkey wrench. Transformers in normal mode step down EU voltage, and in reversed mode they do the opposite.

Behavior
Transformers have a small EU buffer internally, whose size equals to their maximum input voltage, i.e. LV-MV transformers accepting up to 128 EU/t have an internal buffer of 128 EU. At every tick, when in normal mode, they try to emit up to 4 EU packets (i.e. 4 ampere) through their output sides whose voltage equals to a quarter of the amount of EU stored internally. So when an LV-MV transformer is fully charged, it is capable of emitting up to 4 packets of 32 EU. Transformers in this mode can accept up to 1 EU packet (i.e. 1 ampere) through their input side every tick, and packets they receive will be used for charging their internal buffer.

Likewise, when they are in reversed mode, they try to emit up to 1 EU packet through their input side whose voltage equals to the amount of EU stored internally. So when an LV-MV transformer is fully charged, it is capable of emitting up to 1 packet of 128 EU. Transformers in this mode can accept up to 4 EU packets (i.e. 4 ampere) through their output sides every tick.