Mitsubishi Electric MELSEC iQ-R Series Manual page 14

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

• When this FB creates a CSV file in an SD memory card, a file of the same name, if already exists in the SD memory card,
is replaced with the newly created file.
• If the set value of i_uCHNum (number of channels) is out of range, o_bErr (error completion) turns on and the processing of
the FB is interrupted. In addition, 0100H is stored in o_uErrId (error code). ( Page 15 Error code)
• If the set value of i_udSavePoints (number of save points) is out of the range, o_bErr turns on and the processing of the FB
is interrupted. In addition, 0101H is stored in o_uErrId. ( Page 15 Error code)
• If the character length of the set value of i_snAppendFileName (CSV file name) is out of range, o_bErr turns on and the
processing of the FB is interrupted. In addition, 0102H is stored in o_uErrId. ( Page 15 Error code)
• If the number of points of logging data that is read from the file register exceeds the capacity of the file register (ZR), the
processing of the FB is interrupted. In addition, 0200H is stored in o_uErrId. ( Page 15 Error code)
• If SM606 (SD memory card forced disable instruction) is on when the logging data is stored in a CSV file, the SP.FWRITE
instruction is not processed, resulting in the logging data not being stored. In such a case, o_bErr turns on and the
processing of the FB is interrupted. In addition, 0201H is stored in o_uErrId. ( Page 15 Error code)
• A CPU error occurs in the following cases: when this FB has been executed with no SD memory card inserted into the CPU
module; when the inserted SD memory card has no sufficient free space; or when the number of files stored is exceeded.
For the capacity of SD memory cards and the number of files stored, refer to the following.
 MELSEC iQ-R Module Configuration Manual
• In the event of a CPU error, if the CPU module is in a stop error state, o_bErr and o_uErrId are not updated. In the event of
a CPU error, if the CPU module is in a continuation error state, o_bErr turns on and the error code is stored in o_uErrId.
( Page 15 Error code)
• The operating status (continue or stop) of the CPU module at the time of the failure of access to the SD memory card can
be set with the parameter.
• If i_bEN (execution command) is turned off when o_bOK (normal completion) or o_bErr is off, o_bErr turns on in one scan.
In addition, 0206H is stored in o_uErrId in one scan. ( Page 15 Error code)
• The SP.FWRITE instruction (type 1) is used in this FB. If an error occurs in the SP.FWRITE instruction, o_bErr turns on and
the processing of the FB is interrupted. In addition, the error code for the SP.FWRITE instruction is stored in o_uErrId. (
Page 15 Error code)
2 FILE OPERATION FB
12
2.1 M+FileOperation_SaveLoggingCSV_W_R

Advertisement

Table of Contents
loading

Table of Contents