This paper presents a component-based framework for mechatronic systems modeling. The main concept of component-based approach is to create a model for common system's basic components, which can be reused as many times as required. These components can be then successively aggregated in order to have a model that sufficiently represents the whole system. The proposed framework is a hierarchical structure with three different layers: (1) basic components layer, (2) subsystem components layer, and (3) mechatronic system layer. The proposed framework has many advantages include: (I) reducing the development cost and time, (II) improving system maintainability and flexibility (III) enhancing system quality. A practical example is explained in order to interpret the proposed framework.