S7-200的SR指令和RS指令与S7-300的差异(Difference between SR instruction and RS instruction of S7-200 and S7-300)

  S7-200:

  设置主双稳态触发器(SR)是一种设置主要位的锁存器。如果设置(S1)和复原(R)信号均为真实,则输出(OUT)为真实。

  复原主双稳态触发器(RS)是一种复原主要位的锁存器。如果设置(S)和复原(R)信号均为真实,则输出(OUT)为虚假。

  S7-300:

  SR指令。如果S输入端的信号状态为”1″,R输入端的信号状态为”0″,则置位SR (复位优先型SR双稳态触发器)。否则,如果S输入端的信号状态为”0″,R输入端的信号状态为”1″(初学者可以集合plc视频教程来学习)

  ,则复位触发器。如果两个输入端的RLO状态均为”1″,则指令的执行顺序是最重要的。SR触发器先在指定<地址>执行置位指令,然后执行复位指令,以使该地址在执行余下的程序扫描过程中保持复位状态。

  RS指令。如果R输入端的信号状态为”1″,S输入端的信号状态为”0″,则复位RS (置位优先型RS双稳态触发器)。否则,如果R输入端的信号状态为”0″,S输入端的信号状态为”1″

  ,则置位触发器。如果两个输入端的RLO状态均为”1″,则指令的执行顺序是最重要的。RS触发器先在指定<地址>执行复位指令,然后执行置位指令,以使该地址在执行余下的程序扫描过程中保持置位状态。本文来源:https://www.jcpeixun.com

————————

S7-200:

The set master bistable trigger (SR) is a latch that sets the primary bit. If both the set (S1) and reset (R) signals are true, the output (out) is true.

The reset master bistable flip-flop (RS) is a latch that restores primary bits. If both the set (s) and reset (R) signals are true, the output (out) is false.

S7-300:

SR instruction. If the signal state of s input is “1” and the signal state of R input is “0”, set Sr (reset priority SR bistable trigger). Otherwise, if the signal state of s input is “0” and the signal state of R input is “1” (beginners can learn from PLC video tutorials)

, reset the trigger. If the RLO status of both inputs is “1”, the execution order of the instructions is the most important. SR trigger starts with & lt; Address & gt; Execute the set instruction, and then execute the reset instruction to keep the address in the reset state during the remaining program scanning.

RS command. If the signal state of R input is “1” and the signal state of s input is “0”, reset RS (set priority RS bistable trigger). Otherwise, if the signal state of R input is “0”, the signal state of s input is “1”

, set the trigger. If the RLO status of both inputs is “1”, the execution order of the instructions is the most important. RS trigger is first specified in & lt; Address & gt; Execute the reset instruction, and then execute the set instruction to keep the address set during the remaining program scanning. Source: https://www.jcpeixun.com