You don’t want to do things that way. IK constraints need targets and won’t work in an actual animation if they don’t have one. I think you want the “rotation” IK I offered, but you don’t move the IK constrained bone, you move the target of that constraint. Here’s a file with an example animation:
ikrot.blend (808.1 KB)