3: PROGRAM LOADER
USER’S MANUAL 3-15
Monitoring High-speed Counters
The preset and current values of high-speed counters HSC0 through HSC3 are displayed in decimal or hexadecimal nota-
tion on the program loader.
Press the MON key to enable the monitor mode.
Enter the CNT and ADV keys, followed by the operand number 0 through 3 to monitor.
Press the LOD/10 or OUT/16 key to display the preset or current value in decimal or hexadecimal notation. If not pressed,
the value is displayed in the data type selected by FUN36. See “FUN36: Display Data Type Selection” on page 14. The
decimal or hexadecimal notation can also be switched after starting the monitor.
Press the key to start monitoring.
To return to the editor mode, press the CLR key.
Example: Monitor high-speed counter HSC0 in decimal notation
(FUN36 set to select decimal notation)
When the key is pressed, the capital letters, HSC0, are displayed followed by the double-word preset value of the spec-
ified high-speed counter number, and the cursor moves down to the next line. When a data register is designated as source
operand S1 for preset value, the data register number is displayed in place of the preset value.
To monitor the current value, press the key to move the cursor one line up, and
press the key.
To change the preset or current value notation between decimal and hexadecimal, place the cursor on the line, and press
the LOD/10 or OUT/16 key followed by the key.
When the preset and current values of the above are monitored in hexadecimal
notation, the display will be as shown on the right.
With the cursor placed at hsc0, pressing the key again will display the preset value of the next high-speed counter,
HSC1 in this example. The preset value and current value of the next or preceding high-speed counter is displayed by
pressing the or key, respectively.
When high-speed counter HSC1 for multi-stage comparison is monitored, the data register designated by source operand
S1 is displayed as the preset value.
To monitor HSC1 preset value in hexadecimal notation, press the keys:
Similarly, when high-speed counter HSC2 for pulse output control is monitored,
the preset value or data register designated by source operand S1 is displayed fol-
lowing HSC2, and the current value is displayed following hsc2.
When high-speed counter HSC3 for gate control is monitored, which has no pre-
set value, then the data register designated by destination operand D1 is dis-
played following HSC3. The current value is displayed following hsc3.
MON
HSC0 1234567890
MON
CNT
C
ADV
0
MON
hsc0 4567
HSC: Preset value
hsc: Current value
MON
HSC0 $ 499602D2
hsc0 $ 11D7
OUT
16
MON
HSC1 D 10
hsc1 $ EA60
OUT
16
MON
CNT
C
ADV
1
BPS