Module 9113 Receive Ascii Characters Via Data Interface - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

December 2001

Module 9113 Receive ASCII characters via data interface

You must first assign the interface to the PLC and initialize it with Module
9100.
Module 9113 reads a single ASCII character from the receiving buffer of a
serial interface and resets the receiving buffer.
If there is more than one character in the receiving buffer, the first is sent and
the others are stored in a special buffer.
You can interrogate the current state with Module 9102, bit 8.
As long as data remains in the buffer, no further characters are collected from
the interface.
If MP5030.2 < 2, the characters cannot be read from the interface until the line
with the character requested in the protocol has been executed.
Note
Store the result in a word at least so that the values to 255 will be
recognized.
Can only be called in a submit job or spawn job!
Call:
PS
B/W/D/K <Interface>
0: RS232
1: RS422
CM
9113
PL
W/D
<Read ASCII character
[0 to 255 = ASCII characters; –1 = error>
Error recognition:
Marker
Value
Meaning
M4203
0
Character was received
1
Error code in W1022
W1022
1
Incorrect interface
12
String too long
13
Interface not ready or no connection
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
37
Receiver queue full
Data Transfer by PLC
8 – 41

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