P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1050
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic structure in NCK:
Variable value ranges
The following signals are relevant:
Signal
Typ
e
Type
Value range
Comment
Enable
I
BOOL
= FC 21 active
Funct
I
BYTE
3, 4
3: Read data
4: Write data
S7Var
I
ANY
S7 data area, except
local data
Source/destination data storage area
IVAR1
I
INT
0 ... 4095
Position offset
IVAR2
I
INT
-1 ... 4095
Semaphore byte
Transfer without semaphore: -1
Error
O
BOOL
ErrCode
O
INT
20: Alignment error
21: illegal position offset
22: Illegal semaphore byte
23: No new data to be read
24: Cannot write data
25: Local data parameterized for
S7Var
6HPDSKRUH
6HPDSKRUH
6HPDSKRUH "
6HPDSKRUH "
\HV
QR
\HV
QR
:ULWHLQ
1&.
7UDQVIHU
GDWDIURPWR
3/&
5HDGGDWD
IURP3/&
5HDGLQ
1&.