EasyManuals Logo

Mitsubishi MELSEC System Q User Manual

Mitsubishi MELSEC System Q
170 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 #123 background imageLoading...
Page #123 background image
5.5 Registers
The PLC’s relays are used to store the results of operations temporarily. However, relays can
only store values of On/Off or 1/0, which means that they are not suitable for storing measure
-
ments or the results of calculations. Values like this can be stored in the “registers” of the con
-
trollers of the MELSEC System Q.
Registers are 16 bits or one word wide (see section 4.2). You can create “double word” regis
-
ters capable of storing 32-bit values by combining two consecutive data registers.
A normal register can store values from 0000
H to FFFFH (-32,768 to 32,767).Double-word reg
-
isters can store values from 00000000
H to FFFFFFFFH (-2,147,483,648 to 2,147,483,647).
The controllers of the MELSEC System Q have a large number of instructions for using and
manipulating registers. You can write and read values to and from registers, copy the contents
of registers, compare them and perform math functions on their contents (see chapter 6).
5.5.1 Data registers
Data registers can be used as memory in your PLC programs. A value that the program writes
to a data register remains stored there until the program overwrites it with another value.
When you use instructions for manipulating 32-bit data you only need to specify the address of
a 16-bit register.The more significant part of the 32-bit data is automatically written to the next
consecutive register. For example, if you specify register D0 to store a 32-bit value D0 will con
-
tain bits 0 through 15 and D1 will contain bits 16 through 31.
MELSEC System Q Beginners Manual 5 11
Devices in Detail Registers
22222222 22222 22
14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0: = positive value
1: = negative value
1 sign bit
0: = positive value
1: = negative value
Register:
16 bit
15 data bits
1 sign bit
222
210
Double word register:
32 bit
222
30 29 28
...
31 data bits
...

Table of Contents

Other manuals for Mitsubishi MELSEC System Q

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC System Q and is the answer not in the manual?

Mitsubishi MELSEC System Q Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC System Q
CategoryController
LanguageEnglish

Related product manuals