Publication 1756-RM084F-EN-P - July 2002
7-20 Entering Sequential Function Chart Logic
DIRECTED_LINK guidelines
•
All DIRECTED_LINK blocks must come after all STEP,
TRANSITION, STOP, and BRANCH blocks.
•
A directed link links only one element to one other element.
DIRECTED_LINK example
DIRECTED_LINK (FromElementID := 16, ToElementID := 12, ShowLink := True)
END_DIRECTED_LINK
Entering Text Boxes
The text box blocks in an SFC routine hold descriptions about SFC
components. Text boxes follow this format:
TEXT_BOX (
ID := <
unique_identifier
>,
X := <
internal_grid_x_location
>,
Y := <
internal_grid_y_location
>,
Width := <
numerical_value
>
Text := <“
text
”>)
END_TEXT_BOX
Where:
Item: Identifies:
ID
the text box identifier. This ID uniquely identifies this text box from all other blocks. Enter
an unsigned, 32-bit integer value.
Specify:
ID :=
number
X
x-coordinate on internal grid. Enter an unsigned, 32-bit integer value.
Specify:
X :=
number
Y
y-coordinate on internal grid. Enter an unsigned, 32-bit integer value.
Specify:
Y :=
number
Width
this attribute is not currently used; it is there for future use. Enter 0.
Specify:
Width := 0
Text
the descriptive text.
Specify:
Text :=
text