8: A
DVANCED
I
NSTRUCTIONS
R
EFERENCE
8-10
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
Double-word Devices in Data Registers
When the double-word data type is selected for the source or destination device, the data is loaded from or stored to
two consecutive data registers. The order of the two devices depends on the device type.
When a data register, timer, or counter is selected as a double-word device, the high-word data is loaded from or stored
to the first device selected. The low-word data is loaded from or stored to the subsequent device.
Example:
When data register D10 is designated as a double-word source device and data register D20 is designated as a
double-word destination device, the data is loaded from or stored to two consecutive data registers as illustrated below.
305419896
Double-word Data
High Word D10
(12345678h)
Source Device
4660
(1234h)
Low Word D11
22136
(5678h)
High Word D20
4660
(1234h)
Low Word D21
22136
(5678h)
Destination Device
Note:
The above example is the default setting of the FC5A MicroSmart. The order of two devices can be selected on CPU modules
with system program version 110 or higher. See page 5-46.
Discontinuity of Device Areas
Each device area is discrete and does not continue, for example, from input to output or from output to internal relay. In
addition, special internal relays M8000 through M8157 (all-in-one type CPU) or M8317 (slim type CPU) are in a separate
area from internal relays M0 through M2557. Data registers D0 through D1999, expansion data registers D2000 through
D7999 (slim type CPU only), and special data registers D8000 through D8199 (all-in-one type CPU) or D8499 (slim type
CPU) are in separate areas and do not continue with each other.
The internal relay ends at M2557. Since the MOV (move) instruction reads 16
internal relays, the last internal relay exceeds the valid range, resulting in a user
program syntax error.
M8125
REP
S1 –
M2550
D1 –
D0
MOV(W)
This program results in a user program syntax error. The destination of
the DIV (division) instruction requires two data registers D1999 and
D2000. Since D2000 exceeds the valid range, a user program syntax
error occurs.
I0
REP
S1 –
D100
S2 –
D200
DIV(W)
D1 –
D1999
Advanced instructions execute operation only on the available devices in the valid area. If a user program syntax error is
found during programming, WindLDR rejects the program instruction and shows an error message.
The MOV (move) instruction sets data of data register D0 to 16 outputs Q610
through Q627 in the first repeat cycle. The destination of the second cycle is the
next 16 outputs Q630 through Q647, which are invalid, resulting in a user pro-
gram syntax error.
For details about repeat operations of each advanced instruction, see the fol-
lowing chapters.
M8125
REP
2
S1 –
D0
D1 R
Q610
MOV(W)
NOP (No Operation)
No operation is executed by the NOP instruction.
The NOP instruction may serve as a place holder. Another use would be to add a delay to the CPU scan time, in
order to simulate communication with a machine or application, for debugging purposes.
The NOP instruction does not require an input and device.
NOP
Details of all other advanced instructions are described in the following chapters.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]