 |
ALPHA-VISION® Tools: AvPrint2Serial.exe
|
AvPrint2Serial.exe
SUMMARY
Redirects the data that would be printed by the Usr_PrintLine function from the ALPHA-VISION
®-VISUalization-Runtime
as ASCII-text to a serial port.
SYNTAX
AvPrint2Serial
DESCRIPTION
- Each printed event is sent as a line.
- Lines are separated by CR-characters (ASCII-code 13)
- Between each line there is a delay of at least 20 ms
- The max. line length is 80 characters, including the terminating CR-character.
If the text exceeds this limit it is cut off
Event types are printed according to the following table:
| Event Type |
Output Format |
| DATE_TIME_CHANGE |
<event-time> TIME: New=<new-time> Old=<old-time> |
| USER_LOGIN_LOGOUT |
<event-time> (LOGIN|LOGOUT) User=<user-id> |
| LIMIT_CHANGE |
<event-time> LIMIT<limit-no> <point-id> New=<new-limit> Old=<old-limit> |
| DELAY_CHANGE |
<event-time> DELAY-(IN|OUT)<limit-no> <point-id> New=<new-delay> Old=<old-delay> |
| VALUE_CHANGE_OS |
<event-time> VAL <point-id> New=<new-value> Old=<old-value> |
| any STATUS_CHANGE |
<event-time> STS <point-id> New=<new-status>(<new-status-text>) Old=<old-status>(<old-status-text>)
|
| user defined events |
<event-time> UNKNOWN EVENT
|
The time format is
YYYY-MM-DD hh:mm:ss.
WARNING
It is not possible to use Usr_PrintLine() and AvPrint2Serial simultaneously
because both functions use the same mechanism to mark events as already printed.
Syntax Notation
- [aaa]
- aaa is optional (zero or one occurences)
- (aaa|bbb)
- aaa exclusive or bbb
- (aaa)*
- aaa may occur indefinitely often or may be omitted
- (aaa)+
- aaa may occur indefinitely often but at least once
- (aaa)m..n
- aaa may occur from m to n times