ProSoft Technology ProSoft i-View User Manual
Page 50

Data Source Files
ProSoft i-View ♦ Mobile Process Monitoring and Control Application
User Manual
Version 2.0.2
Page 50 of 106
ProSoft Technology, Inc.
September 29, 2011
Example :
"This is a literal string”
"Дискретные датчики"
"
ピーエルシーのアラーム表示"
Arrays.
Arrays are-indexed collections of objects. Each element in an array is associated
with and referred to by an index.
Array indexing starts at 0. A negative index is assumed relative to the end of the
array, that is, an index of -1 indicates the last element of the array, -2 is the next
to last element in the array, and so on.
Arrays can hold any objects such as Numbers, Strings or other Arrays. Arrays
can be read from or written to PLC or can be created on demand in expressions
by just enclosing their elements in square brackets.
Example:
["element at index 0", 123.4, [ 33, temperature]]
The above expression represents an array of three elements.
At index 0 we have a literal string: "element at index 0".
At index 1 we have a numeric value: 123,4.
At index 2 we have an array of 2 elements with the number 33 and the variable ‘temperature’ as
their components
Elements of the referred array can be accessed by index as shown next:
["element at index 0", 123.4, [ 33, temperature]][1] would return 123.4
["element at index 0", 123.4, [ 33, temperature]][-3] would return "element at index 0"
["element at index 0", 123.4, [ 33, temperature]][-1][0] would return 33
["element at index 0", 123.4, [ 33, temperature]][2][1] would return the value of temperature