0% found this document useful (0 votes)
22 views2 pages

Format of The Parameter Type ANY

Siatic Manager, data type ANY

Uploaded by

DeFacto76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

Format of The Parameter Type ANY

Siatic Manager, data type ANY

Uploaded by

DeFacto76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Format of the Parameter Type ANY Page 1 of 2

Format of the Parameter Type ANY


STEP 7 stores the parameter type ANY in 10 bytes. When constructing a parameter of the type ANY, you
must ensure that all 10 bytes are occupied because the called block evaluates the whole contents of the
parameter. If, for example, you specify a DB number in byte 4, you must also explicitly specify the memory
area in byte 6.
STEP 7 manages the data of elementary and complex data types differently from the data for parameter
types.
ANY Format for Data Types
For elementary and complex data types STEP 7 stores the following data:
l Data types
l Repetition factor
l DB number
l Memory area in which the information is stored
l Start address of the data

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.
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 Words (16 bits)
b#16#05 INT Integers (16 bits)
B#16#06 DWORD Words (32 bits)
b#16#07 DINT Double integers (32 bits)
b#16#08 REAL Floating-point numbers (32 bits)
b#16#09 DATE Date
b#16#0A TIME_OF_DAY (TOD) Time of day

mk:@MSITStore:C:\Program%20Files%20(x86)\Siemens\Step7\S7bin\s7bashdB.ch... 2024-07-15
Format of the Parameter Type ANY Page 2 of 2

b#16#0B TIME Time


b#16#0C S5TIME Data type S5TIME
b#16#0E DATE_AND_TIME (DT) Date and time (64 bits)
b#16#13 STRING String

Coding of the Memory Areas


Hexadecimal Code Area Description
b#16#80 P I/O area
b#16#81 I Input area
b#16#82 Q Output area
b#16#83 M Bit memory area
b#16#84 DB Data block
b#16#85 DI Instance data block
b#16#86 L Local data (L stack)
b#16#87 V Previous local data

ANY Format for Parameter Types


For parameter types STEP 7 stores the data type and the address of the parameters. The repetition factor
is always 1. Bytes 4, 5, and 7 are always 0. Bytes 8 and 9 indicate the number of the timer, counter, or
block.

The following table shows the coding of the data types for the parameter type ANY for parameter types.

Hexadecimal Code 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

mk:@MSITStore:C:\Program%20Files%20(x86)\Siemens\Step7\S7bin\s7bashdB.ch... 2024-07-15

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy