Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1806

Hide thumbs Also See for MANUALplus 620:

Advertisement

1806
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.
Note
Store the result in at least one word 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
<>ASCII character read
[0 to 255 = ASCII characters; –1 = error>
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
1
ErrorCode (W1022)
12
13
14
16
18
20
37
Meaning
Character was received
Error code in NN_GenApiModuleErrorCode
(W1022)
Incorrect interface
String too long
Interface not ready or no connection
Interface not assigned
Receiving buffer empty
Transmission error or input/output not ready
Module was not called in a spawn job or
submit job
Receiving queue is full
HEIDENHAIN Technical Manual MANUALplus 620

Advertisement

loading