l L 通用装入指令
l L STW 将状态字寄存器的内容装入到累加器1
l LAR1 AR2将地址寄存器2的内容装入到地址寄存器1
l LAR1 将32位的长整数装入到地址寄存器1
当CPU 的状态由停止态转入运行态时,操作系统都调用OB100。当OB100运行结束后,操作系统调用OB1。
利用OB100先于OB1执行的特性,可以为用户主程序的运行准备初始变量或参数。
状态字的位8称为二进制结果位。它将字处理程序与位处理联系起来,在一段既有位操作又有字操作的程序中,用于表示字操作结果是否正确(异常)。将BR位加入程序后,无论字操作结果如何,都不会造成二进制逻辑链中断。在LAD的方块指令中,BR位与ENO有对应关系,用于表明方块指令是否被正确执行:如果执行出现了错误,BR位为0,ENO也为0;如果功能被正确执行,BR位为1,ENO也为1。

Siemens S7 Series Programmable controllers are divided into S7-400, S7-300 and S7-200 series, which are the large, medium and small programmable controller systems of S7 Series. S7-200 series programmable controllers include cpu21x series and cpu22x series, of which cpu22x programmable controller provides four different basic models, including cpu221, cpu222, cpu224 and cpu226.
L l general load instruction
L l STW loads the contents of the status word register into accumulator 1
L lar1 ar2 loads the contents of address register 2 into address register 1
L lar1 loads a 32-bit long integer into address register 1
When the state of CPU changes from stop state to running state, the operating system calls ob100. When ob100 runs, the operating system calls ob1.
Using the feature that ob100 executes before ob1, initial variables or parameters can be prepared for the operation of the user's main program.
Bit 8 of the status word is called the binary result bit. It links word processing program with bit processing, and is used to indicate whether the result of word operation is correct (abnormal) in a program with both bit operation and word operation. After adding br bit into the program, no matter what the result of word operation is, it will not cause binary logic chain interruption. In the block instruction of lad, the br bit has a corresponding relationship with Eno, which is used to indicate whether the block instruction is correctly executed: if there is an error in execution, the br bit is 0, and eno is also 0; If the function is performed correctly, the br bit is 1 and eno is also 1.