This paper is concerned with a balancing motion formulation and control of the ZMP (Zero Moment Point) for a biped-walking robot that has a prismatic balancing weight or a revolute balancing weight. The dynamic stability equation of a walking robot which have a prismatic balancing weight is conditionally linear but a walking robot's stability equation with a revolute balancing weight is nonlinear. For a stable gait, stabilization equations of a biped-walking robot are modeled as non-homogeneous second order differential equations for each balancing weight type, and a trajectory of balancing weight can be directly calculated with the FDM (Finite Difference Method) solution of the linearized differential equation. In this paper, the 3dimensional graphic simulator is developed to get and calculate the desired ZMP and the actual ZMP. The operating program is developed for a real biped-walking robot IWRIII. Walking of 4 steps will be simulated and experimented with a real biped-walking robot. This balancing system will be applied to a biped humanoid robot, which consist legs and upper body, as a future work.