IDEC MICROSmart FC6A Series Ladder Programming Manual page 518

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

26: S
CRIPT
Data comparison and copy
Function
Data
MEMCMP(
comparison
Data copy
MEMCPY(
Bit device
(1 word length)
to
BITS2BITS(
Bit device
(1 word length)
Bit device
(1 word length)
BITS2WORD(
to
Word device
Word device
to
WORD2BITS(
Bit device
(1 word length)
Offset
Function
Indirect addressing
OFFSET(
26-16
Format
: First device of comparison target 1
: First device of comparison target 2
: Range of comparison (in words)
Values of device
compared.
,
,
)
1 is returned if all the values of devices match, and 0 is returned if any of the value does
not match.
• Specified range is compared in word unit, and result is returned.
• Up to 64 words can be compared.
: First device of copy source
: First device of copy target
: Range of copy (in words)
,
,
)
Values from
• Specified range is compared in word unit, and result is returned.
• Up to 64 words can be copied.
: First device of copy target (bit device)
: First device of copy source (bit device)
,
);
Copies one word worth of data from
• 16 bits are processed from the starting bit device as one word.
: First device of copy target (word device)
: First device of copy source (bit device)
,
);
Copies one word worth of data from
• 16 bits are processed from the starting bit device as one word.
: First device of copy target (bit device)
: First device of copy source (word device)
,
);
Copies one word worth of data from
• 16 bits are processed from the starting bit device as one word.
Format
: Reference device
: Device to store the offset value (0 to 32767)
Specifies the device at
Indirect read
Specify OFFSET function to the right of the assignment statement.
Format example:
Operation:
Indirect write
,
)
Specify OFFSET function to the left of the assignment statement.
Format example:
Operation:
FC6A S
MICROS
L
ERIES
MART
for
words and values of device
for
words are copied to
words from
C = OFFSET(
Stores the value of device at
OFFSET(
Stores the value of
.
• 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.
P
M
ADDER
ROGRAMMING
ANUAL
Description
for words
for
words respectively.
to
.
to
.
to
.
Description
.
,
)=
words from
,
) =
into the device at
FC9Y-B1726
are
into
.
words from

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents