Vicking electronics
Pag. 10
Communication
WRITE to the terminal
The WORKtime terminal accepts this online concentrator compatible communication command
to write data to the terminal. The data contains display text and WORKmate compatible
terminals codes.
Length
Code
Description
1
STX
2 dec
1
W
87 dec Command
1
0
Always 0
1
Line
Always 5 (indicates a WORKtime)
2
Terminal
0 Asc to 63 Asc
max 100
Data
A string of data for the terminal
2
Checksum
Calculated from W to Data
1
CR
13 dec
The answer to this is
ACK CR
or
NACK P CR
or
NACK C CR
during serial line interference.
NACK W CR
if the previous data for this terminal is not yet transmitted.
READ from the terminal
The WORKtime terminal accepts this online concentrator compatible communication command
to read data from the terminal. The data contains entered data and a function code.
This command must be send continuously to poll if there is new data available in the terminal.
Read the next data in the buffer. (normally used command)
Length
Code
Description
1
STX
2 dec
1
N
78 dec Command
2
Checksum
97 dec 109 dec
1
CR
13 dec
The answer to these commands is the terminal data in this format:
Length
Code
Description
1
STX
2 dec
1
reserved
Always 0 Asc (for future expansion)
1
Line
Always 5 (indicates a WORKtime)
2 Terminal
01
max 42
Data
A string of data from the terminal
2
Checksum
Calculated from reserved to Data
1
CR
13 dec
or
NACK P CR
or
NACK C CR
during serial line interference.
NACK E CR
if there is no data available from the terminals.