1 / 26
文档名称:

施耐德plc讲座13-导出数据类型(ddt).ppt

格式:ppt   大小:758KB   页数:26页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

施耐德plc讲座13-导出数据类型(ddt).ppt

上传人:wxc6688 2022/7/14 文件大小:758 KB

下载得到文件列表

施耐德plc讲座13-导出数据类型(ddt).ppt

相关文档

文档介绍

文档介绍:Concept
Lesson 13 Objectives:
After completing this lesson, the learner will be able to:
Recognize IEC Derived DatConcept
Lesson 13 Objectives:
After completing this lesson, the learner will be able to:
Recognize IEC Derived Data Types
Identify the types of Derived Data Types
Recognize the elements of the Data Type Editor
Distinguish between Global and Local Derived Data Types
Use Derived Data Types in your project.
Concept
Example:
DFB “M_Logic” needs to send three signals of the data type BOOL to DFB “M_Alarm”
Concept
Array Example
Declaration
Logic
3 Values, 1 Link
Concept
Array Example Cont’d
Concept
STRUCT Example
DFB “M_logic1`” needs to send two signals of different data types to DFB “M_alarm1”
Concept
STRUCT Example
Declaration
Logic
2 Values, 1 Link
Concept
STRUCT Example
Concept
Example of Complex DDT
Declaration
Logic
Concept
Example of Complex DDT
Concept
Files use the .dty extension
CONCEPT software supports only one local data type file for each project folder (project\dfb\*.dty) and only one global data type file (concept\dfb\*.dty) for all projects.
In order to assure consistency between programming unit and the Quantum PLC, the project that contains one of the derived data types must be reloaded into the PLC whenever one of these files has been edited.
Concept
Keywords
TYPE END_TYPE Start / End of Data type definition
STRUCT END_STRUCT Start / End of DDT-Elements
ARRAY Several elements of same data type
Data types Names of defined Data types, conclusion with " ; "
Concept
Syntax
Names of derived data types and elements, max. 24 characters, conclusion with separator " : "
Separator
: End of name
; End of instruction
[ ] Embraces the range entry of the keyword ARRAY.
. . Separates beginning and end of range of the keyword ARRAY
Comment: (* at the beginning, comments, at the end *)
Concept
Creating the Derived Data Type File
Local
G