Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 58

Advertising
background image

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:
Configuration task:

10 IODEF RESOLVER_INTREG%[SLOT=8,REGISTER=2]

BASIC task:

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

Advertising
This manual is related to the following products: