Functions And Operation Examples Of Extension Registers - Mitsubishi Electric MELSEC FX3U Programming Manual

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

4.10.5 Functions and operation examples of extension registers

Extension registers can be used in various controls with numeric data the same as data registers.
This subsection explains operations in representative basic instructions and applied instructions among
various applications.
For the full use of extension registers, refer to the explanation of applied instructions described later.
1. Extension registers in basic instructions
• Specifying an extension register as the set value of a timer or counter
2. Extension registers in applied instructions
Operation examples using MOV (FNC 12) instruction
• Changing the current value of a counter
• Reading the current value of a counter to an extension register
• Storing a numeric value to extension registers
16 bits
FNC 12
32 bits
FNC 12
DMOV
• Transferring the contents of a data register to extension register
R 0
T 2
C 10
R 20
FNC 12
R 5
C 2
MOV
FNC 12
C 10
R 4
MOV
K200
R 10
MOV
K80000 R10(R11)
FNC 12
D 10
R 20
MOV
4.10 Extension Register [R] and Extension File Register [ER]
A counter or timer operates with regards to the contents
of a specified extension register as the set value.
The current value of the counter C2 is changed to the
contents of R5.
The current value of the counter C10 is transferred to R4.
"200 (decimal value)" is transferred to R10.
"80000 (decimal value)" is transferred to R10 and R11.
Because a numeric value larger than 32767, the 32-bit
operation (double D instruction) is required. When an
extension register on the low-order side (R10) is
specified, an extension register on the high-order side
(R11) is automatically occupied.
The contents of D10 are transferred to R20.
4 Devices in Detail
1
2
3
4
5
6
7
8
9
10
141

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents