File Setting For Comments - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

File setting for comments

QCDSET(P)
Basic
High
Process
Redundant Universal
performance
QCDSET
QCDSETP
(S): Character string data of the drive No./file name in which the comment file is set, or head number of the devices where the character string data is stored
(character string)
Setting
Internal device
data
Bit
Word
(S)
Processing details
• Changes the file register file name used in the program to the file name being stored at the device designated by (S). After
the file name change, comment data being used by the sequence program perform processing in relation to the comment
data of the file name after the change.
Ex.
When switching from Drive No. 1/File name B to Drive No. 4/File name B
Drive 1
Drive 1
File name
File name
A
B
(
File name of the
presently used
comment file
• Drive number can be designated from 1 to 4. (The drive number cannot be designated as drive 0 (program memory).) Note
that available drives vary depending on the CPU module used. Refer to the manual of the CPU module and check the
drives that can be specified.
• It is not necessary to designate the extension (.QCD) with the file name.
• A file name setting can be deleted by specifying the NULL code (00H) for the file name.
• File names specified by this instruction will be given priority even if a drive number and file name have been specified in the
parameters.
If the file name is changed with the QCDSET 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
instruction with the SM402 special relay, which turns ON during one scan when the CPU enters from STOP to
RUN mode.
LCPU
Command
Command
R, ZR
J\
Bit
Processing executed to file registers
Drive 1
File name
File name
C
)
U\G
Word
Setting of a drive number
S
and file name
Drive 2
Drive 4
File name
A
A
7.14 File Register Switching Instructions
S
QCDSET
QCDSETP
S
Zn
Constant
Others
$
Drive 4
File name
B
(
)
File name of file
register used after
the execution of
QCDSET instruction
7 APPLICATION INSTRUCTIONS
7
681

Advertisement

Table of Contents
loading

Table of Contents