Fc510x monitor ads interface, Starting the recording, Stopping the recording – BECKHOFF FC5101 User Manual
Page 81: Structure of the ring buffer, Reading the recorded telegrams

Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149
81
6 2.7440 Id: 701 Len: 1 Data: 00
7 4.0802 Id: 632 Len: 8 Data: 40 00 10 00 00 00 00 00
8 4.0806 Id: 601 Len: 8 Data: 40 00 10 00 00 00 00 00
9 4.0813 Id: 5b2 Len: 8 Data: 43 00 10 00 91 01 02 00
10 4.0823 Id: 632 Len: 8 Data: 40 18 10 01 00 00 00 00
11 4.0826 Id: 581 Len: 8 Data: 43 00 10 00 91 01 07 00
12 4.0835 Id: 601 Len: 8 Data: 40 18 10 01 00 00 00 00
13 4.0838 Id: 5b2 Len: 8 Data: 43 18 10 01 02 00 00 00
14 4.0848 Id: 632 Len: 8 Data: 23 00 14 01 32 02 00 00
15 4.0853 Id: 581 Len: 8 Data: 43 18 10 01 02 00 00 00
16 4.0863 Id: 601 Len: 8 Data: 23 00 18 01 81 01 00 00
FC510x Monitor ADS Interface
The ADS interface for the FC510x monitor is described below.
Starting the Recording
Monitor recording is started with the following ADS write command:
NET-ID: PC AMS net ID.
PORT: 300
IDXGRP: IndexGroup is 0x5000 + Id (on the "General" tab for the FC510x monitor) of the FC510x monitor
IDXOFFS: IndexOffset is 0xFFFF1000
LEN: Data length is 2
DATA: A word with the value 1 is to be transmitted
Stopping the Recording
Monitor recording is stopped with the following ADS write command:
NET-ID: PC AMS net ID.
PORT: 300
IDXGRP: IndexGroup is 0x5000 + Id (on the General tab for the FC510x monitor) of the FC510x monitor
IDXOFFS: IndexOffset is 0xFFFF1000
LEN: Data length is 2
DATA: A word with the value 0 is to be transmitted
Structure of the Ring Buffer
The ring buffer in which the recorded telegrams are stored is divided into 4 kbyte pages. Each page has the
following structure:
Offset
Description
0x0000 - 0x0FEF
Recorded telegrams (see below)
0x0FF0 - 0x0FF3
reserved
0x0FF4 - 0x0FF7
Length of the data actually read (only in the first read page)
0x0FF8 - 0x0FF9
1: Further pages are stored, 0: no further pages are stored
0x0FFA - 0x0FFB
reserved
0x0FFC - 0x0FFD
End of the telegrams recorded on this page (points to the first memory location following
the last telegram)
0x0FFE - 0x0FFF
Page number
Reading the Recorded Telegrams
The monitor telegrams that have been recorded can be read with the following ADS read command: