[工程科技]正文18_第1頁
[工程科技]正文18_第2頁
[工程科技]正文18_第3頁
[工程科技]正文18_第4頁
[工程科技]正文18_第5頁
已閱讀5頁,還剩37頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、18 編譯錯誤和警告18.1 警告18.1.1警告11xx 1100unknown function in library.使用了外部庫,請檢查在.hex文件中定義的所有功能是否也已在.lib文件中定義。 1101unresolved symbol .代碼生成器要求一個名為pou,該pou在項目中沒有定義。需要定義一個名為的功能/程序。 1102invalid interface for symbol .代碼生成器要求一個名為的功能帶有一個輸入變量,或者一個名為的程序沒有輸入或輸出。 1103the constant at cod

2、e address overwrites a 16k page boundary!一個字符串常量超出了16k頁面范圍,系統(tǒng)無法處理。 根據(jù)運行系統(tǒng)是否可以輸入目標文件避免該問題。請聯(lián)系plc生產(chǎn)商。18.1.2 警告 12xx 1200task %s, call of %access variables in the parameter list are not updated在任務配置調(diào)用功能塊的變量不能在交叉引用表中列出。18.1.3 警告13xx 1300file not found 全局變量對象指定的文件不存在,請檢查路徑。 1301an

3、alyze-library not found! code for analyzation will not be generated.分析功能被使用,但庫的analyzation.lib文件不存在,在庫管理器中增加這個庫。 1302new externally referenced functions inserted. online change is therefore no longer possible!最后下載的連接的庫所包含的變量,和運行系統(tǒng)中的不一致,因此必須下載完整的項目。18.1.4 警告14xx 1400unknown pragma is

4、ignored!編譯器不支持pragma,參見關鍵字pragma.支持提示。 1401the struct does not contain any elements.結(jié)構(gòu)體不含任何元素,但這種類型的變量將用1個字節(jié)內(nèi)存。18.1.5 警告15xx 1500expression contains no assignment. no code was generated.表達式的結(jié)果不能用,因此整個表達式?jīng)]有生成代碼。 1501string constant passed as var_in_out: must not be overwritten

5、!常量不能在pou中重寫,因為不能進行長度檢查。 1502variable has the same name as a pou. the pou will not be called!有一個相同名字的變量被使用。beispiel:program a.var_globala: int;end_var.a; (* not pou a is called but variable a is loaded. *) 1503the pou . has no outputs. box result is set to true.連接到fbd或kop的pou的輸出項無輸出,

6、該賦值自動取得數(shù)值true。 1504. (.): statement may not be executed due to the evaluation of the logical expression最終沒有邏輯表達式的分支被執(zhí)行。舉例:if a and funct(true) then .如果a為flase,則funct不被調(diào)用 1505side effect in ! branch is probably not executed !pou的第1個輸入是false, 因此在第2個輸入到來時的分支不會執(zhí)行。 1506variable %s

7、 has the same name as a local action. the action will not be called!重命名變量或動作。18.1.6 警告 16xx 1600open db unclear (generated code may be erroneous).打開的pou中的原始siemens程序不能讀。18.1.7 警告 17xx 1700input not connectedcfc中用到的輸入box沒有賦值,因此沒有代碼生成。18.1.8 警告 18xx 1800(element #): invalid wat

8、chexpression %s可是化元素包含了無法顯視的表達式。檢查變量名和占位符替換。 1801 (number): no input on expression possible局部輸入中的可視化對象的配置中用了組合表達式,用單個變量替換。18.1.9 警告 19xx 1900pou (main routine) is not available in the library當項目作為庫使用時,不能使用啟動型pou (例如 plc_prg) 。 1901access variables and variable configurations

9、are not saved in alibrary!訪問變量和變量配置不能存在庫中。 1902: is no library for the current machine type!庫的.obj 文件被另一個設備生成。 1903: is no valid library這個文件沒有實際目標所需的格式。18.2 編譯錯誤18.2.1 編譯錯誤 31xx 3100code too large. maximum size: byte (k)超出了最大的程序容量,減小項目的大小。 3101total data too large. ma

10、ximum size: byte (k)內(nèi)存超限,減小應用數(shù)據(jù)的使用。 3110error in library file .hex 文件不是 intel 16進制格式。 3111library is too large. maximum size: 64k.hex文件超出了設定的最大長度。 3112nonrelocatable instruction in library.hex文件包含了不可識別的指令,庫代碼不能連接。 3113library code overwrites function tables.代碼與功能表的范圍覆

11、蓋。. 3114library uses more than one segment.hex 文件中的表和代碼多于一段。 3115unable to assign constant to var_in_out. incompatible data types.字符串常量的內(nèi)部指針格式不能轉(zhuǎn)換成var_in_out的內(nèi)部指針格式,因為數(shù)據(jù)“附近”設定,但字符串常量被設定時“太大”或“太遠”。如果可能,改變目標設定。 3120current code-segment exceeds 64k.當前生成的代碼大于64k ,最終生成了太多的初始化代碼。18

12、.2.1.10 3121pou too large.a pou 不能超過64k。1 3122initialisation too large. maximum size: 64k一個功能或一個pou的初始化代碼不能超過64k。2 3130user-stack too small: dword needed, dword available.pou調(diào)用的層數(shù)太大,可在目標設定中鍵入一個較大的堆棧長度,或者編譯項目時不用調(diào)試選項 (可在dialog .project. .options. .build.設定)。3 3131user-stack too

13、 small: word needed, wordavailable.請聯(lián)系plc 廠商。4 3132system-stack too small: word needed, word available.請聯(lián)系plc廠商。5 3150parameter of function : cannot pass the result of aiec-function as string parameter to a c-function.將iec功能的賦值給內(nèi)部變量。6 3160cant open library file .一個庫包含在該項目的庫管理

14、器中,但這個庫文件不在已給的路徑中。7 3161library contains no codesegment一個庫的.obj文件至少要包含一個c函數(shù),在.obj文件中插入一個沒有在.lib文件定義的偽函數(shù)。8 3162could not resolve reference in library (symbol ,class , type ).obj文件中有一個無法分解為另一個符號的參考體,請檢查c編譯器的設置。9 3163unknown reference type in library (symbol , class , type ).obj

15、 文件中含有一種代碼生成器無法處理的參考體類型,請檢查c編譯器的設置18.2.2 編譯錯誤 32xx 3200%s (%d): boolean expression to complex對象系統(tǒng)的臨時內(nèi)存對于表達式的尺寸不夠大,因此,通過設定內(nèi)部變量將表達式分成幾個表達式。 3201 (): a network must not result in more than 512bytes of code內(nèi)部跳轉(zhuǎn)不能分解,在68k對象設置中激活“use 16 bit sprungoffsets”選項。 3202stack overrun with n

16、ested string/array/structure function calls使用了一個嵌套的功能調(diào)用,這將導致數(shù)丟失。將調(diào)用分成兩個表達式。 3203expression too complex (too many used adress registers).把任務分成幾個表達式。 3204a jump exceeds 32k bytes跳轉(zhuǎn)的距離不能大于32767字節(jié)。 3205internal error: too many constant strings一個pou中最多用3000個字符串常量。 3206func

17、tion block data exceeds maximal size一個功能塊最大執(zhí)行32767字節(jié)的代碼。 3207array optimization因為在索引運算過程中調(diào)用了一個功能,優(yōu)化數(shù)組訪問錯誤。 3208conversion not implemented yet使用了一個轉(zhuǎn)換功能,該功能不能用于實際代碼生成器。0 3209operator not implemented使用了一個運算符,該運算符不能用于數(shù)據(jù)類型和實際代碼生成器。min(string1,string2)。1 3210function not fo

18、und調(diào)用了一個項目中不存在的函數(shù)。2 3211max string usage exceeded一個字符串類型變量在一個表達式中最多使用10次。3 3250real not supported for 8 bit controller對象系統(tǒng)不支持。4 3251date of day types are not supported for 8 bit controller對象系統(tǒng)不支持。5 3252size of stack exeeds bytes對象系統(tǒng)不支持。6 3253could not find hex

19、 file: 對象系統(tǒng)不支持。7 3254call to external library function could not be resolved.對象系統(tǒng)不支持。18.2.3 編譯錯誤 34xx 3400an error occured during import of access variables.exp文件中含有一個錯誤的訪問變量區(qū)域。 3401an error occured during import of variable configuration.exp文件中含有一個錯誤的配置變量區(qū)域。 3402an e

20、rror occured during import of global variables.exp文件中含有一個錯誤的全局變量區(qū)域。 3403could not import .exp文件中的項目名不正確。 3404an error occured during import of task configuration.exp文件中的任務配置不正確。 3405an error occured during import of plc configuration.exp文件中的plc配置不正確。 3406two steps wit

21、h the name name. second step not imported.exp文件中的sfc pou的兩個步名字相同,將導出文件中的一個步重命名。 3407predecessor step not found步在.exp文件中丟失。 3408successor step not found步在.exp文件中丟失。0 3409no successing transition for step .exp文件中一個需要步 作為執(zhí)行步的轉(zhuǎn)換丟失。1 3410no successing step for transition e

22、xp文件中一個需要轉(zhuǎn)換作為執(zhí)行條件的步丟失。 2 3411step not reachable from initial step.exp文件中步和初始化步之間的連接丟失。 3 3450pdo: missing cob-id!在plc的配置對話框中雙擊properties鍵,鍵入pdo 的cob id號。4 3451error during load: eds-file could not be found, but is最終設備文件需要的can配置不在正確的目錄中,檢查項目/操作/目錄菜單下配置文件中的目錄設置。5 3452th

23、e module couldnt be created!模塊 的設備文件不適合當前配置,最終在codesys已經(jīng)建立的配置中修改或模塊被誤用。6 3453the channel couldnt be created!通道的設備文件不適合當前配置,最終在codesys已經(jīng)建立的配置中修改或模塊被誤用。7 3454the address points to an used memory!在 plc configuration的.settings對話框中激活 check for overlapping addresses選項,并且檢查是否出現(xiàn)地址重疊情況??紤]地址區(qū)檢

24、測要基于模塊的數(shù)據(jù)類型而不要急于配置文件所給的長度8 3455error during load: gsd-file could not be found, but is referenced in hardware configuration!最終profibus配置所需的設備文件不在相關的目錄中,檢查項目/操作/目錄菜單下配置文件中的目錄設置。9 3456the profibus device couldnt be created!模塊的設備文件不適合當前的配置,最終在codesys已經(jīng)建立的配置中修改或模塊被誤用。0 3457error i

25、n module description!請檢查模塊的設備文件。18.2.4 編譯錯誤 35xx 3500no var_config for 在包含變量配置的全局變量表中插入一個變量聲明。 3501no address in var_config for .在包含變量配置的全局變量表中給變量分配一個地址。 3502wrong data type for in var_config在包含變量配置的全局變量表中對變量的類型聲明與pou中的類型聲明不同。 3503wrong data type for in var_config在包含變

26、量配置的全局變量表中對變量的地址聲明與pou中的地址聲明不同。 3504initial values are not supported for var_config在包含變量配置的全局變量表中聲明了變量的地址和初始值,但初始值只能用于不指定的地址輸入變量。 3505.is no valid instance path變量配置中包含一個不存在的變量。 3506access path expected全局變量表中一個訪問變量的訪問路徑不正確。改為:: 3507no address specification for var_acc

27、ess-variables用于訪問變量的全局變量表中包含了一個變量的地址分配,這是不允許的。有效的變量定義: : 3550duplicate definition of identifier 兩個任務的定義標識符相同,需要將其中一個名字更改。0 3551the task must contain at least one program call插入一個程序調(diào)用或刪除任務。1 3552event variable in task %s not defined在任務屬性對話框的single項中設置的事件變量沒有在項目中被聲明為全局變量。使用另一個

28、變量或?qū)⒃撟兞慷x為全局變量。2 3553event variable in task %s must be of type bool在任務屬性對話框single項中設置的事件變量應為布爾類型變量。3 3554task entry must be a program or global function block instance在program call項輸入了一個功能名或一個沒有定義的pou。應輸入一個有效的程序名。4 3555the task entry contains invalid parameters在append program

29、 call中所使用的參數(shù)不符合程序pou的變量聲明。18.2.5 編譯錯誤 36xx 3600implicit variables not found!使用 rebuild all 命令,若仍然得到該錯誤信息,請聯(lián)系plc生產(chǎn)商。 3601 is a reserved variable name所使用的變量名已在該項目中聲明,或者該變量名在代碼生成器保留。請重命名該變量。 3610 not supported當前版本的編程系統(tǒng)不支持該功能。 3611the given compile directory is invalid編譯文

30、件所在的projectoptionsdirectories路徑無效。在項目/選項/目錄下給出的編譯文件的路徑是錯的。 3612maximum number of pous () exceeded! compile is aborted.該項目中使用了太多的pou和數(shù)據(jù)類型,修改target setting/memory layout中的pou的最大值。 3613build canceled編譯過程被用戶取消。 3614project must contain a pou named (main routine) or a taskconfigur

31、ation生成一個初始類型的pou程序(例如 plc_prg)或建立一個任務配置。 3615 (main routine) must be of type program項目中用到的一個初始類型的pou (例如plc_prg)不是程序類型pou。 3616programs musnt be implemented in external libraries該項目被保存為一個包含程序的外部庫,當庫文件被使用時這是不允許的。0 3617out of memory在計算機上增加虛擬內(nèi)存。1 3618bitaccess not suppo

32、rted in current code generator!當前設定的對象系統(tǒng)的代碼發(fā)生器不支持訪問變量的位。18.2.6 編譯錯誤37xx 3700 pou with name . is already in library 項目中的一個pou名已經(jīng)在pou庫中使用,請重命名這個pou。 3701name used in interface is not identical with pou name用command .project. .rename object.重命名項目管理器中的pou, 或在聲明窗口中修改pou的名字,pou的名字必須連著關鍵字pr

33、ogram、function或functionblock之一。 3702overflow of identifier list一個變量聲明中最多可輸入100個標識符。 3703duplicate definition of identifier 注意在pou的聲明部分對于一個變量名僅能聲明一次。 3704data recursion: - - . - 遞歸調(diào)用,在功能塊自己調(diào)用自己。 3720address expected after at在關鍵字at后增加一個有效地址或修改關鍵字。 3721only var a

34、nd var_global can be located to addresses只有在var或var_global區(qū)域中的變量聲明可以分配地址。 3722only bool variables allowed on bit addresses修改地址或修改變量類型以對應設定的地址。 3729invalid type at address: 所指定的地址不能用于這種變量類型,例如:下列聲明是錯誤的:var1 at %ib1:word。0 3740invalid type: 變量聲明中使用了一個錯誤的數(shù)據(jù)類型。1 3741expec

35、ting type specification使用一個關鍵字或運算符來代替有效的類型標識。2 3742enumeration value expected在枚舉類型的定義中,在打開的擴號或兩個擴號之間的逗號后面缺少一個標識符。3 3743integer number expected枚舉只能用整數(shù)類型的數(shù)據(jù)來初始化。4 3744enum constant already defined檢查在枚舉名的定義中是否遵循下列原則:在一個枚舉定義中所有的名字必須是唯一的。在所有全局枚舉定義中所有的名字必須是唯一的。在所有本地枚舉定義中所有的名字必須是唯一的

36、。.5 3745subranges are only allowed on integers!子范圍類型只能定義為整型。6 3746subrange is not compatible with type 子范圍類型的數(shù)據(jù)范圍設定超出了變量類型的有效范圍。7 3747unknown string length: 字符串長度的定義使用了無效的常數(shù)。8 3748more than three dimensions are not allowed for arrays數(shù)組的定義最大為三維數(shù)組。如果需要,使用數(shù)組類型構(gòu)建數(shù)組。18.2.6

37、.19 3749lower bound not defined在子范圍或數(shù)組類型的下標的定義中,使用了一個沒有定義的常量。0 3750upper bound not defined在子范圍或數(shù)據(jù)類型的上標的定義中,使用了一個沒有定義的常量。1 3760error in inital value類型定義用了一個初始值,可用變量聲明對話框修改這個變量聲明。 (shift/f2 或editautodeclare)2 3761var_in_out variables must not have an inital value.刪除var_in_out變量

38、在聲明表中的初始值。3 3780var, var_input, var_output or var_in_out expectedpou名字的后面的第一行必須含有這些關鍵字中的一個。4 3781end_var or identifier expected在聲明窗口的給定行的開頭輸入一個標識符end_var。5 3782unexpected end在變量聲明編輯器中的聲明部分的尾部加上end_var 。在程序部分的文本編輯器中加上一個指令以中止指令序列(例如:end_if)。6 3783end_struct or identifie

39、r expected確保類型聲明正確結(jié)束。18.2.7 編譯錯誤 38xx 3800the global variables need too much memory. increase the available memory in the project options.在projectoptionsbuild對話框中增加段的數(shù)量。 3801die variable ist zu gro. ( byte)變量用的類型大于一個數(shù)據(jù)段,段的大小是一個目標指定的參數(shù),可在目標設定/內(nèi)存設定中修改。如果不能在當前目標設定中找到,請聯(lián)系plc生產(chǎn)商。

40、3802out of retain memory. variable , bytes.保持型變量的內(nèi)存空間不夠,內(nèi)存區(qū)的大小可在目標設定/內(nèi)存設定中設定為目標指定值。如果找不到對話框中設定的地方,請聯(lián)系plc生產(chǎn)商。(請注意:如果一個功能塊實例中用到保持型變量, 完整的pou實例會存在保持型內(nèi)存區(qū)!) 3803out of global data memory. variable , . bytes.全局變量的內(nèi)存空間不夠,內(nèi)存區(qū)的大小可在目標設定/內(nèi)存設定中設定為目標指定值。如果找不到對話框中設定選項,請聯(lián)系plc生產(chǎn)商。 3820var_output and

41、 var_in_out not allowed in functions一個功能中沒有定義輸出或一個輸出變量。 3821at least one input required for functions功能中至少需要一個輸入?yún)?shù)。 3840unknown global variable !pou中所使用的var_external變量沒有在全局變量中聲明。 3841declaration of do not match global declaration!var_external變量在聲明中的類型和全局聲明中的不同。 18.2.8 編譯錯誤39x

42、x 3900multiple underlines in indentifier刪除標識符中多余的下劃線。 3901at most 4 numerical fields allowed in addresses對地址的直接訪問大于四個等級(例如:%qb.1) 3902keywords must be uppercase對于關鍵字使用大寫字母,或者在projectoptions中激活autoformat選項。 3903invalid duration constant常量的符號不符合iec61131-3格式。18.2.

43、8.5 3904overflow in duration constant時間常量的數(shù)值不能以內(nèi)部格式表示,可表示的最大值是t#49d17h2m47s295ms。 3905invalid date constant常量的符號不符合iec61131-3格式。 3906invalid time of day constant常量的符號不符合iec61131-3格式。 3907invalid date and time constant常量的符號不符合iec61131-3格式。 3908invalid string constant字符

44、串常量中有無效的字符。18.2.9 編譯錯誤 40xx 4000identifier expected在該位置輸入了一個無效的標識符。 4001variable not declared聲明變量本地或全局。 4010type mismatch: cannot convert to .檢查運算的數(shù)據(jù)類型(瀏覽運算符的在線幫助),修改錯誤的變量類型或選擇另一個變量。 4011type mismatch in parameter of : cannot convert to .實際參數(shù)的數(shù)據(jù)類型不能自動轉(zhuǎn)換成形式參數(shù)。使用類型轉(zhuǎn)換或用另

45、一種變量類型。 4012type mismatch in parameter of : cannot convert to .為輸入變量設置的數(shù)值對于是無效的,使用類型替換該變量或常數(shù),或分別使用類型轉(zhuǎn)換一個帶類型前綴的常量。 4013type mismatch in output of : cannot convert to .為輸出變量設置的數(shù)值對于是無效的,使用類型替換該變量或常數(shù),或分別使用類型轉(zhuǎn)換一個帶類型前綴的常量。 4014typed literal: cannot convert to 常量類型和類型前綴不符。例如:sint#25

46、5 4015data type . illegal for direct bit access直接位尋址只允許用于整型和位字符數(shù)據(jù)類型??梢允褂?對real類型的變量或常量進行位訪問。 4016bit index out of range for variable of type 試圖訪問沒有在該變量的數(shù)據(jù)類型中定義的一位。0 4017mod is not defined for real運算符mod只能用于整型和位字符的數(shù)據(jù)類型。1 4020variable with write access or direct address

47、 required for st, stn, s, r使用一個可寫變量替換第一個運算數(shù)。2 4021no write access to variable %s allowed使用一個可寫變量替換該變量。3 4022operand expected在該命令后面添加一個運算數(shù)。4 4023number expected after + or -輸入一個數(shù)字。5 4024 or or . expected before 在指定的位置輸入有效的運算數(shù)。6 4025:= or = expected before 在指定的位置輸入兩個運算數(shù)中的一個。7 4026bitadr expects a bit address or a variable on a bit address使用有效的位地址(例如:%ix0.1)。8 4027integer number or symbolic constant expected輸入一個整型數(shù)據(jù)或一個有效的常量標識符。9 4028ini operator needs function block instance or data unit type

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論