13: S
CRIPTS
13-14 S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
Offset
Data copy
MEMCPY( , , )
: Starting device of copy source
: Starting device of copy target
: Range of copy (in words)
Values from for words are copied to for words respectively.
• Specified range is compared in word unit, and result is returned.
• Up to 64 words can be copied.
Bit device
(1 word length)
to
Bit device
(1 word length)
BITS2BITS( , );
: Starting device of copy target (bit device)
: Starting device of copy source (bit device)
Copies one word worth of data from to .
• 16 bits are processed from the starting bit device as one word.
Bit device
(1 word length)
to
Word device
BITS2WORD( , );
: Starting device of copy target (word device)
: Starting device of copy source (bit device)
Copies one word worth of data from to .
• 16 bits are processed from the starting bit device as one word.
Word device
to
Bit device
(1 word length)
WORD2BITS( , );
: Starting device of copy target (bit device)
: Starting device of copy source (word device)
Copies one word worth of data from to .
• 16 bits are processed from the starting bit device as one word.
Function Format Description
Indirect
specification
OFFSET( , )
: Reference device
: Device to store the offset value (0 to 32767)
Specifies the device at words from .
Indirect read
Specify OFFSET function to the right of the assignment statement.
Format example:
C = OFFSET( , )=
Operation: Stores the value of device at words from into
.
Indirect write
Specify OFFSET function to the left of the assignment statement.
Format example:
OFFSET( , ) =
Operation: Stores the value of into the device at words from
.
• Store the value appropriate for the data type as the offset value.
For example, when the data type is I (integer), store the offset value of I (integer)
into the device.
Function Format Description