A method for clamping and machining a control cabinet component in a machining device, the method comprising the steps of: - arranging a workpiece embodied as a control cabinet component on a work surface of a machining device, - clamping the workpiece on the work surface, wherein - a supporting unit, with at least one clamping device (8, 9) arranged on it, is shifted to an edge of the workpiece, and - a clamping element of the at least one clamping device (8, 9) is shifted from a released position to a clamped position when guided towards the edge of the work-piece, and - machining the workpiece using a machining tool, characterized in that - the supporting unit with the at least one clamping device (8, 9) is shifted to the clamped position at the edge of the workpiece using an actuator-driven shifting unit, - in the clamped position, the clamping element comes to rest at multiple contact points on the workpiece so that the clamping element secures the workpiece in a machining position against shifting on the work surface in directions transverse to each other, and - the clamping element is swivel mounted on a pivotal axis and, when the work-piece is clamped to the work surface, a proximal and a distal section (17, 18) of the clamping element, which are formed on opposite sides of a segment cutout of the clamping element, come to rest on the workpiece in such a way that - the edge of the workpiece initially comes to rest in the clamping element's proximal section and - the clamping element swivels into the clamped position when the clamping element is further guided against the edge of the workpiece, in which clamped position the clamping element's distal section comes to rest on the workpiece, in addition to the proximal section. - arranging a workpiece embodied as a control cabinet component on a work surface of a machining device, - clamping the workpiece on the work surface, wherein - a supporting unit, with at least one clamping device (8, 9) arranged on it, is shifted to an edge of the workpiece, and - a clamping element of the at least one clamping device (8, 9) is shifted from a released position to a clamped position when guided towards the edge of the work-piece, and - a supporting unit, with at least one clamping device (8, 9) arranged on it, is shifted to an edge of the workpiece, and - a clamping element of the at least one clamping device (8, 9) is shifted from a released position to a clamped position when guided towards the edge of the work-piece, and - machining the workpiece using a machining tool, characterized in that - the supporting unit with the at least one clamping device (8, 9) is shifted to the clamped position at the edge of the workpiece using an actuator-driven shifting unit, - in the clamped position, the clamping element comes to rest at multiple contact points on the workpiece so that the clamping element secures the workpiece in a machining position against shifting on the work surface in directions transverse to each other, and - the clamping element is swivel mounted on a pivotal axis and, when the work-piece is clamped to the work surface, a proximal and a distal section (17, 18) of the clamping element, which are formed on opposite sides of a segment cutout of the clamping element, come to rest on the workpiece in such a way that - the edge of the workpiece initially comes to rest in the clamping element's proximal section and - the clamping element swivels into the clamped position when the clamping element is further guided against the edge of the workpiece, in which clamped position the clamping element's distal section comes to rest on the workpiece, in addition to the proximal section. - the edge of the workpiece initially comes to rest in the clamping element's proximal section and - the clamping element swivels into the clamped position when the clamping element is further guided against the edge of the workpiece, in which clamped position the clamping element's distal section comes to rest on the workpiece, in addition to the proximal section.