Sie sind auf Seite 1von 24

Edit in all Presentations

STL S5 STL S5

CSF S7 LAD S5

Graphical Step Sequence


-2-

S5 for Windows
The S5 for Windows is an excellent software tool for creating, modifying, testing, and documenting programs for Programmable Logic Controllers (PLC). S5 for Windows is used to program the Siemens PLC family SIMATIC S5 with the programming language STEP 5. The logic presentation is available in Ladder Diagram (LAD), Control System Flowchart (CSF), and Statement List (STL). Import and Export Functions are available to convert existing Step5 programs into the S5 for Windows format and vice-versa. In addition, original Siemens PLC programs can be embedded into S5 for Windows projects without any program conversion. plex functions. Special care has been taken to allow easy operations with the Mouse and / or

Creating and Editing


The Editor, integrated under S5 for Windows , can create, modify, and manage the contents of an entire Symbol Library as well as search and replace functions with multiple criteria. This Editor provides the same easy to use tools that are supplied with other Windows applications. The Rewire function is extremely easy to use. A Syntax check for existing addresses, absolute and symbolic, is also integrated. The Editor, when used to create Ladder Diagrams or Control System Flowchart, can display com-3-

the Keyboard. A Cross Reference List and / or the corresponding Symbol Library, with the correct address, is displayed simultaneously. The Symbol Library may be edited, in its own window, simultaneously. The allocation of new addresses with a syntax check is integrated. Statement Lists may be created with the same easy to use tools of the Symbol Editor. The Windows Clipboard with the Cut-, Copy-, and Paste Functions is supported for easy Statement List manipulation. Statement Lists may be converted into Ladder Diagrams or Control System Flowchart, where it is possible. Converting Ladder Diagrams or Control System Flowchart into Statement Lists is always possible.

Documentation
S5 for Windows supports the installed Windows Printer. The program created will be printed with multiple comments and preset headers and footers. The selection of font and size are obvious. A separate dialog box is provided to select groups of operands that you want to print out as a Cross Reference list. Open windows, such as the Status Window, may also be printed.

S7 for Windows S7-300/400


A Programming System for the Siemens S7 300 / 400 PLCs
IBHsoftec has an efficient and straight-forward programming system for the Siemens Simatic S7300 and S7-400 PLCs. IBHsoftec now offers S7 for Windows as an upgrade to the S5 for Windows programming system or as a complete stand alone programming package. In a Statement List (STL) presentation the complete instruction sets of the S7-300 and S7-400 PLC are implemented in the S7 for Windows programming package. It is also possible to use Ladder Logic (LAD) or Control System Flowchart (CSF) to program and display the Status of the networks. Of course all the on-line functions are integrated.

understands both Step 5 and Step 7 syntax. This allows you to easily convert Step 5 code into Step 7 code and vice versa. Using this capability you can open S5 blocks with the S7

Combined Software Package S5 for Windows and S7 for Windows


Your investment in intellectual property and your programmers experience with S5 PLCs can be

source code editor, even if all of the instructions cannot be directly converted (instructions not converted are marked in the block and allow you to manually edit those instructions).

Short Familiarization Period


Our implementation of S7 for Windows provides the programmer with the ability to take advantage of the benefits of using new hardware without being required to learn a new complicated programming system. For the programmer there is virtually no difference when writing a program for the Simatic S5 or S7 PLC series, when using the Step 5 instruction set. Of course, to use the full Step 7 instruction set it is necessary to know the use of the new instructions. But even when using the full capability of all the new instructions, the look and feel of the programming software is very much the same when programming or testing an S5 or S7 PLC program.

converted and transferred directly to the S7-300 and S7-400 PLCs. A smooth transition to a modern controller concept can be obtained by extending the capabilities of the popular S5 for Windows Programming system. As a result, S5 for Windows , which operates with the Step 5 programming language, continues to be used as the basic programming system. With this concept it is now possible to have a common editor that -4-

Windows-Platform
The user can select the Windows operating systems he or she prefers to use for programming. The software packages S5/S7 for Windows requires a 32-Bit Operating System and may be installed on PCs running Windows 95; Windows 98; Windows NT (with service pack 3) and Windows 2000.

S7 for Windows S7-300/400


Converting S5 Programs into S7 Programs
S5 Programs can be converted from S5 programs into S7 programs. This is done with the conversion command and can be done on a Block by Block basis. The conversion can be done automatically, without any operator intervention, in the background, when the S5 program is downloaded to the S7-300 or S7-400 PLC. Not all S5 programs can be converted directly into a program

tem Function Blocks (SFB) and System Data Blocks (SDB). S7 for Windows uses predefined assignments to convert S5 Block names into S7 Block names. This predefined name conversion list may be modified by the user.

Program Transfer to the S7


Programs generated with S7 for Windows can be transferred to an S7-300 or S7-400 PLC. Blocks displayed in the Block List window and marked S5 Format can be transferred to an S7-300 or S7-400 PLC if the S5 Code is directly convertible into S7 code. The automatic conversion takes place during the down load. Data transfer is done using a converter Cable (PC-MPI Cable) to connect the PC serial port (COM1-4) with the MPI Interface of the S7-300 or S7-400 PLC. Downloaded PLC programs can be monitored and modified with S7 for Windows (Status Mode). The S5 code, converted during the download to the S7 CPU, can still be monitored in the Status Display as native S5 code.

that is understood by the S7-300 or S7-400 PLC. This is because the internal structure, coding, memory areas, PLC block names and the PLC block structure of the S5 and S7 PLCs vary in many ways. To assist the user in converting programs, the PC Block List window can display the S5 Name, the S7 Name, and the Format of the Code. A block that cannot be completely converted will be marked with an (E) and the length is set to zero (0) so it cant be transferred to the PLC. The Blocks marked with an (E) can be opened with the S7 for Windows S7 Editor (source text) for modifications.

On-Line Functions
S7 for Windows offers a full range of on-line functions to debug, test, and modify the PLC program transferred to the S7-300 or S7-400 PLC series. The serial port (Com 1-4) of the PC must be connected with the PLC via the PC-MPI cable. The status of the PLC can be monitored in a graphical display . Separate windows are available to display the Interrupt Stack (I-Stack), the Block Stack (B-Stack), and the Diagnostic Buffer. If there are several S7-300 or S7-400 PLCs connected with S7 for Windows , via the PCMPI cable, a dialog box is provided to select the PLC that you want to communicate with. The PLC Block List window can display the S5 Name, the S7 Name, and the Format of the corresponding Block in the PC Block List. The logic of a Block that has been opened from the PLC Block List window (Status or Editor) will be displayed with its syntax (S5 or S7) indicated in the PC Block List window (S5 Format or S7 Format).
-5-

New PLC Block Names


The programming language for S7-300 and S7400 PLCs does not use Program Blocks (PB), Step Sequence Blocks (SB), extended Function Blocks (FX) or extended Data Blocks (DX) that are understood by the S5 programming language. The S7 programming language uses PLC Block groups Functions (FC), Function Blocks (FB), Data Blocks (DB), System Functions (SFC), Sys-

S7 for Windows S7-300/400


PLC Logic Presentation
As in S5 for Windows , the user can select the PLC Logic Presentation with S7 for Windows . Programming, editing and testing of the program in Step 7 syntax can be done in Ladder Diagram (LAD), Statement List (STL), and Control System Flowchart (CSF) presentation. All presentation formats can be

Statement List into Ladder Logic or Control System Flowchart is not always possible due to the

switched back & forth with a click of the mouse or the keyboard. Your favorite PLC Logic Presentation mode can be established as a default in you system by marking the corresponding button in the Preference dialog box on the Editor page. It is always possible to convert a network programmed in Ladder Logic into Control System Flowchart or Statement List. In the other direction, the conversion from -6-

complexity and sophistication of Statement List programing. The programming of PLC Logic in Ladder Diagram (LAD) or Control System Flowchart (CSF) presentation is done with the same rules that apply when using Step 5. The Syntax must follow the rules of the Step 7 programming language. LAD and CSF presentation use a separate window per PLC Block for the declaration of local variable. To make the declaration of local variables easier, a dialog box where you can define the local variables (LAD, CSF, and STL presentation) is implemented.

S7 for Windows S7-300/400


Compatibility with Siemens Programming Units (PU).
All programs generated on our system, in S7

The Configuration Tool is in two parts, the component catalog and the PLC design window. The Hardware Catalog is an open system and new components may be added at any time, free of

code, can be transferred, one (1) to one (1) to the Siemens S7 programming units which can then be handled like any other Siemens generated program. Blocks in S7 for Windows , marked as S5 Format, must be converted into the S7 format prior to transferring the block to the Siemens PU. All programs written on a Siemens PU and existing Libraries (*.s7p; *s7l) can be directly imported by S7 for Windows . The data format used to transfer programs to the Siemens PU is *.AWL (ASCII format source code). The symbolic tables are transferred to the Siemens PU by using the*.SEQ format.

Hardware Configurator
S7 for Windows provides an integrated tool to

set up the Hardware Configuration of the S7-300 and S7-400 PLCs and establish the parameters and addresses of the individual modules. -7-

charge from our web site. Each time the Hardware Catalog is opened the data is recompliled. The Catalog contains not only Siemens Profibus components but also Profibus components from other manufacturers. Data files on these components, in the GSD format, can be readily added to the Hardware Catalog. The PLC design window can import the configuration of an S7-300 and S7-400 PLC and can be modified. Using the PLC design window, off-line, you can build your configuration and then transfer the data to the SS7-300 and S7-400 PLC.

On-Line Functions
The programs created with S5 for Windows are transmitted via the serial link from the PC to the S5 PLC (20mA Current Loop Converter). To connect S7 for Windows with an S7300 or S7400 PLC a converter Cable (PCMPI Cable) is required. You can select the serial ports (Com 1-4) for communication with the PLC. With the PLC connected on-line with the PC, the status of the signals is presented in graphically displayed Function Blocks (Ladder Diagram or Control System Flowchart). Logically true signals are indicated with a red line and false signals are displayed as a black dotted line. The status of a signal may be changed with the click of a mouse or with the keyboard. You can modify the PLC program on-line with the S5 / S7 for Windows editor and display the status of the PLC as easily as being off-line. An additional window is provided to display single Bits of up to ten (10) input bytes, output bytes or memory bytes (flags) and up to five (5) operands in a Byte or word format. The single bits may be set with the mouse or the keya connection using a TCP/IP protocol to an S5 or an S7 PLC. The connection may be accomplished via an Ethernet bus system or via the Internet (Intranet). The PC requires a standard Ethernet Network board and the PLC needs hardware provided by the INAT company to connect to an Ethernet bus system. The special driver required is

already built into the S5 / S7 for Windows software.

H1 (Industrial Ethernet) Bus


An Advanced H1, connection using a standard Ethernet network board to connect to the H1 Bus directly, is supported by S5 / S7 for Windows . This method requires an additional software driver and a standard Ethernet Network board to connect to the H1 Bus. The PLC requires an H1 connection board. With the optional driver software installed it is possible to activate the H1 Connection command from the option menu. From the dialog box you can select the PLC that you want to go on-line with. You can select any of the PLCs connected to the H1 Bus. It is also possible to connect to the H1 bus without the special driver software. For this standard H1 connection, your

board. This function allows you the check single components and wiring on a machine without a PLC program.

TCP/IP
With S5 / S7 for Windows it is possible to set up -8-

PC must have a serial link to a Master PLC. The Master PLC is one of the PLCs connected to the H1 Bus. Via the master PLC you have access to any other PLC on the H1 Bus.

Integrated S5 Simulation PLC


With the Integrated S5 Simulation PLC, which is implemented in the basic S5 for Windows software package, it is possible to test your S5 PLC programs. No additional hardware is needed. The test will be performed on your PC. The Integrated S5 Simulation PLC provides you with the same on-line status display as a real PLC, connected via a serial link. The Integrated S5 Simulation PLC uses the command structure of the Siemens 115U (CPU944) without system commands. With the click of a mouse or with the keyboard you can set or reset Inputs, Outputs, or Flags directly within the on-line status display. From the Integrated Simulation PLC Window the PLC program can be executed in single steps. The single step operation allows you to execute a single program cycle, a single Block, or a single instruction within a block. You will find buttons to start, stop, and execute the start OBs. Fields to display the value of variables (operands, timers,

counters data words etc.) and fields to display and set inputs, outputs, and flags, are provided.

S5 / S7 Simulation PLC
Optionally, two additional PLC simulation packages are available. The SimPLC PLC945 is a software simulation PLC with the functionality and ues, and the use of double words. Extended function blocks (FX), extended data blocks (DX), and extended flags (S .. 32 768) are also supported. The number of timers and counters are extended to 256 each and the memory structure is equal to the memory structure of the CPU 945. The SimPLC PLC416 is a software simulation PLC with the functionality and the instruction set of a Simatic S7 CPU 416. Both Simulation PLCs can be installed on the same computer where you have installed the S5 / S7 for Windows software package, which will allow you to transfer data directly between S5 / S7 for Windows and the Simulation PLCs. It is also possible to have the Simulation PLCs installed on a separate computer and transfer data between S5 / S7 for Windows and the Simulation PLCs via a serial link between the two computers using a null-modem cable. -9-

the instruction set of a Simatic S5 CPU 945, incorporating system commands, floating point val-

S5/S7 Menu Bar Commands


File
The File Menu provides the commands to create, store, open, import or export a PLC program file. Commands for printing and page setup are also available. The Preferences dialog box, where all the S5 / S7 for Windows default settings are established, can be opened via the command Preferences, from the File menu or via the Preferences icon from the Tool Bar.

Help
S5 / S7 for Windows on-line Help is an easy way to look up information about the task you are performing, a feature you would like to know more about, or a command you want to use. Help is available whenever you see a help button, or you can use help from the menu bar or the help icon on the tool bar.

Windows
Eight different windows to manipulate programs are provided. All windows may be opened simultaneously. The Editor and the Status window may be opened several times. It is possible to enlarge or expand the appearance of the logic with a keystroke. To manage the opened windows, all the windows are listed in the windows menu and the active window is marked. The windows may be arranged automatically by using the Cascade and Tile commands.

Block
The commands to manipulate Blocks are listed in this menu. The transfer of blocks to an on-line PLC or an EPROM/ EEPROM module is controlled from this menu. Selected blocks (one or multiple) may be copied, inserted or deleted. These commands use a clipboard similar to the function of the Windows Clipboard. Conversion of S5 Blocks into S7 Blocks and vice versa is done from here. -10-

Preferences
The selected configurations are valid for all S5 / S7 for Windows windows. The configuration file is saved and will be opened whenever you call a

S5 / S7 for Windows program. Different fonts and sizes may be selected for the printer and for the CRT display.

S5/S7 Tool Bar Commands


Open next Window
This icon allows for switching rapidly between open windows with a mouse click.

Symbolic Library Editor


With this integrated editor you can write, cut, copy and paste text to create and modify the Symbolic Table. The Symbolic Library may be tested for multiple use of addresses or symbols and sorted.

PC (Block List)
This index lists all the Blocks, with the date and time it was created or changed, and a comment. One or more Blocks may be selected for further manipulation.

PLC Error Display


This icon enables you to view the program interrupt information stored in the PLC (I-Stack, Extended I-Stack, B-Stack diagnosic buffer).

PLC Block List


This index lists all the Blocks stored in the PLC. One or more Blocks may be selected for further manipulation in the same way it is handled in the Windows File Manager.

On-Line PLC Status


The status of flags, inputs, outputs, timers, counters, compurgators, data words, and peripheral words are displayed and can be modified.

EPROM Burner
This icon opens a menu to control EPROM burning. It is only active when the option is purchased.

Integrated S5 Simulation
This icon selects the Integrated S5 Simulation PLC for testing the PLC program. The Simulation PLC has the instruction set of an S5 CPU 944 without system commands.

Cross Reference display


A click on this icon lists the appearance of operands as a symbol or absolute throughout the whole program. This function may be called from any window.

Preferences
Adjust the settings for S5/S7 for Windows programming tool to meet your personal requirements. The settings may be changed anytime and are active as sonn as the Preference dialog box is closed.

Block Edit
The Block selected in the Block Listing will be displayed in the Block editor and is ready for any changes.

Closing Windows
The S5/S7 for Windows active window is closed by clicking this icon.

Block Status Display


The status of the signals can be displayed On-Line or from the Internal Software PLC. -11-

Help Function
An integrated subject related help file with an index and a list of keyboard shortcuts for easy operation is available.

Converting PLC Programs


Existing PLC Programs
You can still use your valuable library of PLC programs. Importing and exporting existing PLC programs is easily done with S5 for Windows and S7 for Windows . PLC programs stored on disk in a CPM format can be converted into DOS disks with a converter program. S5 for Windows imports the converted files. EMENS software have a file name with six (6) freely selected characters plus the characters ST.

S7 Programs
PLC Programs created with the S7 for Windows programming package can be transported into the original Sie m e n s STEP 7 programming system. The Export function stores the PLC Program (file extension .AWL) and the Symbolic Table (file extension .SEQ) in an ASCII text file format on disk. A Disk created with the S7 for Windows Export function can be read (imported) by a Siemens programming system. PLC programs written with The characters S5D are used as the file name extension. For example; DEMO12ST.S5D. At the same time the PLC program file is converted the symbolic table file is read into the memory of your personal computer. This file has the same name as the PLC program file (the first six characters), followed by the characters Z0 and the file name extension SEQ. For example; DEMO12Z0.SEQ. The conversion program does not alter the original files.

Exporting [S5D - Format]


An export filter is also integrated in S5 for Windows . This filter converts PLC programs into the STEP 5 format S5D. A PLC program existing in the memory of your personal computer is automatically converted during the write process to the disk. The file name has six (6) freely selected characters plus the characters ST. The characters S5D are used as the file name extension. The symbol table relating to the PLC program is also stored on disk during this process. The symbol file gets the same name as the program file (the first six characters) followed by Z0 and the file name extension SEQ.

a Siemens STEP 7 programming system and S7 program libraries can directly be imported by S7 for Windows .

Importing [S5D - Format]


S5 for Windows has an integrated import filter. PLC programs created with the basic PLC programming package, STEP 5 from SIEMENS with a DOS operating system (or S5-DOS), can be opened directly. The import function converts such files into the S5 for Windows format by reading the data from the disk into the memory of your personal computer. Files created with SI-12-

CPM Format
If your PLC programs have been created with one of the following SIEMENS programming systems, PG-685, PG-675 or PG-635, in CPM, they must be converted into a DOS disk format. We can supply the shareware converter program Sydex 22DISK. The converted files can then be imported by S5 for Windows .

G5 for Windows
Step Sequence Programming
G5 for Windows Step Sequence Programming is a tool for programming sequential steps (sequencer control) within a STEP 5 PLC program. A Step Sequence programmed in a Step Sequence Block (SB) is made up of steps and transitions. The transitions logic is used to enable the following step. The graphical G5 for Windows

Step Sequence Programming supports linear sequences, alternative branching, simultaneous branching and jumps. Steps are displayed with boxes. There is a differentiation between an initial step, a permanent step, and a selective step. The initial step is used for an unconditional start of the Step Sequence. The instructions of a permanent step will always be executed even if the step flag is not active. The instructions of a selective step will be jumped over if the step flag is not active. Transitions are displayed as lines. The following step will only be executed if the logic of a transition is true. With a simultaneous branch it is possible to branch out to up to eight (8) further steps. The graphical display of steps and transitions may include comments. With the exception of the initial step, each step may have a time assigned to it. This could be a waiting Time (delay timer) or a monitoring time (watch dog). The G5 for Windows Graphical Step Sequence program-13-

ming is compatible to the Siemens GRAPH 5 and GRAPH 5/II PLC programming package and therefore it contains the standard Siemens Function Blocks and Step Sequence Blocks (FB70/71 - SB0, FB72 - SB2, FB73 - SB3). In addition G5 for Windows provides the G5 programming mode. In this mode the standard Siemens Function Blocks and Step Sequence Blocks are not used which results in reduced overhead and this improves the execution time of a Step Sequence Block drastically. Also Step Sequences may be programmed in Blocks other than SBs. Simultaneously to the actual Step Sequence, the logic of the selected Step or Transition is displayed in a separate window. This logic may be displayed and edited in Ladder logic (LAD), Control System Flowchart (CSF), or Statement List (STL). The size of the logic window may be adjusted. The corresponding Symbolic Library may also be displayed and edited at the same time. The size of the step boxes are adjustable to the size (number of characters per line, number of lines) of the comments used. The status display has the same layout as the editor window. Active and corrupted steps are specifically indicated.
Limits
Maxi mum number of steps i ncl. SUL's *) Maxi mum number of transi ti on Maxi mum number of SUL's Maxi mum depth of si multaneous branchi ng Maxi mum number of i ni ti al steps 127 127 26 A... Z 8 8

*) SUL Step Overlay Functions. These are conditions to apply to all or selected steps.

DDE Interface
S5 for Windows as well as S7 for Windows support the DDE interface (DDE = Dynamic Data Exchange, a communication protocol defined by Windows). This interface allows you to exchange data with other Windows applications (programs from other vendors). Via DDE, data may be exchanged with process
visualization programs to display an actual process. Analog values may be transferred to a spreadsheet program, like Microsoft Excel, for further manipulation (calculation, business graphics, database, etc.). Data can be exchanged between the S5/S7 Software PLCs SoftPLC, the S5/S7 Simatic PLCs, as well as the Integrated S5 Simulation PLC, and any other windows application. This could be a process visualization, spread sheet calculation software (Microsoft Excel), etc. As a result of the DDE Hotlink, updated information is automatically transferred. A periodic request is not needed. The DDE interface uses the multi channel technique. Several Windows applications can access the interface simultaneously.

PLC Block Compare BlockDiff


The BlockDiff option is a powerful easy to use tool to compare PLC programs or Blocks. You ences. A detailed window can than be opened to review the differences in STL listing. You can set a variety of filters to customize the compare routines. For instance, comments can be included in the compare function or you can leave the comments out, its your choice. BlockDiff is an optional, integrated, 32 bit application of S5 / S7 for Windows that prodives detailed information about the differences between two PLC programs. The standard tool, incorporated in the S5 / S7 for Windows programming package, compares Blocks from the PLC with the corresponding Blocks in the PC,

can compare two (2) PLC programs in the S5 for Windows file format, or two (2) PLC programs in the S7 for Windows file format, or two (2) PLC programs in the Siemens Programming Unit (PU) file format (*.S5D), or two PLC programs, one in the Siemens file format and one in the S5 for Windows format. These files may located on a PC as well as a PLC. This tool will create a list of the existing blocks and will indiate the differ-14-

and indicates where the differences begin in a bolck (segment number).

SoftPLC

The Software PLC


PLC S7-315 version is compatible to the Simatic S7 CPU 315. The PLC S7-416 version is compatible to the Simatic S7 CPU 416.

The Software PLC comes in two basic configurations. Step 5 compatible programming Step 7 compatible programming

SoftPLC I /Os
The Software PLC can access standard I/O boards as well as numerous intelligent hardware boards available to control bus systems widely used by the industries (e.g. Profi Bus DB, INTERBUS, DeviceNet, CAN-Bus, etc.). Drivers have been developed to connect bus system interface boards with the software PLC.

SoftPLC on a Single Processor System SoftPLC Fundamentals


The software PLC is a straightforward software solution that is executed in a Windows environment. The software PLC is executed in the same manner as a hardware PLC. The advantage of executing a PLC program in this manner is that the PLC status can be displayed in real time without any recompile activities. Diagnostics and testing of a PLC program is much easier and the instructions to be executed can be monitored in real time. Single blocks can be transferred directly into the PLC within a PC. In a single processor application, the software PLC simultaneously shares the CPU power with the other applications to be executed. The CPU power allocation is freely selectable. For instance fifty percent (50%) of the CPU time (time slice) is assigned to the software PLC and the other 50% is used by the other applications. The software PLC is called within a preset time-frame, which could be 2ms.

SoftPLC on a Dual Processor System


In the Windows NT / 2000 environment with a dual processor system, one CPU is totally allocated to the software PLC. The PLC cycle time is dependant on the execution time of the OB1. If OB1 has a short execution time, the number of cycles per time period is high.

SoftPLC Operating Systems


To meet the demands of our customers and provide flexibility, a variety of hardware and software platforms are available that support the software PLC. The S5 version can be installed on systems using Windows 3.1x/95/98 or Windows NT 4.x / Windows 2000. The S7 software PLC must be installed on systems using Windows NT 4.x or Windows 2000.

SoftPLC on an additional Processor Board


The user also has the ability to install and activate the software PLC on an additional processor board which can be plugged into the motherboard of the PC. The software PLC is then completely independent from the PC hardware. The additional processor board may be powered with its own power supply. Such a setup has the advantage of being independant of a PC failure that ordinarily would impact the software PLC. Well known manufacturers offer processor board with integrated bus interfaces (e.g. Inter Bus, Profi Bus, Can Bus, ASI Bus, DeciveNet, etc.) as a complete PLC solution. -15-

SoftPLC Compatibility
To meet a variety of performance requirements and still have the ability to transfer existing PLC programs, without any modifications, into a modern PLC environment, several versions of the software PLCs are available. The software PLC version PLC S5-943 is compatible to the Simatic S5 PLC CPU943. The PLC S5-945 version is compatible to the Simatic S5 PLC CPU945. The

SoftPLC

The Software PLC


Integrated Watchdog Function
Intelligent up-to-date Bus Control Boards today have integrated watchdog functions. These watchdog functions guarantee that the inputs and outputs of the SoftPLC, in case of a hardware failure of the PC, are handled in the same way as a hardware PLC CPU. If the PC fails, all the outputs of the Bus System are reset.

Monitoring, Operating, and Controlling Simultaneously, from one PC


The SoftPLC integrated in a PC allows process monitoring, operation, and control from one hardware unit. The use of the SoftPLC is especially useful if the process currently calls for a PC for data collection, process visualization, programming, or any other reason. Such a solution reduces the required hardware by a PLC-CPU and the corresponding communication processor.

Standardized Interfaces to Windows Applications


The SoftPLC has a Hotlink DDE interface with

Additional Function
Having a software PLC in the PC environment it is useful to add additional functions to the PLC instruction set. These additional functions us the command structure of the S5 (DO RSnn) or the S7 (SFCnn, SFBnn) environment.

Visualization
EA
N.C.

RA

Software PLC
DLL DDE FastDDE

The Thinking behind the Product


SoftPLC

OA
N.C.

multi-channel capability. Windows applications can directly access the data in the SoftPLC via this interface. Nearly all visualization programs support the DDE interface. Using DDE no special drivers are required. For Windows applications using FastDDE Interface, such as In-Touch from WonderWare, a special FastDDE driver is available as an option. This FastDDE driver allows you to customize the transfer of specific PLC data at selectable time periods. This technique reduces the data load on the PC. For Visualization systems, equipped with an OPC interface, an optional driver has been developed.

SoftPLC Access via DLL


For fast data transfer between the software PLC and other Windows applications, a DLL is available. Examples for Visual Basic, Excel and C, are supplied. Numerous visualization software suppliers have DLLs available for fast data transfer between the SoftPLC and their visualization software. -16-

There are two versions of the S5 compatible, SoftPLC. The major difference between them is the size of the PLC program memory. The PLC S5-943 has 48kB of program memory and the PLC S5-945 has 720kB of program memory. The execution time of the software PLC, of course will depend on the execution time of the CPU. Both versions have an integrated PID algorithm. Internally, the PID algorithm, to increase the accuracy, uses floating point mathematics. To be compatible with a Siemens CPU, external numbers for the PID algorithm use interger values. Both versions are set to make use of two (2) or four (4) accumulators. There are two versions of the S7 compatible, SoftPLC, the PLC S7-315 and the PLC S7-416. The only difference between the PLC S7-315, a software PLC, and the Siemens S7-315 hardware CPU is we have set both the load memory and the working memory to 100kB, each. In the PLC S7-416, a function is available to set the memory allocation. As a result, the load memory and the working memory is only limited by the amount of memory available in the PC. When using the PLC S7-315 or the PLC S7-416 you can write your own SFBs and SFCs in Borland C++.

SoftPLC
Hardware Access

The Software PLC


Inter Bus (boards from Phoenix and Hilscher), Profi Bus DP, CAN-Bus, ASI Bus, DeviceNet (boards from Hilscher).

To connect the PC executing the Software PLC with the outside world, an interface board is required. Small applications may only require MultiI/O boards. These boards can be accessed di-

Network Connection
With a standard Ethernet board it is possible to connect to an existing network (Internet, Intranet) with the TCP/IP or SINEC H1 Protocol. The TCP/IP-Protocol enables the diagnosis of the Software PLC via the internet or a continuous data exchange is possible via a Company Intranet. This is accomplished with S5 / S7 for Windows .

PLC S5-943 / PLC S5-945 Running under Windows 3.1x / 95 / 98


rectly from the Software PLC without major effort. The Software PLC (S5 version) provides special instructions (DO RS 10 up to DO RS 31) to initialize standard boards (port address) and to read inputs and to write to outputs. With the S7 versions SFBs or SFCs are used to do the same tasks. It is also possible to connect the PC to an external Bus System. In addition to standard I/O boards, different bus systems can be accessed via the Software PLC. Numerous intelligent hardware boards are available to control bus systems widely used by industry (e.g. Inter Bus, Profi Bus, CANBus, ASI Bus, DeviceNet, etc.). To access bus interface boards, drivers have been developed by IBHsoftec. Optionally, drivers for the following bus systems are available:
Compatible with Step 5 PLC S5-943 Load Memory Work Memory Memory Bits (Flags) S-Flags T imers Counters Digital I/O's Analoge I/O's Processing T ime*) Pentium II 300 **) Pentium II 300 Double Processor 560 s 180 s 560s 180 s 300s 90 s 300s 90 s 560s 180 s 560s 180 s 48 KB 2048 32 768 256 256 1024 256 PLC S5-945 720 KB 2048 32 768 256 256 1024 256

The Software PLC, to be executed under Windows 3.1x / 95/98, is developed as a device driver. The power of the CPU of a Personal Computer (PC) is split between Windows 3.1x / 95 / 98 and its application and the execution of the software PLC. The portions may be set individually. For instance, 50% of the CPU power may be used by Windows and its applications, the other 50% is used by the Software PLC. The fixed time slice of the CPU power gives the PLC real time performance. Hotkeys can be defined. Hotkeys are hardware devices (push-button, key, switch, etc.) that control a special task. It is possible to simulate several keystrokes with the push of one key or to inhibit the function of one or several keystrokes (e.g. Ctrl-Alt-Delete). The SoftPLC has direct access to the PC monitor to display information.
Windows 3.1x/95/98
Compatible with Step 5 PLC S5-943 48 KB 2048 32 768 256 256 1024 256 PLC S5-945 720 KB 2048 32 768 256 256 1024 256 PLC S7-416 adjustable adjustable 16 384 512 512 32 768 2 048 Compatiblel with Step 7 PLC S7-315 100 KB 100 KB 2048 128 64 1024 64

Windows NT 4 / Windows 2000

*) 1024 mixed instructions (50% binary, 50% digital). **) Time setting 50% PLC time, 50% Window s time.

-17-

Programming Devices for S5/S7 Modules


EPROMMER
A dialog box provides you with a list of the Siemens EPROM and EEPROM Modules with their ID Numb e r s (MLFB N u m b e r ) . This is the code printed on each module. The corresponding programming number, the memory size, and the memory organization (word, block, or byte) is also displayed. After selecting a module its parameters are displayed in a separate dialog box. In addition to the parameters displayed in the module selection dialog box, information about the hardware key, the location of the memory devices (ID-number of the EPROM/EEPROM) and the actual selected mode, is available.

Flash PROMMER
The S5/S7 for Windows Flash PROMMER is used to program the new Memory Cards (Flash PROMMS) for the S5 and the S7-300 and S7400 PLC series. The Flash PROMMER is handled in exactly the same way as the S5 for Windows EPROMMER. The Module Selection dialog box is extended and lists the new Memory Cards for selection. The Flash PROMMER is also connected via the parallel printer port of the PC. All the options such as erasing, displaying, reading, transferring, comparing, and the erase check are also available for the Flash PROMMER.

EPROM Eraser
EPROM Eraser UVL3

S5 / S7 EPROM Modules
An adjustable timer to set the erase time is integrated. The UVL3 can be operated with the 24V DC from a PLC power supply. As an option, an addition an external 115V AC / 24V DC power supply is available.
Technical Data Size: in mm Erase Area: in mm Weight: in kg Power Supply Erase T ime: adjustible UVL3 160 x 85 x 50 135 x 70 x 30 0.6 24V DC 8VA, optional power supply 115V AC / 24V DC 0.5 to 25 min

Designed for the portability the UVL3 EPROM Eraser offers an easy and safe way to erase EPROM Module and EPROM chips. The small size and its low weight are the special features of this EPROM Eraser. The bottom of the eraser is open. To erase modules the eraser is placed over the EPROMS. -18-

On-Line Connections (PLC PC)


Current Loop Converter
The SMD electronics are located in the 15 pin Sub.-D connector shell. The pin assignment is compatible with the S5 PLCs (U90, U95, U100, U101, U115, U135, U155). The PLC must be active and must supply the loop current (2 x 20mA). The 9 pin Sub.-D connector is plugged into the serial port (COM1 - COM4) of the PC. 20mA) need the Constant Current Adapter for connection. Two constant current (20mA) sources are located in the 15 pin Sub.-D connector shell to supply the loop current. The adapter is delivered with a AC / DC adapter. The pin assignment matches the pin assignment of the S5 for Windows Current Loop Converter.
PLC
20 mA 11 6

Current Loop Converter


11 6 RTS DTR

Cable

9 pin Sub.-D Connector


7 4

Extension Cable
The S5 for Windows Current Loop Converter optically isolates the PLC from the PC. Cable length of several hundred meters (thousand feet) are possible (on the current loop side). The extension cable provides an extension between the PLC and the Current Loop Converter. The cable provides all the necessary lines and jumpers.
Transmitter
Ground (Internal)

Yellow

Request to Send Data Terminal Ready

TTY OUT +

7
TTY OUT -

7 12 13 9

RX

White Green

Receive Data

12 13 9

20 mA

GND

Signal Ground

TTY IN +

Receiver

2
TTY IN -

2 5

TX

Brown

Transmit Data

Constant Current Adapter


Devices that do not supply the loop current (2 x

5
Ground (Internal) Shell

Shell

Shield

Shell

S7 PC MPI Adapter Cable


S7PC-MPI-Adapter SSW7
A Hi-Speed Adapter to transfer data between S7 for Windows and the Siemens S7-300 and S7400 is available. This adapter converts the serial port signals into the MPI protocol to provide all the on-line functions available with S7 for Windows . The required power normally is supplied by the S7-300 or S7-400 PLC. If the MPI Bus does not supply enough power, an external power supply (15 - 30VDC) may be connected to the SSW7 Adapter. The SSW7 Adapter provides a connector (9 pin Sub-D) to attach the -19adapter via a standard Null-Modem cable (delivered with the SSW7) with the PC Adapter.

S7PC-MPI-Adapter
Alternatively, the Siemens PCM-MPI Adapter to connect the PC with the S7-300 or S7-400 PLC is available. This connector allows transfer rates of 19.8 kBaud or 38.4 kBaud. The Adapter must be connected via a standard Null-Modem cable with the PC.
Technical Data
Voltage Current MPI-Interface Type Baud Rate Connector Communication Interface Type Transfer mode Baud Rate Connector +24V 25%, from the PLC or external Approx. 100mA RS485 187.5 Kbaud Plug, SUB-D 9-pin RS232 serial asynchronys 19.2 Kbaud, 38.4 Kbaud, 56 Kbaud, 115 Kbaud Plug, SUB-D 9-pin

Documentation Printout

S5 for Windows - LAD Example


Segment 1: Punch Press Sequence Control

S5 for Windows - CSF Example

Segment 1: Punch Press Sequence Control


S-NEXT
S-DOWN S-DOWN-1 >=1 & T-PRSS >=1 & >=1 T-RELEASE S-RELEASE & >=1 S-ROTATE TO-NPOS POS-T &

S-DOWN S-DOWN-1 S-UP T-RELEASE S-ROTATE S-CONTIN

T-PRSS

TOP S-RELEASE TO-NPOS POS-T

S-UP TOP

I 32.0 I 32.2 F 1.0 F 1.1 F 1.2 F 1.3 F 1.4 F 1.5 F 1.6 F 1.7 F 3.0 F 3.3 T 1 T 4

POS-T TOP S-UP S-ROTATE S-FLASH S-DOWN S-CONTIN S-RELEASE S-DOWN-1 S-LMPOFF S-NEXT TO-NPOS T-RELEASE T-PRSS

Position Punch Press Table Punch Press at Top Step 1 : Punch Press Upward Step 2 : Rotate Punch Press Table 90 Step 3 : Flash Indicator Lamp Step 4 : Punch Press Downward Step 5 : Indicator Lamp Continuous Step 6 : Punch Press Releas (up) Step 7 : Punch Press Downward Step 8 : Indicator Lampe Off Next Step Rotate in to next Position Release Time Press Time

S-CONTIN S-FLASH S-LMPOFF I 32.0 I 32.2 F 1.0 F 1.1 F 1.2 F 1.3 F 1.4 F 1.5 F 1.6 F 1.7 F 3.0 F 3.3 T 1 T 4 POS-T TOP S-UP S-ROTATE S-FLASH S-DOWN S-CONTIN S-RELEASE S-DOWN-1 S-LMPOFF S-NEXT TO-NPOS T-RELEASE T-PRSS

S-NEXT

Segment 2: Punch Press Down S-DOWN S-DOWN-1 BOTTOM DOWN-1

Position Punch Press Table Punch Press at Top Step 1 : Punch Press Upward Step 2 : Rotate Punch Press Table 90 Step 3 : Flash Indicator Lamp Step 3 : Flash Indicator Lamp Step 5 : Indicator Lamp Continuous Step 6 : Punch Press Releas (up) Step 7 : Punch Press Downward Step 8 : Indicator Lampe Off Next Step Rotate in to next Position Release Time Press Time

-20-

Segment 2: Punch Press Down


S-DOWN S-DOWN-1 >=1 & BOTTOM = = Q 32.1 Q 32.4 I 32.1 F 1.3 F 1.6 DOWN DOWN-1 BOTTOM S-DOWN S-DOWN-1 DOWN-1 DOWN Punch Press Downward Punch Press Downward Punch Press at Bottom Step 4 : Punch Press Downward Step 7 : Punch Press Downward

DOWN

Q 32.1 Q 32.4 I 32.1 F 1.3 F 1.6

DOWN DOWN-1 BOTTOM S-DOWN S-DOWN-1

Punch Press Downward Punch Press Downward Punch Press at Bottom Step 4 : Punch Press Downward Step 7 : Punch Press Downward

Segment 3: Punch Press Up S-UP S-RELEASE UP-1

Segment 3: Punch Press Up


S-UP S-RELEASE >=1 = = UP-1 UP Punch Press Upward Punch Press Upward Step 1 : Punch Press Upward Step 6 : Punch Press Releas (up)

UP

Q Q F F

32.2 32.3 1.0 1.5

UP UP-1 S-UP S-RELEASE

Punch Press Upward Punch Press Upward Step 1 : Punch Press Upward Step 6 : Punch Press Releas (up)

Q Q F F

32.2 32.3 1.0 1.5

UP UP-1 S-UP S-RELEASE

File: PRESSRUN - PB 31 Generated: 09/18/97 14:24:43

Name: B. P. Schulz-Heise Date: 09/18/1997

TTI Trans Tech International Germany

Page: 1+

File: PRESSRUN - PB 30 Generated: 06/18/00 13:10:32

Name: B. P. Schulz-Heise Date: 06/18/2000

TTI Trans Tech International Germany

Page: 1+

Documentation Printout

S5 for Windows - TTI- G5 Example SB 10


Step Sequence Parameters SB 10 Version : G5 for Windows Timer Base : 40 Flag Base : 50 Used Timers : T40 - T45 Number of Steps : 14 Number of Transitions :16

S7 for Windows - S7 STL Example

Variables Table: Sum Calculating Address 0.0 10.0 14.0 0.0 2.0 4.0
T8 Press in Down Position T10 Final Sequence S 13 Open Valve T15 Pressure not Raising S 14 Hydraulic Off T16 Valve Closed ? T14 Pressure OK?

Area IN OUT TEMP

Name Measured_Value Sum Averadge_Value Loop_Counter Number_of_Elements DB_Number

Type ANY REAL REAL WORD WORD

Starting Value

Comment

S1 Start Step Sequence T1 Start Press S2 Punch Press Upward T6 Rotate to Next Position S6 Rotate Table 90

Segment 1: Calculating the Sum L P##Measured_Value // Load area pointer (calculate start address) LAR1 // Load address register 1 L B[AR1, P#1.0] // Read data type identification (Real) L 8 // Real identification (16#08) ==I // Compare JC real //Jump if data type Real // The following Instructions are used if Data Type is not Real CLR // Clear ROL SAVE // Save ROL in BIE Register L L#-1 // Load invalid Real Value T #Sum // Transfer ACCU to #Sum T #Average_Value // Transfer ACCU to #Average_Value BEU // Return ( Unconditional Block End) real: NOP 0 // The following Instructions are used if Data Type is Real L W[AR1, P#2.0] // load number of field elements T #Loop_Counter //Loop Counter initialization L W[AR1, P#4.0] // Load DB Number T #DB_Number // Transvet DB Number to Temp. Varible 'DB_Number <>I // Check if Zero JC far1 // Jump if Zero BEU // Return ( Unconditional Block End) far1: NOP 0 OPN DB[#DB_Number] // Open Data Block L 0.0 // Load 0.0 (Real Value) T #Sum // Transfer Real Value to #Sum L D[AR1, P#6.0] // Load pointer of actual parameter LAR1 // Load pointer into Address Register L #Loop_Counter // Load Loop Counter T #Number_of_Elements // Transfer number of elements TARG: T #Loop_Counter // Loop Start L D[AR1, P#0.0] // Load field component in ACCU1 L #Sum // Load #Sum +R // Add (Real Values) T #Sum // Transfer to #Sum +AR1 P#4.0 // Increment Address Register by 4 L #Loop_Counter // Load Loop Counter LOOP TARG // Loopuntil Loop Couner is zero Segment 2: Calculating the linear average L #Sum L #Number_of_Elements DTR /R T #Average_Value SET SAVE // Load Sum // Number of elements // Modify fixed point value to Real // Calculate Average Value in ACCU1 // Transfer to #Average_Value // Set RLO Register to "1" // Save RLO in BIE Register

S8 Punch Press Release

S 10 Punch Press Downw. T11 Moving Down

T2 Press in Top Position S3 Flash Indicator Light T3 Release Press S4 Rotate Table

T7 Table in Position

T9 Press in Release Pos.

S 11 Indicator Lamp Off T12 Tool in Position S7 Green Light ON S9 Red Light ON S 12 Rotate Tool T13 Go to Step 1 S0

T4 Table in Position

-21-

S5 Delay T5 Go to Step 1 S0 S1 : Start Step Sequence S2 : Punch Press Upward S3 : Flash Indicator Light S4 : Rotate Table S5 : Delay S6 : Rotate Table 90 S7 : Green Light ON S8 : Punch Press Release (Up) S9 : Red Light ON S10 : Punch Press Downward S11 : Indicator Lamp Off S12 : Rotate Tool S13 : Open Valve S14 : Hydraulic OFF T1 : Start Press T2 : Press in Top Position T3 : Release Press T4 : Table in Position T5 : Go to Step 1 T6 : Rotate to Next Position T7 : Table in Position T8 : Press in Down Position T9 : Press in Release Position T10 : Final Sequence T11 : Moving Down T12 : Tool in Position T13 : Go to Step 1 T14 : Pressure OK? T15 : Pressure not Riseing T16 : Valve Closed ?
File: PRESSRUN - PB 30 Generated: 06/18/00 13:10:32 Name: B. P. Schulz-Heise Date: 06/18/2000

TTI Trans Tech International Germany

Example Step Sequence Page: 1+

File: Sum_Calculation - FC 43 Generated: 07/03/00 11:18:32

Name: B. P. Schulz-Heise Date: 07/03/2000

TTI Trans Tech International Germany

Page: 1+

Technical Data S5 / S7 for Windows


1. System Requirements
Windows compatible Personal Computer, Microsoft Windows 95 / 98 / NT 4.0 / 2000 (Pentium 133 minimum 32 MB RAM). 16 MB hard disk space. CD-ROM drive or Floppy Disk drive 1,44MB/3,5 inch (for installation).

7. Symbolic Table
Editing with the integrated or external editor. Check if address (symbolic or absolute) is defined more than once. Sorting by address or symbol. Search and display of undefined addresses. Rewire (search and replace).

2. Instruction set
S5 for Windows supports the complete set of STEP 5 instructions. S7 for Windows supports the complete set of STEP 7 instructions.

8. Block Functions
Blocks (single or groups) may be selected (marked) with the mouse or the keyboard. These blocks may then be transmitted from/to the PLC, renamed, copied, printed, or copied into other programs.

3. File Format
S5 for Windows : Internal file format with the date the Block was created / change date and a Block comment or Siemens PU file format (*.S5D). Import and Export of Siemens PLC programs with comments and extended comments. Symbolic files in the SEQ. format. A Shareware program to convert CPM disks in both directions is available. S7 for Windows : Internal file format with the date the Block was created / change date and a Block comment. ASCII text file format for PLC program export. Symbolic files in the SEQ. format. S7 PLC programs and libraries can be imported directly.

9. On-Line Functions (COM1 - COM4)


Block Status display in Ladder Logic (LAD), Control System Flowchart (CSF), Statement List (STL) or Step Sequence programming. Signal Set and Reset directly within the status display. Data Block status display (S5 and S7). PLC Block List, Compress PLC Memory, Block comparison with the PLC, and Interrupt Stack Display (S7 Diagnostic Buffer) with the part of a faulty program. Display and modify variables directly within the status display. DDE interface. H1 Bus connection. TCP/IP protocol support.

10. Printing
Block List with the date of Block creation or change (S5 for Windows file format) and comments. Blocks in Ladder Logic (LAD), Control System Flowchart (CSF), Statement List (STL), or Step Sequence programming. Cross Reference, Symbolic Table, Footer with file name, Block name, Block creation or change date, programmer name, date printed, three (3) lines for company name and address, two (2) lines for special use (unassigned) Sheet number. Fonts and sizes selectable. Support for all printers selected under Windows. Single sheet printing.

4. Presentation
S5 for Windows : Block List with the date of the last modification of each Block (S5 for Windows file format). Control System Flowchart (CSF), Statement List (STL) and Block Statement List (B-STL). Ladder Logic (LAD) and graphical Step Sequence (G5 for Windows ) optional. S7 for Windows : Block List with the date of the last modification of each Block. Control System Flowchart (CSF), Statement List (STL) and Source Text. Ladder Logic (LAD) optional

11. Help Function


Help with index. Help for selected function.

5. Editing
Ladder Logic (LAD), Control System Flowchart (CSF), and step sequence (G5 for Windows ) programming with graphic editor using mouse or key board. Statement List (Block Statement List / Source Text), Symbolic Table and extended comment with integrated text editor. Cut, Copy, and Paste function via the Windows Clipboard.This function can move text to other Windows applications.The Symbolic Table editor is integrated with the Ladder Logic (LAD), Control System Flowchart (CSF), Statement List (Block Statement List / Source Text), and Step Sequence display.

12. Simulation PLC


Step 5 instructions up to the Siemens PLC 115U (CPU 944) without system commands (limitations only apply to the S5 Simulation PLC - see paragraph 2). PLC memory only limited by the PC main memory. 1024 Inputs and 1024 Outputs. 128 Peripheral Bytes. 2048 Flags. 128 Timer and 128 Counters. 256 of each OB, PB, FB, FX, DB, DX, SB. Block status presentation in Function Logic, Ladder Logic, Statement List or Step Sequence programming. Signal Set and Reset directly within the status display. Single step program execution down to single instruction lines. DDE - Interface.

6. Cross Reference
On-Line Cross Reference with a mouse or keyboard for a selected address (symbolic or absolute) from the edit or status windows. Direct jump to the block from the cross reference list. Double use supported (if a word or byte and a bit from the same address is used separately). Cross Reference printout.

12. Extended Simulation PLCs (optional)


S5 for Windows : Step 5 instructions of the PLC 115U CPU 945 with all system commands, floating point instructions and identical memory allocation. S7 for Windows : Step 7 complete instruction set of the S7 CPU 416.

-22-

On-Line Program Test


STL S7 STL S5

S5 CSF

S7 LAD

Graphical Step Sequence


-23-

Das könnte Ihnen auch gefallen