14 Applied Instructions (External FX I/O Device)
14.10 TO / Write To A Special Function Block
388
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Cautions
1) About bit device digit specification to be specified by
Specify K1 to K4 in the case of 16-bit operation instruction, or K1 to K8 in the case of 32-bit operation.
2) The instruction is provided in the FX
U PLC Ver. 2.10 or later.
3) Instructions of pulse operation type are not provided in the FX
0N PLC.
To execute pulse operation, make the instruction execution condition pulse type.
4) Some restrictions to applicable devices.
S1: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
Program example
By using direct specification
*1
of TO instruction or buffer memory, you can write in (transfer) the digit
specification of data register (D), extension register (R), or auxiliary relay (M) or constants (K, H) to the buffer
memory (BFM) of special extension unit/block.
*1. The FX
3U and FX3UC PLCs only are available.
Example) Program for writing "H0" in BFM #27 (instruction) of CC-Link/LT master (unit No. 0 fixed) built in the
FX
3UC-32MT-LT(-2).
- In the case of TO instruction
- In the case of MOV instruction
TO
EN
s
ENO
n1
n2
n3
[ST]
TO(M1, H0, K0, K27, K1);
H0
K0
K27
K1
M1
[Structured ladder/FBD]
MOVP
EN
s
ENO
d
[ST]
MOVP(M1, H0, U0¥G27);
M1
[Structured ladder/FBD]
U0¥G27H0