05/06 AWB2724-1584GB
Test and commissioning
39
Behaviour of variables after Reset
Test and commissioning
The controller supports the following test and commissioning
functions:
• Breakpoint/single-step mode
• Single cycle mode
• Forcing
• Online modification
• Power flow display
Breakpoint/single-step mode
Breakpoints can be set within the user program. When an
instruction is executed that has a breakpoint, the program is
stopped at this point. The program can now be run in single-step
mode. Cycle time monitoring is deactivated.
Single cycle mode
In single-cycle mode, one program cycle is performed in real time.
The outputs are enabled during the cycle. The cycle time
monitoring is active.
Forcing variables and inputs/outputs
All the variables of a user program can be “forced” to assume
fixed values. Forced local outputs are only switched to the
periphery when the controller is in RUN status.
Status display in the programming software
• The signal states of the physical Boolean inputs are displayed in
both the RUN and STOP state of the CPU.
• The signal states of the physical Boolean inputs are only
displayed in the RUN state; in the STOP state they are
designated with FALSE.
• All other variables are displayed with the current variable value.
High-speed counters
32-bit counter
Only one 32-bit counter is available. The pulse transmiter must be
connected with the external input I1. It receives the pulses at a
maximum frequency of 50 kHz. The CPU counts these pulses and
provides them as an actual (= Counter) value. The actual value can
then be scanned in the user program. Whether the actual value is
incremented or decremented when a count pulse is received
depends on the “setting” of the Direction output in the user
program.
Variable type
Reset Non-retentive Retain
Warm reset Activation of initial values Values remain in
memory
Cold reset Activation of initial values
Hard reset
1)
No more variables present, program deleted
1) After a hard reset, the program must be reloaded. In online
operation, you can then restart the PLC.
h
The following applies to breakpoint/single-step mode and
single cycle mode:
Do not use these commissioning functions in the program
routines such as start. A malfunction may cause an
undefined state in the controller.
If the commissioning functions cannot be run, activate the
debugging function (default status): Choose <Project l
Options l Build> and click the “Debugging” option.
i
Caution!
At this moment any outputs set will remain set!
i
Caution!
At this moment any outputs set will remain set!
h
Inputs/outputs connected via the CANopen fieldbus
cannot be forced.
Figure 33: Programming inputs/outputs of the 32-bit counter
h
When the actual values equals the reference value, an
interrupt can be generated in order to activate a program
routine. To do this, you must activate the interrupt in the
task configuration and assign the program
routine,a section “Interrupt processing”, page 45.