Reference programming 7.6 Programming conventions for creating the IEC61131-3 The following programming conventions are used for naming objects, variables and instances of objects and variables in a standardised fashion. This will make the code and particularly the interfaces of function blocks and functions (e.g. in the PLC libraries) easily legible and comprehensible for us and for others. Code maintenance becomes easier. It goes without saying that this document only refers to the creation of new PLC libraries. For compatibility reasons, existing libraries are, of course, not changed!!!
For TwinCAT users and PLC programmers, this document should be seen as a guideline since these programming conventions are not specified in the IEC61131-3 standard. Naming of the PLC libraries All libraries that are supplied with TwinCAT or can be installed from the Supplement CD start with the prefix Tc . Example: TcUtilities.Lib The libraries for the PC runtime system have the extension *. Lib , the Bus Controller libraries(BCs)have the extension *. Lb6 and additionally the letters BC at the end of the library name. Example: TcTempCtrl.Lib TX1200 249 Version: 1.3 Number Error Message Possible Cause 4685 CAM ' ': CAM table type unknown.
Check the data type which is specified in the CAM Editor dialog ''Compile options.." for the equidistant resp. element optimized point table. 4686 CAM ' ': CAM point exceeds datatype range. In this CAM points are used, which are out of the data range specified for the point table. For the current range definition see dialog 'Compile options..' in the CAM-Editor. ' ' (' '): Watch expression ' ' is not a numeric variable. In the configuration of the visualization a variable is used which is not a number, as required in this place (e.g. at the configuration of XOffset or Angle values etc.). 4701 ' ' (' '): Watch expression ' ' is not of type BOOL.
In the configuration of the visualization a variable is used which is not of type BOOL, as required in this place. 4702 ' ' (' '): Watch expression ' ' is not of type STRING. The visualization contains a variable which is not of type STRING although this is required in this place (e.g. at the tooltip configuration). 4703 ' ' (' ' ): Invalid watch expression ' ' The visualization contains an invalid variable. 4704 ' '(' '): Invalid initial value in watchlist ' '. In this watchlist, used in a visualization (INTERN command in category Input), there is a erroneous initial value. Check the used list. 4705 ' ' (' '): No valid alarm group assigned to alarm table.
Enter a valid alarm group In the configuration dialog of the alarm table (category Alarm table). Invalid type for conversion You are using a type conversion which is not supported by the currently chosen codegenerator. 4901 Internal error: Overflow in array access! The array bounds are to large for a 32-bit- variable. Reduce the array index range.