Download User Manual DIS-2

Transcript
Page 80
If the digital signal NEXT1 is HIGH, the program will continue in line X. If the digital signal NEXT1 is
LOW, the program will continue in line Y.
An unconditional program jump (e.g. for infinite loops) can be generated by stating the same branch
destination for NEXT1=HIGH and NEXT1=LOW.
In Figure 23, the level test of NEXT1/2 is performed immediately at the start of program step 11. The
line of the next course program command is determined depending on the result of this level test.
program step
DOUT1/2=high/
low
DOUT1/2=
target reached /
remaining distance
program step 10
program step 11
program step 12
DOUT1/2 high/low
program step 10
DOUT1/2 high/low
program step 11
DOUT1/2 high/low
program step 12
target reached /
remaining distance (program step 10)
activities
course program
evaluate
level NEXT1/2
calculate
new branch destination /
new positioning
Figure 23: Level test time diagram
7.2 Debugging a course program
If you switch to Debug mode, additional status information will be displayed in the course program
window:
Course program active: Indicates that the course program is running and being processed.
Course program stop: Indicates that the course program has been stopped by the #stop signal.
NEXT1 / NEXT2: Shows the current status of the digital inputs for NEXT1 & 2.
DOUT1 / DOUT2: Shows the current status of the digital outputs DOUT1 & 2.
Line: Shows the current line of the course program. In addition, the current line is highlighted in
blue in the table.
Position: Indicates the position set approached last.
User Manual DIS-2 „DIS-2 48/10 DIS-2 48/10 IC DIS-2 48/10 FB“
Version 1.1