EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 234

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
LAD / FBD
SCL
Description
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
LAD / FBD
SCL
Description
"R_TRIG_DB"(
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.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals