Do While  
     Do While  
          If     Then
           From is determined.
           Similarly, , and can be calculated, respectively.
           Record
          End If
       
      Loop
      
Loop
Various combinations of for calculating coordinates by
and those satisfying motion range of the end-effector
and tension condition will generate the workspace
Algorithm 1: Flowchart of generating the workspace of the HDCPM.