1058
7 APPLICATION INSTRUCTIONS
7.27 Module Access Instructions
Writing 1-word/2-word data to a module (32-bit specification)
TOD(P), DTOD(P)
• TOD(P): These instructions write the n points of data from the specified device to the buffer memory in the module/host
CPU module.
• DTOD(P): These instructions write the n2 points of data from the specified device to the buffer memory in the module/host
CPU module.
■Execution condition
■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:=TOD(EN,U/H,s1,s2,n);
ENO:=TODP(EN,U/H,s1,s2,n);
ENO:=DTOD(EN,U/H,s1,s2,n);
ENO:=DTODP(EN,U/H,s1,s2,n);
FBD/LD
Instruction Execution condition
TOD
DTOD
TODP
DTODP
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) Buffer memory to which the data is written or the
start device where the start address of CPU
memory is stored
0 to 4294967295 32-bit unsigned binary ANY32
(s2) TOD(P) Write data or the start device where the write
data is stored
-32768 to 32767 16-bit signed binary ANY16
*1
DTOD(P) -2147483648 to 2147483647 32-bit signed binary ANY32
*1
(n) Number of write data 0 to 4294967295 32-bit unsigned binary ANY32
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)