Mitsubishi Electric MELSEC-Q/L Programming Manual page 783

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

Advertisement

Setting
Meaning
data
(D1)
Bit device that turned ON at the completion of the processing. ((D1)+1 is also turned ON at error completion.)
Device
Item
(D1)
Completion
signal
(D1)+1
Error
completion
signal
*3 Indicates the range applicable for the Universal model QCPU, LCPU.
Precautions
• For only QCPU, only the ATA card drive (2) can be set as (S0) (drive designation). Note that when the Flash card is loaded,
the SP.FWRITE instruction cannot be used to perform writing. The SRAM card, standard RAM or standard ROM drive
cannot be set. For the High-speed Universal model QCPU and LCPU, only the SD memory card drive (2) can be set for
(S0) (drive designation).
• For CSV setting, the data written are decimal values.
Ex.
Character "A" (41H)  "65" is written.
Handling range: -32768 to 32767
• For binary write, the word-specified file position setting range is 00000000H to 7FFFFFFFH and FFFFFFFFH.
• For the LCPU, this instruction cannot be executed while SM606 (SD memory card forced disable instruction) is ON. If the
instruction is executed, the command will be ignored.
Processing details
• The designated number of data is written to the designated file. Set the execution/completion type in the control data to
designate whether to write binary data without any conversion or to convert binary data into CSV format data before writing
it. (For QCPU, writing is only supported for ATA cards. For LCPU, it is only supported for SD memory cards.)
• The execution completion bit device ((D1)) is automatically turned ON at the END processing after the completion of the
instruction is detected. The bit device is turned OFF at the execution of the END instruction in the next scan. Use this bit
device as the execution completion flag for the SP.FWRITE instruction.
• When this instruction is completed abnormally, the error completion device ((D1)+1) is turned ON/OFF in synchronization with the processing complete ((D1))
device. Use this device as the error completion flag for this instruction.
• SM721 is turned ON during the execution of the instruction. This instruction cannot be executed while SM721 is ON. (If an attempt is made, no processing is
performed.)
• When an error is detected at the execution of the instruction (before SM721 is turned ON), the processing complete device (D1), the error completion device
((D1)+1), and SM721 are not turned ON.
• Be sure to use in units of words to designate the No. of request write data (S2) and the file position ((D0)+4 and (D0)+5).
Contents/setting data
Indicates the completion of the processing.
ON: Completed
OFF: Not completed
Indicates whether the processing is normally
completed or abnormally completed.
ON: Error completion
OFF: Normal completion
Setting range
Set by
Data type
Bit
Setting range
Set by
System
7 APPLICATION INSTRUCTIONS
7.19 Other Instructions
7
781

Advertisement

Table of Contents
loading

Table of Contents