Chapter 11 Integrated OBs SFBs SFCs
Manual VIPA CPU 21x
11-28
HB103E - Rev. 05/45
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. For this 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
Summary of Contents for CPU 21 Series
Page 1: ...Manual VIPA CPU 21x Order No VIPA HB103E Rev 05 45 ...
Page 2: ...Lerrzeichen ...
Page 6: ...About this Manual Manual VIPA CPU 21x Subject to change to cater for technical progress ...
Page 10: ...Contents Manual VIPA CPU 21x iv HB103E Rev 05 45 ...
Page 30: ...Chapter 1 Principles Manual VIPA CPU 21x 1 18 HB103E Rev 05 45 ...
Page 58: ...Chapter 2 Hardware description Manual VIPA CPU 21x 2 28 HB103E Rev 05 45 ...
Page 80: ...Chapter 3 Deployment CPU 21x Manual VIPA CPU 21x 3 22 HB103E Rev 05 45 ...
Page 178: ...Chapter 5 Deployment CPU 21x 2BT02 with H1 TCP IP Manual VIPA CPU 21x 5 48 HB103E Rev 05 45 ...