Professional Documents
Culture Documents
A.3.4.5
Data types
x
Repetition factor
x
DB number
x
x
5HSHWLWLRQIDFWRU
'%QXPEHURU
%\WH
%\WH
0HPRU\DUHDEEE %\WH
The repetition factor identifies a quantity of the indicated data type to be transferred
by the parameter type ANY. This means you can specify a data area and also use
arrays and structures in conjunction with the parameter type ANY. STEP 7
identifies arrays and structures as a number (with the help of the repetition factor)
of data types. If, for example, 10 words are to be transferred, the value 10 must be
entered for the repetition factor and the value 04 must be entered for the data type.
The address is stored in the format Byte.Bit where the byte address is stored in bits
0 to 2 of byte 7, in bits 0 to 7 of byte 8, and in bits 3 to 7 of byte 9. The bit address
is stored in bits 0 to 2 of byte 9.
With a null pointer of the type NIL all bytes from byte 1 are assigned 0.
A-58
Appendix
The following tables show the coding of the data types or of the memory areas for
the parameter type ANY.
Coding of the Data Types
Hexadecimal Code
Data Type
Description
b#16#00
NIL
Null pointer
b#16#01
BOOL
Bits
b#16#02
BYTE
Bytes (8 bits)
b#16#03
CHAR
Characters (8 bits)
b#16#04
WORD
b#16#05
INT
B#16#06
DWORD
b#16#07
DINT
b#16#08
REAL
b#16#09
DATE
Date
b#16#0A
TIME_OF_DAY (TOD)
Time of day
b#16#0B
TIME
Time
b#16#0C
S5TIME
b#16#0E
b#16#13
STRING
String
Area
Description
b#16#81
Input area
b#16#82
Output area
b#16#83
b#16#84
DB
Data block
b#16#85
DI
b#16#86
b#16#87
A-59
Appendix
'DWDIURPSDUDPHWHUW\SHVWLPHUVFRXQWHUVEORFNV
%\WH
KIRU6
'DWDW\SH
%\WH
%\WH
5HSHWLWLRQIDFWRU
%\WH
%\WH
'%QXPEHURU
%\WH
%\WH
'DWDW\SH %\WH
%\WH
1XPEHURIWLPHUFRXQWHURUEORFN
%\WH
The following table shows the coding of the data types for the parameter type ANY
for parameter types.
Hexadecimal Code
A-60
Data Type
Description
b#16#17
BLOCK_FB
FB number
b#16#18
BLOCK_FC
FC number
b#16#19
BLOCK_DB
DB number
b#16#1A
BLOCK_SDB
SDB number
b#16#1C
COUNTER
Counter number
b#16#1D
TIMER
Timer number