
TU RS485/ETH serie
CD Automation srl
30
4.16 DOWNLOAD THE PROGRAM
When the Program is complete and if the compiling ends correctly it is
possible to download it in the RAM memory of Controller. To do it, open
the “
Download
” window
(Fig.6.6)
. clicking on the “
Download
” button
(Fig.6.5-A)
.
The Download operations are allowed only in “Debug” modality (refer to
the section “Debug Modality”).
Inside the “
Download
” window it is possible to set one or more options:
“
Download Program
”
(Fig.6.6-A)
– Starts to download the Program in the
RAM memory of Controller.
“
Verify
”
(Fig.6.6-B)
– Compares the Program contained in the RAM
memory with the compiled Program.
“
Save in Flash
”
(Fig.6.6-C)
– Transfers the Program loaded in the RAM
memory to the Internal Flash Memory of the Controller.
“
Clear Register Memory
”
(Fig.6.6-D)
– Resets the value of the
Controller's General Purpose Internal Registers .
“
Run After Download
”
(Fig.6.6-E)
– At the end of the download, sets the
Controller in “Run” modality (execution of the Program).
4.17 DEBUG MODE
By this modality it is possible to follow the Program flow and to monitor
in real time the Controller's status and the value of the Internal Registers.
When the Program is interrupted the Register Table is updated to the
last reading.
During the development of the Program, if the Controller is connected,
click on the “
Debug
” button
(Fig.6.7-A)
to activate the “Debug” modality.
In the Status bar the message “
Debug Mode
”
(Fig.6.7-B)
will be visualized
and in the Tool bar will be activated the commands to execute the
following debug operations:
Run
(Fig.6.7-C)
:Executes the Program continuously.
Run To Break
(Fig.6.7-D)
: Executes the Program up to the Break point .
Pause
(Fig.6.7-E)
:Interrupts the execution of the Program ( “Run”
condition) / executes the Program step by
step (“Stop” condition)
Animate
(Fig.6.7-F)
Simulates the evolution of the Program flow
executing it step by step.
Stop
(Fig.6.7-G)
:Blocks the Program and reset it to the first
Function Block.
The Function Block in execution is identified by the Index parameter
coloured in red and is updated the PC (”
Program Counter
”) value
(Fig.6.8-A)
.
Open the “
Settings
” window
(Fig.6.9)
, selecting “
Settings -> Workspace
”
to set the following options for the Debug modality:
“
Run-Time Register Update
”
(Fig.6.9-A)
– If active, in “Run” condition the
table Register will be automatically updated (1 read per second)
“
Animate Time
”
(Fig.6.9-B)
– Setting of the playing time between one
step and the successive in the “Animate” condition.
Fig. 6.5
A
Fig. 6.6
A
B
C
D
E
Fig. 6.7
A
C
D
E
F
G
B
Fig. 6.8
A