Jetter AG
Programming | 8
User Manual – JCM-501-E01
43 / 65
Sending characters
A character is sent by entering it into the register
Transmit buffer
.
Sending characters
ü
The user-programmable serial interface is configured.
1.
Check the transmit buffer filling level, whether there is enough space in the
transmit buffer.
2.
If there is no space in the transmit buffer, wait, until there is enough space.
3.
Enter the character to be sent into register
Transmit buffer
.
ð
The character is written into the transmit buffer and will be sent from there.
Receiving characters
Characters are received by reading characters from register
Receive Buffer
.
Receiving
characters
ü
The user-programmable serial interface is configured.
1.
Check the filling level of the receive buffer to make sure that it contains at
least 1 character.
2.
Read the character from the register
Receive buffer
.
ð
The character is taken from the receive buffer.
Sending Texts
An easy way to send texts via user-programmable serial interface is redirecting
the instructions
DisplayText()
and
DisplayText2()
to
Device 9
.
Restrictions
When redirecting the instructions
DisplayText()
and
DipslayText2()
to the
user-programmable serial interface the following restrictions apply:
■
The cursor position will not be taken into account.
■
The characters for "Delete Screen" and "Delete to End of Line" are of no spe-
cial significance and will be output without any changes.
Sending Texts
ü
The user-programmable serial interface is configured.
ü
The user is familiar with the options of the instructions
DisplayText()
and
DisplayText2()
(refer to the online help which comes with JetSym).
1.
Use the instruction
DisplayText()
or
DisplayText2()
.
2.
Specify
Device 9
.
ð
The task waits at this instruction until all characters have been entered into
the transmit buffer.