Basic instructions
7.1 Bit logic operations
Table 7- 15
P_TRIG and N_TRIG
LAD / FBD
SCL
Not available
Not available
For SCL: You must write code to replicate this function within your application.
1
Table 7- 16
R_TRIG and F_TRIG instructions
LAD / FBD
SCL
"R_TRIG_DB" (CLK:=
_in_, Q=> _out_
"F_TRIG_DB" (CLK:=
_in_, Q=> _out_
For R_TRIG and F_TRIG, when you insert the instruction in the program, the "Call options"
dialog opens automatically. In this dialog you can assign
whether the edge memory bit is stored in its own data block (single instance) or as a local
tag (multiple instance) in the
block interface. If you create a separate data block, you will find it in the project tree in the
"Program resources" folder
under "Program blocks > System blocks".
210
Description
Scan RLO (result of logic operation) for positve signal edge.
1
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 P_TRIG instruction cannot be located at the beginning or
end of a network. In FBD, the P_TRIG instruction can be located
anywhere except the end of a branch.
Scan RLO for negative signal edge.
1
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 N_TRIG instruction cannot be located at the beginning or
end of a network. In FBD, the N_TRIG instruction can be located
anywhere except the end of a branch.
Description
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
anywhere except the end of a branch.
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
anywhere except the end of a branch.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG