7-320
7.14 Switch Instructions
7.14.3 Setting files for comments
QCDSET
Program Example
In the following program, the object file of the comments are switched to the file names
ABC.QCD in the drive number 1 when X0 turns ON, and to the file names DEF.QCD in the drive
number 3 when X1 turns ON.
[Structured ladder]
[ST]
QCDSETP(X0,"1:ABC");
QCDSETP(X1,"3:DEF");
If the file name is changed by the QCDSET(P) instruction, the file name returns to
the name specified by the parameter when the CPU module is switched from
STOP to RUN.
To maintain the file name even after the CPU mode is changed from STOP to
RUN, execute the QCDSET(P) instruction with the SM402 special relay, which
turns ON during one scan when the CPU enters from STOP to RUN mode.
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......