Page 1
Prerequisites, installation, ___________________ SIMATIC S7-200 to SIMATIC S7-1200 and overview software conversion tool ___________________ Program conversion process Program structure ___________________ conversion SIMATIC S7-200 LAD instruction ___________________ conversion S7-1200 SIMATIC S7-200 to SIMATIC S7- 1200 software conversion tool Manual 1/2010...
Page 2
Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
● STEP 7 Basic V10.5 SP2 and STEP 7-Micro/WIN V4.0 SP7 (or later) must already be installed or your computer or programming device. ● Double-click the setup.exe file that installs the SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool. You can run the setup.exe file from any directory.
Page 6
(for the S7-1200) STEP 7 Basic Program blocks (Page 10) • Symbols/tags (Page 11) • Complete the converted S7-1200 program and verify correct STEP 7 Basic run-time operation (Page 13) SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Program conversion process Run the converter tool SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool operation 1. Start STEP 7 Basic. 2. Select the Project view. 3. From the "Project" menu, select "Convert S7 200 Project". 4. Click the "Browse" button on the "S7-200 Classic Project Converter" dialog and set the path to the STEP 7-Micro/WIN *.mwp project file.
CPU options that your S7-1200 program will use must be properly configured, before your program can access or operate those CPU options. Some of the S7-1200 CPU configuration options are listed in the following table. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Page 9
PTO2/PWM2 Generator type SM address Output source Fixed Time base SM address Pulse width format milliseconds Cycle time SM address Initial pulse width SM address Hardware output Built-in I/O SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
For information about specific program logic instructions, see S7-200 LAD instruction conversion (Page 23). For more information about how the program structure is converted, see Program structure conversion (Page 15). SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
● The converted STEP 7 Basic global symbols (I, Q, and M memory only) are located in the PLC Tag table or in data block DB1 (converted S7-200 V memory symbols). SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Page 12
Unconverted code blocks and data block tabs (data groups) can create undefined symbols in POU blocks that were successfully converted. You must define these symbols to use symbolic addressing in substitute program logic. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
You must review and check the converted program to ensure proper and safe operation in your application. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Page 14
Program conversion process 2.5 Complete the STEP 7 Basic program and verify the run-time operation SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
You must enable S7- 1200 interrupt events with the CPU device configuration. Then, replace the generic box instructions with S7-1200 ATTACH and DETACH instructions that use a configured interrupt event. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Library code STEP 7-Micro/WIN can use Siemens supplied libraries (USS protocol and Modbus protocol) and user-defined libraries. Siemens supplied libraries are provided in STEP 7- Micro/WIN *.mwl file form and are not converted. User-defined library *.mwl files are created from user-created source program *.mwp files. The *.mwp library source programs can be converted to STEP 7 Basic programs and assigned as a global or project library with the STEP 7 Basic library functions.
Page 17
S7-200 Analog address S7-1200 Analog address Analog Input 1 AIW0 IW64 Analog Input 2 AIW2 IW66 Analog Input 3 and following AIW4... IW500... Analog Output 1 and following AQW0... QW500... SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
"read only" will not be converted. If a data block tab was generated and protected by a STEP 7-Micro/WIN wizard, then you cannot remove the protection and the tab's data group is not converted. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
DETACH instructions that use a configured interrupt event. STEP 7-Micro/WIN program INT interrupt routines are converted to hardware interrupt OBs or cyclic interrupt OBs, as shown in the following tables. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Page 20
Hardware interrupt OB (HSC3) CV=PV Hardware interrupt OB (HSC4) CV=PV Hardware interrupt OB (HSC4) direction changed Hardware interrupt OB (HSC4) external reset Hardware interrupt OB (HSC5) CV=PV Hardware interrupt OB SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
You must replace the initialization instructions that use HSC SM memory. Replace the HSC, and HDEF instructions with the corresponding S7-1200 CPU HSC device configuration and CTRL_HSC instructions. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
You must use STEP 7 Basic library commands to create a STEP 7 Basic global or project library from a converted STEP 7-Micro/WIN library source program. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
-( R )- Reset coil with immediate address (Reset a single bit) or RESET_BF Reset Bit Field with immediate addresses (Reset multiple bits) SR Set dominant bi-stable RS Reset dominant bi-stable NOP No Operation SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
S7-1200 CTRL_HSC instruction. HDEF High-speed counter Definition There is no equivalent instruction for the S7-1200 CPU. Selection of HSC mode can only be performed by S7-1200 CPU device configuration. PLS Pulse SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
IN and OUT address, then the instruction and parameters are converted. If the S7-200 increment/decrement instruction uses separate IN and OUT addresses, then the instruction is converted but not the parameters. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
I_B Integer to Byte I_DI Integer to Double Integer DI_I Double Integer to Integer DI_R Double Integer to Real BCDI BCD to Integer I_BCD Integer to BCD ROUND Round to integer ROUND SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
LBL, ADD, and Compare instructions. NEXT Increment loop index END End program execution DIAG_LED CPU diagnostic LED control SCR Sequence Control Relay SCRT Sequence Control Relay Transition SCRE Sequence Control Relay End SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
READ_RTCX Read Real-Time Clock Extended Time zone and daylight savings offsets are set by the S7-1200 CPU Device configuration. You can SET_RTCX Set Real-Time Clock Extended read the local time with the RD_LOC_T instruction. SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
S7-200 SM (Special Memory) configuration. Character based freeport is not supported. NETR Alternative NETR/NETW peer-to-peer PPI network operations are supported through TSEND_C/TRCV_C over Ethernet TCP/IP. NETW GET_ADDR Profibus communication is not supported. SET_ADDR SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...
Table 4- 16 Table conversion S7-200 instruction Converted? S7-1200 instruction FILL_N Fill Table FILL_BLK LIFO Last In First Out FIFO First In First Out ATT Add to Table TBL_FIND Table Find SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool Manual, 1/2010...