Mitsubishi Electric MELSEC FX3U Programming Manual page 328

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Explanation of function and operation
1. 16-bit operation (SFWR and SFWRP)
The contents of
stored in
D
For example, when
are written to
S
Command
input
FNC 38
SFWRP
S
Before
execution
D+n
S
D+n
After
execution
S
D+n
1) When X000 turns ON from OFF, the contents of
+1 become equivalent to
D
2) When the contents of
new contents of
(When the continuous operation type SFWR instruction is used, the contents are stored in each operation
cycle. Use the pulse operation type SFWRP instruction in programming.)
3) Data are stored from the right end in the same way, and the number of stored data is specified by the
contents of the pointer
Related device
Device
M8022
Related instructions
Instruction
SFRD (FNC 39)
POP (FNC212)
Caution
1. In the case of continuous operation type (SFWR) instruction
Note that data are stored (overwritten) in each scan time (operation cycle).
326
are written to "n-1" devices from
S
.
= 0, the contents of
D
+2.
D
S
D
...
D+10 D+9 D+8 D+7 D+6 D+5 D+4 D+3
...
D+10 D+9 D+8 D+7 D+6 D+5 D+4 D+3
...
D+10 D+9 D+8 D+7 D+6 D+5 D+4 D+3
S
are changed and then the command input is set to ON from OFF again, the
S
are stored to
S
.
D
Name
When the contents of the pointer
Carry
not written) and the carry flag M8022 turns ON.
Shift read (for FIFO control)
Shift last data read (for FILO control)
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]
+1, and "1" is added to the number of data
D
are written to
S
n
n
D+2
Executed at the 1st time
D
(
= 0)
D+2
Executed at the 2nd time
S
are stored to
S
.
+2. So the contents of
D
→ For the carry flag use method, refer to Subsection 6.5.2.
Description
exceeds "n-1", no operation is executed (so data is
D
Description
+1. When
= 1, the contents of
D
D
D+1
D
Pointer
+1 →
D
(K0)
S
D
Pointer
+1 →
D
(K1)
S
D
Pointer
+1. So the contents of
D
+2 become equivalent to
D
D
(K1)
D
(K2)
.
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents