====== Features of the TSX / PL7-3 analyzer ====== ===== PLC Versions ===== The PL7-3 range PLC models belong to many versions that correspond to the different PLC upgrades. A given version of a PLC can only execute an application code of the same version. In other terms the binary file containing the code is not compatible between versions. Whereas it is possible to migrate the programs to later versions. The converter takes in charge the programs generated under versions 4 or later From the version 4, the TSX UCs and the PMX UCs are the two types PLC CPUs. The PMX UCs allow the use of control and regulation function blocks. The different PLCs are : === Version 2 === * TSX 67-30 * TSX 87-10/20 === Version 3 === * TSX 47-30 * TSX 67-20 * TSX 87-30 === Version 4 === * TSX 47-400/410/411/420 * TSX 67-410/420 * TSX 87-410/420 * TSX 107-410/420 * PMX 47-420 * PMX 67-420 * PMX 87-420 * PMX 107-420/430. === Version 5 === * TSX 47-405/415/425/455 * TSX 67-425/455 * TSX 87-425/455 * TSX 107-425/455 * PMX 47-425/455 * PMX 67-425/455 * PMX 87-425/455 * PMX 107-425/455. ===== XTEL - Programming workbench ===== The converter supports files from the X-TEL workbench for versions 4 and later. Under a previous version, use the X-TEL workbench to internal conversion to version 4. Then the binary obtained is analyzable by the converter. Get files from a XTEL Application: * Subtree XPROPRJ / in which each project is a subdirectory. * MS-DOS floppy archive file generated by XTEL . In the first case, just follow the instructions to recover data files in the [[# TSX Source files]] section. In the second case, it is necessary previously to retrieve the contents of the archive. MS-DOS archives consist of CONTROL and BACKUP files numbered according to the size of the archive. For example, the following files are an archive into a minimum of three disks: * CONTROL.001 * BACKUP.001 * CONTROL.002 * BACKUP.002 * CONTROL.003 * BACKUP.003 Normally the RESTORE tool is capable of reproducing the contents of the archive. However versions RESTORE depend on the version of MS-DOS and are mutually incompatible. In case you would not succeed in extracting their contents, contact Itris Automation Square. ===== TSX Source files ===== The optimal translation uses all of the following files: === * BIN -. Mandatory file === * Content- All application : * hardware configuration, * data base, * code, * comment,... * How do I get this file? * In XPROPJ directory, the binary application file is in the subdirectory PL7_3/APPLI. He named PL7_3.BIN or appli.BIN, 'Appli'is the name of the application directory. === *.CDB - Optional File === * Content * variables name * Comment * Topological addresses of variables in the PLC memory * When this file is not present : The variables will not have mnemonics or comments but the behavior of the program will result identical to the source program. * How do I get this file? * In XPROPJ directory, the symbol file of the application is in the subdirectory SDBASE / APP. He wears either PL7.CDB name or appli.CDB, where 'appli ' is the name of the application directory. === CNIORACK.BIN - Optional File === * Content: This file contains a more detailed hardware configuration than that contained in the binary file. However this file is only available in version of the X-TEL workbench greater than V4 . * When this file is not present : The result given in the report are less accurate. * How do I get this file? : n XPROPJ directory, look for the file /CONF/ IORACK / Confio / CNIORACK.BIN :!: The name of the BIN file can sometimes be a problem. The *. BIN can not have the same name as TSX task. Then just rename it before sending it to us. ===== Languages ===== For now the TSX parsed languages are : * Litteral: Every rung in litteral should be correctly translated. All notations, comments, labels are supported. * Ladder: Every rung in Ladder should be correctly translated. All notations, comments, labels are translated. * SFC : All SFC are correctly translated. But comments are not translated. The binary code includes both graphic representations and assembler of the PLC code. The TSX parser uses the assembler code to generate the Glips file.\\ :!: Contact order may be changed between Tsx ladder and generated ladder\\ :!: In ladder, behavior is the same even if a variable was read and write in the same rung. This is done by creating a temporary variable to reproduce TSX Ladder evaluation order. ===== Features ===== The PL7-3 analyzer knows : - the different supported tasks (IT, MAST, FAST, AUX0...) - the SRs modules for each of the tasks + Prel and Post - All arithmetic and logic operators - respect operator priority - Loop and branch instructions - Floating point operations - CTRL function block to control task execution - All array operations - Indexed variables (bit and word) ===== Type of output variables ===== The following variables are considered as outputs : - O* - OW* - COM* - FIPIO* ===== More features to be implemented ===== ==== FIPIO ==== For now there is no support for FIPIO. You will find some 'unknown_word' and 'rioxxxx' variables within the code. The FIPIO bits are recognized but not decoded. The FIPIO words are neither recognized nor decoded. A FAIRE: The conversion must be manually realized for all the equations and sequencies containing FIPIO variables. ==== OFB ==== For now there is no support for the OFBs OFB, family, class and instance decoding is not supported. Access to variables included in OFBs are performed properly, nor OFB calls. TO DO: - list every used OFB and its configuration in the source program. - select the corresponding function block in the destination architecture and adjust the settings. ==== Functions not supported ==== READBIT, WRITEBIT, READREG, WRITEREG, MASKINT, DMASKINT, READINT, ACKINT, READEXT are not supported. An exception is generated within the code, located at the line where the function is called. ==== Support for old versions of the binary ==== The binary files older than version 4 is not possible for now. It is necessary to convert from version 3 to version 4 using XTel workshop and then export version 4. ===== Known bugs ===== - On the rungs of certain SRs or sections, the comment is set twice. - No recovery of the settings of the MAST task (cyclic, periodical) ==== Litteral ==== ==== Ladder ==== ==== Grafcet ==== - The difference between ladder or litteral implementation can not be made for Grafcet transitions and actions related to a step . - Certain types of grafcet are not supported (Multi initial step swapping control from one to another). - Grafcet comments are not recovered at all.