100BBasic instructions
7.8 Program control
S7-1200 Programmable controller
224
System Manual, 11/2011, A5E02486680-05
Structure components
Data type
Description
6
PtrNo.
/Acc
Area
DB no.
Offset
7
PtrNo. /
Acc
Slot No. /
Scope
Area
DB no.
Offset
OPERAND_NUMBER
UInt
Operand number of the machine command
POINTER_NUMBER_
LOCATION
UInt
(A) Internal pointer
SLOT_NUMBER_SCOPE
UInt
(B) Storage area in internal memory
DATA_ADDRESS
NREF
Information about the address of an operand
AREA
Byte
(C) Memory area:
L: 16#40 – 4E, 86, 87, 8E, 8F, C0 – CE
E: 16#81
A: 16#82
M: 16#83
DB: 16#84, 85, 8A, 8B
DB_NUMBER
UInt
(D) Number of the data block
OFFSET
UDInt
(E) Relative address of the operand
GetErrorID
Table 7- 122 GetErrorID instruction
LAD / FBD
SCL
Description
Not available
Indicates that a program block execution error has occurred and reports the ID
(identifier code) of the error.
Table 7- 123 Data types for the parameters
Parameter
Data type
Description
ID
Word
Error identifier values for the ErrorStruct ERROR_ID member
Table 7- 124 Error_ID values
ERROR_ID
Hexadecimal
ERROR_ID
Decimal
Program block execution error
0
0
No error
2503
9475
Uninitialized pointer error
2522
9506
Operand out of range read error
2523
9507
Operand out of range write error
2524
9508
Invalid area read error