Chapter 3. Program Data
GFK-2950C
February 2018
59
BOOL arrays can be used as parameters to an instruction instead of variables of other data types.
The array must be of sufficient length to replace the given data type. For example, instead of using a
16-bit INT variable, you could use a BOOL array of length 16 or more.
The following conditions must be met:
▪
The BOOL array must be byte-aligned, that is, the reference address of the first element of the
BOOL array must be 8n + 1, where n = 0, 1, 2, 3, and so on. For example, %M00033 is byte-
aligned, because 33 = (8 × 4) + 1.
▪
The parameter in question must support discrete memory reference addresses.
▪
The instruction in question must not have a Length parameter. (The Length parameter is
displayed as
??
in the LD editor until a value has been assigned.)
▪
The data type to be replaced with a BOOL array must be one of the following:
Data Type
Minimum Length
BYTE
8
INT, UINT, WORD
16
DINT, DWORD, REAL 32
REAL
64
▪
Excess bits are ignored. For example, if you use a BOOL array of length 12 instead of an 8-bit
BYTE, the last four bits of the BOOL array are ignored.
Summary of Contents for PACSystems RX7i
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451...