Download Print this page

Precautions On File Control - Mitsubishi MELSEC Q Series Reference Manual

With melsec communication protocol
Hide thumbs Also See for MELSEC Q Series:

Advertisement

3.8.2 Precautions on file control

3 - 176
3 WHEN COMMUNICATING USING THE QnA COMPATIBLE 3E/3C/4C FRAMES OR 4E FRAME
4) When a file close instruction is issued for a designated file, the normal
closing and forced closing differ as follows.
• Normal close
This option does not close files that are opened by other modules
and devices.
When a file close is requested, it is abnormally completed.
• Forced close -1
This option closes all the files opened by other same module/device.
( 1)
• Forced close -2
This option closes all the files currently open.( 1)
1 Designate these options to close a file currently open from
modules/devices other than the one that opened the file when
the module/device that opened the file cannot close it because of
problems, etc.
(x)
Open mode: For Q/LCPU files
This flag is used to designate whether the designated file is opened for
reading or writing.
1) Data communication in ASCII code
The value shown below is converted to a 4-digit (hexadecimal) ASCII
code and sequentially transmitted beginning from the most significant
digit "0".
2) Data communication in binary code
The 2-byte value shown below is transmitted from the low byte (L: bits
0 to 7).
3)
The values and options that can be designated for the open mode are
as follows; other values cannot be designated.
Designated value
0000
H
0100
H
The following explains the notes when controlling files of the Q/LCPU or QnACPU.
(1) The files read from the Q/L/QnACPU are used for storage on an external device
side.
The external device cannot edit the contents of a file read from the Q/L/QnACPU.
(2) When the data of the entire file size cannot be read/written in a single
communication, use several communications to read/write the data.
The file size can be verified using the following functions.
Function
Read file information list function
File search (Reading file presence)
Designated contents
Open for read
Open the target file for reading data.
Open for write
Open the target file for writing data.
For Q/LCPU
Section 3.8.5
Section 3.8.6
Processing
Reference
For QnACPU
Section 3.8.16
Section 3.8.17
3 - 176

Hide quick links:

Advertisement

loading