Logix_设计.pptVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档