Hide thumbs Also See for S7-1200:
Table of Contents
SRCBLK and DSTBLK parameter restrictions:
● A data block must have been previously created before it can be referenced.
● The length of a VARIANT pointer of type BOOL must be divisible by 8.
● The length of a VARIANT pointer of type STRING must be the same in the source and
Recipes and machine setup information
You can use the READ_DBL and WRIT_DBL instructions to manage recipes or machine
setup information. This essentially becomes another method of achieving retentive data for
values that do not change often, although you would want to limit the number of writes to
prevent wearing out the flash prematurely. This effectively allows you to increase the amount
of retentive memory beyond that supported for the normal power-down retentive data, at
least for values that do not change often. You could save recipe information or machine-
setup information from work memory to load memory using the WRIT_DBL instruction, and
you could retrieve such information from load memory into work memory using the
READ_DBL instruction.
Table 8- 177 Condition codes
RET_VAL
Description
(W#16#...)
0000
No error
0081
Warning: that the source area is smaller than the destination area. The source data is copied
completely with the extra bytes in the destination area unchanged.
7000
Call with REQ = 0: BUSY = 0
7001
First call with REQ = 1 (working): BUSY = 1
7002
N
call (working): BUSY = 1
th
8051
Data block type error
8081
The source area is larger than the destination area. The destination area is completely filled and the
remaining bytes of the source are ignored.
8251
Source data block type error
82B1
Missing source data block
82C0
The source DB is being edited by another statement or a communication function.
8551
Destination data block type error
85B1
Missing destination data block
85C0
The destination DB is being edited by another statement or a communication function.
80C3
More than 50 READ_DBL or 50 WRIT_DBL statements are currently queued for execution.
See also Recipes (Page 369)
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
destination pointers.
Extended instructions
8.8 Data block control
403
Table of Contents
loading

Table of Contents