User`s manual

PK2100
Software Reference s 5-13
Table 5-2. Sample Programs in SAMPLES\CPLC
Program Description
5KEYCODE.C Code-driven sample program for the five-key
system.
5KEYDEMO.C Uses a code-driven five-key system and the RTK
for I/O monitor and control.
5KEYLAD.C Combines 5KEYCODE.C and LADDERC.C.
5KEYLINK.C Linked-list sample program for the five-key system.
5KEYSCAN.C Combines 5KEYCODE.C and SCANBLK.C.
ADCDEMO.C
Use keypad to select which ADC channel to
monitor.
CDEMO_RT.C Demonstrate the use of the real-time kernel.
DACDEMO.C Use keypad to select output voltage on the DAC.
DIGDEMO.C Use the keypad to select which digital input channel
to monitor.
DIGVDVR.C Similar to DIGDEMO.C, but uses the virtual driver
to monitor the state of the input.
DMACOUNT.C Demonstrates the use of the high-speed counters.
GATER.C Elaborate program using ladder C or gate
programming to control and monitor the I/Os.
OUTDEMO.C Use the keypad to toggle the state of the digital
outputs.
OUTVDVR.C Similar to OUTDEMO.C, but uses the virtual driver
to change the state of the output.
PRT0DEMO.C Use TIMER0 for interrupt timer.
READIO.C Read and toggle the I/Os through STDIN. The I/Os
are driven by function calls.
READKEY.C Read the keypad and write to the LCD and to the
STDIO window.
SCAN.C Elaborate program using function blocks or gate
programming to control and monitor the I/Os.
SCANBLK.C Use function blocks for I/O control.
UINVDVR.C Use the virtual driver to monitor the universal
inputs.
UREADIO.C Read and toggle the I/Os through STDIN. The
virtual driver drives the I/Os.
VWDOG.C Illustrates the use of the virtual watchdogs and of
KEYREQUEST.