Input Description

../_images/f1eea185e00a4c970a331390005364c5

Function Block TECT_DATA_FLASH

Note

The inputs marked with a triangle d41599bf424cf32c0a331390004bc714_78f228175b765b440a33139001315693 are of the class VAR_IN_OUT (input and output variable). These inputs must be connected to a variable.

EN (enable)

Data type: BOOL

The Function Block is activated by a rising edge at the input EN. A FALSE keeps the Function Block deactivated. If the Function Block is activated, the values being present at the inputs are processed and the output values are delivered.

OPERATION

Data type: TECT_OPERATION_ENUM

1: Enable READ operation: READ data from flash to TECT_TEMPZONE_DATA_TYPE.

2: Enable WRITE operation: WRITE data from TECT_TEMPZONE_DATA_TYPE to flash.

Note

Each Function Block can only be written once. For a second WRITE action, the whole flash segment needs to be deleted first.

3: Enable DELETE operation: Delete the whole flash segment.

4: Enable CHECK_READ operation: Check, if there are already valid parameters (KS>0) in TECT.

5: Enable DELETE_WRITE operation: Before write data from TECT_TEMPZONE_DATA_TYPE to flash, delete the whole flash segment first. It is used to avoid error 4101 by WRITE: Block was already written.

6: Enable CHECK_WRITE operation: Combination of CHECK_READ and DELETE_WRITE.

FLASH_SEGMENT

Data type: BYTE, Default value: 1, Range: 1 or 2

Number of the data segment. Each segment has 1927 blocks (0 … 1926).

FIRST_FLASH_BLOCK

Data type: WORD, Default value: 0, Range: 0 … 1926.

Each segment has 1927 blocks (0…1926). Each block has 32 bytes. Each temperature zone needs one block (ie. 32 bytes).

The first block is assigned for FIRST_ZONEDATA.

NUM_OF_ZONE

Data type: WORD, Default value: 1, Range: > 0.

Number of zones in the entire system.

FIRST_ZONEDATA

Data type: TECT_TEMPZONE_DATA_TYPE.

Monitoring of the first zone data structure of the zone group.

Note

All zones must be declared one after another without break. It is highly recommended to define an array of TECT_TEMPZONE_DATA_TYPE for the whole system.