Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1731

Hide thumbs Also See for MANUALplus 620:

Advertisement

January 2012
Module 9071 Find the string length
The control finds the length of the string in a selectable string memory (S0 to
S99).
Call:
PS
K/B/W/D/S<String no. or string>
CM
9071
PL
B/W/D
<Length of the string>
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
2
ErrorCode (W1022)
Module 9072 Copy a byte block into a string
The control copies a byte block from a PLC word memory into a PLC string (S0
to S99). The control does not check whether the byte block consists of valid
ASCII characters. The module always copies the entire programmed length of
the byte block, regardless of any string-end code (0x00) in the byte block. The
control automatically sets a string end code (0x00) after the last copied byte.
If there are any ASCII special characters in the copied byte block, the contents
of the string may not be displayed in the PLC diagnosis correctly.
Call:
PS
K/B/W/D <Start address of byte block>
PS
K/B/W/D <Length of byte block>
PS
K/B/W/D <PLC string>
CM
9072
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
1
ErrorCode (W1022)
2
4
11
8.28 Modules for string processing
Meaning
String length found
Error. See NN_GenApiModuleErrorCode
(W1022)
Invalid immediate strings, address of the
source or target string is out of range (S0 to
S99), string memory was searched but no
string end was found
Meaning
Byte block copied into PLC string (S0 to S99)
Error. See NN_GenApiModuleErrorCode
(W1022)
Invalid start address of the programmed byte
block
Invalid length of the programmed byte block
(max. 127 characters)
Invalid sum of the start address and the
programmed block length
Invalid target string
1731

Advertisement

loading