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?
How do you copy memory areas in STEP 7 (TIA Portal) V11?
Part number:

Description
Instead of the ANY pointer and the "Block move" function (in STEP 7 V5.x) you can use the "MOVE_BLK" (copy area) instruction in STEP 7 (TIA Portal) V11. It is not possible to use the ANY pointers in STEP 7 V11. If you want to copy the contents of one data block (source area) to another data block (target area), you must create the data blocks with variables of the "ARRAY" data type. Using the ARRAY variables and the "MOVE_BLK" instruction, you can copy parts or the complete memory area from the data block. Unlike with the ANY pointer as in STEP 7 V5.x, you use the "COUNT" parameter to define the number of elements from which you wish to copy data from the source area into the target area.

Note
More information on the topic of "Pointer Addressing" is available in Entry ID: 42603286.


Fig. 01

Figures 01 and 02 show an example of data transfer from DB1 to DB2 between the two variables of data type "Array [1 ... 16] of Byte".

  • With the index specification [5] of the array variables ("Data_block_1".Array_DB1[5]) at the "IN" parameter, the 5th byte is marked in the source area of DB1.
  • With the index specification [10] of the array variables ("Data_block_2".Array_DB2[10]) at the "OUT" parameter, the 10th byte is marked in the source area of DB2.
  • If the "Count_01" variable at the "COUNT" parameter has the value "5",
    • The contents of the memory areas from Byte 5 to Byte 9 are copied from DB1
    • into the memory areas from Byte 10 to Byte 14 in DB2.


Fig. 02

The "MOVE_BLK" command is located in the block folder in the "Instructions" palette:

  • Either in the "Instructions > Move" folder or
  • You drag-and-drop the "Empty box" from the "Instructions > General" folder into your network. Move the cursor on the yellow triangle in the empty box until the symbol for opening the drop-down list appears and from the drop-down list you select the "MOVE_BLK" command.

More information is available in the STEP 7 (TIA Portal) Online Help under "MOVE_BLK: Copy area".

Creation environment
The screens in this FAQ were created with STEP 7 (TIA Portal) V11.

 Entry ID:42603881   Date:2012-04-16 
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