7-164
TO(P),DTO(P)
Program Example
(1) The following program sets the CH1 and CH2 of the Q68ADV mounted at the I/O numbers
040 to 04F to the "A/D conversion" mode, when X0 is turned ON.
(Writes 3 into the buffer memory address 0.)
[Ladder Mode] [List Mode]
(2) The following program sets the X-axis current value of the AD71 mounted at I/O numbers
040 to 05F to 0 when X0 is turned ON. (Writes 0 to addresses 41, 42 of the buffer memory.)
[Ladder Mode] [List Mode]
Remark
1. The value of n1 is specified by the upper 3 digits of hexadecimal 4-digit
representation of the head I/O number of the slot in which an intelligent
function module is mounted.
QCPU
LCPU
2. QCPU and LCPU establishe the automatic interlock of the TO/DTO
instructions.
Step
Instruction
Device
Step
Instruction
Device
Power
supply
module
CPU QX10 QX10QX10 QX10
Q68
ADV
QY41
P
QY10 QY10
0000
H 0010H 0020H 0030H 0040H 0050H 0070H 0080H
Specify the head I/O number to be read
by K4 or H4.
Head I/O number configured in
the I/O assignment setting
Power
supply
module
CPU Built-in
I/0
Built-in
CC-Link
LX40
C6
LX40
C6
LX40
C6
LX40
C6
L60
AD4
LY10
R2
LY10
R2
LY10
R2
0000
H 0010H 0030H 0040H 0050H 0060H 0070H 0090H 00A0H 00B0H
CPU module
(L26CPU-BT)
Specify the head I/O number to be read
by K6 or H6.
Head I/O number
configured in the
I/O assignment
setting