西门子SIMOTION D445上面的运行灯都亮下面的DP通讯灯都不亮。请问哪位师傅告诉我一下谢谢。全好评

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了西门子SIMOTION D445上面的运行灯都亮下面的DP通讯灯都不亮。请问哪位师傅告诉我一下谢谢。全好评相关的知识,希望对你有一定的参考价值。

参考技术A 检查下DP头,不行的话用SCOUT连上看看,要么就全停电试试,D445有很多说不清的故障停送电就好了 参考技术B DP通讯有问题,要么定义不对,要么线不好! 参考技术C 速度的说法实得分飞速度的的

Simotion ST 程序接口声明内容和顺序 interface

The interface section contains statements for declaring data public and using data (data types, variables, function blocks, functions, programs). Technology packages and libraries can also be downloaded.

The interface section has the following syntax:

Syntax

INTERFACE

// Interface statements (optional)

END_INTERFACE

An individual identifier of the section cannot be specified.

Optionally, interface statements exist in the following order between reserved words INTERFACE and END_INTERFACE.

  • 声明使用的工艺包Specification of utilized technology package. Syntax:

    USEPACKAGE tp-name [AS namespace];

    For more details, refer to the SIMOTION Basic Functions Function Manual.

  1. 声明库Specification of utilized libraries.

    Syntax:

    USELIB library-name-list [AS namespace];

    For more information, see "Using data types, functions and function blocks from libraries".

  2. 引用的其他部分Reference to other units in order to use their public components.

    The syntax is:

    USES unit_name-list;

    For more information, see "USES statement in a using unit".

  3. Declarations and information regarding declaration as public to other program sources:

    • Data type definitions:

      User-defined data types (UDT) that are public and valid within the entire ST source file

    • Variable declarations:

      Unit variables and unit constants that are public and valid within the entire ST source file.

      Permissible keywords: See Section "Variable declaration".

    • Object-oriented interfaces:

      Object-oriented interfaces that are public and valid within the entire ST source file.

      As of version V4.5 of the SIMOTION Kernel and with compiler option “Permit object-oriented programming” enabled.

       
      Note

      Object-oriented interfaces utilize the same keywords as the interface section (INTERFACE / END_INTERFACE).

    • Specification of the program organization units (POUs) to be declared public.

      Syntax:

      FUNCTION fc_name;

      FUNCTION_BLOCK fb_name;

      PROGRAM program_name;

      CLASS class_name; (as of version V4.5 of the SIMOTION Kernel and with compiler option "Permit object-oriented programming” enabled)

      If the "Permit forward declarations" compiler option is activated, they are also interpreted as POU prototypes for the forward declaration.

    • POU prototypes for the forward declaration.

      Specification of the prototypes for program organization units with forward declaration (only effective if the "Permit forward declarations" compiler option is activated).

      They are also interpreted as POUs to be exported.

All technology packages, libraries, units used, data type declarations, variable declarations, object-oriented interfaces and program organization units listed in the interface section are declared public. For further information about declaring public, see "Interface section of a unit with Declare Public function".

Sequence

The interface section is the first section of an ST source file.

 
Note

Optionally, the unit statement can precede the interface section, see "Identifier of the unit".

The order of the interface statements 1 to 4 is fixed.

Within number 4, any order is permitted. The individual declaration blocks for data type definitions (including POU prototypes) and variables declarations can appear more than once.

Please note: Identifiers must be declared before they are used.

Only if the "Permit forward declarations" compiler option is activated: When declaring an instance of a function block or a class, it is sufficient for the prototype of the function block to have been declared beforehand. It is not possible to initialize the function block or the class.

Frequency

Once per ST source file

Mandatory section

Yes

以上是关于西门子SIMOTION D445上面的运行灯都亮下面的DP通讯灯都不亮。请问哪位师傅告诉我一下谢谢。全好评的主要内容,如果未能解决你的问题,请参考以下文章

西门子S7-200 CPU224出现三个灯都变黄是啥状况??CPU坏了吗?(有图)

西门子SIMOTION C240的CPU,经常无故STOP,故障信息为profibus-dp2工作

嵌入式板子上面的网口两边的灯怎么不亮

西门子PLC编程,有8个灯,编号为1到8,要求亮灯顺序为1-23-4-56-7-81-2-34依次递推,

服务器硬盘 蓝灯

我在WIN7上安装的西门子S7-200 SMART PLC软件打不开,提示MWSMART Executable停止工作是啥原因