7 APPLICATION INSTRUCTIONS
7.27 Module Access Instructions
1049
7
Writing 1-word/2-word data to a module (16-bit specification)
TO(P), DTO(P)
• TO(P): These instructions write the n points of data from the specified device to the buffer memory in the module/host CPU
module.
• DTO(P): These instructions write the n
2 points of data from the specified device to the buffer memory in the module/host
CPU module.
■
Execution condition
Setting data
■
Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
Ladder
ST
ENO:=TO(EN,U/H,s1,s2,n);
ENO:=TOP(EN,U/H,s1,s2,n);
ENO:=DTO(EN,U/H,s1,s2,n);
ENO:=DTOP(EN,U/H,s1,s2,n);
FBD/LD
Instruction
Execution condition
TO
DTO
TOP
DTOP
Operand
Description
Range
Data type
Data type (label)
(U/H)
Start I/O number (first three digits in four-digit
hexadecimal representation) of a module or CPU
module
0H to FFH, 3E0H to 3E3H
16-bit unsigned binary
ANY16
(s1)
Start address of buffer memory or CPU built-in
memory to which data is to be written
0 to 65535
16-bit unsigned binary
ANY16
(s2)
TO(P)
Write data or the start device where the write
data is stored
-32768 to 32767
16-bit signed binary
ANY16
DTO(P)
-2147483648 to 2147483647
32-bit signed binary
ANY32
(n)
Number of write data
0 to 65535
16-bit unsigned binary
ANY16
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
RnCPU RnENCPU
RnSFCPU RnSFCPU
RnPCPU
RnPCPU
(Standard)
(Safety)
(Redundant)
(Process)
(U/H) (s1)
(s2)
(n)
EN
ENO
U/H
s1
s2
n
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......