1. Conversion instructions
The conversion instruction is a data type conversion of the data in the accumulator 1, and the conversion result is still placed in the accumulator 1. It can realize the conversion of BCD Code and Integer, Integer and Long Integer, long integer and real, integer inverse code, integer complement, real negation and other data types.
1) BCD code with integer and other types of conversion instructions
Directives in the form of A.stl
B.lad and FBD Form
2. Code-type transformation directives for integers and real numbers
A.STL form directive
B.lad and FBD form directives
3. Real number Rounding Instructions
A.STL form directive
B.lad and FBD form directives
4. Accumulator 1 Adjustment Instruction
5. Comparison Instructions
Comparison directives contain integers, long integers, or 32 as floating-point (real) equals, unequal, greater than, less than, greater than, or less than equals
A. Integer comparison directives
B. Long integer comparison instructions
C. Real-number comparison directives
Siemens PLC Learning Note 12-(conversion and comparison instructions)