Transmit Binary Data Across Data Interface; Receive Binary Data Across Data Interface - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

4.8.6 Transmit Binary Data across Data Interface (Module 9105)
Module 9105 transmits a block of binary values from the Word RAM of the PLC to one of the two
serial interfaces. The transfer is in the form of ASCII coded hexadecimal values, so every byte in the
source block makes 2 ASCII characters at the serial interface.
Constraints:
- The interface must be assigned to the PLC and initialized by Module 9100 before Module 9105 is
called.
- Module 9105 only operates within the scope of a Submit Job.
Possible errors::
- The call parameters are outside the permitted range (0..1 for the interface, 0..1023 for the start of
the binary block, 0..63 for the length of the binary block).
- The interface is not assigned to the PLC.
- The module was not called from a Submit Job.
- The transmit buffer is not empty.
- Because of its length the binary block cannot be read from the specified address (start+length >
1024).
- A transmit error was detected when the transmission was initialized.
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)>
PS
K/B/W/D
<Length of binary block (0..63)>
CM
9105
Error status after call: M3171 =
4.8.7 Receive Binary Data across Data Interface (Module 9106)
Module 9106 reads a block of binary values from one of the two serial interfaces to the Word RAM
of the PLC. The transfer is in the form of ASCII coded hexadecimal values, so every 2 ASCII
characters from the serial interface make 1 byte in the binary block. The length of the read binary
block is returned as the initial variable.
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.
01.98
TNC 407/TNC 415/TNC 425
0: Hexadecimal string is transmitted
1: Error condition see above
4 PLC Modules
7-167

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents