A wire electric discharge machine controller for correcting a machining route using program commands by creating a machining route on the basis of a machining program including a plurality of machining blocks and moving a wire electrode with respect of a workpiece, following the created machining route while machining, the controller comprising: a machining program storage unit that has stored therein a machining program in which a machining route correction command (Mxx) for correcting, without altering original movement commands in the machining program, a machining route at a corner formed by two consecutive machining blocks, including a machining block to be machined first and a machining block to be machined next, is described, wherein an extension distance of the machining block to be machined first and a removal distance of the machining block to be machined next are specified in the machining route correction command, whereby the machining route is corrected by the machining route correction command in a manner such that the end point of the machining block to be machined first, an extension point obtained by extending the machining block from the end point thereof in the machining advancing direction by the extension distance, and a new start point obtained by partially removing the machining block to be machined next by said removal distance from the start point of said next machining block are connected; a machining program analyzing unit for analyzing the machining program, and reading out said extension distance by which a machining block for which the machining route correction command is issued is extended from the end point of the machining block in the machining advancing direction and said removal distance by which the machining block next to said machining block is partially removed from the start point of the machining block; a machining route correcting unit for correcting the machining route in a manner such that the end point of the machining block to be machined first, the extension point obtained by extending said machining block from said end point by the extension distance read by the machining program analyzing unit, and the new start point obtained by partially removing the machining block to be machined next by the removal distance read by the machining program analyzing unit are connected; and a machining route controlling unit for moving the wire electrode with respect to the workpiece on the basis of the corrected machining route. a machining program storage unit that has stored therein a machining program in which a machining route correction command (Mxx) for correcting, without altering original movement commands in the machining program, a machining route at a corner formed by two consecutive machining blocks, including a machining block to be machined first and a machining block to be machined next, is described, wherein an extension distance of the machining block to be machined first and a removal distance of the machining block to be machined next are specified in the machining route correction command, whereby the machining route is corrected by the machining route correction command in a manner such that the end point of the machining block to be machined first, an extension point obtained by extending the machining block from the end point thereof in the machining advancing direction by the extension distance, and a new start point obtained by partially removing the machining block to be machined next by said removal distance from the start point of said next machining block are connected; a machining program analyzing unit for analyzing the machining program, and reading out said extension distance by which a machining block for which the machining route correction command is issued is extended from the end point of the machining block in the machining advancing direction and said removal distance by which the machining block next to said machining block is partially removed from the start point of the machining block; a machining route correcting unit for correcting the machining route in a manner such that the end point of the machining block to be machined first, the extension point obtained by extending said machining block from said end point by the extension distance read by the machining program analyzing unit, and the new start point obtained by partially removing the machining block to be machined next by the removal distance read by the machining program analyzing unit are connected; and a machining route controlling unit for moving the wire electrode with respect to the workpiece on the basis of the corrected machining route.