
TU RS485/ETH serie
CD Automation srl
11
4.7
INTERNAL REGISTERS
The Internal Memory of the Controller is composed of a 16 bit Register se-
ries divided as follows:
%S
System Registers
: contain the information about the status
Controller.
%R
General Purpose Registers
: can be used in the Program to
move the data or to execute calculation functions
%R
Retentive General Purpose Registers
: can be used from the
Program to move the data or to execute calculation functions.
These Registers are saved in Eprom each time their values
change and they are uploaded when the Controller is pow-
ered-on.
Click on the “
Watch
” button
(Fig.3.1)
to visualize the Registers Table
(Fig.3.2)
.
To update the Register's value, click on the “
Read
” button
(Fig.3.2-A)
.
For each Register it is visualized:
The Register address
(Fig.3.2-B)
The Register name
(Fig.3.2-C)
The value contained into the Register
(Fig.3.2-D)
The Register data format
(Fig.3.2-E)
To modify the name or the value of a Register, click two times on the row
of table regarding the Register.
Inside the “
Set
” window
(Fig.3.3)
it is possible to set the name (Label) of the
Register (only for the General Purpose Register), to force the value con-
tained in the Register (only if the Controller is connected) and to set the
type of data format of the Register.
.
4.8
TYPE OF DATA FORMAT
Each General Purpose Register can be read or written using one of the
following data format :
Uint
16 bit Unsigned Integer (0 ÷ 65535)
Int
16 bit Signed Integer (-32768 ÷ +32767)
Ulong
32 bit Unsigned Long (0 ÷ 4,294,967,295)
Long
32 bit Signed Long (-2,147,483,648 ÷ +2,147,483,647)
Float
32 bit Floating Point
Hex
16 bit Unsigned Integer visualized as Hexadecimal
characters (0000 ÷ FFFF)
ASCII
16 bit Unsigned Integer visualized as ASCII characters
Bin
16 bit Unsigned Integer visualized as binary code
K_Flt
Floating Point Constant (as decimal)
K_Long
Long Constant (as binary code)
NOTE: the 32 bit Registers request the position of 2 Registers.
Fig. 3.1
Fig. 3.2
A
B
C
D
E
Fig. 3.3