====== RSLOGIX5000 / UNITY path general information ====== This chapter gives the general information for RSLOGIX5000 to UNITY conversion path. ===== Variables translation schemes ===== The name and comment of the variables are kept with their initial values. Some variables names may be not supported under target (reserved mnemonic, …). Those variables are renamed by adding a suffix or a prefix to the original mnemonic. ==== Internal variables ==== All internal variables are kept and will be part of Unity Pro application. ==== Digital inputs/outputs ==== The mapping of the digital inputs/outputs of the source must be done by the user to define the new location in the new hardware configuration. Definitions of IO DDTs from Rockwell are useful anymore but they are part of the generated Unity Pro application. The developer in charge of revamping should take care of remapping all the I/O manually depending on the new hardware configuration. ==== Analog inputs/outputs ==== The mapping of the digital inputs/outputs of the source must be done by the user to define the new location in the new hardware configuration. Definitions of IO DDTs from Rockwell are useful anymore but they are part of the generated Unity Pro application. The developer in charge of revamping should take care of remapping all the I/O manually depending on the new hardware configuration. ===== Routines translation schemes ===== The following table shows the language mappings: ^ source language ^ target language ^ | Ladder | Ladder | | Litteral | Litteral | | SFC | SFC | | FBD | Ladder | ==== Tasks ==== All tasks found in the ControlLogix application will be generated in the MAST task under Unity Pro. the developer is in charge of redispatching the tasks in Event / Fast / Aux0 if required. Moreover, the developer should take care that the execution period of the task may have change due to this reorganization. The task under ControlLogix, will be generated as an empty section under Unity named task_{taskname}. This section contains only an empty instruction with a comment indicating all the programs from this task. NB: The unscheduled task stuff is also put in the MAST task. the developer should either remove it or put condition not to execute it. ==== Programs ==== A program under ControlLogix, will be generated as a section of MAST Task under Unity. ==== Subroutines ==== A subroutine belongs to a program. It is generated under Unity Pro as a SR (subroutine as well). ==== Add ons ==== An add on under ControlLogix may be generated differently depending on some characteristics: If the add-on references less than 10 external variables, then it will be generated as a DFB under Unity. If the add-on references more than 10 external variables, then it will be generated as an SR under Unity. ==== The System functions ==== When a system function is not supported by PLC Converter, an empty block is generated under Unity Pro and an error message will be reported at compilation time. For other functions, an equivalent code has been supplied. === Timers and counters === The TON, TOF and RTO are converted automatically by PLC Converter. They are DFB under Unity Pro. Those DFBs supports the following features: * Works at any execution period (even in cyclic tasks) * Can be jumped over (counter stops to count as in Control Logix) * Supports multi-instanciation ==== The Special functions ==== The special functions ( communications, regulation, axes, motion, …) are not translated. The user has to translate them manually. An empty block is generated under Unity Pro. When compiling the application, an error will be raised by the compiler and you will need to correct it by removing the error message or by supplying an alternative function to be able to execute the program.