# Enigma machine Encryption steps

I am trying to build a simulated enigma machine.I am basing it off of this one https://www.101computing.net/enigma-machine-emulator/

I have setup the 3 rotors and I am having trouble understanding the rings and rotations. For example I have set the rotors to III,II,I with the 3rd rotors having a ring setting of AAB. If you enter and A then the output is a N. My simulator agrees with this.Then if you enter an A again the output is F. I followed my simulator through it process.

First

Rotor I (right most) rotates its keys to become JEKMFLGDQVZNTOWYHXUSPAIBRC. Then the A changes to a J.

Next

J passes through the next 2 rotors to end up as a C.

Finally

This C is then passed through Rotor 1 in the reverse direction to give the final output. The example outputs F. My simulator matches the output of the example up to here.How does C become F on Rotor 1 with position AAC in the reverse direction.Any help understanding how the rings and rotations affect the rotors would be appreciated.I have read How does the ring settings of enigma change wiring tables? and I understand most of K Rossers answer until the final reverse output from the rotor.

Now, press $$A$$ on the keyboard and see the path. Watch the connections and the status of the fast rotor.
After this, the fast rotor will advance ( if necessary the medium and slow, too, here only medium and fast) and the re-entering $$A$$ will follow the below path.