The cases of resource ability occupation are always simplified in the traditional study of modeling and simulation (M&S) of manufacturing system, which commonly leads to the situation of untruthful model and unbelieving outcome during simulation. For this problem, a flexible capacity constraint modeling method and its simulation control mechanism are proposed. On the background of similar issues in production, such as parallel occupation of resources, and discrete combination occupation of resource capacities, a modeling framework for production constraints based on hierarchy simulation model is brought forward. First, a fundamental model is established automatically by data-driven modeling method; then, the constraint model is set up through extending of data structure and transforming of control logic. So universal modeling under condition of resource capacity constraint is realized. Next, its simulation control mechanism is analyzed for typical issues of resource ability occupation. At last, effectiveness of above technological route is verified by case study.