I need don't move servos when I execute attach in setup(). It's possible?

The below servo test code has a line where an initial servo attach position can be specified. Your problem is probably that the servos are in a different position when attached in the code. A possible solution would be to not attach the servos until they need to be sent to a specific positioned in the code.

// zoomkat 10-22-11 serial servo test// type servo position 0 to 180 in serial monitor// or for writeMicroseconds, use a value like 1500// for IDE 0022 and later// Powering a servo from the arduino usually *DOES NOT WORK*.

void setup() { Serial.begin(9600); myservo.writeMicroseconds(1500); //set initial servo position if desired myservo.attach(7, 500, 2500); //the pin for the servo control, and range if desired Serial.println("servo-test-22-dual-input"); // so I can keep track of what is loaded}

I have 2 servos, and put them manually on X position, for example, servo1 = 20º and servo2 = 160º,

Hi, when you say manually, do you mean you physically turn the shaft of the servo?In my opinion I would NEVER force a servo to any position with power ON or OFF, the servo contains a gearbox and motor, the gearbox is usually, especially on cheap servos, nylon and designed ONLY for torque output.When you force the servo, the gearbox will TRY to spin the motor at a high speed and you will find you are having to use a lot of torque to do so. If you overload the gearbox with too much torque then the gears will strip or break.