567
QDRSET, QDRSETP
1
2
3
4
4
6
7
8
7.14 File register switching instructions
7.14.2 QDRSET, QDRSETP
Program Example
(1) The following program compares R0 of block No. 0 and R0 of block No. 1.
[Ladder Mode]
[List Mode]
[Operation]
: Character string data of the drive No./file name in which the file register is set, or head number of the devices where the character string data is stored
(character string)
7.14.2 QDRSET, QDRSETP F ile setting for file registe r
7.14.2
QDRSET, QDRSETP
• Universal model QCPU: Models other than Q00UJCPU
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– ––
Designates block No. 0
Executes reading R0 of block No.0
Designates block No. 1
Executes reading R0 of block No.1
Compares the read values
Step Instruction Device
Y41 turns ON since D0<D1
756
Block No. 0
R3
R1
R2
R0
R4
R5
-7981
5001
128
-3216
9610
0
Block No. 1
R3
R1
R2
R0
R4
R5
3911
9330
-1762
756
-5
-3781
D0 D1
-3216
LCPU
Basic
Process
High
performance
Redundant
Universal
Ver.
QDRSET
QDRSETP
Command
Command
QDRSET
QDRSETP
S
S
S
S