Arduiono control

Hi…today i connect with arduiono…no problem…first setpoint command is ok…but when i put second set point no result…only make the first set point…how can i command? Ex : goto 1000 than to 3000 ?