Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 900

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• This instruction writes (n1) points of buffer memory starting from (s1) inside the intelligent function module number (U/H) to
(s2) in the CPU module. When (n1) exceeds 64 points, it divides and writes by several scans. (64 points are read in one
scan)
Command
input
WBFM
SM8029
Instruction execution complete flag
SM8328
Instruction non-execution flag
SM8329
Instruction execution abnormal end flag
• When this instruction is finished normally, instruction execution complete flag (SM8029) turns on. When this instruction is
finished abnormally, instruction execution abnormal end flag (SM8329) turns on.
• When this instruction or the RBFM instruction is executed in the same scan, instruction non-execution flag (SM8328) is set
to on, and execution of such an instruction is paused. When execution of the other target instruction is complete, the
paused instruction resumes.
■Related devices
Device
Name
SM8029
Instruction execution complete
SM8328
Instruction non-execution
SM8329
Instruction execution abnormal end
Precautions
• Do not stop the instruction while it is being executed. If driving is stopped, the buffer memory write processing is
suspended, but the data that is already written is stored in (m2) onwards.
• When indexing is executed, the contents of index registers at the beginning of execution are used. Even if the contents of
index registers are changed after the instruction, such changes do not affect the process of the instruction.
• Do not update (change) the contents of (n1) points starting from (s2) while this instruction is executed. If the contents are
updated, the intended data may not be written to the buffer memory areas.
• This instruction cannot be used in FX5 intelligent function modules.
• This instruction cannot be used while a interrupt routine program is being executed.
Operation error
Error code
Description
(SD0/SD8067)
2441H
Communication procedure with module is not completed correctly when this instruction is executed.
2801H
Module with the module number specified by (U/H) does not exist, or the specified module is not supported.
2823H
The number of transfer points specified by (n1) and the buffer memory number specified by (s1) is beyond the buffer memory range.
2820H
The number of transfer points specified by (n1) and the device number specified by (s2) is beyond the specified device range.
3580H
An instruction that cannot be used in an interrupt program is used.
17 DIVIDED DATA READ/WRITE FROM/TO BFM INSTRUCTION
898
17.2 Divided BFM Write
(U/H)
(s1)
(s2)
(n1)
M
M
M
Description
Turns ON when an instruction is finished normally.
Turns ON when the RBFM instruction or WBFM instruction in another step is executed for
the same module number.
Turns ON when an instruction is finished abnormally.
CPU module
(n2)
Write
(s2)
(s2)+(n1)-1
Module number (U/H)
BFM#(s1)
BFM#((s1)+(n1)-1)

Hide quick links:

Advertisement

loading