Siemens S7-1200 System Manual page 211

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Table 7- 17
Data types for the parameters (P and N contacts/coils, P=, N=, P_TRIG and N_TRIG)
Parameter
Data type
M_BIT
Bool
IN
Bool
OUT
Bool
CLK
Bool
Q
Bool
All edge instructions use a memory bit (M_BIT: P/N contacts/coils, P_TRIG/N_TRIG) or
(instance DB bit: R_TRIG, F_TRIG) to store the previous state of the monitored input signal.
An edge is detected by comparing the state of the input with the previous state. If the states
indicate a change of the input in the direction of interest, then an edge is reported by writing
the output TRUE. Otherwise, the output is written to FALSE.
Note
Edge instructions evaluate the input and memory-bit values each time they are executed,
including the first execution. You must account for the initial states of the input and memory
bit in your program design either to allow or to avoid edge detection on the first scan.
Because the memory bit must be maintained from one execution to the next, you should use
a unique bit for each edge instruction, and you should not use this bit any other place in your
program. You should also avoid temporary memory and memory that can be affected by
other system functions, such as an I/O update. Use only M, global DB, or Static memory (in
an instance DB) for M_BIT memory assignments.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Description
Memory bit in which the previous state of the input is saved
Input bit whose transition edge is detected
Output bit which indicates a transition edge was detected
Power flow or input bit whose transition edge is detected
Output which indicates an edge was detected
Basic instructions
7.1 Bit logic operations
211

Advertisement

Table of Contents
loading

Table of Contents