Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.10 TO / Write To A Special Function Block
386
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
14.10 TO / Write To A Special Function Block
Outline
This instruction writes data from PLC into the buffer memory (BFM) of special extension unit/block.
By this instruction, when data is written into multiple buffer memories (BFM) in batch a watchdog timer error
may occur. When there is no bad influence for the control if the data is divided and written in, you can use
WBFM instruction.
1. Format and operation, execution form
2. Set data
*1. In the case of FX1N, FX1NC, FXU, FX2C, FX2N, FX2NC series, the data type of DTO, DTOP of 32-bit
operation is ANY16.
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
TO 16 bits Continuous TO(EN, s, n1, n2, n3);
TOP 16 bits Pulse TOP(EN, s, n1, n2, n3);
DTO 32 bits Continuous DTO(EN, s, n1, n2, n3);
DTOP 32 bits Pulse DTOP(EN, s, n1, n2, n3);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Transfer source data or device
16-bit operation: n3 points occupied
32-bit operation: 2 × n3 points occupied
ANY16 ANY32
Unit No. of special extension unit/block
(Sequentially from the right side of basic unit, K0 to K7)
ANY16
ANY32
*1
Transfer destination buffer memory (BFM) number ANY16
ANY32
*1
Number of transfer points ANY16
ANY32
*1
Output
variable
ENO Execution state Bit
TO
EN
s
ENO
n1
n2
n3
TOP
EN
s
ENO
n1
n2
n3
DTO
EN
s
ENO
n1
n2
n3
DTOP
EN
s
ENO
n1
n2
n3