Read From Receive Buffer - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

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
<Interface 0:RS232/ 1:RS422>
PS
K/B/W/D
<Number of 1st byte in binary block (0..1023)>
CM
9106
PL
B/W/D
<Length of binary block in bytes>
Error status after call: M3171 =
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).
7-168
TNC 407/TNC 415/TNC 425
0: Binary block was read
1: Error condition see above
4 PLC Modules
01.98

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents