Module 9106 Receive Binary Data Through Data Interface - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

8 – 36

Module 9106 Receive binary data through data interface

You must first assign the interface to the PLC and initialize it with Module
9100.
Module 9106 reads a block of binary values from one of the two interfaces to
the word memory of the PLC. The transfer is in the form of ASCII-coded
hexadecimal values. Every two ASCII characters from the serial interface
make one byte in the binary block.
The length of the read binary block is returned as the initial variable.
Can only be called in a submit job or spawn job!
Call:
PS
B/W/D/K <Interface>
0: RS232
1: RS422
PS
K/B/W/D <Number of the first byte in the binary block (0 to 1023)>
CM
9106
PL
B/W/D
<Length of binary block in bytes>
–1: Incorrect module call
Error recognition:
Marker
Value
Meaning
M4203
0
Data was received
1
Error code in W1022
W1022
1
Incorrect interface or incorrect byte number or block
too long
4
Block outside value range
11
Odd number of characters or illegal character
12
String too long
14
Interface not assigned
16
Receiving buffer empty
18
Transmission error or input/output not ready
20
Module was not called in a spawn job or submit job
HEIDENHAIN Technical Manual TNC 426, TNC 430

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents