Exchange of library elements

5 views
Skip to first unread message

christian

unread,
Oct 30, 2009, 7:40:17 AM10/30/09
to FBDK
I'm not sure which development environment makes the difference but
FBDK or 4DIAC displays the ECC of basic function blocks not conform to
the standard. Both look mainly the same, but if I position everything
fine with straigth arcs between the ECStates at FBDK the import into
4DIAC causes a left shift of the EC transition condition. Thus, I
would say the export of FBDK may not be correct and the upper left
corner of the EC transition condition bounding box is exported. But it
may be also that 4DIAC position the ECStates not correctly.

Kind regards,
Christian

--- extract from the IEC 61499-2 ---

B.2 Location of graphical elements

The location of a function block instance is determined by the
location of the upper left corner
of its graphical outline.

The location of an EC state is determined by the center point of the
bounding box containing
the state name.

The location of an EC transition condition is determined by the center
point of the invisible
bounding box containing the transition condition.

James Christensen

unread,
Oct 30, 2009, 11:16:37 AM10/30/09
to fb...@googlegroups.com
Christian, there doesn't seem to be a problem with the FBDK's
coordinates for EC transitions. If you use the "snap to state"
feature, then look at the transition coordinates in the XML tab,
you'll see that the x-coordinate of the transition is the same as the
center of the state above or below, and the y-coordinate of the
transition is the same as the center of the state to the left or
right.
--
Best regards,
Jim Christensen

christian

unread,
Nov 2, 2009, 5:03:32 AM11/2/09
to FBDK
Your are right the x and y-coordinates are the same, but where can I
activate the mentioned feature "snap to state"? If I move a state the
condition moves also.

Kind regards,
Christian

On 30 Okt., 16:16, James Christensen <james.h.christen...@gmail.com>
wrote:
> Christian, there doesn't seem to be a problem with the FBDK's
> coordinates for EC transitions. If you use the "snap to state"
> feature, then look at the transition coordinates in the XML tab,
> you'll see that the x-coordinate of the transition is the same as the
> center of the state above or below, and the y-coordinate of the
> transition is the same as the center of the state to the left or
> right.
> --
> Best regards,
> Jim Christensen
>

James Christensen

unread,
Nov 2, 2009, 9:52:05 AM11/2/09
to fb...@googlegroups.com
"Snap to state" is always activated. If you move a transition to where
the x or y coordinate of its center point is near the corresponding
center coordinate of its predecessor or successor condition, it will
snap to that coordinate once you release the mouse button. It's easy
to see with the "New Basic FB" - if you drag one of the transitions
out of the snap range it will stay there, then if you drag it back to
a position approximately above/below or left/right of one of its
states, it will snap into vertical or horizontal alignment,
respectively.

--
Best regards,
Jim Christensen
Reply all
Reply to author
Forward
0 new messages