show the entry list
STEP 7 (TIA Portal) -- Creating S7 programs -- Executing operations
How do you filter only the places before and after the decimal point from a real value in STEP 7 (TIA Portal) V11?
How do you calculate the linear values for the y-coordinate of point P in STEP 7 (TIA Portal) V11?
How can you add together physical flow measurements (mass flow rate, for example) to a total value in STEP 7 (TIA Portal) V11?
How do you implement numerical differentiation in STEP 7 (TIA Portal) V11?
How do you convert data types in the TIA Portal for the S7-1200/1500?
How can you convert a hexadecimal number into ASCII characters with STEP 7 (TIA Portal) V11?
How can you determine the bit position of an active bit in a marker word with STEP 7 V11 and monitor a 32-bit field?
How can you delay the output signal in relation to the input signal in STEP 7 (TIA Portal) V11?
In STEP 7 (TIA Portal) V11, how can you scale integer values in real numbers and real values in integer numbers for analog measurements?
How do you copy memory areas in STEP 7 (TIA Portal) V11?
How in STEP 7 V11 can you access the unstructured data types bit-by-bit, byte-by-byte or word-by-word and symbolically?
How do you program the overlapping of tags with the keyword "AT" in the TIA Portal V11?
How do you program a pulse encoder in STEP 7 (TIA Portal)?
How do you program a shift register with the LAD/FBD statements in STEP 7 V5.5 and in V11?
What properties do you have to watch out for in STEP 7 V11 when you are inserting characters into a string with the "INSERT" statement?
S7-1200 CPU 12xx -- Setting up and parameterizing hardware -- Initializing and parameterizing modules
How can the CPU analog inputs of the SIMATIC S7-1200 also measure currents of 0-20mA?
How can you access user-defined web pages of the S7-1200 directly?
How can user-defined web pages and standard web pages be updated automatically in STEP 7 (TIA Portal) V11?
How do you program the "GET" and "PUT" instructions in the user program of the SIMATIC S7-1200 CPU in order to transfer more than 160 bytes of data?
Why must you never remove a memory card when the S7-300/S7-400/S7-1200 CPU is in operation (RUN)?
How in STEP 7 V11 can you access the unstructured data types bit-by-bit, byte-by-byte or word-by-word and symbolically?
How does startup work in an S7-1200?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
How can you prevent data loss of runtime-generated parameters when updating your S7-1200 PLC program?
How can you share runtime-generated parameters between several S7-1200 PLCs with a KTP Basic Panel?
How can you change the IP address of an S7-1200 without using STEP 7 Basic?
How can you delete the IP address and reset your S7-1200 to factory settings using the SIMATIC MC memory card (2MB or 24MB)?
How can you download to a network of several S7-1200 PLCs with the same IP address?
How can you reset the IP address of your S7-1200 PLC using STEP 7 Basic software?
How in STEP 7 V11 can you access the unstructured data types bit-by-bit, byte-by-byte or word-by-word and symbolically?
Part number:

Description
In the case of S7-1200 modules (as from firmware V2.0) you have the option of accessing bit-by-bit the tags of the Byte, Word and DWord data types. For this you need STEP 7 V11+SP1+Update 2 (or higher). The partitioning of a memory area (Byte or Word, for example) into a smaller memory area (Bool, for example) is also called memory slicing. Fig. 01 shows the symbolic bit, byte and word access to operands.


Fig. 01

Using slice access provides you with greater programming efficiency and there is no need for additional definition in the variable declaration.

The example below shows bit-by-bit symbolic slice access. The "x" stand for bit-by-bit access in the word or byte concerned and the number that follows specifies the offset of the bit concerned.


Fig. 02

Fig. 03 shows a sample byte-by-byte slice access. Here, the "b" stands for byte-by-byte access and the number that follows specifies the offset of the byte concerned.


Fig. 03

A "w" stands for word-by-word slice access and the number that follows specifies the offset of the word concerned.


Fig. 04

Keywords
Slice access

 Entry ID:57374718   Date:2012-01-24 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour