26: S
CRIPT
26-16
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Data comparison and copy
Offset
Function
Format
Description
Data
comparison
MEMCMP(
,
,
)
: First device of comparison target 1
: First device of comparison target 2
: Range of comparison (in words)
Values of device
for
words and values of device
for words
are
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.
Data copy
MEMCPY(
,
,
)
: First device of copy source
: First 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(
,
);
: First device of copy target (bit device)
: First 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(
,
);
: First device of copy target (word device)
: First 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(
,
);
: First device of copy target (bit device)
: First 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 addressing
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.
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...