Explanation
1.
This instruction reads data from the control register in an extension module. All registers are listed and detailed in
the AS Series Module Manual.
2.
The value in m
must be between 0–16. Zero represents the CPU module, and 1–16 represent the extension
1
modules.
3.
The operand m
represents the number of the right-side extension modules that are connected to the CPU module
2
or to the remote modules. The first device is number 1, the second device is number 2 and so on. Any types of
connected modules are counted and up to 32 devices can be connected.
4.
The operand m
specifies the control register number.
3
5.
The FROM instruction sets D
Additional remarks below for more information about the error codes. When the instruction is not executed, D
does not contain an error code.
6.
The operand n must be between 1–8.
7.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
Example
When X0.0 is switched from OFF to ON, the instruction reads the data stored in CR#2 from the right side of the first
module and stores the data in D100. If no error occurs, the code in D110 is 16#0000.
Additional remarks
1.
If the values in m
and m
1
ON, and the error code in SR0 is 16#2003.
2.
If D
to D
+n-1 exceed the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is
1
1
16#2003.
3.
If the value in n exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the
error code in SR0 is 16#200B.
to 0. When an error occurs, the instruction does not set D
2
exceed their range, an operation error occurs, the instruction is not executed, SM0 is
2
Cha p ter 6 App l ied Ins truc tio ns
to 0. Refer to the
2
2
6_
6-429