Problem with adin command

hello all,
i am working on a 2DOF Full-Size Hex with a Basic Atom 28, Bot Board, and the Basic Micro Atom IDE ver 2.2.1.1.
i am able to make it walk and turn. now i am trying to install IR sensors(GP2D12)on it. but i have a problem with the adin.
the there are no errors in the program but when i debug, the control is not going forward after adin.

    adin AX0,2,AD_RON,Right_Detect	
adin AX1,2,AD_RON,Left_Detect 	
adin AX2,2,AD_RON,Rear_Detect 

these are the adins i am using.
i even tried to remove AX0 and replace it with p16 as suggested in some of the forums, but it didnt work.
please do help me on this.
thank you.

What do you mean “the control is not going forward”? Does it compile and program? If it’
s a problem with the code locking or losing its mind, then please post the entire program… I would use Basic Micro Studio instead of the older IDE’s. Trust me on this, it’s better.