Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
31 Applied Instructions (Data Transfer 3)
31.2 WBFM / Divided BFM Write
736
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (WBFM)
"n1" word units from the device specified by in the PLC are transferred (written) to buffer memory (BFM)
location No. "m2" in special function unit and block No. "m1". While transferring, "n1" is divided by "n2" so n1/
n2 words (rounded up when there is a remainder) are transferred per scan time.
For the unit number, buffer memory (BFM) number, cautions and program example, refer to
Section 31.1.1.
1) When the instruction is finished normally, the instruction execution complete flag M8029 turns ON. When
the instruction is finished abnormally, the instruction execution abnormally complete flag M8329 turns
ON.
2) When RBFM or WBFM instruction in another step is executed for the same unit number, the instruction
non-execution flag M8328 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
Related instructions
Cautions
1) The instruction is provided in the FX3UC PLC Ver. 2.20 or later.
2) Some restrictions to applicable devices
S1: Except special data register D
Error
An operation error is caused in the following case. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the unit number "m1" does not exist. (Error code: K6708)
Device Name Description
M8029 Instruction execution complete Turns ON when an instruction is finished normally.
M8328 Instruction non-execution
Turns ON when RBFM or WBFM instruction in another step is executed for the same unit
number.
M8329
Instruction execution abnor-
mally complete
Turns ON when an instruction is finished abnormally.
Instruction Error
FROM Read from a special function block
TO Write to a special function block
RBFM Divided BFM write
Instruction execution complete
Command input
M
M8029
M8329
M
Instruction execution abnormally complete
M8328
M
Instruction non-execution
WBFM
EN ENO
m1
m2
s
n1
n2
Unit number
Head BFM number
Number of all buffer memories
(BFM) to be read
Number of points transferred
in one operation cycle
Unit No. "m1"PLC
"n2" points are written in each operation cycle.
Writing is executed in "n1/n2" times.
("n1/n2" is rounded up if it is not an integer.)
Write
*1
*1.
BFM#(m2)
BFM#(m2+n1-1)
+n1-1
s
s
Number of all buffer memories
(BFM) to be written