[codesys2.3培训_WAGO英文原版]Module_5_Data Types.pptVIP

  • 2
  • 0
  • 约2.59千字
  • 约 9页
  • 2023-05-12 发布于重庆
  • 举报

[codesys2.3培训_WAGO英文原版]Module_5_Data Types.ppt

DATA TYPES VARIABLES AGENDADATA TYPESVARIABLES5 - 2 WAGO Kontakttechnik GmbH Co. KG TypeData widthLower limitUpper limitBOOLBYTEWORDDWORDSINTUSINTINTUINTDINTUDINTREALLREALSTRINGTIMETODDATEDT 1 Bit 8 Bit16 Bit32 Bit 8 Bit 8 Bit16 Bit16 Bit32 Bit32 Bit32 Bit64 BitVariable (255 Byte max.)32 Bit32 Bit32 Bit32 BitFALSE000-1280-327680-2′147′483′6480Ex. 3.141592654Ex. T# 5d4h5m10s123msEx. TOD#15:36:10.340Ex. D#2001-03-28Ex. DT#2001-03-28-11:26:01 TRUE255655354′294′967′29512825532767655352′147′483′6474′294′967′295(TIME_OF_DAY)(DATE_AND_TIME)ELEMENTARY DATA TYPES5 - 3 WAGO Kontakttechnik GmbH Co. KGData Types according to IEC 61131-3 VARIABLES 1Variables stand for memory locations (in the controller), the administration of which is taken on by the programming system. they can be written and read.Variables are declared either locally in the declaration part of a module, and are thus only known in this module, or once in the global declaration folder and then known in all modules in the project.What is a Variable?5 - 4 WAGO Kontakttechnik GmbH Co. KG VARIABLES 1Local declarationGlobal declaration5 - 5 WAGO Kontakttechnik GmbH Co. KG VARIABLES 2Class DescriptionVAR Local Variable in a POU (Standard)VAR_INOUT Input VariableVAR_OUTPUT Output VariableVAR_IN_OUT Input/Output VariableVAR_GLOBAL Global Variable, known in all POUs5 - 6 WAGO Kontakttechnik GmbH Co. KGDeclaration of Variables Class VARIABLES 3NameTypeInitial valueAddressCommentCONSTANT Constants; the value is not changed during a program execution (only read)RETAIN These Variables retain their value after an uncontrolled termination of the control or a resetPERSISTENT In contrast to Retain Variables, these Variables retain their value even after a cold start, i.e. when the control is terminated normally and has been restarted, or after a download. Persistent Variables are not automatically Retain Variables

文档评论(0)

1亿VIP精品文档

相关文档