Now our relay coil can only be ON or OFF, but we have a joystick with 3 positions on it -- Left, center, and right.
This means two positions of the joystick (center and one side) will have to do the same thing, as far as the relay goes.
I'm choosing to de-energize the relay for 2 positions of the joystick, and energize it for one. So how do we get 3 different results with the mill table out of that?
To solve this problem we are going to let one joystick switch make a dual connection, and the other switch make a single connection, while the center position will make no connection -- three different circuit results, which can yield three different movement options for the mill table.
The first switch will pull in the relay, AND supply current to one relay contact. In this case a Normally Open (NO) one. Since the relay will be energized, this contact will be closed, and if it is connected to the motor, it will run.
The second switch will NOT be connected to the relay coil, so cannot pull in the relay. Instead it will be connected to a Normally Closed (NC) contact and since the relay isn't energized, that contact will be closed, and will be able to pass current to the motor. In this case it will be connected to the opposite contact on the motor than the first switch was, and so it will run the motor backwards.
The middle joystick position, will not connect the + side of the power line to anything. Not the relay coil, or any contacts. Therefore, the motor cannot run.
The rest of the circuit is there to connect the minus power supply to the relay contacts, in such a way that it gets connected to the correct side of the motor to complete the circuit, depending on which joystick switch is active.