100BBasic instructions
7.6 Move
S7-1200 Programmable controller
198
System Manual, 11/2011, A5E02486680-05
The enable output ENO = 0, if one of the following conditions applies:
●
The EN input has signal state "0"
●
The array element specified at the INDEX parameter is not defined in the array
referenced at MEMBER parameter
●
Errors such as an overflow occur during processing
Accessing data by array indexing
To access elements of an array with a variable, simply use the variable as an array index in
your program logic. For example, the network below sets an output based on the Boolean
value of an array of Booleans in "Data_block_1" referenced by the PLC tag "Index".
The logic with the variable array index is equivalent to the former method using the
FieldRead instruction:
FieldWrite and FieldRead instructions can be replaced with variable array indexing logic.
SCL has no FieldRead or FieldWrite instructions, but supports indirect addressing of an
array with a variable:
#Tag_1 := "Data_block_1".Bool_Array[#Index];