Module 9113 Receive Ascii Characters Via Data Interface - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

1928

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 returned
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.x < 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 at least one word so that the values up 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
<>ASCII character read>
[0 to 255] = ASCII characters; [–1] = error
Error code:
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 submit or spawn job
37
Receiving queue is full
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents

Save PDF