Functions And Operation Examples Of Extension Registers - Mitsubishi FX3G Series Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
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
32 bits
• Transferring the contents of a data register to extension register
134
Series
R 0
T 2
R 20
C 10
FNC 12
R 5
C 2
MOV
FNC 12
C 10
R 4
MOV
FNC 12
K200
R 10
MOV
FNC 12
K80000 R10(R11)
DMOV
FNC 12
D 10
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
e x t e n s i o n r e g i s t e r o n t h e h i g h - o r d e r s i d e ( R 1 1 ) i s
automatically occupied.
The contents of D10 are transferred to R20.
R 20
4 Devices in Detail

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents