TECT_LOG_FILE_VISU_PHΒΆ
Description
Visualization element TECT_LOG_FILE_VISU_PH is used to show the actual values of all inputs and outputs of the instance of TECT_LOG_FILE_VISU_PH. The visualization is also used to control the Function Block by those inputs, which are not connected inside the program.
The figures show the visualization in offline and online mode.
TECT_LOG_FILE_VISU_PH template in offline mode
TECT_LOG_FILE_VISU_PH template in online mode
Colors
The color of the variables has the following meaning:
- WHITE: Actual FALSE and should be FALSE in normal operation
- GREEN: Actual TRUE and should be TRUE in normal operation
- YELLOW: Actual FALSE, but should be TRUE in normal operation
- RED: Actual TRUE, but should be FALSE in normal operation
Visualization Parameters
Variable Element | Access | Way of Access | Description (all elements refer to the Function Block instance, replaced for the placeholder $FB$) |
---|---|---|---|
EN | R/W | Toggle | Enable function block by TRUE level at input EN |
EN_LOG | R/W | Toggle | Enable logger and save log buffer to file automatically |
LOG_TRIG | R/W | Toggle | Execute log with rising edge |
ADR_LOG_BUFFER | R | Start address of the logging buffer | |
NUM_BUFFER_ENTRY | R/W | Numpad | Size of logging buffer: number of entries |
SELECTION | R/W | Numpad | Selection of predefined values to be logged |
MODE | R/W | Numpad | To select the different modes for logging |
THRESHOLD | R/W | Numpad | Value needs to be set in combination of MODE: MODE.Bit2-0 = 101 |
NUM_FILE_ENTRY | R/W | Numpad | Value needs to be set in combination of MODE: MODE.Bit7-6 = 01 |
FILE_PATH | R/W | Text | Folder for saving log file, should not be empty, one level will be created |
MANUAL_SAVE | R/W | Toggle | Save log buffer to file manually |
CLEAR_BUFFER | R/W | Toggle | Clear log buffer |
ADR_VISU_BUFFER | R | First address of data type TECT_TYPLOGINFO_TYPE | |
NUM_VISU_ENTRY | R/W | Numpad | Number of log entries displayed in VISU |
NUM_OF_ZONE | R/W | Numpad | Number of zones in the system to be operated |
ERR | R | Error occured during execution when output ERR = TRUE | |
ERNO | R | Error Codes | |
ERR_OP | R | Error operation, combined with ERR and ERNO | |
ERR_ZONE | R | Error zone, zone which causes the error | |
FOLDER_CREATED | R | Folder and subfolder created | |
LOG_BUSY | R | Logging entry in buffer is busy | |
NUM_LOG_LOST | R | Number of logs lost | |
SAVING_BUSY | R | Save logging buffer to file is busy | |
ZONE_SAVING | R | The zone of which the file operation is executing | |
CLEAR_DONE | R | Clear logging buffer is done | |
ENTRY_SIZE | R | Size of one log entry in byte, depending on SELECTION | |
BUFFER_SIZE | R | Size of whole buffer for all zones in byte, depending on ENTRY_SIZE, NUM_BUFFER_ENTRY and NUM_OF_ZONE |
All inputs of TECT_LOG_FILE Function Block, which are not connected to a variable (left open), can be written from this visualization faceplate. The Function Block can be controlled from the visualization as long as the inputs are left open.
The color of the background can be changed by writing a value to the global variable dwTectControlVisuBackgroundColor. The color of the title can be changed by writing a value to the global variable dwTectControlVisuTitleColor.