8 read from receive buffer (module 9107) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 629

Possible errors:
- The call parameters are outside the permitted range (0..1 for the interface, 0..1023 for the start of
the binary block).
- The interface is not assigned to the PLC.
- The module was not called from a Submit Job.
- The receive buffer contains no data.
- The string in the receive buffer is longer than 128 characters.
- The string in the receive buffer contains an uneven number of characters.
- Because of its length the binary block cannot be written to the specified address (start+length >
1024).
- The string in the receive buffer contains characters that cannot be interpreted as ASCII coded
hexadecimal values (=
·= 0..9,A..F).
Call:
PS
B/W/D/K
PS
K/B/W/D
CM
9106
PL
B/W/D
Error status after call: M3171 =
0: Binary block was read
1: Error condition see above
4.8.8 Read from Receive Buffer (Module 9107)
Module 9107 reads 2 ASCII characters from the receive buffer to one of the two serial interfaces
and encodes them to a binary value. It is possible to specify an offset which corresponds to the
position of the byte to be read in a binary block read by Module 9106 (i.e. half the offset in the ASCII
string). The contents of the receive buffer are retained and can be read by Modules 9104 or 9106.
Constraints:
- The interface must be assigned to the PLC and initialized by Module 9100 before Module 9106 is
called.
- Module 9106 only operates within the scope of a Submit Job.
- The system does not check whether characters of the received string are still at the place in the
receive buffer indicated by the offset. If this is not the case, then an undefined value is read.
Possible errors:
- The call parameters are outside the permitted range (0..1 for the interface, 0..63 for the offset in
the binary block).
- The interface is not assigned to the PLC
- The module was not called from a Submit Job.
- The receive buffer contains no data.
- The characters in the receive buffer cannot be interpreted as ASCII coded hexadecimal values
(=
·= 0..9,A..F).