Technical data
SINAUT TD7 software package for the CPU
2.7 Test blocks
Software
322 System Manual, 07/2009, C79000-G8976-C222-07
DBB0 = FFh; Delete content of DB TestCopyData
Prerequisites
The user program must meet the following conditions to use the TestCopy function:
● The FC TestCopy function must be present in the CPU;
● The DB TestCopyData in the CPU must be long enough. To ensure this, copy DB99
TestCopyData from the TD7 library to your CPU. Change the length of the buffer area as
required by correspondingly increasing or decreasing the TestCopyBuffer area in the
declaration header of the DB. This buffer area is preset as an array with a length of
[0..240] WORDs.
● In the communication DB (type DB XComData, DB PComData or DB BComData) whose
send and/or receive messages you wish to log, the following entries must be made (the
best way is to use the predefined variable table VAT_TestCopy from the TD7 library):
– The number of the DB TestCopyData must be entered in DW32 (symbolic name
TestCopyDBNo).
– The number of the FC TestCopy must be entered in DW34 (symbolic name
TestCopyFCNo).
Including FC TestCopy in the user program
The test function is executed cyclically by FB XCom, FB PCom or FB BCom if the number of
the FC TestCopy is entered in DBW34 of the data block DB XComData, DB PComData or
DB BComData to be monitored.
Operating mode and filter settings for FC TestCopy
The user controls FC TestCopy using a VAT (VAriable Table, that is comparable to Force
Variables in the S5 environment). This VAT has a predefined form and is available in the
TD7 library as VAT_TestCopy.
The following settings in DB TestCopy are possible using VAT_TestCopy:
Name Permitted values Meaning
00 h Function disabled.
11 h Message entry always at the beginning of DB
TestCopyData.
22 h Write DB TestCopyData endlessly as a circulating
buffer.
33 h Fill DB TestCopydata once, then set mode 0.
OperationMode
FF h Delete complete DB TestCopyData and preset defaults.
FF h Copy all message types (MT = 0, 1, 2, 3) into DB
TestCopyData.
00 h Copy only ORG messages (MT = 0).
11 h Copy only requested ORG messages (MT = 1).
22 h Copy only data messages (MT = 2).
????_TgrmType
33 h Copy only requested data messages (MT = 3).










