Go to the machine. Put card, then your old code. Look for the option 'Change PIN'. You enter the new code. Then enter it again.