Basic instructions
8.1 Bit logic operations
S7-1200 Programmable controller
234 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 15 P_TRIG and N_TRIG
Not available
1
Scan RLO (result of logic operation) for positve signal edge.
The Q output power flow or logic state is TRUE when a positive transi-
tion (OFF-to-ON) is detected on the CLK input state (FBD) or CLK pow-
er flow in (LAD).
In LAD, the P_TRIG instruction cannot be located at the beginning or
end of a network. In FBD, the P_TRIG instruction can be located any-
where except the end of a branch.
Not available
1
Scan RLO for negative signal edge.
The Q output power flow or logic state is TRUE when a negative transi-
tion (ON-to-OFF) is detected on the CLK input state (FBD) or CLK pow-
er flow in (LAD).
In LAD, the N_TRIG instruction cannot be located at the beginning or
end of a network. In FBD, the N_TRIG instruction can be located any-
where except the end of a branch.
1
For SCL: You must write code to replicate this function within your application.
Table 8- 16 R_TRIG and F_TRIG instructions
CLK:=_in_,
Q=> _bool_out_);
Set tag on positive signal edge.
The assigned instance DB is used to store the previous state of the CLK
input. The Q output power flow or logic state is TRUE when a positive
transition (OFF-to-ON) is detected on the CLK input state (FBD) or CLK
power flow in (LAD).
In LAD, the R_TRIG instruction cannot be located at the beginning or
end of a network. In FBD, the R_TRIG instruction can be located any-
where except the end of a branch.
"F_TRIG_DB"(
CLK:=_in_,
Q=> _bool_out_);
Set tag on negative signal edge.
The assigned instance DB is used to store the previous state of the CLK
input. The Q output power flow or logic state is TRUE when a negative
transition (ON-to-OFF) is detected on the CLK input state (FBD) or CLK
power flow in (LAD).
In LAD, the F_TRIG instruction cannot be located at the beginning or
end of a network. In FBD, the F_TRIG instruction can be located any-
where except the end of a branch.