A FB type (typically but not always a service
interface function block (SIFB) type) or an adapter
type may have a service specification, which may consist of a
number of service transactions. Each service transaction
consists of zero or one input primitive represented by an
arrow coming into one of the two interfaces of the service, followed
by zero or more output primitives.
If a service specification does not already exist, you can
add one with the Add Service item of
the root (top) node of the Element Navigator.
You can Edit the names of the left and right service
interfaces by double-clicking on the service in the Element
Navigator. The figure at right shows the replacement of RESOURCE
with DEVICE in the ServiceInterface
template, and the figure above shows the
result of this replacement.
You can Add a sequence to the service with the Add
Sequence item of the service's popup menu. This opens a dialog that lets you edit the new
sequence's name and comment.
You can Copy a sequence to the FBEditor's clipboard
with the Copy
Sequence item of the sequence's popup menu.
You can Paste a copy of a sequence to the end of the
service's list of sequences with the Paste Sequence item
of the service's popup menu. This opens a dialog
that lets you edit the copied sequence's name and comment.
You can Rename a sequence by double-clicking on its
name in the Element Navigator.
You can Remove a sequence from the service by using
the Delete
Sequence item of its popup menu in the Element Navigator.
You can Change the Position of a sequence in the list
of sequences by using Drag
and Drop in the Element Navigator.
You can Add a transaction to a sequence in the Worksheet by using the Add
Transaction item in the Worksheet menu. This pops up a dialog, as
shown at right, that lets you edit the interface, name and
parameters of the transaction's initial input primitive. NOTE -
Before leaving a table cell containing an edited value, be sure to
hit the Enter key to save the edited value.
You can Move a transaction up or down in a sequence
by selecting its input primitive, then using the Promote/Demote
function of the Rosette.
NOTE - Even if a transaction doesn't have an actual input primitive,
you can use a "dummy" input primitive for this purpose and delete it
when you're done editing the sequence.
You can Remove a transaction from a sequence by
deleting all its primitives (see below).
You can Add a primitive to a transaction by using the
Add Output Primitive item of the
popup menu of any primitive in the transaction.
You can Move an output primitive up or down in a
transaction by selecting it, then using the Promote/Demote
function of the Rosette.
An input primitive if present is always the first
one in a transaction, so it can't be moved up or down within the
transaction. That's why you can use it as a "handle" to move the
whole transaction up or down in the sequence.
You can Edit a primitive by
double-clicking on its name.
You can Delete a primitive by using the Delete
item of its popup menu.