Vous êtes sur la page 1sur 54

INTERBUS

IBS CMD G4 - Quickstart

Designation: IBS CMD SWT G4 QS UM E

Revision: C

Order No.: 27 22 27 6

This guide is valid for:


IBS CMD SWT G4 Version 4.4x

Phoenix Contact 05/1998


5228C
General Information
Unless mentioned otherwise, all information in this guide re-
fers 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 or soft-
ware, or in indirect connection with dangerous process
peripherals, to personal injury. This symbol is always
located to the left of the tagged text.
The hand symbol gives you tips and advice on the ef-
ficient use of hardware and on software optimization.
In addition, text marked in this way informs you of sys-
tem-related conditions that must absolutely be ob-
served to achieve error-free operation. The hand is
also found in front of clarifications of terms.
The text symbol refers to detailed sources of informa-
tion (manuals, data sheets, literature, etc.) on the sub-
ject matter, product, etc. This text also provides 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 operation
and installation. The use of this product is only allowed to
qualified personnel authorized to start up, to ground and to
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.

5228C
5228C
Contents
IBS CMD G4 ............................................................. 1
Introduction ......................................................................... 1

Hardware Requirements ......................................... 2


Requirements ...................................................................... 2
Hardware Requirements for IBS CMD G4 .......................... 2

Installation ............................................................... 3
Starting the Installation Program ......................................... 3
Running the Installation Program ........................................ 3

Example Project ...................................................... 9


Plant Description ................................................................. 9
Necessary Process Data Descriptions ................................ 9
Selecting the INTERBUS Devices .................................... 10

Creating a Project .................................................. 12


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

Selecting the Controller Board ............................ 14

Setting the Communication Path ......................... 15


Communication Through the PC Data Bus ....................... 16
Communication Through the Serial Interface .................... 17
Communication Under Windows NT ................................. 17

Reading the Configuration Again ........................ 19

Quick Startup ......................................................... 20

Creating the Bus Configuration Manually ........... 21

Describing the Project .......................................... 25

Link with Device Description ............................... 27

Creating Process Data Descriptions ................... 29

Creating and Assigning Variables ....................... 31

5228C i
Programming ......................................................... 34
Inserting a Block ................................................................34
Negating Inputs ..................................................................35
Linkage with Variables .......................................................36
Linking Blocks ....................................................................36
Function Block Diagram (FBD) ..........................................38
Variable Definition ..............................................................38
Program Code ...................................................................38

Compiling ............................................................... 39

Executing Parameterization and Download ........ 40

Testing the Application Program ......................... 42

Diagnostics ............................................................ 43
Message History ................................................................44
Recording Statistics ...........................................................45

ii 5228C
1. IBS CMD G4

1.1 Introduction
This document guides you through the parameterization of a
bus configuration and preprocessing of process data in
IBS CMD G4 by way of an example project.
Without a physical bus configuration none of the func-
tions and commands can be executed which require
communications with the controller board.
However, a complete parameterization is possible in the
"Configuration (Offline)" operating state. The user program
can also be created and compiled.

5228C 1
2. Hardware Requirements

2.1 Requirements
The installation instructions assume a certain basic knowl-
edge of the general handling of Windows which cannot be in-
cluded in detail here for reasons of space. If you have any
questions, we refer you to the manuals or the Windows online
help.

2.2 Hardware Requirements for IBS CMD G4


You should a least have the following hardware/software
equipment for operating IBS CMD G4:
80486 processor with 33 MHz
8 MByte working storage (RAM)
20 MByte free hard disk space
3.5 disk drive and/or CD-ROM
Mouse
Windows 3.1 or higher
Serial interface port (COM1 ... COM4)
Parallel interface (LPT1 ... LPT2)
INTERBUS controller board with firmware version > 4.3x
Occasionally the available conventional working storage may
not be adequate. In this case, remove the non-volatile pro-
grams and drivers which you do not need, such as the DOS
mouse driver, CD-ROM, scanner, and sound drivers from the
memory or load these programs into a memory area above
640 Kbytes.
Under these hardware conditions you are able to operate
IBS CMD G4.

2 5228C
3. Installation

3.1 Starting the Installation Program


To install IBS CMD G4, start the "SETUP.EXE" file from the
main directory of the first disk. The installation program gen-
erates all the directories necessary for operation and copies
the files according to the selections you have made in the in-
stallation program.
IBS CMD G4 runs on standard PCs under Windows 3.1x,
Windows 95, and Windows NT 4.0.
1. Insert the first IBS CMD G4 disk in your disk drive (A: or
B:).
2. Open the Windows File Manager ("My Computer" icon,
Explorer) and select the drive letter of your disk drive.
In the main directory of the first disk you will find the
"SETUP.EXE" file.
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 the load-
ing process.

Figure 1 Loading installation program

5228C 3
The following message appears after the installation program
was loaded:

Figure 2 "Welcome" dialog box

You can abort installation at this point if, for example, you
have opened other Windows applications or have accidental-
ly clicked the "SETUP.EXE" file.
To continue installation, click the "Next >" button.
Then enter your name, the name of your company, and the
serial number of IBS CMD G4. The serial number is on the la-
bel of the first installation disk.

Figure 3 "User Information" dialog box

4 5228C
It is not absolutely necessary to install all IBS CMD G4 pro-
gram parts. Remove the markings of the program parts you
do not require by clicking the option boxes.

Figure 4 Select program components

Please consult the appropriate user manual for the functions


of IBS CMD G4. You can interlink the INTERBUS process
data logically with the preprocessing. The two drivers
"RS232" and "IBS ISA" are the direct drivers of the controller
board for the communication path through the diagnostics in-
terface / serial interface or through the PCs data bus.
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.

5228C 5
Figure 5 Select program group

You can assign a password to deny unauthorized persons ac-


cess to program parts which change the configuration and pa-
rameterization 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 pass-
word later.

Figure 6 Assign password

6 5228C
Now the installation program is able to carry out installation
with the settings you desire. The installation options are dis-
played again for confirmation.

Figure 7 Settings of setup program

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

Figure 8 Progress display

The copying process is interrupted at regular intervals and


you are requested to insert a certain disk in your disk drive.

Figure 9 Insert next disk

5228C 7
The latest information on the "IBS CMD G4" program and
current notes can be found in the "README.TXT" file. You
can now decide whether you want to read this file.

Figure 10 Read "README.TXT"?

This completes installation of IBS CMD G4. You have to re-


start your computer to activate the changes to the configura-
tion files.

Figure 11 Restart computer?

You start IBS CMD G4 with a double click on the program


symbol or with the "Start" button in the taskbar.

Figure 12 Program group

8 5228C
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 pre-
set temperature, the heater switches off and the liquid drains
out (Outflow_On). When the level of the liquid reaches a low-
er limit value, the drain valve is closed and new liquid is filled
in. The plant can be shut down by an "OFF" switch. The heat-
er 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 bit
Liquidlevel Analog Input (AI) 16 bits
Temperature Analog Input (AI) 16 bits
Heating_On Digital Output (DO) 1 bit
Inflow_On Digital Output (DO) 1 bit
Outflow_On Digital Output (DO) 1 bit

5228C 9
4.3 Selecting the INTERBUS Devices
You can select the INTERBUS devices when the type and
number of process data required in the example project is de-
termined.
The process data descriptions "Heating_On", "Inflow_On",
"Outflow_On" are defined on a DO device. You need two in-
puts of an AI device for the process data descriptions
"Liquidlevel" and "Temperature". The process data descrip-
tion "Off" requires one input of 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 inputs 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 termi-


nal) modules to the remote bus.
IBS ST 24 BK-T
IBS ST 24 BKM-T

The minimum INTERBUS configuration which should be


available for the example looks like this:

10 5228C
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 con-
figuration.
Within the "Plant01" project other INTERBUS devices can be
used which control other heating boilers, conveyor belts, etc.
However, we restrict ourselves here to the four devices men-
tioned.

5228C 11
5. Creating a Project

5.1 Menu Structure and Operating Concept


Quick operation of IBS CMD G4 is enabled by menus allocat-
ed to devices and elements. The available menu items for a
device/element are listed in the context menu when you press
the right mouse button on the device/element.

5.2 Project Creation


Proceed as follows to create a new project:
1. First select the "New" command from the "File" menu to
create a project without devices.
2. If you have already made changes in the previously load-
ed project, you are 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..."

You have then created a new project without INTERBUS de-


vices.

12 5228C
Figure 16 Basic elements of a project

The elements "Project", "PLC/PC", "Program", "Con-


troller Board", "Parameterization Memory", "Prepro-
cessing", and "Configuration Frame" are basic
elements of a project. They are constantly available
and cannot be deleted.

5228C 13
6. Selecting the Controller Board
Now select the type of controller board used. We use an
IBS PC ISA SC/I-T controller board for the example project.
You may also select any other controller board type approved
for IBS CMD G4.

Figure 17 Select controller board

1. Click the "Controller Board" element with the left mouse


button. This is then marked.
2. Press the right mouse button to open the context menu of
the "Controller Board" element.
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.

14 5228C
7. Setting the Communication Path
Next you have to determine the communication path to the
controller board. You can communicate with the controller
board directly through the data bus providing the controller
board is plugged into a slot of your PC (2).
Alternatively, you can connect the (serial) diagnostics inter-
face of the controller board to a free serial port (COM1 to
COM4) of your PC and operate the controller board through
this communication path (1). Use this option if the controller
board is not in the PC on which you are running IBS CMD G4.

Figure 18 Communication paths

1. Select the "Settings" command from the "Options" menu.


2. Mark the "Driver" file card in the following dialog box.
3. Select via which communication path you want to operate
the controller board under "Installed Drivers".

Figure 19 Select communication path

5228C 15
7.1 Communication Through the
PC Data Bus
1. Click the entry "DriverIBSISASC".
2. Confirm your selection with the "Select" button.
3. Click the "Connect" button and select which controller
board you want to communicate with in the following dia-
log box. Up to eight controller boards can be used in a PC
which are numbered from 1 to 8.

Figure 20 Driver settings

4. To specify the driver parameters, click the "Settings" but-


ton and fill out the following dialog box.
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 ac-
cess. This is achived, 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 of the
controller board are reported to the PC by this interrupt.

16 5228C
7.2 Communication Through the Serial
Interface
1. Double click the "RS232" entry.
2. Click the "Connect" button.
3. In the following dialog box specify the interface of your PC
which you have connected to the controller board.

Figure 21 Specify interface

7.3 Communication Under Windows NT


Under Windows NT you use only one driver.
1. To set the communication path, mark the driver "Windows
NT Driver" and click the "Connect" button.

Figure 22 Settings under Windows NT

5228C 17
2. Then select the communication path through the serial in-
terface or through the PC data bus in the following dialog
box.
3. All the parameters necessary for the respective communi-
cation path, such as selection of the interface, interrupt or,
base address were already demanded during installation
of IBS CMD G4.

Figure 23 Select interface under Windows NT

18 5228C
8. Reading the Configuration Again
Read in the physically connected bus configuration to edit it
in 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. This
leads to the controller board reading in the connected
configuration. Already configured data may be lost.
1. Click the "Configuration Frame" element with the left
mouse button. This is then marked.
2. Press the right mouse button to open the context menu of
the "Configuration Frame" element.
3. Select the "Read Again" menu item from the context menu
and confirm the following messages with "OK" or "Yes".

Figure 24 Reading bus configuration

4. The connected bus configuration is read in and can now


be adapted to the requirements of the example project.

Figure 25 Bus configuration

5228C 19
9. Quick Startup
In the previously executed steps you have prepared your
project in IBS CMD G4 to such an extent that the INTERBUS
network can be started. You can now start the INTERBUS cy-
cles with a simple command.
1. Open the "Controller Board" context menu.

Figure 26 Start data transmission

2. Select the "Control" sub-menu from the context menu and


then the "Start Data Transmission" command.
3. Confirm the following security prompt with "Yes".

Figure 27 Security prompt

4. Watch the LEDs on your INTERBUS devices. The BA


LED lights permanently to indicate that the data cycles
were started.

20 5228C
10.Creating the Bus Configuration
Manually
If you do not have a controller board and the necessary de-
vices for the example, you can also create the bus configura-
tion manually.
When inserting, please note that no local bus devices
can be inserted in the remote bus. No remote bus de-
vices can be inserted in the local bus either of course.
The bus configuration required for the example project should
now be created. This bus configuration has the following
structure:

Figure 28 Bus configuration (example)

5228C 21
Figure 29 Flowchart "Create Bus Configuration

1. Mark the controller board as the first device can only be


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

Figure 30 Device database

22 5228C
3. Search for all devices from the "Phoenix" group of type
"IBS" in the device database.
Enter the following in the "Select" area:
Device Group: P*.
Here the character "*" stands for all entries in the device da-
tabase. In conjunction with the letter "P" (i.e., P*) you search
in all groups which start with P.
Type: IBS* (Search function: all names 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 31 Describe device

7. The device description then follows. Enter:


Station Name: Hall 2 Cabinet 1.
Device Name: first BK module.

8. Confirm with "OK".


The first device is, therefore, available in the bus configura-
tion and already described.

5228C 23
9. Mark the BK module, because the next device (the digital
output module "IB ST 24 DO 8/3-2A") is to be added here.
10. Press <Ins> or select with "Insert with Description" from
the "Edit" menu.

Figure 32 Select interface

11. Select the "Branching (OUT2)" interface from the dialog


box. This is the local bus interface of the ST BK module.
12. In the following dialog box enter:
Device Group: P*.
Type: IBS* (Search function: all names with IBS).
13. Click the "Search" button.
14. Click the "IB ST 24 DO 8/3-2A" device in the "Output" ar-
ea.
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 there is no device description for the device to be inserted
in the library, 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.

24 5228C
11.Describing the Project
You can describe the elements "Project", "PLC/PC", "Pro-
gram", "Controller Board", "Parameterization Memory", "Pre-
processing", and "Configuration Frame" with comments,
names, remarks, etc. In addition you can describe every de-
vice in detail and assign a device icon.

Figure 33 Flowchart "Describe Elements

1. Mark 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 respec-
tive element in the representation area.
4. Describe the elements "PLC/PC", "Program", "Controller
Board", "Parameterization Memory", "Preprocessing",
and "Configuration Frame" in the same way.

5228C 25
Figure 34 Describe project

26 5228C
12.Link with Device Description
All devices selected for the example project are in the en-
closed device database. Use the "Link with Description" com-
mand to replace the standard device descriptions with the
module-specific device descriptions from the database.
The device descriptions from the device database are
already used if you have created the bus configuration
manually.
1. Mark the first device which you want to link with a device
description from the device database.
2. Open the context menu and select the "Link with Descrip-
tion" command.

Figure 35 Link with description

3. You can decide for every device whether you want these
links. Confirm each request with "Yes".

Figure 36 Link device?

4. In the following dialog box you are offered a selection of


matching the ID code and process data length of the de-
vice to be linked. Select the suitable device.

5228C 27
Figure 37 Select suitable device

Device descriptions suitable for the example project are, for


example:
IBS ST 24 BK-T BK module
IB ST 24 DO 8/3-2A Digital output module with 8 channels
IB ST 24 DI 16/4 Digital input module with 16 channels
IB ST 24 AI 4/SF Analog input module with 4 channels

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 con-
firm the dialog box with "OK".
Use the following names:
Station name: Device name:
IBS ST 24 BK-T Hall 2 Cabinet 1 first BK module
IB ST 24 DO 8/3-2A Hall 2 Cabinet 1 8 digital outputs
IB ST 24 DI 16/4 Hall 2 Cabinet 1 16 digital inputs
IB ST 24 AI 4/SF Hall 2 Cabinet 1 4 analog inputs

28 5228C
13.Creating Process Data
Descriptions
Once the bus configuration is read in and visible on the
screen, you can create the process data descriptions. Pro-
cess data descriptions define a process data item with name,
allocation, position, and length, as well as, their assignments
to variables, addresses, or other process data descriptions.
The available bus configuration need 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.
When you open the "Process Data" dialog box from the con-
troller board context menu for the first time, you will see (in our
configuration example) the following process data descrip-
tions.

Figure 38 Standard process data descriptions

From these (standard) process data descriptions you then


create the process data descriptions which are suitable in
length and position for our example.
The process data descriptions in lines 1, 2, and 3 are the stan-
dard process data descriptions of the respective device.
These represent the entire process data channel length of the
device - separated according to inputs and outputs. Standard
process data descriptions cannot be deleted.
Due to the linkage with the entry from the device database the
4 analog channels are already created as 4 separate process
data descriptions (lines 4, 5, 6, and 7) in the device
IB ST 24 AI 4/SF.
1. First mark the standard process data description of the
device IB ST 24 DO 8/3-2A (line 1) by clicking the line
number.

5228C 29
2. Press the <Ins> key to duplicate the process data descrip-
tion.
3. Assign the process data name "Inflow_On".
Since only one bit is required for controlling the inlet valve, a
process data description with a length of 1 bit must be creat-
ed.
4. Change the (process data) length from 8 bits to 1 bit.
5. Mark the process data description you have just created
and press the <Ins> key.
6. Give the newly created process data description the name
"Outflow_On" and change the bit from "0" to "1".
When you change the bit from "0" to "1", you address another
bit with this process data description, i.e., another channel of
the DO device.
7. Repeat the process for the process data description
"Heating_On" and assign this to bit "2".
8. For the process data description "Off" duplicate the stan-
dard process data description of the DI device and set the
length to 1 bit.
9. Mark the process data descriptions "~AI3" and "~AI4" and
press the <Del> key to delete these process data descrip-
tions. These are the predefined process data descriptions
for channels 3 and 4 of the AI device. These are not re-
quired for the example project.
10. Change the process data name "~AI1" to "Liquidlevel"
and "~AI2" to "Temperature".

Figure 39 Process data descriptions

11. All the necessary process data descriptions are thus cre-
ated and you can confirm the dialog box with "OK".

30 5228C
14.Creating and Assigning Variables
You need variables to create the preprocessing program. Ev-
ery variable is linked with a process data description and thus
forms the interface to the INTERBUS network. Every variable
which is not linked to a process data description can be used
as a general variable in the preprocessing program.

Figure 40 Context menu "Variables"

1. Select the "Variables" command from the context menu of


the "Preprocessing" element.
2. Press the <Ins> key to create a new variable.
3. Enter the following data:
Variable name= "Temperature",
Data type= "WORD",
Data direction= "I" (Q=output / I=input)

4. Mark the line number of the variable you have just creat-
ed.
5. Press the <Ins> key to copy the variable.
6. Enter the following data for this variable:
Variable name= "Liquidlevel",
Data type= "WORD",
Data direction= "I".

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


shown below.

5228C 31
Figure 41 Variables

Now you must assign the data (process data descriptions) of


the 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 "Direct Link" command.
The following dialog box offers you the process data descrip-
tions which match the variable in length and data direction.

Figure 42 Assignment of process data descriptions

32 5228C
11. Select the correct process data description and confirm
with "OK". For the "Temperature" variable this is the pro-
cess data description "1.3.Temperature". (1.3 means that
the process data description "Temperature" is on device
1.3)
12. After you have assigned the correct process data descrip-
tions to all variables, confirm the "Variables" dialog box
with "OK".

5228C 33
15.Programming
Now the actual programming begins.

Figure 43 Programming

The Function Block Editor is available for creating the prepro-


cessing program.
The Function Block Editor is a graphic editor in which you can
position function blocks and functional elements on a work-
sheet and link them logically with each other.
1. Select the "Programming" command from the context
menu of the "Preprocessing" 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 dis-
play it with the menu item "Layout... Toolbar... Two
Rows".

15.1 Inserting a Block


1. Click the center of the worksheet with the mouse.
2. A cursor in the form of a cross appears at the clicked po-
sition.

Figure 44 Form of cursor

The first block you should insert is an AND gate with two ne-
gated and one non-negated input.
3. Click the "Insert Function" button.
You can position new blocks with this button. The but-
ton is active when you have selected the cursor on the
worksheet beforehand.
4. In the following dialog box select the "AND" block from the
"Name" selection box first.

34 5228C
5. Mark the formal parameter (input) "IN2" and click the
"Duplicate FP" button to add a third input.

Figure 45 Insert block

6. Close the dialog box with "OK".

15.2 Negating Inputs


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

Figure 46 Mark input

2. You open the following dialog box by double clicking the


marked input with the right mouse button.

Figure 47 Negate input

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

5228C 35
4. Repeat the procedure for the second input.

Figure 48 AND block

15.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 a
block to allocate a variable.
3. Select the "Outflow_On" variable from the "Variable
Name" selection box.

Figure 49 Select variables

4. Confirm with "Select".


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

15.4 Linking Blocks


1. Insert another AND block with two non-negated inputs be-
hind the already existing AND block.
2. Click the "Connect" button.
You can connect the inserted blocks with each other
with this button.

36 5228C
If you have selected the "Connect" command, the mouse
pointer looks like this:

Figure 50 Connect blocks

3. Mark the output of the first AND block.


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. Ev-
ery 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 in-
put of the second block.
This enables you to create the rest of the application program
yourself.
You will find the finished preprocessing program on the next
page.

5228C 37
Function Block Diagram (FBD)
15.4.1 Variable Definition
VAR_EXTERNAL
Off: BOOL;
Heating_On: BOOL;
Inflow_On: BOOL;
Outflow_On: BOOL;
Liquidlevel: WORD;
Temperature: WORD;
END_VAR

VAR
SR_1: SR;
END_VAR

15.4.2 Program Code

Figure 51 Process data preprocessing

38 5228C
16.Compiling
After you have created the preprocessing program, you can
have it compiled for the controller board.
With this button, you start the compiling process for
the entire preprocessing.
1. Select the "Compile All" command from the "Make" menu
or click the "Compile All" button.

Figure 52 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 fol-
lowed all the instructions correctly. The project is then com-
plete and can be transferred to the controller board.

5228C 39
17.Executing Parameterization and
Download
The application program can then be transferred to the con-
troller board and started there. For this it is necessary to
change to IBS CMD G4 and to execute the parameterization
there. Since the link between variables and process data de-
scriptions is not yet known to the controller board, this must
be 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 of
the "Controller Board" element.
4. Select the "Parameterization" menu item from the context
menu and the "Execute" menu item from the sub-menu.

Figure 53 Execute parameterization

5. Select the entry "Startup with Preprocessing" from the se-


lection box in the following dialog box and confirm the se-
lection with "OK".

40 5228C
Figure 54 Startup with preprocessing

The parameterization made in IBS CMD G4 is then trans-


ferred 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 preprocessing program is compiled, transferred
to the controller board and also started.

Figure 55 Download preprocessing

5228C 41
18.Testing the Application Program
You have the possibility of observing the process data states
online within the preprocessing program. This is particularly
helpful for finding and eliminating errors in the program.
1. Select the "Monitoring" command from the context menu
of the "Preprocessing" element.

Figure 56 Monitoring

Figure 57 Online display of preprocessing program

Here you see the states of the process data or variables with-
in the program configuration you have created. Different data
types are identified additionally by different colors.
GREEN: WORD analog values
RED: BOOL bit set
BLUE: BOOL bit not set

42 5228C
19.Diagnostics
The "Diagnostics" operating state shows you the error mes-
sages 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 cor-
rect and defective cycles.
If you are in the "Configuration (Online)" or "Monitoring" oper-
ating state you will be informed of an error or a fault automat-
ically in the dialog box below.

Figure 58 Bus system messages

In the main diagnostics window you see the bus status, fault
messages, and the last current message. From here you can
configure and operate the whole diagnostics.

Figure 59 Main window "Diagnostics"

5228C 43
19.1 Message History
To enable 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 not registered.
1. To generate an error message of the controller board at
IBS CMD G4, provoke an error by cutting off the power
supply at any I/O potential group.
2. A power failure is displayed as a peripheral fault with the
"Bus System Messages" dialog box. Click the "Go to Di-
agnostics" button with the mouse.
3. The dialog box below appears in which the incoming mes-
sages 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 60 Messages (online)

44 5228C
19.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, and er-
ror 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 inter-
rupt the power supply a few times to generate other er-
rors.
4. You will notice how the transmission quality deteriorates
as a result of the increased error frequency.

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

5228C 45
Phoenix Contact GmbH & Co.
Flachsmarktstr. 8-28
32825 Blomberg
Germany

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

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@Phoenix-Contact.de

46 5228C
5228C
Phoenix Contact GmbH & Co.
Flachsmarktstr. 828
32825 Blomberg
Germany
+49 - (0) 52 35 - 3-00
+49 - (0) 52 35 - 3-4 12 00

Vous aimerez peut-être aussi