Professional Documents
Culture Documents
This quick start is valid for: IBS CMD SWT G4 Version 4.6x or later
General Notes
Unless otherwise indicated, all information in this guide refers to the IBS CMD G4 software. When using this guide, please observe the following notes: The attention symbol refers to an operating procedure which, if not carefully followed, could result in damage to equipment or personal injury. The symbol is always located to the left of the text to be noted. The note symbol gives you tips and advice on hardware and software optimization. It also informs you of conditions that must be strictly observed to achieve error-free operation. The symbol is also used to clarify terms. The text symbol refers you to detailed sources of information (manuals, data sheets, literature, etc.) on the subject matter, product, etc. This text also provides helpful information for the orientation in the manual. Right and secure use of the product requires proper transport, storage, mounting and assembly as well as careful operation and installation. The use of this product is only permitted by qualified personnel authorized to start up, ground and mark devices, systems and electric circuits according to the standards of safety technology. Phoenix Contact assumes no liability for damage or personal injury resulting from disregard of notes and safety guidelines contained in this manual. Please note that software/hardware designations and brand names of the companies mentioned are, as a rule, protected by copyright, trademark or patent. Up-to-date information on Phoenix Contact products can be found on the Internet at www.phoenixcontact.com.
6531A
6531A
Table of Contents
General Notes ...................................................................... 1
System Requirements.............................................. 6
Preconditions ....................................................................... 6 Hardware Requirements for IBS CMD G4 ........................... 6
Installing.................................................................... 7
Starting your installation Program ........................................ 7 Running the installation Program ......................................... 7
Creating a Project................................................... 18
Menu Structure and Operating Concept ............................ 18 Creating a Project .............................................................. 18
Reading the Configuration .................................... 25 Linking with Device Description ........................... 26 Creating the Bus Configuration Manually............ 29 Describing the Project ........................................... 34 Process Data Descriptions/Signal Paths ............. 36
6531A
Table of Contents
Process Data Descriptions .................................................36 Signal Paths........................................................................36
Compiling................................................................ 47 Executing Parameterization and Download......... 48 Testing the Application Program.......................... 50 Diagnostics ............................................................. 52
Message History .................................................................53 Recording Statistics ............................................................53
6531A
1. IBS CMD G4
1.1 First Steps
With the help of a sample project, this document guides you through the process of parameterization of a bus configuration and the pre-processing of process data in IBS CMD G4. Without physical bus configuration, no functions and commands that require communication with the controller board, can be executed. However, complete parameterization is possible in the "Configuration (offline)" operating state. Likewise, the application program can be created and compiled.
6531A
2. System Requirements
2.1 Preconditions
The installation notes require a certain basic knowledge comprising the general handling of the Windows program that cannot be covered here because it would go beyond the scope of this manual. Should questions arise please refer to the Windows manuals or online help.
2.2
To run this IBS CMD G4 you should have at least the following hardware and software: Pentium >90 MHz 16 Mbytes RAM (recommended: 32 Mbytes) 50 MB free hard disk space CD-ROM drive Mouse Windows 95/98, Windows NT 4, Windows 2000, Windows XP Serial interface Parallel interface (LPT1 LPT2) INTERBUS Generation 4 controller board
If these hardware requirements are met you can run the IBS CMD G4.
6531A
3. Installing
3.1 Starting your installation Program
Start the "SETUP.EXE file from the [LW]:\INSTALL\DISK1 directory of the CD-ROM to install IBS CMD G4.. The installation program creates all directories that are necessary for operation and copies files into these directories according to your selection in the installation program. 1. Insert the CD in your CD-ROM drive. 2. Open the Windows file manager (work place, Explorer), and select the drive letter of your floppy disk drive. The "SETUP.EXE file is in the [LW]:\INSTALL\DISK1\ directory of the CD. 3. ^Start the installation program by double-clicking the "SETUP.EXE" file. 4. Follow the instructions for the installation program.
3.2
The installation program is loaded after doubl-clicking the "SETUP.EXE" file. A window shows the progress of the loading process.
6531A
The following message appears when the installation program has been loaded:
Figure 2 "Welcome" dialog box You can abort installation at this point if, e.g. if other Windows applications are open or if the "SETUP.EXE" file was selected accidentally. To continue installation, click the "Next >" button. Then a text editor is started which displays the latest information about IBS CMD G4. The file that is open (README.TXT) is also in the root directory on the CD-ROM. After reading the file, please close the text editor in order to continue.
6531A
Then enter your name, the name of your company, and the serial number of IBS CMD G4.
Figure 4 Select program components You will find a detailed description of the IBS CMD G4 functions in the accompanying help files. The two drivers "RS232" and "IBS ISA" are the drivers of the controller board for the communication path through the diagnostics interface/ serial interface or through the PCs data bus.
6531A
In the next dialog box you can select in which program group or in which folder you want to store the start symbols (icons) for IBS CMD G4. You can create a new program group/folder or select an existing one.
You can assign a password to deny unauthorized persons access to program parts which change the configuration and parameterization of the bus system. If you do not enter a password, the password function is deactivated. In IBS CMD G4 you have the possibility of assigning a password later
10
6531A
Figure 6 Assign password Now the installation program is able to carry out installation with the settings you desire. The installation options are displayed again for confirmation.
6531A
11
Then the program files are copied onto your hard disk. The process is visualized by a progress display.
Figure 8 Progress display You must now select the serial interface which will provide the communication link between IBS CMD G4 and the controller board.
12
6531A
If you are using a PC controller board, IBS CMD G4 needs the communication parameters for the ISA bus.
Figure 10 IBS-ISA/SC configuration Both communication paths (serial, ISA bus) are entered in the Windows registry. Change them while IBS CMD G4 is active. This completes installation of IBS CMD G4. You have to restart your computer to activate the changes to the configuration files.
13
You start IBS CMD G4 by double-clicking the program symbol or with the "Start" button in the taskbar.
14
6531A
4. Example Project
4.1 Plant Description
Liquid is fed into a heating boiler through an inlet (Inflow_On). When the boiler is full, the heater switches on (Heating_On) and the liquid is heated. As soon as the liquid reaches the preset temperature, the heater switches off and the liquid drains out (Outflow_On). When the level of the liquid reaches a lower limit value, the drain valve is closed and new liquid is fed in. The process can be shut down using the "OFF" switch. The heater switches off and the valves close when the "OFF" switch is pressed.
4.2
6531A
15
4.3
When the type and number of the process data required in the example project has been determined, you can select the INTERBUS devices. The process data descriptions "Heating_On", "Inflow_On", "Outflow_On" are defined on a DO device. You need two inputs from an AI device for the process data descriptions "Liquidlevel" and "Temperature". The process data description "Off" requires one input from a DI device. Select the following four INTERBUS devices for the example project: Digital input module with at least one input such as: IB ST 24 BDI 8/4 or IB ST 24 DI 16/4
Digital output module with at least three outputs such as: IB ST 24 BDO 8/3 or IB ST 24 DO 16/3
Analog input module with at least two inputs such as: IB ST 24 AI 4/SF or IB ST 24 AI 4/SF4
BK (bus terminal) module for connecting the ST (smart terminal) modules to the remote bus. IBS ST 24 BK-T IBS ST 24 BKM-T
16
6531A
The minimum INTERBUS configuration which should be used for the example looks like this:
Figure 14 Minimum INTERBUS configuration It is not important for the example project where the devices are in your INTERBUS system. The device numbers in the example may differ from the device numbers in your bus system, if it has a different configuration. Within the example project, other INTERBUS devices can be used which control, for instance, other heating boilers, conveyor belts, etc. However, we restrict ourselves here to the four devices mentioned.
6531A
17
5. Creating a Project
5.1 Menu Structure and Operating Concept
Quick operation of IBS CMD G4 is enabled by menus allocated to devices and elements. Click with the right mouse button on the device/element to display the available menu items for a device/item in the context menu.
5.2
Creating a Project
To create a new project, proceed as follows: 1. First select the "New" command from the "File" menu to create a project without bus devices. 2. If you have already made changes in the previously loaded project, you will be asked whether you want to reject or save these changes. 3. After the new project has been created, save it with the command "File... Save As" and give the project the name "Plant01" in the following dialog box. 4. Confirm with "OK".
Figure 15 Flowchart "File...New..." This creates a new project without INTERBUS devices.
18
6531A
Figure 16 Basic elements of a project The elements "Project", "PLC/PC", "Controller Board", "Parameterization Memory", "Pre-processing", and "Configuration Frame" are the basic elements of a project. They are always available and cannot be deleted.
6531A
19
Figure 17 Selecting the Controller Board 1. Click the "Controller Board" item with the left mouse button. This is then high-lighted. 2. Click with the right mouse button to open the "Controller Board" context menu. 3. Select the "Type" menu item from the context menu and click the entry "IBS PC ISA SC/I-T" in the following dialog box. 4. Confirm the dialog box with "OK". The controller board is now selected.
20
6531A
6531A
21
7.1
1. Select the "Communication Path" command in the "Configuration" menu. 2. In the following dialog select the project tag and, if required, confirm with "Yes".
22
6531A
7.2
3. Select the option box "PC ISA Bus" to select communication via your PCs ISA bus. 4. Up to eight Field Controllers can be used in a PC which are numbered from 1 to 8. Select the entry "1" from the selection box because you only run one single controller board. 5. To specify the driver parameters, click the "Settings" button and fill out the following dialog box.
Figure 20 Driver settings IO address This address must be set on the controller board by DIP switches and entered here. Every board in your PC requires an I/O address area for control and status data. Communication address The data exchange between the controller board and the PC takes place via a special memory area. The start address of this memory area must be specified here. In addition, you have to protect the memory area against unauthorized access. This is achieved, for example, by entering DEVICE=C:\DOS\EMM386.EXE NOEMS x=D000-D100 in the "CONFIG.SYS" file. Interrupt Set an available interrupt of your PC here. Accesses to the controller board are reported to the PC by this interrupt.
6531A
23
7.3
1. Select the "Serial interface" option box to choose communication via your PCs serial interface. 2. In the "Serial interface" select box, select the serial interface on your PC which you have used to connect the controller board. 3. Click on the "Settings" button to display the communication parameters of the serial interface you have selected.
7.4
Under Windows NT and Windows 2000 you use the same dialog as under Windows 95/98. However, you can only specify the communication path, not the path parameters of the communication path or the desired interface. Under Windows NT and Windows 2000, the communication parameters are determined when IBS CMD G4 is installed.
24
6531A
Figure 21 Reading bus configuration 4. The connected bus configuration is read in and can now be adapted to the requirements of the example project.
6531A
25
26
6531A
3. You can choose for the entire bus segment or for each device whether you want to link them. Confirm each prompt with "Yes".
Figure 24 Linking devices 4. In the following dialog box you are offered a selection of devices matching the ID code and process data length of the device to be linked. Select the suitable device.
Figure 25 Select suitable device Device descriptions suitable for the example project are: IBS ST 24 BK-T IB ST 24 DO 8/32A IB ST 24 DI 16/4 IB IL 24 AI 4/SF Bus terminal Digital Output Module With 8 Channels Digital Input Module With 16 Channels Analog input module with 4 channels
6531A
27
Then the individual devices can be described. 5. Mark the device to be described and open the context menu with the right mouse button. 6. Select the "Description" command from the context menu. 7. Assign the station name and the device name and confirm the dialog with "OK". Use the following names: IBS ST 24 BK-T Station name: Hall 2 Cabinet 1 Device name: First bus terminal module 8 digital outputs 16 Digital Inputs 4 analog inputs
28
6531A
6531A
29
Figure 27 Flowchart "Create Bus Configuration" 1. To insert the first device, the controller board must be selected first. 2. Press <Ins> or select "Insert with Description" from the "Edit" menu to insert a bus terminal module of the IBS ST 24 BK-T type.
3. Search for all devices from the "Phoenix" group of type "IBS" in the device database. To do this, select the following from the dialog: Group:PHOENIX Type:IBS* (Search function: all names with "IBS") Here the character "*" stands for all entries in the device database. Using the letters "IBS" (that is to say: IBS*) find all types beginning with IBS. 4. Click the "Browse" button. 5. After the devices are read in, click "IBS ST 24 BK-T" in the "Output" area. 6. Confirm your selection with "OK".
Figure 29 Describe devices and select isolated disconnection 7. The device description then follows. Enter: Station Name:Hall 2 Cabinet 1. Device name:first bus terminal module. 8. Confirm with "OK". Herewith the first device is available in the bus configuration and already described.
6531A
31
9. Mark the bus terminal module, because the next device (the digital output module "IB ST 24 DO 8/3-2A") is to be added after it. 10. Press <Ins> or select with "Insert with Description" from the "Edit" menu.
Figure 30 Select interface 11. Select the "Branching OUT2" interface from the dialog box. This is the local bus interface of the ST bus terminal module. 12. In the following dialog box enter: Group:PHOENIX Type:IB* (Search function: all names with "IB") 13. Click the "Browse" button. 14. Click the "IB ST 24 DO 8/3-2A" device in the "Output" area. 15. Confirm your selection with "OK". 16. The device description then follows. Enter: Station Name:Hall 2 Cabinet 1. Device Name:8 digital outputs. 17. Confirm with "OK". 18. Use the same procedure for the two remaining devices "IB ST 24 DI 16/4" and "IB ST 24 AI 4/SF".
32
6531A
ALTERNATIVE: If the library does not contain a device description for the device to be inserted , you must create your own description. Select "Insert with ID Code" from the "Edit" menu and enter the ID code of the device and its process data channel length.
6531A
33
Figure 31 Flowchart Describe Elements 1. Select the "Project" element and open the context menu. 2. Select the "Description" command. 3. Fill out the input areas in the dialog box to describe the "Project". The entry in the "Name" area is displayed above the respective element in the representation area. 4. Describe the elements "PLC/PC", "Controller Board", "Parameterization Memory", "Pre-processing", and "Configuration Frame" in the same way.
34
6531A
6531A
35
The available bus configuration needs not be identical with the bus configuration in the example project. The devices mentioned must merely be available at any position in the bus configuration.
6531A
37
Figure 35 Context menu "Pre-processing" 1. Select the "Variables" command from the context menu of the "Pre-processing" element. 2. Press the <Ins> key to create a new variable. 3. Enter the following data: Variable name= Data type= Data direction= Temperature", INT", I" (Q=output / I=input)
4. Mark the line number of the variable you have just created. 5. Press the <Ins> key to copy the variable. 6. Enter the following data for this variable: Variable name= Data type= Data direction= Liquidlevel", INT", I".
38
6531A
7. Proceed in the same way until all variables are created as shown below.
Figure 36 Variables Now you must assign the data (process data descriptions) of the INTERBUS to the created variables. 8. Mark the "Assignments" box of the first variable. 9. Press the right mouse button to open the context menu of the dialog box. 10. Select the "Process Data Allocation" command.
6531A
39
The following dialog box offers you the process data descriptions which match the variable in length and data direction.
Figure 37 Assignment of process data descriptions 11. Select the correct process data description and confirm with "OK". For the "Temperature" variable this is the process data description "1.3.5: +U2": (1.3 means that the process data description is on terminal "5, power channel 2" of device 1.3) 12. After you have assigned the correct process data descriptions to all variables, confirm the "Variables" dialog box with "OK".
40
6531A
14. Programming
Now the actual programming begins.
Figure 38 Programming The Function Block Editor is available for creating the preprocessing program. The Function Block Editor is a graphic editor in which you can position function blocks and functional elements on a worksheet and link them logically with each other. 1. Select the "Programming" command from the context menu of the "Pre-processing" element. This starts the graphic Function Block Editor. A toolbar appears at the top of the screen when the window is open. If the toolbar is not visible you can display it with the menu item "Layout... Toolbar... Two Rows".
Figure 39 Insertion point The first block you should insert is an AND gate with two negated and one non-negated input.
6531A
41
3. Click the "Insert Function" button. You can position new blocks using this button. The button is active if you have selected the insertion point on the worksheet beforehand. 4. In the following dialog box select the "AND" block from the "Name" selection box first. 5. Mark the formal parameter (input) "IN2" and click the "Duplicate FP" button to add a third input.
Figure 41 Mark input 2. You open the following dialog box by double-clicking the marked input with the right mouse button.
Figure 42 Negate inputs 3. Mark the "Negated" option box and confirm with "OK". 42
6531A
Figure 44 Select variables 4. Confirm with "Select". 5. Repeat this procedure to link the second input with the "Inflow_On" variable.
6531A
maximum temperature.
The example program shows you which inputs are to have these constants assigned. 1. Mark an input to which you want to assign a constant. 2. Click the "Variables" button. Press this button after marking an input or output of a block to allocate a constant. 3. Enter constant "INT#16#4000". The syntax for entering constants is as follows: Data type#Number format#Value (Example: INT#16#4000 for hexedecimal value 4000 in the INTEGER data type). The data type must be entered in capital letters.
Figure 46 Connect blocks 3. Mark the output of the first AND block.
44
6531A
If you now move the mouse pointer, you will see a line running from the output of the block to the tip of the mouse pointer. Every time you click the mouse you can bend this line by 90 at any position on the worksheet. 4. In this way connect the output of the first block with the input of the second block. This enables you to create the rest of the application program yourself. You will find the finished pre-processing program on the next page.
6531A
45
46
6531A
15. Compiling
After you have created the pre-processing program, you can have it compiled for the controller board. With this button, you start the compiling process for the entire pre-processing. 1. Select the "Compile All" command from the "Make" menu or click the "Compile All" button.
Figure 48 Compile 2. Should an error occur, please check all program parts and settings. Make the appropriate corrections and recompile. The compiling process should run error-free if you have followed all the instructions correctly. The project is then complete and can be transferred to the controller board.
6531A
47
Figure 49 Execute parameterization 5. Select the entry "Startup with Preprocessing" from the selection box in the following dialog box and confirm the selection with "OK".
48
6531A
Figure 50 Startup with pre-processing The parameterization made in IBS CMD G4 is then transferred to the controller board and the bus cycles are started. All newly created process data descriptions and their linkage with the variables are then known to the controller board. In addition, the pre-processing program is compiled, transferred to the controller board and also started.
6531A
49
Figure 51 Monitoring
50
6531A
Here you see the states of the process data or variables within the program configuration you have created. Different data types are identified additionally by different colors. GREEN RED: BLUE: INT - analog values BOOL - Bit set BOOL - Bit not set
6531A
51
18. Diagnostics
The "Diagnostics" operating state shows you the error messages of the controller board and allocates the messages to individual devices as far as possible. The diagnostics gives you information about the transmission quality, helps you to find errors in the bus system and displays the number of correct and defective cycles. If you are in the "Configuration (Online)" or "Monitoring" operating state you will be informed of an error or a fault automatically in the dialog box below.
Figure 53 Bus system messages In the main diagnostics window you see the bus status, error messages, and the last current message. From here you can configure and operate all diagnostics.
52
6531A
53
2. In the dialog box which appears you get information about the number of INTERBUS cycles, error frequency, and error location as well as about the transmission quality. You can assign a comment and save the statistics in a file. 3. Observe how the number of cycles increases and interrupt the power supply a few times to generate other errors. 4. You will notice how the transmission quality deteriorates as a result of the increased error frequency.
Figure 56 Transmission statistics The "Transmission Quality" display only provides a valuable statement after a few thousand bus cycles! You can estimate the transmission quality shortly after starting the INTERBUS network from the display of "faulty cycles".
54
6531A
HOTLINE If you have any application problems which you cannot solve with this help or the enclosed documentation, please contact our hotline: + 49 - (0) 52 35 - 34 18 88 Interbus-Support@PhoenixContact.com
6531A
55
56
6531A
6531A
Phoenix Contact GmbH & Co. KG Flachsmarktstr. 8 32825 Blomberg Germany + 49 - (0) 52 35 - 3-00 + 49 - (0) 52 35 - 3-4 12 00 www.phoenixcontact.com Locations Worldwide: www.phoenixcontact.com/salesnetwork