Fb29: Signal Recorder And Data Trigger Diagnostics - Siemens SINUMERIK 840D sl Function Manual

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

13.17.10

FB29: Signal recorder and data trigger diagnostics

Function
Signal recorder
FB29 "Diagnostics" allows various diagnostic routines to be performed on the PLC user
program. A diagnostic routine logs signal states and signal changes. In this diagnostic routine,
function number 1 is assigned to the "Func" parameter. Up to 8 signals of the parameters
"Signal_1" to "Signal_8" are recorded in a ring buffer each time one of the signals changes.
The current information of parameters "Var1" as BYTE value, and "Var2" and "Var3" as
INTEGER values are also stored in the ring buffer.
The number of past OB1 cycles is also stored in the buffer as additional information. This
information enables the graphical evaluation of signals and values in OB1 cycle grid.
Call rule
First call of FB29 in OB1 cycle: Parameter "NewCycle" = 1
All other calls of FB29 in the same OB1 cycle: Parameter "NewCycle" = 0
Ring buffer
The ring buffer, which must be defined by the user, must have an ARRAY structure specified
as in the source code. The array can have any number of elements. A size of 250 elements
is recommended. The "ClearBuf" parameter is used to clear the ring buffer and set the
"BufAddr" pointer to the start. The instance DB related to the FB29 is a DB from the user area
and is to be transferred to the FB Diagnostics with the parameter "BufDB".
Data trigger
The data trigger function is intended to allow triggering on specific values (or bits) at any
permissible memory cell. The cell to be triggered is "rounded" with a bit mask ("AndMask"
parameter) before the "TestVal" parameter is compared in the diagnostic block.
Note
The source code for the function is available in the source container of the basic-program
library under the name "Diagnose.awl". The instance DB and the ring buffer DB are also defined
in this source block. The function call is also described in the function. The DB numbers and
the call must be modified.
Declaration of the function
FUNCTION_BLOCK FB29
VAR_INPUT
Func
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
: INT;
Signal_1
: BOOL;
Signal_2
: BOOL;
Signal_3
: BOOL;
P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
987

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents