Publication 1756-RM084F-EN-P - July 2002
Entering Sequential Function Chart Logic 7-21
TEXT_BOX guidelines
•
All TEXT_BOX blocks must come after all DIRECTED_LINK
blocks.
•
Text boxes can be free-standing or they can be attached to
SFC elements.
TEXT_BOX example
TEXT_BOX (ID := 7, X := 40, Y := 80, Width := 0,
Text := "Action Body makes recursive call")
END_TEXT_BOX
Entering Attachments
The attachment blocks in an SFC routine identify the attachments from
text boxes to other SFC elements. Attachments follow this format:
ATTACHMENT (
FromElementID := <
unique_identifier
>,
ToElementID := <
unique_identifier
>,
END_ATTACHMENT
Where:
ATTACHMENT guidelines
• Use an attachment to link a text box to an SFC element.
• All ATTACHMENT blocks must come after all TEXT_BOX blocks.
ATTACHMENT example
ATTACHMENT (FromElementID := 7, ToElementID := 2)
END_ATTACHMENT
Item: Identifies:
FromElementID
the ID of the attached object. Enter an unsigned, 32-bit integer value.
Specify:
FromElementID :=
number
ToElementID
the ID of the object that the FromID object is attached to. Enter an unsigned, 32-bit
integer value.
Specify:
ToElementID :=
number
Spare Allen-Bradley Parts