Format for import of event configuration
The format in which events are imported from a file is the same as the format in which they are stored if they are entered manually in the Application Explorer.
- Configured events (whether imported or manually entered) are saved in an ASCII file, EVENT.DAT, in the project's C folder.
- Events can be imported from any ASCII file with the appropriate syntax. By default, the file must be located in the project's TP folder.
Format of Events
The storage and/or import format for an Event is as follows
No | Description | Type | Size(bytes) | Value |
1 | Record type | Character | EVTPROG | |
2 | Event name | Character | 40 | |
3 | Description | Character | 80 | |
4 | Reserved | Numeric | ||
5 | Reserved | Numeric | ||
6 | Name of server list | Character | ||
7 | Reserved | Character | ||
8 | Name of triggering variable | Character | 40 | |
9 | When triggered on bit | Numeric |
0 = to 0. 1 = to 1. 2 = by an expression. |
|
10 | Enable flag | Numeric | 1 for enabled, else 0 | |
11 | Name of enabling bit | Character | ||
12 | Trigger expression | Character | 240 | |
13 | Program name | Character | ||
14 | Branch name | Character | ||
15 | Function name | Character | ||
16 | List of arguments | Character |
Deleting an Event
The format for deleting an existing Event entry is the same as adding an event except that the record type is DEVTPROG.