1804
Module 9111 Receive a message via LSV2
Module 9111 reads a message (double word or string) that has been received
from a host computer connected by LSV2 protocol.
The message must be transmitted from the host by the LSV2 command
"M_PC<msg.l>".
Call:
PS
B/W/D/K <>Data type>
0: Binary data double word
1: String
PS
B/W/D/K <>Target address>
With binary: Number of the double word
With string: Number of the string
CM
9111
PL
B/W/D
<>Error code>
0: Message was read
1: No connection to host
2: No message of this type in receiving buffer
3: Incorrect data type (not 0 or 1)
4: Incorrect target address
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
2
ErrorCode (W1022)
4
11
13
15
16
Meaning
Message received
Error code in NN_GenApiModuleErrorCode
(W1022)
Incorrect data type
No double word address, or incorrect string
number
String too long
No connection
Transmit buffer not empty
Receiving buffer empty
HEIDENHAIN Technical Manual MANUALplus 620