回复:关于interface里的用法?

axg2008

  • 帖子

    627
  • 精华

    1
  • 被关注

    37

论坛等级:侠圣

注册时间:2003-07-26

白金 白金 如何晋级?

发布于 2012-08-02 08:18:47

3楼

INTERFACE
// Interface statements (optional)
END_INTERFACE
An individual identifier of the section cannot be specified.
Optionally, interface statements exist in t he following order b etween reserved words INTERFACE
and END_INTERFACE.
1. Specification of utilized technology package. Syntax:
USEPACKAGE tp-name [AS namespace];
For more details, refer to the SIMOTION Basic Functions Function Manual.
2. Specification of utilized libraries.
Syntax:
USELIB library-name-list [AS namespace];
For more information, see "Using data types, functions and function blocks from
libraries (Page 230)".
3. Reference to other units in or der to use their exported components.
Syntax:
USES unit_name-list;
For more information, see "USES statement in an importing unit (Page 181)".
4. Declarations and specifications for the export
– Data type definitions (Page 176):
User-defined data types (UDT) that are valid in the entire ST source file and that are to be
exported
– Variable declarations (Page 177):
Unit variables and unit constant s valid in the entire ST source file and exported.
Permissible keywords: See table in "Variable declaration (Page 177)".
– Information regarding program or ganization units (POU) to be ex ported.
Syntax:
FUNCTION fc_name;
FUNCTION_BLOCK fb_name;
PROGRAM program_name;
All technology packages, libraries, imported units, data type declarations, variable declarations
and program organizatio n units listed in the interface section will be exported. For more
information on export, see "Interface section of an exporting unit (Page 179)".
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMOTION

共有2230条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。