Download Display - Siemens

Transcript
Type Identifiers
Subarea Number
The following table lists the subarea numbers for the individual S7 objects.
The listed subarea numbers are required in the corresponding M7 API function calls, in order to address S7 objects of an S7 CPU or an M7.
Table 2-8
Subarea Numbers for S7 Objects
S7 Object
Data Type Identifiers
Type Identifier
Subarea
Number
Value Range
I/O area
M7D_IO
0
0...0xFFFF
Process image of inputs
M7D_PII
0
0 ... 255 or 511
Process image of outputs
M7D_PIQ
0
0 ... 255 or 511
Flag area
M7D_M
0
0 ... 65 535
Data block
M7D_DB
DB number 0 ... 65 535 for
M7
Data records, read
M7D_PAR_R
EAD
No. of data
record
0 ... 255 for
M7
Data records, write
M7D_PAR_W No. of data
RITE
record
0.... 255 for
M7
The identifiers in the following table specify the possible data types of variables within S7 objects. The identifiers are used in all M7 calls which access
a variable area within an S7 object.
The corresponding M7 data types are listed in the following table.
Table 2-9
Data Type Identifiers for Accessing S7 Objects
Type Identifier
M7 Data Type
2-6
BOOL
M7DT_BOOL
UBYTE
M7DT_BYTE
UBYTE
M7DT_CHAR
UWORD
M7DT_WORD
SWORD
M7DT_INT
UDWORD
M7DT_DWORD
SDWORD
M7DT_DINT
REAL
M7DT_REAL
UBYTE
M7DT_OCTET
System Software for M7-300 and M7–400, System and Standard Functions, Volume 1
C79000–G7076–C852–02