Write Device Data To Buffer Memory: To - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Write device data to buffer memory: TO

Format
TO(D1), (D2), (S), (n)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
device
(D1)
(D2)
(S)
(n)
■Description, data type of result
Setting data
Description
(D1)
First I/O No. of the module (000H to FF0H, 3E00H to 3E30H)
(D2)
First address of the buffer memory which writes data. (0 to end of target module buffer memory)
(S)
Start device No. which writing data are stored.
(n)
Number of words to be written (1 to within range of target module buffer memory)
Processing details
• (n) words of data from the device specified with (S) are written to the address specified with (D2) and after of the buffer
memory in the specified with (D1).
(D1)
Intelligent
function module
buffer memory
(D2)
H0000
H0005
H000A
H0000
Writing device data can be performed with the module access device (U\G).
(Example)
Writing 2 words from #0 to buffer memory address 0H of intelligent function module (start I/O number: 010H).
Refer to the following for details of module access device.
MELSEC iQ-R Motion Controller Programming Manual (Common)
• First I/O No. of the module set by [System Parameter]  [I/O Assignment Setting] in GX Works3 is specified by (D1). (D1)
sets 20H by the system configuration when a TO instruction is executed in the D/A conversion module (R64DA).
R04CPU R32MTCPU
First
I/O No.
No. : 3E00H
No. : 3E10H
4 OPERATION CONTROL PROGRAMS
268
4.19 Other Instructions
Number of basic steps
14
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
Device memory
Write the data
(S)
of a part for
(n) words
U1\G0L = #0L
RX40C7
R64AD
First
First
First
I/O No.
I/O No.
I/O No.
No. : 00H
No. : 10H
Usable steps
F/FS
Constant
16-bit
32-bit
integer
integer
type
type
(K/H)
(K/H, L)
H0000
H0005
H000A
H0000
R64DA
First
I/O No.
No. : 20H
G
Calculation
Bit
expression
conditional
64-bit
expression
floating
point
type (K)
Comparison
conditional
expression
Data type of result

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents