Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1752

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.41 PLC Modules
8.41.1 Markers, bytes, words, and double words
1752
A number of PLC modules are available for PLC functions that are very difficult
or even impossible to perform with PLC commands alone. You will find
descriptions of these modules under the corresponding functions. (See
"Overview of Modules" on page 599.)
If the control processes a module incorrectly, it sets the marker
NN_GenApiModuleError (M4203). You can evaluate this marker for
displaying an error message.
Module 9000/9001 Copy in the marker or word range
Modules 9000 (markers) and 9001 (byte/word/double) copy a block with a
certain number of markers or bytes, beginning with the start address, to the
specified target address. For Module 9001 the length should always be
defined in bytes.
Constraints: The control copies sequentially, beginning with the first memory
cell. Therefore the function is not ensured if the source block and the target
block overlap and the source block begins at a lower address than the target
block. In this case the control overwrites the overlapping part of the source
block before the copying process.
Call:
PS
B/W/D/K <Number of the 1st marker in source block>
PS
B/W/D/K <Number of the 1st marker in target block>
PS
B/W/D/K <Length of block in markers>
CM
9000
PS
B/W/D/K <Number of the 1st word in source block>
PS
B/W/D/K <Number of the 1st word in target block>
PS
B/W/D/K <Length of block in markers>
CM
9001
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
1
ErrorCode (W1022)
2
4
Meaning
Markers, bytes, words, or double words
were copied
Error code in NN_GenApiModuleErrorCode
(W1022)
Operand address invalid
Address too high or block too long
Programmed source or target block too long
HEIDENHAIN Technical Manual MANUALplus 620

Advertisement

loading