标准的数据类型(国外英文资料).docVIP

  • 12
  • 0
  • 约3.17万字
  • 约 8页
  • 2017-06-08 发布于河南
  • 举报
标准的数据类型(国外英文资料)

标准的数据类型(国外英文资料) Data types in Appendix C:CoDeSys 10.15 standard data type data type Users can use standard and custom data types when programming. Each identifier matches one data type. The data type determines the memory The size of the storage space and the type of value it stores. Boolean variable (BOOL) The boolean type variables are TRUE (true) and FALSE (false). It keeps 8 bits of storage space Reference: BOOL constants See sections 10, 11, operands in CoDeSys, BOOL constants Integer data type BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, and UDINT are integer data types. Each different data A type contains a series of different values. The following table lists the bounds for each integer data type: Type lower limit memory space BYTE 02558 bit WORDbit DWORD 0429496729532 bit SINT: -128 1278 bit USINT: 02558 bit INT: -32768 3276716 bit UINT:bit DINT: -2147483648 214748364732 bit UDINT: 0429496729532 bit When large data types are converted into small data types, it can lead to loss of information. Reference: digital constant See also in chapters 10 and 11, the operands in CoDeSyS. REAL / LREAL REAL and LREAL are called floating point types. They mean rational numbers. REAL accounted for 32 of the storage space, and LREAL accounted for 64. REAL storage range: 1.175494351e-38F to 3.402823466e+38F LREAL storage range: 2.2250738585072014e-308 to 1.7976931348623158e+308 Also refer to the 10.11 chapter, the REAL-/LREAL constant Reference: REAL-/LREAL constant Character string Appendix 10 CoDeSys V2.3 10-31 String type variables can contain any string of characters. When declared, the size of the variable determines how much storage space is reserved for the variable. This involves the number of characters in a string and can be placed in parentheses and square brackets. If the size, specification, default size of the variable is not given For 80 characters. Basically, in CoDeSys, the length of a string is not limited, but the string function c

文档评论(0)

1亿VIP精品文档

相关文档