The invention relates to an
assembly-level cross debugging method based on a PLC
programming language. The PLC
programming language-based
assembly-level cross debugging method comprises the followingsteps of: embedding
breakpoint information during PLC
programming compiling, and generating a code block identifier, a target instruction and ST language mapping identifier, a target instruction and LD language mapping identifier and a target language and FBD language mapping identifier; in the compiling stage, a mapping relationship between ST, LD and FBD languages and a target
assembly instruction is established through an
intermediate language structure; in the online stage, the collected information, identifiers, mapping relations and the like are downloaded into a target programmable controller or simulator; in the operation process,
breakpoint information is collected and issued, debugging processes such as
breakpoint, stepping, step-out, skipping and
single step are achieved throughdebugging commands, when an assembly view is entered, breakpoint, stepping, step-out, skipping and
single step commands based on assembly commands are provided, and the assembly commands and registerinformation corresponding to the debugging processes can be displayed in the assembly view.