Link between sequence, motion or process and diagnostic control