EasyManuals Logo

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #171 background imageLoading...
Page #171 background image
FX Series Programmable Controlers Applied Instructions 5
5-51
5.4.9 SFWR (FNC 38)
Operation:
The contents of the source device (S) are written to
the FIFO stack. The position of insertion into the
stack is automatically calculated by the PLC.
The destination device (D) is the head address of
the FIFO stack. The contents of D identify where the
next record will be stored (as an offset from D
+1).
If the contents of D exceed the value n-1 (n is the
length of the FIFO stack) then insertion into
the FIFO stack is stopped. The carry flag M8022 is
turned ON to identify this situation.
Points to note:
a) FIFO is an abbreviation for First-In/ First-OUT.
b) Although n devices are assigned for the FIFO stack, only n
-1 pieces of information may be
written to that stack. This is because the head address device (D) takes the first available
register to store the information regarding the next data insertion point into the FIFO stack.
c) Before starting to use a FIFO stack ensure that the contents of the head address register
(D) are equal to 0 (zero).
d) This instruction should be used in conjunction with SFRD FNC 39. The n parameter
in both
instructions should be equal.
Mnemonic Function
Operands
Program steps
SDN
SFWR
FNC 38
(
Shift register
write)
This instruction
creates and builds
a FIFO stack n
devices long -must
be used with
SFRD FNC 39
K, H,
KnX, KnY,
KnM,KnS,
T, C, D, V, Z
KnY, KnM,
KnS,
T, C, D,
K, H,
Note:
2n512
SFWR,
SFWRP:
7steps
FX1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Carry M8022
X0
SFWR
D 1 K 10
[ S ] [ D ]
D 0
[ n ]
D 0 D 10 D 9 D 8 D 7 D 6 D 5 D 4 D 3 D 2 D 1
[ S ]
= 10
(3) (2) (1)
[n]

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
Programming LanguageLadder Logic
Output TypeRelay, Transistor
Operating Temperature0 to 55°C
Power Supply100-240V AC or 24V DC
Program Capacity8K steps
Communication PortsRS-422
Data Memory8000 words
High-speed CountersUp to 6 channels
Expansion ModulesAvailable
Pulse Output2 points

Related product manuals