
Jetter AG
Programming | 7
JVM-104-O15 User Manual
32 / 60
MR 19
Error counter
This register shows the number of detected errors.
Property
Description
Values
0 ... 2,147,483,647
Type of access
Read/write (clearing)
Tab. 38:
Error counter
7.4.3 Programming
7.4.3.1 Activating the serial interface
Module register MR 7 lets you activate the user-programmable serial interface.
Configuring the in-
terface
ü
The JVM-104-O15 and the device to communicate with have been wired ac-
cording to the RS-232 interface standard.
►
Enter value 1 into MR 7.
ð
The serial interface is activated.
7.4.3.2 Configuring the serial interface
Module registers MR 1 through MR 6 are used to configure the user-program-
mable serial interface.
Configuring the in-
terface
ü
The JVM-104-O15 and the device to communicate with have been wired ac-
cording to the RS-232 interface standard..
1.
Enter value 2 into MR 1.
2.
Enter the desired communication parameters into MR 2 through MR 6.
ð
The serial interface is set as a user-programmable interface. Transmit and re-
ceive buffer are cleared.
7.4.3.3 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.
7.4.3.4 Receiving characters
A character is received by reading characters from register
Receive Buffer
.
Receiving charac-
ters
ü
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.