EasyManua.ls Logo

Mitsubishi Electric MELSEC FX3U - Page 683

Mitsubishi Electric MELSEC FX3U
1000 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
Loading...
681
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.3 FNC212 – POP / Shift Last Data Read [FILO Control]
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC274
Ex-Device
Inverter Comms
Subtract “1” from the value of the pointer data .
Related device
For the zero flag use method, refer to Subsection 6.5.2.
Related instructions
Cautions
When this instruction is programmed in the continuous operation type, the instruction is executed in every
operation cycle. As a result, an expected operation may not be achieved.
Usually, program this instruction in the “pulse operation type”, or let this instruction be executed by a
“pulsed command contact”.
When the current value of the pointer is “0”, the zero flag M8020 turns ON and the instruction is not
executed.
Check in advance using a comparison instruction whether the current value of satisfies “1
n-1”, and then execute this instruction.
When the current value of the pointer is “1”, “0” is written to and the zero flag M8020 turns
ON.
Error
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
When is larger than “n-1” (error code: K6706)
When is smaller than “0” (error code: K6706)
Device Name Description
M8020 Zero flag
Turns ON when the instruction is executed while the pointer is “0”.
Instruction Description
SFWR(FNC 38) Shift write [for FIFO/FILO control]
SFRD(FNC 39) Shift read [for FIFO control]
S
Data area
Pointer
S
+n-2
S
+n-1
S
+6
S
+5
S
+3
S
+2
S
+1
S
No data area
Pointer
S
+n-2
S
+n-1
S
+6
S
+5
S
+3
S
+2
S
+1
S
D
S
+4
In the case of K4
K4
K3
S
+4
S
S
S
S
S
S
S
S

Table of Contents

Related product manuals