Are you saying your secondary voltage from your transformer is 230 volts?
If you are designing a new service and are looking at sizing an appropriate transformer you would typically start with adding up your components loading then pick the right transformer size.
for a 3 phase trasformer...
The way I read it is that first the code is checking if the system has just initiated in that it is looking at the initial state as the programmer has named the variable.
Then initializing the variable "code" to zero (0)
The if statements appear to be cascaded in that each true...
Need to know what type of motor, is it a stepper motor or servo. Where did you get it from? If it is a stepper motor then it will be simple to move.
How many leads(wires) are coming off the body of the motor?