Creating a simple bicycle pedal motion
the bone is connected to its parent which constraint its location also leaving it parented will create some problems when using it as IK terget :


in edit mode select the last bone and remove parent and clear connected




you can use the copy location constraint on the bone now and set it as IK target