Ibs Cmd g4 Qs Um e

Embed Size (px)

Citation preview

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    1/58

    © Phoenix Contact 03/2000

    INTERBUS

    Designation:

    Revision:

    Order No.:

    This guide is valid for:

    IBS CMD G4 - Quickstart

    IBS CMD SWT G4 QS UM E

    E

    27 22 27 6

    IBS CMD SWT G4 Version 4.5x

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    2/58

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    3/58

    5228E 1

    General Information

    Unless mentioned otherwise, 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 erroneous handling,which could lead to damage to the hardware orsoftware, or in indirect connection with dangerousprocess peripherals, to personal injury. This symbol isalways located to the left of the tagged text.

    The hand symbol gives you tips and advice on theefficient use of hardware and on softwareoptimization. In addition, text marked in this wayinforms you of system-related conditions that mustabsolutely be observed to achieve error-freeoperation. The hand is also found in front ofclarifications of terms.

    The text symbol refers to detailed sources ofinformation (manuals, data sheets, literature, etc.) onthe subject matter, product, etc. This text alsoprovides helpful information for the orientation,reading order etc. in the manual.

    Right and secure use of the product requires proper transport,storage, mounting, and assembly as well as careful operationand installation. The use of this product is only allowed toqualified personnel authorized to start up, to ground and tomark devices, systems and electric circuits according to thestandards of safety technology. Phoenix Contact assumes noliability for damage or personal injury resulting from disregardof notes and safety guidelines contained in this manual.

    Please note that software/hardware designations and brandnames of the companies mentioned are, as a rule, protectedby copyright, trademark or patent.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    4/58

    2 5228E

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    5/58

    Contents

    5228E 3

    General Information ............................................................. 1

    IBS CMD G4 .............................................................. 5Getting Started ..................................................................... 5

    Hardware Requirements.......................................... 6Requirements....................................................................... 6Hardware Requirements for IBS CMD G4 ........................... 6

    Installation ................................................................ 7Starting the Installation Program.......................................... 7

    Running the Installation Program......................................... 7

    Example Project ..................................................... 15Plant Description ................................................................ 15

    Necessary Process Data Descriptions............................... 15

    Selecting the Devices......................................................... 16

    Creating a Project................................................... 18

    Menu Structure and Operating Concept ............................ 18Project Creation ................................................................. 18

    Selecting the Controller Board ............................. 20

    Setting the Communication Path.......................... 21

    Selecting the communication path under WIN 95/98 ......... 22Communication Through the PC Data Bus ........................ 23

    Communication Through the Serial Interface..................... 24Communication Under Windows NT .................................. 24

    Reading the Configuration .................................... 25

    Creating the Bus Configuration Manually............ 26

    Describing the Project ........................................... 30

    Linking with Device Description........................... 32

    http://5228e_cv.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_cv.pdf/

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    6/58

    4 5228E

    Process Data Descriptions/Signal Paths ............. 35Process Data Descriptions .................................................35Signal Paths........................................................................35

    Creating and Assigning Variables ........................ 37

    Programming .......................................................... 40Inserting a Block .................................................................40

    Negating Inputs...................................................................41Linkage with Variables........................................................42

    Linkage with Constants.......................................................43Connecting Blocks ..............................................................43

    Function Block Diagram (FBD) ...........................................45

    Compiling................................................................ 46

    Executing Parameterization and Download......... 47

    Testing the Application Program.......................... 49

    Diagnostics ............................................................. 51Message History .................................................................52

    Recording Statistics ............................................................53

    http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/http://5228e_s01.pdf/

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    7/58

    5228E 5

    1. IBS CMD G4

    1.1 Getting StartedThis document guides you through the parameterization of abus configuration and preprocessing of process data in IBSCMD G4 using an example project.

    Without a physical bus configuration none of thefunctions and commands requiring communicationswith the controller board can be executed.

    However, a complete parameterization is possible in the"Configuration (Offline)" operating state. The user programcan also be created and compiled.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    8/58

    6 5228E

    2. Hardware Requirements

    2.1 RequirementsThe installation instructions assume a certain basicknowledge of the general handling of Windows which cannotbe included in detail here for reasons of space. If you haveany questions, we refer you to the manuals or the Windowsonline help.

    2.2 Hardware Requirements for IBS CMD G4

    You should have at least the following hardware/softwareequipment for operating IBS CMD G4:

    – Pentium >90 MHz

    – 16 MByte (RAM, 32 MByte recommended) – 50 MByte free hard disk space – CD-ROM drive – Mouse – Windows 95/98, Windows NT 4 or higher

    – serial interface – parallel interface (LPT1 ... LPT2) – fourth generation INTERBUS controller board

    Under these hardware conditions you will be able to operateIBS CMD G4.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    9/58

    5228E 7

    3. Installation

    3.1 Starting the Installation ProgramTo install IBS CMD G4, start the "SETUP.EXE" file from the:\INSTALL\DISK1 directory on the CD-ROM. The installationprogram generates all the directories necessary for operationand copies the files according to the selections you havemade in the installation program.

    IBS CMD G4 runs on standard PCs under Windows 95/98,Windows NT 4.x, and Windows 2000.

    1. Insert the CD into your CD-ROM drive.

    2. Open the Windows File Manager (My Computer,Explorer) and select the drive letter of your disk drive.

    The "SETUP.EXE" file is located in directory:\INSTALL\DISK1\ on the CD.

    3. Start the installation program by double clicking the"SETUP.EXE" file.

    4. Follow the instructions of the installation program.

    3.2 Running the Installation Program

    The installation program is loaded after double clicking the"SETUP.EXE" file. A window shows the progress of theloading process.

    Figure 1 Loading Installation program

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    10/58

    8 5228E

    The following message appears when the installationprogram has been loaded:

    Figure 2 "Welcome" dialog box

    You can abort installation at this point if, for example, you

    have other Windows applications open or you clicked the"SETUP.EXE" file accidentally.

    To continue installation, click the "Next >" button.

    Then a text editor is started which displays the latestinformation 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, you must close the text editor in order tocontinue.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    11/58

    5228E 9

    Then enter your name, the name of your company, and theserial number of IBS CMD G4.

    Figure 3 "User Information" dialog box

    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 boardfor the communication path through the diagnostics interface/ serial interface or through the PC ’s data bus.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    12/58

    10 5228E

    In the next dialog box you can select in which program groupor 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.

    Figure 5 Select program group

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    13/58

    5228E 11

    You can assign a password to deny unauthorized personsaccess to program parts which change the configuration andparameterization of the bus system. If you do not enter a

    password, the password function is deactivated. In IBS CMDG4 you have the possibility of assigning a password later.

    Figure 6 Assign password

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    14/58

    12 5228E

    Now the installation program is able to carry out installationwith the settings you desire. The installation options aredisplayed again for confirmation.

    Figure 7 Setting of setup program

    Then the program files are copied onto your hard disk. Theprocess is visualized by a progress display.

    Figure 8 Progress display

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    15/58

    5228E 13

    You must now select the serial interface which will provide thecommunication link between IBS CMD G4 and the controllerboard.

    Figure 9 Select components

    If you are using a PC controller board, IBS CMD G4 needs thecommunication parameters for the ISA bus.

    Figure 10 IBS-ISA/SC configuration

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    16/58

    14 5228E

    Both communication paths (serial and ISA bus) are entered inthe Windows registry. You can change communication pathswhile IBS CMD G4 is active.

    This completes installation of IBS CMD G4. You have torestart your computer to activate the changes to theconfiguration files.

    Figure 11 Restart computer?

    You start IBS CMD G4 by double clicking the program symbolor with the "Start" button in the taskbar.

    Figure 12 Program group

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    17/58

    5228E 15

    4. Example Project

    4.1 Plant DescriptionLiquid 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 thepreset temperature, the heater switches off and the liquiddrains out (Outflow_On). When the level of the liquid reaches

    a lower limit value, the drain valve is closed and new liquid isfed 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.

    Figure 13 Example project

    4.2 Necessary Process Data Descriptions

    Name: Type: Length:Off Digital Input (DI) 1 bitLiquidlevel Analog Input (AI) 16 bitsTemperature Analog Input (AI) 16 bitsHeating_On Digital Output (DO) 1 bitInflow_On Digital Output (DO) 1 bitOutflow_On Digital Output (DO) 1 bit

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    18/58

    16 5228E

    4.3 Selecting the Devices

    When the type and number of the process data required in the

    example project has been determined, you can select theINTERBUS devices.

    The process data descriptions "Heating_On", "Inflow_On","Outflow_On" are defined on a DO device. You need twoinputs 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 exampleproject:

    Digital input module with at least one input such as:IB ST 24 BDI 8/4 orIB ST 24 DI 16/4

    Digital output module with at least three outputs such as:IB ST 24 BDO 8/3 orIB ST 24 DO 16/3

    Analog input module with at least two inputs such as:IB ST 24 AI 4/SF orIB ST 24 AI 4/SF4

    BK (bus terminal) module for connecting the ST (smartterminal) modules to the remote bus.IBS ST 24 BK-TIBS ST 24 BKM-T

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    19/58

    5228E 17

    The minimum INTERBUS configuration which should be usedfor the example looks like this:

    Figure 14 Minimum INTERBUS configuration

    It is not important for the example project where thedevices are in your INTERBUS system. The devicenumbers in the example may differ from the devicenumbers in your bus system, if it has a differentconfiguration.

    Within the example project, other INTERBUS devices can beused which control, for instance, other heating boilers,conveyor belts, etc. However, we restrict ourselves here tothe four devices mentioned.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    20/58

    18 5228E

    5. Creating a Project

    5.1 Menu Structure and Operating ConceptQuick operation of IBS CMD G4 is enabled by menusallocated to devices and elements. The available menu itemsfor a device/element are listed in the context menu when youpress the right mouse button on the device/element.

    5.2 Project CreationProceed as follows to create a new project:

    1. First select the "New" command from the "File" menu tocreate a project without devices.

    2. If you have already made changes in the previouslyloaded project, you are asked whether you want to rejector save these changes.

    3. After the new project has been created, save it with thecommand "File... Save As" and give the project the name"Plant01" in the following dialog box.

    4. Confirm with "OK".

    Figure 15 Flowchart "File...New..."

    You have then created a new project without INTERBUSdevices.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    21/58

    5228E 19

    Figure 16 Basic elements of a project

    The elements "Project", "PLC/PC", "Controller Board","Parameterization Memory", "Preprocessing", and"Configuration Frame" are the basic elements of aproject. They are always available and cannot bedeleted.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    22/58

    20 5228E

    6. Selecting the Controller BoardNow select the type of controller board used. We use an IBSPC ISA SC/I-T controller board for the example project. Youmay also select any other controller board type accepted byIBS CMD G4.

    Figure 17 Select controller board

    1. Click the "Controller Board" element with the left mousebutton. It is then highlighted.

    2. Press the right mouse button to open the context menu ofthe "Controller Board" element.

    3. Select the "Type" menu item from the context menu andclick the entry "IBS PC ISA SC/I-T" in the following dialogbox.

    4. Confirm the dialog box with "OK". The controller board isnow selected.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    23/58

    5228E 21

    7. Setting the Communication PathNext you have to determine the communication path to thecontroller board. You can communicate with the controllerboard directly through the ISA data bus providing thecontroller board is plugged into a slot of your PC (2).

    Alternatively, you can connect the (serial) diagnosticsinterface of the controller board to a free serial interface(COM1 to COM4) of your PC and operate the controller boardthrough this communication path (1). Use this option if thecontroller board is not in the PC on which you are runningIBS CMD G4.

    Figure 18 Communication paths

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    24/58

    22 5228E

    7.1 Selecting the communication path underWIN 95/98

    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".

    Figure 19 Select communication path

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    25/58

    5228E 23

    7.2 Communication Through the PC DataBus

    1. Select the option box "PC ISA Bus" to selectcommunication via your PC ’s ISA bus.2. Up to eight controller boards can be used in a PC which

    are numbered from 1 to 8. In the "Board No.:" select box,select "1" as you are using only one controller board.

    3. To specify the driver parameters, click the "Settings"

    button and fill out the following dialog box.

    Figure 20 Driver settings

    IO AddressThis address must be set on the controller board by DIPswitches and entered here. Every board in your PC requiresan I/O address area for control and status data.

    Communication Address

    The data exchange between the controller board and the PCtakes place via a special memory area. The start address ofthis memory area must be specified here. In addition youhave to protect the memory area against unauthorizedaccess. This is achieved, for example, by entering

    DEVICE=C:\DOS\EMM386.EXE NOEMS x=D000-D100

    in the "CONFIG.SYS" file.

    Interrupt

    Select an available interrupt of your PC here. Accesses to thecontroller board are reported to the PC by this interrupt.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    26/58

    24 5228E

    7.3 Communication Through the SerialInterface

    1. Select the "Serial interface" option box to choosecommunication via your PC ’s serial interface.2. In the "Serial interface" select box, select the serial

    interface on your PC which you have used to connect thecontroller board.

    3. Click on the "Settings" button to display the

    communication parameters of the serial interface youhave selected.

    7.4 Communication Under Windows NT

    Under Windows NT you use the same dialog as underWindows 95/98. However, you can only specify thecommunication path, not the path parameters or the interface.

    Under Windows NT, the communication parameters aredetermined when IBS CMD G4 is installed.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    27/58

    5228E 25

    8. Reading the ConfigurationRead in the physically connected bus configuration to edit itin IBS CMD G4.

    If the controller board has no active configuration(READY status), IBS CMD G4 executes the: "Create-Configuration" command after a security prompt. Thisleads to the controller board reading in the connectedconfiguration. Already configured data may be lost.

    1. Click the "Configuration Frame" element with the leftmouse button. It is then highlighted.

    2. Press the right mouse button to open the context menu ofthe "Configuration Frame" element.

    3. Select the "Physically available devices" menu item from

    the context menu and confirm the following messageswith "OK" or "Yes".

    Figure 21 Reading bus configuration

    4. The connected bus configuration is read in and can nowbe adapted to the requirements of the example project.

    Figure 22 Bus configuration

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    28/58

    26 5228E

    9. Creating the Bus ConfigurationManually

    If you do not have a controller board and the necessarydevices for the example, you can also create the busconfiguration manually.

    When inserting, please note that no local bus devicescan be inserted in the remote bus. No remote bus

    devices can be inserted in the local bus either ofcourse.

    The bus configuration required for the example project shouldnow be created. This bus configuration has the followingstructure:

    Figure 23 Bus configuration (example)

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    29/58

    5228E 27

    Figure 24 Flowchart "Create Bus Configuration"

    1. To insert the first device, the controller board must beselected first.

    2. Press or select "Insert with Description" from the"Edit" menu to insert a BK module of the IBS ST 24 BK-T type.

    Figure 25 Device detabase

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    30/58

    28 5228E

    3. Search for all devices from the "Phoenix" group of type"IBS" in the device database.To do this, in the dialog select:

    Group : PHOENIXType : IBS* (Search function: all names with "IBS").

    Here the character "*" stands for all entries in the devicedatabase. Using the letters "IBS" (that is to say: IBS*) find alltypes beginning with IBS.

    4. Click the "Search" 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 26 Describe device

    7. The device description then follows. Enter:Station Name : Hall 2 Cabinet 1.Device name : first BK module.

    8. Confirm with "OK".

    Herewith the first device is available in the bus configurationand already described.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    31/58

    5228E 29

    9. Mark the BK module, because the next device (the digitaloutput module " IB ST 24 DO 8/3-2A ") is to be added afterit.

    10. Press or select with "Insert with Description" fromthe "Edit" menu.

    Figure 27 Select interface

    11. Select the "Branching OUT2" interface from the dialogbox. This is the local bus interface of the ST BK module.

    12. In the following dialog box enter:Group : PHOENIXType : 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 ".

    ALTERNATIVE:If the library does not contain a device description for thedevice to be inserted , you must create your own description.

    Select "Insert with ID Code" from the "Edit" menu and enterthe ID code of the device and its process data channel length.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    32/58

    30 5228E

    10. Describing the ProjectYou can describe the elements "Project", "PLC/PC","Controller Board", "Parameterization Memory","Preprocessing", and "Configuration Frame" with comments,names, remarks, etc. In addition you can describe everydevice in detail and assign a device icon.

    Figure 28 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 therespective element in the representation area.

    4. Describe the elements "PLC/PC", "Controller Board","Parameterization Memory", "Preprocessing", and"Configuration Frame" in the same way.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    33/58

    5228E 31

    Figure 29 Describe project

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    34/58

    32 5228E

    11. Linking with Device DescriptionAll devices selected for the example project are in theaccompanying device database. Use the "Link with DeviceDescription" command to replace the standard devicedescriptions with the module-specific device descriptionsfrom the database.

    The device descriptions from the device database arealready in use if you have created the busconfiguration manually.

    1. Select the first device which you want to link with a devicedescription from the device database.

    2. Open the context menu and select the "Link withDescription" command.

    Figure 30 Link with description

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    35/58

    5228E 33

    3. You can choose for the the entire bus segment or for eachdevice whether you want to link them. Confirm eachprompt with "Yes".

    Figure 31 Link device?

    4. In the following dialog box you are offered a selection ofdevices matching the ID code and process data length ofthe device to be linked. Select the suitable device.

    Figure 32 Select suitable device

    Device descriptions suitable for the example project are:

    IBS ST 24 BK-T BK module

    IB ST 24 DO 8/3-2A Digital output module with 8 channelsIB ST 24 DI 16/4 Digital input module with 16 channelsIB ST 24 AI 4/SF Analog input module with 4 channels

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    36/58

    34 5228E

    Then the individual devices can be described.

    5. Mark the device to be described and open the contextmenu with the right mouse button.

    6. Select the "Description" command from the context menu.

    7. Assign the station name and the device name andconfirm the dialog with "OK".

    Use the following names:

    Station name: Device name:IBS ST 24 BK-T Hall 2 Cabinet 1 first BK moduleIB ST 24 DO 8/3-2A Hall 2 Cabinet 1 8 digital outputsIB ST 24 DI 16/4 Hall 2 Cabinet 1 16 digital inputsIB ST 24 AI 4/SF Hall 2 Cabinet 1 4 analog inputs

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    37/58

    5228E 35

    12. Process Data Descriptions/Signal Paths

    By linking the devices with inputs from the device database,you have created process data and signal paths for individualdevices in the process data dialog.

    12.1 Process Data Descriptions

    When it is linked, every device receives one process datadescription for input process data and one for output processdata. This process data description is long enough to coverfully the process data channel in each case. In order to avoidloading the controller board unnecessarily at runtime, thereshould be as few process data descriptions as possible. You

    can only address process data descriptions, and onlyaddressed process data descriptions are transferred to thecontroller board when the parameterization is carried out.

    12.2 Signal Paths

    Signal paths serve to document your devices and their data.Signal paths are not transferred to the controller board. Thesignal path can be used to identify the features of the signaleven including the position of the terminal on the device. Youcan provide additional information, such as resourceidentification, signal type, purpose etc., for every signal path.

    You can compare the information you collect thereby withyour EPLAN system, and have parts of the circuit diagramgenerated automatically.

    The process data used in our example project is intended tobe processed in a small program within (process data)preprocessing. This means that you must create process datadescriptions of suitable length, so that you can link themafterwards with the preprocessing variables. Since thenecessary descriptions are already present on the "Signalpaths" tab you can copy them to the "Process Data" tab.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    38/58

    36 5228E

    1. Mark the signal path you want and press +.

    2. Switch to the "Process Data" tab and press +.

    3. Repeat these steps for all the process data descriptionsthat are necessary for preprocessing.

    Figure 33 Standerd process data descriptions

    The process data descriptions that are needed are:

    Figure 34 Process data descriptions

    The available bus configuration need not be identicalwith the bus configuration in the example project. The

    devices mentioned must merely be available at anyposition in the bus configuration.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    39/58

    5228E 37

    13. Creating and AssigningVariables

    You need variables to create the preprocessing program.Every variable is linked with a process data description andthus forms the interface to the INTERBUS network. Everyvariable which is not linked to a process data description canbe used as a general variable in the preprocessing program.

    Figure 35 Context menu "Variables"

    1. Select the "Variables" command from the context menu ofthe "Preprocessing" element.

    2. Press the key to create a new variable.

    3. Enter the following data:

    4. Mark the line number of the variable you have justcreated.

    5. Press the key to copy the variable.

    6. Enter the following data for this variable:

    Variable name= " Temperature ",Data type= " INT",Data direction= " I" (Q=output / I=input)

    Variable name= " Liquidlevel ",

    Data type= " INT",Data direction= " I".

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    40/58

    38 5228E

    7. Proceed in the same way until all variables are created asshown below.

    Figure 36 Variables

    Now you must assign the data (process data descriptions) ofthe INTERBUS network 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.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    41/58

    5228E 39

    The following dialog box offers you the process datadescriptions which match the variable in length and datadirection.

    Figure 37 Assignment of process data descriptions

    11. Select the correct process data description and confirmwith "OK". For the " Temperature " variable this is theprocess data description " 1.3.5: +U2 ". (1.3 means that theprocess data description is on terminal "5, power channel2" of device 1.3)

    12. After you have assigned the correct process datadescriptions to all variables, confirm the "Variables" dialogbox with "OK".

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    42/58

    40 5228E

    14. ProgrammingNow the actual programming begins.

    Figure 38 Programming

    The Function Block Editor is available for creating thepreprocessing program.

    The Function Block Editor is a graphic editor in which you canposition function blocks and functional elements on aworksheet and link them logically with each other.

    1. Select the "Programming" command from the contextmenu of the "Preprocessing" element. This starts thegraphic Function Block Editor.

    A toolbar appears at the top of the screen when thewindow is open. If the toolbar is not visible you candisplay it with the menu item "Layout... Toolbar... TwoRows".

    14.1 Inserting a Block1. Click the center of the worksheet with the mouse.

    2. A cursor in the form of a cross appears at the clickedposition.

    Figure 39 Form of cursor

    The first block you should insert is an AND gate with twonegated and one non-negated input.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    43/58

    5228E 41

    3. Click the "Insert Function" button.

    You can position new blocks with this button. The buttonis active if you have selected the cursor on theworksheet beforehand.

    4. In the following dialog box select the "AND" block from the"Name" selection box first.

    5. Mark the formal parameter (input) "IN1" and click the"Duplicate FP" button to add a third input.

    Figure 40 Insert block

    6. Close the dialog box with "OK".

    14.2 Negating Inputs

    1. Mark the top input of the block you have just inserted byclicking it with the mouse.

    Figure 41 Mark input

    2. You open the following dialog box by double clicking themarked input with the right mouse button.

    Figure 42 Negate input

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    44/58

    42 5228E

    3. Mark the "Negated" option box and confirm with "OK".

    4. Repeat the procedure for the second input.

    Figure 43 AND block

    14.3 Linkage with Variables

    Now the two negated inputs are linked with input variables.

    1. Mark the top input.2. Click the "Variables" button.

    Press this button after marking an input or output of ablock to allocate a variable.

    3. Select the "Outflow_On" variable from the "VariableName" selection box.

    Figure 44 Select variables

    4. Confirm with "Select".

    5. Repeat this procedure to link the second input with the"Inflow_On" variable.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    45/58

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    46/58

    44 5228E

    If you have selected the "Connect" function, the mousepointer looks like this:

    Figure 46 Connect blocks

    3. Mark the output of the first AND block.

    If you now move the mouse pointer, you will see a line runningfrom 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 theinput of the second block.

    This enables you to create the rest of the application programyourself.

    You will find the finished preprocessing program on the nextpage.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    47/58

    5228E 45

    14.6 Function Block Diagram (FBD)

    14.6.1 Variable Definition

    VAR_EXTERNALOff: BOOL; Heating_On: BOOL; Inflow_On: BOOL; Outflow_On: BOOL; Liquidlevel: INT;

    Temperature: INT; END_VAR VAR

    SR_1: SR; END_VAR

    14.6.2 Program Code:

    Figure 47 Process data preprocessing

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    48/58

    46 5228E

    15. CompilingAfter you have created the preprocessing program, you canhave it compiled for the controller board.

    With this button, you start the compiling process for theentire preprocessing.

    1. Select the "Compile All" command from the "Make" menuor click the "Compile All" button.

    Figure 48 Compile

    2. Should an error occur, please check all program parts andsettings. Make the appropriate corrections and recompile.

    The compiling process should run error-free if you havefollowed all the instructions correctly. The project is then

    complete and can be transferred to the controller board.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    49/58

    5228E 47

    16. Executing Parameterization andDownload

    The application program can then be transferred to thecontroller board and started there. For this it is necessary tochange to IBS CMD G4 and to execute the parameterizationthere. Since the link between variables and process datadescriptions is not yet known to the controller board, this mustbe done from IBS CMD G4.

    1. Select the "Back to CMD" command from the "File" menu.2. Click the "Controller Board" element with the left mouse

    button. This is then marked.

    3. Press the right mouse button to open the context menu ofthe "Controller Board" element.

    4. Select the "Parameterization" menu item from the contextmenu and the "Execute" menu item from the sub-menu.

    Figure 49 Execute parameterization

    5. Select the entry "Startup with Preprocessing" from theselection box in the following dialog box and confirm theselection with "OK".

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    50/58

    48 5228E

    Figure 50 Startup with preprocessing

    The parameterization made in IBS CMD G4 is then

    transferred to the controller board and the bus cycles arestarted. All newly created process data descriptions and theirlinkage with the variables are then known to the controllerboard. In addition, the preprocessing program is compiled,transferred to the controller board and also started.

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    51/58

    5228E 49

    17. Testing the Application ProgramYou have the possibility of observing the process data statesonline within the preprocessing program. This is particularlyhelpful for finding and eliminating errors in the program.

    1. Select the "Monitoring" command from the context menuof the "Preprocessing" element.

    Since you must be in "Monitoring" operating mode in order to

    monitor preprocessing, IBS CMD G4 automatically attemptsto switch to this mode. If you protected the "Monitoring"operating mode with a password in Setup, you must enter thispassword now. If you did not apply password protection, youmust enter the word "MONITOR" at the security prompt whichthen appears.

    Figure 51 Monitoring

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    52/58

    50 5228E

    Figure 52 Online display of preprocessing program

    Here you see the states of the process data or variableswithin the program configuration you have created. Differentdata types are identified additionally by different colors.

    GREEN: INT - analog valuesRED: BOOL - bit setBLUE: BOOL - bit not set

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    53/58

    5228E 51

    18. DiagnosticsThe "Diagnostics" operating state shows you the errormessages of the controller board and allocates the messagesto individual devices as far as possible. The diagnostics givesyou information about the transmission quality, helps you tofind errors in the bus system and displays the number ofcorrect and defective cycles.

    If you are in the "Configuration (Online)" or "Monitoring"operating state you will be informed of an error or a faultautomatically in the dialog box below.

    Figure 53 Bus system messages

    In the main diagnostics window you see the bus status, errormessages, and the last current message. From here you canconfigure and operate all diagnostics.

    Figure 54 Main window “Diagnostics ”

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    54/58

    52 5228E

    18.1 Message History

    To enable registration of error messages of IBS CMD G4 to

    be registered, one of the online operating states must be set.This may be the "Configuration (Online)", "Monitoring", or"Diagnostics" operating state. In the "Configuration (Offline)"operating state the controller board messages are notregistered.

    1. To generate an error message for the controller board to

    IBS CMD G4, provoke an error by cutting off the powersupply at any I/O potential group of an input module.

    2. A power failure is displayed as a peripheral fault with the"Bus System Messages" dialog box. Click the "Go toDiagnostics" button with the mouse.

    3. The dialog box below appears in which the incoming

    messages are listed and can also be printed from here.4. Exit the "Messages (Online)" dialog box with the "Close"

    button. You are then in the main diagnostics window.

    Figure 55 Messages (online)

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    55/58

    5228E 53

    18.2 Recording Statistics

    1. Select the "Record Statistics (Online)..." command from

    the "Statistics" menu.2. In the dialog box which appears you get information about

    the number of INTERBUS cycles, error frequency, anderror 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 othererrors.

    4. You will notice how the transmission quality deterioratesas a result of the increased error frequency.

    Figure 56 Transmission statistics

    The "Transmission Quality" display only provides avaluable statement after a few thousand bus cycles!You can estimate the transmission quality shortly afterstarting the INTERBUS network from the display of"faulty cycles".

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    56/58

    54 5228E

    Phoenix Contact GmbH & Co.Flachsmarktstr. 8

    D-32825 Blomberg

    + 49 - (0) 52 35 - 3-00

    + 49 - (0) 52 35 - 3-4 12 00

    HOTLINE:

    If you have any application problems which you cannot solvewith this help or the enclosed documentation, please contactour hotline:

    + 49 - (0) 52 35 - 34 18 [email protected]

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    57/58

    5228E

  • 8/9/2019 Ibs Cmd g4 Qs Um e

    58/58

    Phoenix Contact GmbH & Co.Flachsmarktstr. 832825 BlombergGermany