Logo  
企业邮局QQ快速登录
浏览文档 当前位置:广州若恒 >> 支持中心 >> 网上课堂 >> 可编程控制器 >> S7-1200 >> 浏览文档
What alternatives are there to BLKMOV (Block move with STEP 7 V5.x) and the ANY pointer for copying memory areas in STEP 7 Basic V10.5?
What alternatives are there to BLKMOV (Block move with STEP 7 V5.x) and the ANY pointer for copying memory areas in STEP 7 Basic V10.5?
核心提示:You must use the MOVE_BLK (copy block) instruction to copy memory areas in STEP 7 Basic V10.5. It is not possible to use ANY pointers as in STEP 7 V5.x. 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.

Description
You must use the "MOVE_BLK" (copy block) instruction to copy memory areas in STEP 7 Basic V10.5. It is not possible to use ANY pointers as in STEP 7 V5.x. 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 Basic Online Help under "MOVE_BLK: Move block".

Creation environment
The pictures in this FAQ were created with STEP 7 Basic version V10.5.


Tags:BLKMOV STEP 7 Basic

0% (0)
0% (10)
发表评论
用户评论
最新文档
·What alternatives are there to 
·Which data type do you need in 
·How can you reset the IP addre 
·How can you download to a netw 
·Which organization blocks can  
推荐文档
视觉焦点
What alternatives are there to BLKMOV (Block move with STEP 7 V5.x) and the ANY pointer for copying memory areas in STEP 7 Basic V10.5?
Which data type do you need in STEP 7 V10.5 for parameterizing an ANY pointer for a block parameter?
  2880306702
  sales@gzrh.com   在线发送
微信扫一扫
  技术支持
  技术论坛
  Support@gzrh.com   在线发送
  项目洽谈
  Support@gzrh.com   在线发送
  投诉与建议
  gzrh@gzrh.com   在线发送
  订阅精彩内容
  填写您的邮件地址,订阅我们的精彩内容:
  联系我们
销售热线:020-85520027/85520287
项目洽谈:020-85533142/85533145
联系传真:020-85520030/85536394
技术热线:020-61087040
咨询邮箱:gzrh@gzrh.com
公司地址:广州市天河区黄埔大道中662号金融城绿地中心509室