Skip to main content

对符号的影响

由于属性编译指示,POU 和变量可以改变其相对于符号配置的行为。

有关更多说明,请参阅受影响杂注的帮助页面。

带有属性的编译指示

影响

也可以看看

{attribute 'call_after_global_init_slot' := ' <slot> '}

没有任何

{attribute 'call_after_init'}

没有任何

{attribute 'call_after_online_change_slot' := ' <slot> '}

没有任何

{attribute 'call_before_global_exit_slot' := ' <slot> '

没有任何

{attribute 'call_on_type_change':= ' comma separated list of referenced function blocks> '}

没有任何

{attribute 'conditionalshow' := ' <some text> '}

{attribute 'conditionalshow'}

{attribute 'conditionalshow_all_locals' := ' <some text> '}

{attribute 'conditionalshow_all_locals'}

装饰变量是隐藏的,因此无法导出。

但是,如果编译库中的源代码文件可用,或者如果 CODESYS 已使用命令行选项启动 conditionalshowsymbols,那么尽管有编译指示,修饰的变量仍然可见。

conditionalshow

conditionalshow_all_locals

{attribute 'const_replaced'}

{attribute 'const_non_replaced'}

替换的常量在符号配置编辑器中不可用,因此无法导出。

被替换的常数取决于 替换常量 已为所有常量选择编译器选项,以及编译指示是否覆盖单个常量的编译器选项。

const_replaced, const_non_replaced

{attribute 'dataflow'}

没有任何

{attribute 'displaymode':= <displaymode> }

{attribute 'enable_dynamic_creation'}

没有任何

{attribute 'estimated-stack-usage' := ' <estimated stack size in bytes> '}

没有任何

{attribute 'ExpandFully'}

没有任何

{attribute 'global_init_slot' := '<slot>'}

没有任何

{attribute 'hide'}

变量是隐藏的,因此无法导出。

hide

{attribute 'hide_all_locals'}

变量是隐藏的,因此无法导出。

hide_all_locals'

{attribute 'initialize_on_call'}

没有任何

{attribute 'init_namespace'}

没有任何

{attribute 'init_on_onlchange' }

没有任何

{attribute 'instance-path'}

没有任何

{attribute 'io_function_block'}

{attribute 'io_function_block_mapping'}

没有任何

{attribute 'is_connected' := ' <input variable> '}

没有任何

{attribute 'linkalways'}

POU 和库 POU 集成在编译列表中,因此无法导出。

linkalways

{attribute 'monitoring' := 'variable'}

{attribute 'monitoring' := 'call'}

PROPERTY 属性或函数 (FUNCTION) 可用作符号。

monitoring

{'no_assign' }

{'no_assign_warning' }

没有任何

{attribute 'no_check'}

没有任何

{attribute 'no_copy'}

没有任何

{attribute 'no-exit'}

没有任何

{attribute 'no_init'}

{attribute 'no-init'}

{attribute 'noinit'}

没有任何

{attribute 'no_instance_in_retain'}

没有任何

{attribute 'no_virtual_actions'}

没有任何

{attribute 'pingroup' := ' <group name> '}

没有任何

{attribute 'pin_presentation_order_inputs' := '< input name > '( , <next input name> )* }

{attribute 'pin_presentation_order_outputs' := '< output name > '( , <next output name> )* }

没有任何

{attribute 'obsolete' := 'user defined text'}

没有任何

{attribute 'pack_mode' := ' <pack mode value> '}

可能导致故意记忆错位

{attribute 'ProcessValue'}

没有任何

{attribute 'qualified_only'}

没有任何

{attribute 'reflection'}

没有任何

{attribute 'subsequent'}

没有任何

{attribute 'suppress_warning'}

没有任何

suppress_warning

{attribute 'symbol' := '<access possibilities>'}

变量导出为符号。

变量仅在符号列表中显示 看法, 通过属性导出的符号 在符号配置编辑器中选择选项。已使用 pragma 定义的访问权限显示在 属性 柱子。

属性:符号

{attribute 'to_string'}

没有任何

{warning disable <compiler ID> }

{warning restore <compiler ID> }

没有任何