Action Diagram Editor

612 Views


The action diagram editor lets you modify the default processing logic that is automatically supplied for a function.

It also provides the ability to add, change, or delete actions at appropriate points in the structure of a function. These points are called user points.

I (Insert)

There are several insert line (I) commands that you can use in the action diagram editor to insert constructs.

You can use the insert line command to insert constructs in action diagram shells or even within other constructs.

IA (IAF) - to insert an action within a construct or in an action diagram shell.

IC (ICF) - for insert condition to insert a condition within a CASE construct.

II (IIF) - to insert an iterative construct within a REPEAT WHILE construct.

IS (ISF) - to insert a blank sequential construct.

I* (I*F) - to insert a comment at any point within the user point. 

IM (IMF) - to call a message function at a particular point within the action diagram. When you enter IM in the action diagram user point, the Edit Message Functions panel displays.

IO - to insert an otherwise clause.

IX (IXF) - to insert a new condition within the CASE construct.

I+ (I+F) - for a call to the *ADD (add) built-in function. This takes you to the Edit Action - Function Details panel.

I- (I-F) - for a call to the *SUB (subtract) built-in function. This takes you to the Edit Action - Function Details panel.

I= (I=F) - for a call to the *MOVE (move) built-in function. This takes you to the Edit Action - Function Details panel.

I=A - for a call to the *MOVE ALL (move all) built-in function. This takes you to the Edit Action - Function Details panel. You can also use I = = .

M or MM (Move) (A or B)

The move (M) line command allows you to move a construct to a point that you designate within the action diagram shell, either A (after) or B (before).

The move block (MM) line command allows you to move a block of constructs to a point that you designate within the action diagram shell, either A (after) or B (before).

The MM line command must be paired with another MM line command at the same construct level. This command will not edit the field context for the new user point.

C or CC (Copy) (A or B)

The copy (C) line command allows you to copy a construct to a point that you designate within the action diagram shell, either A (after) or B (before).

The copy block (CC) line command allows you to copy a block of constructs to a point that you designate within the action diagram shell, either A (after) or B (before).

The CC line command must be paired with another CC line command at the same construct level. This command will not edit the field context for the new user point.

D or DD (Delete)

The delete (D) line command allows you to delete a construct. The delete block (DD) line command allows you to delete a block of constructs.

The DD line command must be paired with another DD line command at the same construct level.

S (Show)

The show (S) line command allows you to reverse the effect of hiding a construct.

H (Hide)

The hide (H) line command allows you to hide a construct. The construct executes in the normal fashion. However, instead of displaying all lines in the construct, only one line will be displayed indicating that the construct has been hidden.

Z (Zoom)

The zoom (Z) line command allows you to focus in on a particular construct and display all ancillary parts of the construct. This command also allows you to navigate your way through embedded constructs or into an action diagram of an embedded function.

The following example illustrates the effect of adding a new action (IA):

Moving a Construct - M and A Line Commands

Non-protected constructs can be moved from one position in the action diagram to another. To move a construct, place an M against the construct that is to be moved, and an A against the line of the action diagram after which the construct is to be moved.

Function Keys
The following is a list of function keys that are used within the Action Diagram Editor.

F3 Exit action diagram
F5 Display user points
F6 Cancel pending move operations
F7 Scan backward
F8 Scan forward for the criteria entered in the Find Services panel
F9 Edit Function Parameters
F13 Fast exit
F14 Display Synon/2E Map
F15 Open Function Panel
F16 Toggle change date
F17 Display Find Services panel to search for function, field, change date or any syntax error found in the action diagram.
F18 Access or leave Notepad 
F19 Access Edit Device Design
ENTER Execute line commands
HELP Display help text
ROLLUP Show next page of work area
ROLLDOWN Show previous page of work area

Using NOTEPAD
The notepad utility allows you to copy constructs from one action diagram to another. When using Open Functions, this utility lets you save the contents of a diagram to a work area and copy those contents elsewhere.

NOTEPAD Line Commands The Notepad line commands are described below.

NI (NOTEPAD Insert) The notepad insert (NI) allows you to insert the contents of a notepad at a point after the line on which the cursor is positioned.

NA or NAA (NOTEPAD Append) The notepad append (NA) line command allows you to copy the contents of a construct to a notepad and to append them to the existing contents of the notepad. The notepad block append (NAA) line command allows you to copy the contents of a block of constructs to a notepad and to append them to the existing contents of the notepad. The NAA line command must be paired with another NAA line command at the same construct level.

NR or NRR (NOTEPAD Replace) The notepad replace (NR) line command allows you to first clear the contents of the notepad, and then to replace the existing contents of the notepad with a new construct. The notepad block replace (NRR) line command allows you to first clear the contents of the notepad, and then to replace the existing contents of the notepad with a new block of constructs. The NRR line command must be paired with another

NRR line command at the same construct level. You can toggle between the notepad action diagram from the action diagram you are editing by pressing F18.

*, ** (Activate/Deactivate)

The activate/deactivate line command (*,**) allows you to deactivate or activate a construct or block of constructs. The * line command is used to toggle the active/deactive flag for a construct. Deactivated constructs do not generate any associated code.

Find Services

The Synon/2E Find Services allow you to perform searches on functions, files, or fields in the Action Diagram Editor.

This utility also allows you to search according to date and for any constructs that contain errors.

1. To access Find Services, press F17 from the Edit Action Diagram panel. The Action Diagram Find Services panel displays.

2. To perform a search for specified find criteria, type option 1 in the Find Option field.

3. To specify the criteria of the search:

a. In the Find Function File Name field, type the name of the file, *ALL if you want to search all files, or ? if you are uncertain of the file name.

b. Type the name of the field in the Find Field Name field. To perform a search on the field and/or context, enter the field name and the context type. You can enter the field name without entering the context; however, you cannot enter the context without specifying a field name.

c. Enter the date in YYMMDD format in the Search for Date field.

d. For a specific date comparison, select one of the options for the following criteria: less than (for a date prior to the date). less than or equal to (for a date prior or equal to the search date) equal to (for a date equal to the search date) greater than or equal to (for a date after or equal to the search date) greater than (for a date after the search date)

4. To perform a search for syntax errors in the action diagram, from the Action Diagram Find Services panel, select the error option.

5. To search for matches to the specified criteria or errors in the action diagram, press F7 to scan forward or press F8 to scan backwards.

Editing the Parameters

To modify your current action diagram parameters, press F9 from the Edit Action Diagram panel. Synon/2E displays the Edit Function Parameters panel. To return to the action diagram press F3.

Toggling to Device Designs

To toggle to the device design associated with the current action diagram, press F19. To return to the action diagram, press F3 and then F5.

Copying from One Function’s Action Diagram to Another

Using NOTEPAD To copy the contents of one action to another, execute the following steps:

1. At the Edit Action Diagram panel, specify the construct or block of constructs that you wish to append to the Notepad by entering the appropriate Notepad line command; NA, NAA, NR, or NRR.

2. Press F15 to access the Open Functions panel and type F against the function to which you want to copy.

3. Access the appropriate user point in the selected function and press NI to insert the contents of the Notepad. Modifying Function Parameters From the Edit Action Diagram panel press F15 to access the Open Functions panel and type P against the function whose parameters you wish to modify.

Post Comments