Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1753

Hide thumbs Also See for MANUALplus 620:

Advertisement

Example of
Module 9010
January 2012
Module 9010/9011/9012 Read in the word range
From the specified location in the word memory the control reads a byte, word
or double word and returns it as an output quantity to the stack. Indexed
reading is possible by specifying a variable as designation of the memory
location.
Call:
PS
B/W/D/K <Address of the byte to be read>
CM
9010
; READ BYTE
PL
B
<Target address for byte that was read>
PS
B/W/D/K <Address of the word to be read>
CM
9011
; READ WORD
PL
B
<Target address for word that was read>
PS
B/W/D/K <Address of the double word to be read>
CM
9012
; READ DOUBLE WORD
PL
B
<Target address for double word that was read>
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
3
ErrorCode (W1022)
5
Initial state:
Byte
B10
= 35 (address)
Byte
B35
= 80 (byte to be read)
Byte
B100 = ?
Function
STL
Save the address
PS B10
(B10) of the byte to
be read from the
word accumulator in
the data stack
Read byte B35 and
CM 9010
save in the data
stack
Save data stack in
PL B100
byte B100.
8.41 PLC Modules
Meaning
Byte was read
Error code in NN_GenApiModuleErrorCode
(W1022)
Invalid address was programmed
Module 9011: Specified address is not a
word address
Module 9012: Specified address is not a
double word address
Accumulator
Data stack (dec)
content (dec)
35
80
35
80
80
1753

Advertisement

loading