2.1.5 Ladder Logic Outputs
2.1.5梯形逻辑输出
In ladder logic there are multiple types of outputs, but these are not consistently available on all PLCs. Some of the outputs will be externally connected to devices outside the PLC, but it is also possible to use internal memory locations in the PLC. Six types of outputs are shown in Figure 2.12. The first is a normal output, when energized the output will turn on, and energize an output. The circle with a diagonal line through is a normally on output. When energized the output will turn off. This type of output is not available on all PLC types. When initially energized the OSR (One Shot Relay) instruction will turn on for one scan, but then be off for all scans after, until it is turned off. The L (latch) and U
(unlatch) instructions can be used to lock outputs on. When an L output is energized the output will turn on indefinitely, even when the output coil is deenergized. The output can only be turned off using a U output. The last instruction is the IOT (Immediate OutpuT)that will allow outputs to be updated without having to wait for the ladder logic scan to be completed.
在梯形逻辑有多种类型的输出,但它们都不是在所有的PLC一贯可用。有些输出部分在外部连接到PLC以外的设备,但它也可能用在PLC内部存储器位置。 在图2.12中显示了6种输出。第一个是正常的输出,当使能时输出会打开,并激励输出。用斜线通过圆是常开输出。当使能时输出将关闭。这种类型的输出不是在所有的PLC类型上可用。当OSR指令(一次触发继电器)初始使能时将在一个扫描打开,但随后所有的扫描后都将关闭,直到它复位。L(锁)和U (解锁)指令可以用来锁定输出。当一个L输出使能,输出会无限期的打开,即使输出线圈断电。这个输出只能使用的U指令关闭。最后一个指令是IOT(立即输出),它将不必等待梯形逻辑扫描更新完成而允许输出。