- 1
- 0
- 约4.37万字
- 约 61页
- 2018-03-09 发布于河南
- 举报
Logix_设计
11/07/2001 Copyright ? 2001 Rockwell International Corporation, All Rights Reserved Logix System Design Recommendations Logix5000 Atomic Data Types Logix5000 provides support for the IEC1131-3 data types The Logix5000 is a 32Bit CPU so all individual tags are defined to use a Double Word (32bit) of memory offset All data is defined to start at 32 bit offsets so that it can be communicated via produced/consumed tags These data types provide the foundation for all other product or user defined structures Data / Memory Optimization The Logix5000 controllers utilize a 32Bit RISC CPU that is optimized for 32BIT operations The controller contains two sets of instructions DINT (32Bit) and REAL(32Bit) math operations DINT - Data types provide the best performance REAL - Is optimized but slower than DINT SINT(8Bit), INT(16Bit) - Data types must all be converted to either DINT or REAL Requires additional memory Slows the execution time Try to use DINT wherever possible Eliminates data conversion code which results in faster execution and reduced memory space DINT math is quicker to execute than REAL Array Indexes perform indirection quicker Multiple ways to Address Bits BOOL Tag Each tags used 4bytes (32Bit word) Ex: BOOL : Conv1_Mode XIC(Conv1_Mode) Advantage = Don’t have think about memory layout Disadvantage = Requires extra bandwidth to communicate BOOL Array Combines multiple bits into adjacent words (32Bit at a time) Ex: BOOL[64] : MyBits XIC(MyBits[0]) Ex: Alias Conv1_Mode - MyBits[0] XIC(Conv1_Mode) Advantage = Consolidates multiple bits into a single word Disadvantage = BOOL only supported by bit operations XIC, XIO, OTE, OTL... file instruction, copy, DDT and FBC do NOT support bool arrays DINT Array (recommended today) Combines multiple bits into adjacent words (bits depend on data-type) Ex: DINT[2] : Conv_Stat Ex: Alias Conv1_Mode - Conv_Stat[1].0 XIC(Conv1_Mode) Advantage = Consolidates multiple bits into a single word Disadvantage = Extra work t
您可能关注的文档
最近下载
- 关节置换课件.pptx VIP
- 脉冲微分方程边值问题解的存在性:理论与应用新探.docx VIP
- 2025高考物理步步高同步练习必修3第十章电势差与电场强度的关系含答案.docx VIP
- 人教版高中数学必修一章节思维导图全套.pdf VIP
- 深度解析(2026)《GAT 147-2019法医学 尸体检验技术总则》.pptx VIP
- 变分法研究几类分数阶脉冲微分方分程边值问题解的存在性.docx VIP
- 《中小学生欺凌防治制度机制指引》全文.pdf VIP
- 普通话水平考必试读词语表.doc VIP
- 汽车租赁合同模板范本.docx VIP
- 2025高考物理步步高同步练习选修1第一章 动量专题强化3 弹簧—小球模型 滑块—光滑斜(曲)面模型含答案.docx VIP
原创力文档

文档评论(0)