Event Step Edit Commands

Format: 0AAA RRRR 1110 NNNN

R Used for Status Area Request

N Used for Command Index described below

A Used only by Communication Digital I/O; 0 for PROFIBUS-DP

 

These commands let you change an event parameter’s value across a range of steps in a single scan. The format of the Command Register for the Event Step Edit commands is given below:

 

     1111|11  |    |

BIT #5432|1098|7654|3210

-------------------

HEX      |SAR |CMND|INDX

VALUE -------------------

0XE0 0AAA|XXXX|1110|0000 Start Step Number (0 to 255)

0XE1 0AAA|XXXX|1110|0001 End Step Number (0 to 255; > E0)

0XE2 0AAA|XXXX|1110|0010 Parameter to Modify (0 to 7)

0XE3 0AAA|XXXX|1110|0011 Value to be Used

 

For command types 0XE0 and 0XE1, the command data represents a step number. For command type 0XE2, the command data represents the field that will be modified by 0XE3. Use the following table to select a field:

0XE2 DATA
VALUE

STEP FIELD

0

MODE

1

ACCEL

2

DECEL

3

SPEED

4

COMMAND VALUE

5

COMMAND/COMMANDED AXES

6

LINK TYPE/NEXT

7

LINK VALUE

 

To edit the Event Step table, each of these commands must be issued once to initialize the parameters; this will take four scans. Once the beginning step number, the ending step number, and the parameter to be changed have been defined, all the steps can be changed in a single scan by sending 0XE3 command with the new parameter value. All four of these commands must be sent on the same axis.

 

Example for PROFIBUS-DP in Compact Mode with Sync:

If you have a step table that is 100 steps long and you want to change the time delay link value in each step, it would take 100 scans by using the Event Step Transfer commands. If the scan time is 20ms, this would take 2 seconds. By using the Event Step Edit commands, it would take 80ms for the first change (four scans times 20ms/scan) and only 20ms for another change.

Assuming we want to modify steps 0 to 99 and the new link value will be 500, the following commands would be sent:

 

First scan:

O+1

0XE0h

(Set Start Step Number)

 

O+2

0

(Start Step Number of 0)

 

 

 

 

Second scan:

O+1

0XE1h

(Set End Step Number)

 

O+2

99

(End Step Number of 99)

 

 

 

 

Third scan:

O+1

0XE2h

(Set Parameter to Modify)

 

O+2

7

(Select Link Value)

 

 

 

 

Fourth scan:

O+1

0XE3h

(Set Actual Value)

 

O+2

500

(Link Value itself)

 

Example for Digital I/O:

If you have a step table that is 100 steps long and you want to change the time delay link value in each step, it would take 100 scans by using the Event Step Transfer commands. If the scan time is 20ms, this would take 2 seconds. By using the Event Step Edit commands, it would take 80ms for the first change (four scans times 20ms/scan) and only 20ms for another change.

Assuming we want to modify steps 0 to 99 and the new link value will be 500, the following commands would be sent:

First scan:

Send on Command Strobe going high:

  0000|XXXX|1110|0000 (0XE0) Set start step number

Receive after Acknowledge:

            XXXX|XXXX (XX) Low byte of requested data

Send on Command Strobe going high:

  0000|0000|0000|0000 (0000) Start at step number 0

Receive after Acknowledge:

            XXXX|XXXX (XX) High byte of requested data

 

Second scan:

Send on Command Strobe going high:

  0000|XXXX|1110|0001 (0XE1) Set End Step Number

Receive after Acknowledge:

            XXXX|XXXX (XX) Low byte of requested data

Send on Command Strobe going high:

  0000|0000|0110|0011 (0063) End Step Number of 99

Receive after Acknowledge:

            XXXX|XXXX (XX) High byte of requested data

 

Third scan:

Send on Command Strobe going high:

  0000|XXXX|1110|0010 (0XE2) Set Parameter to Modify

Receive after Acknowledge:

            XXXX|XXXX (XX) Low byte of requested data

Send on Command Strobe going high:

  0000|0000|0000|0111 (0007) Select Link Value

Receive after Acknowledge:

            XXXX|XXXX (XX) High byte of requested data

 

Fourth scan:

Send on Command Strobe going high:

  0000|XXXX|1110|0011 (0XE3) Set actual value

Receive after Acknowledge:

            XXXX|XXXX (XX) Low byte of requested data

Send on Command Strobe going high:

  0000|0001|1101|1000 (01D8) Link Value (500)

Receive after Acknowledge:

            XXXX|XXXX (XX) High byte of requested data

 


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