Event Control Overview

The Event Control feature allows you to execute a sequence of commands without intervention from the Programmable Controller (P/C). This lets the module respond to events within the control-loop time (1ms or 2ms) rather than the scan rate of the P/C. It also reduces the controller programming required.

Event Control consists of a series of Steps that are linked together in sequences. The Steps consist of a command area containing the instruction to be executed and a link area that specifies the next Step number and its trigger. There are a total of 256 Steps that can be shared by all axes.

Steps

Each Step contains a command with its associated parameters, plus the information necessary to link to the next Step in a sequence. The Step format is as follows:

Command Info:

 

Mode

MODE word

Accel

Acceleration

Decel

Deceleration

Speed

Requested Speed

Command Value

Requested position or command value

Command

Any valid ASCII command

Commanded Axes

Axis (or axes) to send command to

Link Info:

 

Link Type

Condition that triggers execution of next step

Link Value

Parameter associated with Link Type

Link Next

Number of next Step in sequence

Storing Steps

Steps are stored in the motion controller's memory. This step table can be saved in the motion controller's Flash using the Update Flash command. However, in some applications this information should be stored in the Programmable Controller so that it can be downloaded to the motion controller on initialization. Refer to Event Step Transfer for details on storing the steps.

Changing Event Steps

Refer to Editing the Event Step Table for details on using the Event Step editor.

Basic Event Step Flow

After a valid event step sequence is loaded into the motion controller, event control can be used. This section describes the basic flow:

 

To start a sequence of events, use one of these methods:

 

A sequence of events will stop when one of the following occurs:

 

The following additional details should also be kept in mind:

Example

In the following example three steps are executed. They cause the axis to make a move, wait and then make another move:

 

Step 15

Step 16

Step 17

Mode

0x0001

0x0001

0x0001

Accel

100

100

100

Decel

100

100

100

Speed

10000

10000

10000

Command Value

15500

10000

3000

Command

G

 

G

Commanded Axes

Default

Default

Default

Link Type

BitsON

DelayMS

DelayMS

Link Value

00001

500

0

Link Next

16

17

0

 

Step 15 issues a Go (G) command to 15.5 inches (15500). The BitsON (B) link type with a link value of 0x0001 causes the motion controller to look for the least significant bit in the STATUS word (the In Position bit). When the In Position bit turns on, indicating the move is complete, Step 16 (Link Next – 16) is executed.

Step 16 has no command so no command is issued. The DelayMS (D) link type with a link value of 500 waits 500 milliseconds before jumping to Step 17.

Step 17 issues a Go (G) command to 3 inches. The DelayMS link type with a value of 0 (zero) causes the axis to go immediately to Step 0, which stops the sequence.

 


Copyright (c) 1997-2015 by Delta Computer Systems, Inc.