CPU ADAM 821x
Chapter 7 Integrated OBs, SFBs and SFCs
ADAM 8000 Manual CPU 821x – Rev 1.1
7-21
In-/output area
This parameter fixes the in- res. output area for the data transfer.
At a read access, this area up to 4Byte width contains the data read from
the page frame area.
At a write access, the data up to 4Byte width is transferred to the page
frame area.
Parameter type: Pointer
The following example shows the read access to 4Byte starting with
Byte 712 in page frame 2. The read 4Byte are stored in DB10 starting with
Byte 2. Herefor the following call is required:
CALL SFC 228
K_NR :=2
OFFSET :=712
R_W :=0
SIZE :=4
RET_VAL :=MB10
VALUE
:=P#DB10.DBX 2.0 Byte 4
0 ...
... 1023
K 0
0 ...
... 1023
K 1
0 ...
... 1023
K 2
0 ...
... 1023
K 3
712...715
K_NR=2
OFFSET=712
SIZE=4
VALUE
Page frame
R_W=1
R_W=0
SIZE=4
CPU
Value
Description
00h no
error
01h ... 05h Internal error: No valid address found for a parameter
06h
defined page frame does not exist
07h
parameter SIZE
≠
1, 2 or 4 at read access
08h
parameter SIZE
≠
1, 2 or 4 at write access
09h
parameter R_W
≠
0 or 1
IN_OUT
Example
Error messages