Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manual de usuario Pagina 58

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 146
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 57
6Ć18
where:
event_name =
symbolic name given to that particular event and the
handle" for further references to that event; not followed
by a terminating character.
I/O_variable_name =
name of a symbol referenced as common in the
application task and defined in the configuration task by
an IODEF statement. This variable is defined in the
configuration task to point to the address of an interrupt
register on a hardware module that supports hardware
interrupts.
timeout_count =
the longest time that should pass before a hardware event
occurs. This is used as a safeguard in the case where
something has happened to the piece of hardware that
generates the event. If this timeout period is exceeded
before the event is triggered, the system will automatically
stop the task. The number specified for the timeout period
must be an integer in the range 1Ć32767 and will always
refer to the number of TICKS. The tick rate is
userĆdefinable for each Processor being used. The range
is 0.5 milliseconds to 10 milliseconds. The default tick rate
is 5.5 milliseconds.
The following example defines a hardware event where slot 8,
register 2, defines the address of an interrupt register on a resolver
module in the main chassis:

10 IODEF RESOL
VER_INTREG%[SLOT=8,REGISTER=2]
:
10
COMMON RESOLVER_INTREG%
.
.
.
95
EVENT NAME=MARKER_PULSE, &
INTERRUPT_STATUS=RESOLVER_INTREG%, &
TIMEOUT=100
.
.
.
255 IF CONSTANT_SPEED@ THEN &
WAIT ON MARKER PULSE
.
.
.
The following example defines a software event for a local
BASIC task:
95
EVENT NAME=SW_EVENT1
.
.
.
255 IF CONSTANT_SPEED@ THEN WAIT ON SW_EVENT1
Vista de pagina 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 145 146

Comentarios a estos manuales

Sin comentarios