Step Run and Break Section 4-3
108
4-3-3 Break Point
The break point is where the program execution is paused. Specifying a break
point will automatically stop the program execution at the specified point.
As an example of break point, the following introduces the case where moni-
toring the IR value used between FOR and NEXT.
Monitoring IR
The Step Run enables monitoring the contents of Index Registers (IR) while
executing a ladder diagram in the CX-Programmer's [Set Values] window,
which used to be impossible.
Following diagram shows an example of IR usage extracted from the sample
in 6-2 Index Registers of CS/CJ Series Programming Manual(W394). Setting a
break pointer within the FOR to NEXT loop (the hatched part in the diagram)
enables to check the change of IR within the FOR to NEXT loop.
Program
address
Instruction word
(mnemonic)
Operand
000000 FOR &100
000001 LD NOT ,IR2
000002 TIM ,IR0+ @D0
000003 LD ,IR1+
000004 OUT ,IR2+
000005 LD P_On
000006 ++ D0
000007 NEXT
000008 END
,IR1+
,IR2
,IR2+
P_On
END
NEXT
++
D0
TIM
IR0+
D0
FOR
&100