NOT logic inverter
Table 7- 5
NOT Logic inverter
LAD
FBD
Output coil and assignment box
The coil output instruction writes a value for an output bit. If the output bit you specify uses
memory identifier Q, then the CPU turns the output bit in the process-image register on or
off, setting the specified bit equal to power flow status. The output signals for your control
actuators are wired to the Q terminals of the CPU. In RUN mode, the CPU system
continuously scans your input signals, processes the input states according to your program
logic, and then reacts by setting new output state values in the process-image output
register. After each program execution cycle, the CPU system transfers the new output state
reaction stored in the process-image register to the wired output terminals.
Table 7- 6
Output coil (LAD) and output assignment box (FBD)
LAD
FBD
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
SCL
Description
For FBD programming, you can drag the "Negate binary input" tool
NOT
from the "Favorites" toolbar or instruction tree and then drop it on an
input or output to create a logic inverter on that box connector.
The LAD NOT contact inverts the logical state of power flow input.
If there is no power flow into the NOT contact, then there is power
flow out.
If there is power flow into the NOT contact, then there is no power
flow out.
SCL
out := <Boolean
expression>;
out := NOT
<Boolean
expression>;
Description
In FBD programming, LAD coils are transformed into
assignment (= and /=) boxes where you specify a bit
address for the box output. Box inputs and outputs can be
connected to other box logic or you can enter a bit
address.
You can specify an immediate write of a physical output
using ":P" following the Q offset (example: "%Q3.4:P").
For an immediate write, the bit data values are written to
the process image output and directly to physical output.
100BBasic instructions
7.1 Bit logic
165