100BBasic instructions
7.1 Bit logic
S7-1200 Programmable controller
168
System Manual, 11/2011, A5E02486680-05
Table 7- 13 Data types for the parameters
Parameter
Data type
Description
S, S1
Bool
Set input; 1 indicates dominance
R, R1
Bool
Reset input; 1 indicates dominance
OUT
Bool
Assigned bit output "OUT"
Q
Bool
Follows state of "OUT" bit
The OUT parameter specifies the bit address that is set or reset. The optional OUT output Q
reflects the signal state of the "OUT" address.
Instruction
S1
R "OUT" bit
RS
0
0 Previous state
0
1 0
1
0 1
1
1 1
S
R1
SR
0
0 Previous state
0
1 0
1
0 1
1
1 0
7.1.3
Positive and negative edge instructions
Table 7- 14 Positive and negative transition detection
LAD
FBD
SCL
Description
Not available LAD: The state of this contact is TRUE when a positive transition (OFF-to-
ON) is detected on the assigned "IN" bit. The contact logic state is then
combined with the power flow in state to set the power flow out state. The
P contact can be located anywhere in the network except the end of a
branch.
FBD: The output logic state is TRUE when a positive transition (OFF-to-
ON) is detected on the assigned input bit. The P box can only be located
at the beginning of a branch.
Not available LAD: The state of this contact is TRUE when a negative transition (ON-to-
OFF) is detected on the assigned input bit. The contact logic state is then
combined with the power flow in state to set the power flow out state. The
N contact can be located anywhere in the network except the end of a
branch.
FBD: The output logic state is TRUE when a negative transition (ON-to-
OFF) is detected on the assigned input bit. The N box can only be located
at the beginning of a branch.