Z-World XP8900 Manual de usuario Pagina 34

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 33
PK2100
4-2 s System Development
Gate programming is not C programming. It is done with an
application program, written in C, that modifies the param-
eters of the virtual driver.
!
Programming
Z-world supports program development for the PK2100 in a variety of
ways. Support for some of these stems from a virtual driver, which
monitors the PK2100s ports and provides a set of virtual latches,
timers, counters, function keys and two DAC analog outputs.
Gate Programming
Gate programming is a quick and easy way to program the PK2100s
inputs and outputs. The logic elements are summarized in Table 4-1.
Table 4-1. Gate Programming Logic Elements
External Internal
Seven digital inputs Thirty memory latches
Six universal inputs Ten on-delay timers
Ten digital outputs Five countdown counters
Four special function keysTwo relay outputs
Discrete digital-to-analog outputs
An operator updates the parameters supported by these logic elements
using the five-key system. Gate programs can be downloaded or uploaded
serially through the RS-232 connection to a PC.
Support functions for gate programming may be found in the subdirectory
LIBRARY\GATE_P.LIB. The programs SCAN.C and GATER.C in
SAMPLES\CPLC are examples of gate programming.
Costatements
Costatements, formerly called function blocks, implement cooperative
multitasking, and use the virtual driver.
The Real-Time Kernel
The real-time kernel allows a preemptive multitasking system to be
developed.
The Five-Key System
The five-key system implements a user interface to the software using the
PK2100s keypad and liquid crystal display.
Vista de pagina 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 113 114

Comentarios a estos manuales

Sin comentarios