Fieldread (Read Field) And Fieldwrite (Write Field) Instructions - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Basic instructions
7.6 Move operations
Table 7- 65
ENO status
ENO
Condition
1
No error
0
Either the source (IN) range or the destination (OUT)
range exceeds the available memory area.
7.6.2

FieldRead (Read field) and FieldWrite (Write field) instructions

Note
STEP 7 V10.5 did not support a variable reference as an array index or multi-dimensional
arrays. The FieldRead and FieldWrite instructions were used to provide variable array index
operations for a one-dimensional array. STEP 7 V11 and greater do support a variable as an
array index and multi-dimensional arrays. FieldRead and FieldWrite are included in STEP 7
V11 and greater for backward compatibility with programs that have used these instructions.
Table 7- 66
FieldRead and FieldWrite instructions
LAD / FBD
For LAD and FBD: Click the "???" and select a data type from the drop-down menu.
1
240
SCL
value :=
member[index];
member[index] :=
value;
Result
All COUNT elements were successfully copied.
Elements that fit are copied. No partial
elements are copied.
Description
FieldRead reads the array element with the index
value INDEX from the array whose first element in
specified by the MEMBER parameter. The value of
the array element is transferred to the location
specified at the VALUE parameter.
WriteField transfers the value at the location specified
by the VALUE parameter to the array whose first
element is specified by the MEMBER parameter. The
value is transferred to the array element whose array
index is specified by the INDEX parameter.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents