# frontcover training manual - micromod automation | manual f-cim lab 9 - 3 9.3.3 steps of programming...

Post on 28-Apr-2018

214 views

Category:

## Documents

Embed Size (px)

TRANSCRIPT

• 9 - 1

9 F-CIM Lab

9.1 Foreword F-CIM (Control Interconnection Modules) provides a method of optimizing the controllers standard functionality. This method is more flexible than the FCS, but not as extensive and flexible as the F-TRAN. But F-CIM is easier to program than F-TRAN. As we explained before, F-CIM programming is done by building the strategy using building-blocks from the Module library. The Module library is a collection of predefined function blocks.

It is more powerful than the FCS method because each strategy can consist of up to 100 blocks, the order of execution can be specified by the user, and many of the blocks are reusable.

It is also possible for the user to make custom function blocks and add them to the Module Library.

Creating a custom F-CIM module is not in the scope of this training coarse and will not be covered.

9.2 Objectives In this lab we will introduce F-CIM programming and implement a simple control strategy using F-CIM. After completing this lab, you should know how to

Create a F-CIM control strategy using F-CIM function modules described in the Customization Guide

Enter an F-CIM control strategy using the faceplate keys

Create an F-CIM control strategy using the MicroTools Graphical Editor

Download an F-CIM control strategy using MicroTools

• Training Manual F-CIM Lab

9 - 2

9.3 F-CIM Programming 9.3.1 Module Library

The standard Module Library consists of the following blocks or modules:

Table 9 .1 Module Library

Module Type Name Function

General

Numerical Operations

Pre-Written Equations Add Subtract Multiply

Divide Square root Log(base2) X to the power Y Absolute Value

Math Functions

Logical

AND OR Exclusive OR

Boolean Logical

Control

Setpoint Generator PV Deviation PID A/M Switching

Control and PID related functions

9.3.2 Methods of programming F-CIM There are two methods for configuring F-CIM. They are:

1. From the controllers front panel

2. From Micro-Tools - The F-CIM Control Strategy can be configured using the Micro-Tools F-CIM graphical editor. F-CIM function blocks are graphically placed on a worksheet and the connections between them are drawn as connecting lines. The resulting control strategy can be downloaded to the controller via a communication port.

Using Micro-Tools to configure F-CIM is easier and more convenient than configuring from the front of the instrument. We will cover both the methods in this lab.

• Training Manual

F-CIM Lab

9 - 3

9.3.3 Steps of Programming F-CIM The steps involved in programming the controller using F-CIM are:

1. Define the control strategy to be implemented

2. Select the function blocks that can be used for implementing the defined control strategy

3. Draw the function block diagram using these function blocks

4. Enter data on a work sheet for the function blocks

Each function block has its associated inputs and outputs. In general there are 4 inputs to each block. These inputs are labeled as follows:

A, B and C these inputs are configurable

Sn-1 this input is the output of the previous step (previous function block)

The F-CIM program is executed in steps. The 53MC5000 controller can execute 100 F-CIM program steps. Step number range from 0 to 99. In general, each Function Block requires one step.

• Training Manual F-CIM Lab

9 - 4

9.4 Instructions 9.4.1 Part 1 F-CIM Programming from front face

1. Define the process control strategy to be implemented first: The strategy involves a single loop PID control. We will add the following in addition to the PID control:

Enable Output tracking based on closure of Contact Input 1. We will assume that the output tracking signal comes from Analog Input 2

Enable Setpoint tracking of Process Variable when the controller is not in Auto mode. We will assume that the PV comes from Analog input 0

Disable Remote setpoint on closure of Contact input 0. We will assume that the remote setpoint input comes from Analog Input 1.

2. Select the F-CIM modules: We will use the following F-CIM modules

1. READ for reading ANI-1 for remote setpoint

2. SP0 Setpoint generator for Loop0

3. DEV0 Deviation Calculation for Loop0

4. PID0 PID for loop0

5. A/M0 Auto Manual selection for Loop0

6. WRITE for writing the output of A/M0 to Analog Output 0

7. DISPLAY for displaying the loop parameters

3. Draw the function block diagram using these function blocks: The function block diagram is shown in the next figure. This diagram can be drawn on paper. This diagram will help you understand what exactly needs to be programmed.

• Training Manual

F-CIM Lab

9 - 5

Figure 9 .1. F-CIM Program Block Diagram

SP 0F-CIM 044

RSP RE STV SWSPT

SP

SP PV

DV

DEV 0F-CIM 047

DV

CO

PID 0F-CIM 041

RF CTC

CO

OUT

A/M 0F-CIM 043

OTV SWOTVAE

WRITEF-CIM 087

AUT

B

ANO 0

ANI 2

CCI 1

ANI 0

CCI 0

CCI 0

1

1.0

1.0

DISPLAYF-CIM 022

PROGRAM REFERENCED I/O

There is an F_CIM number associated with each function block. The blocks are referenced using their F-CIM number. Certain blocks can be reused in the program. These blocks are of type R. Examples of reusable blocks: Math, Logic, Read, Write etc. Certain blocks can be used only once in the program. These blocks are of type N. Examples of blocks that can be used only once: PID0, PID1, SP1 etc. Table 9-2 gives a complete listing of the blocks, their inputs and type.

• Training Manual F-CIM Lab

9 - 6

Inputs Table 9 .2 F-CIM Directory

Block Name

F-CIM Number Sn-1 AIN BIN CIN Type

Description

ADD 99 * C X X R ADD

SUB 98 C C X R SUBTRACT

MUL 97 * C X X R MULTIPLY

DIV 96 C C X R DIVIDE

SQRT 95 * X X X R SQUARE ROOT

LOG2 94 * X X X R LOG2

YPOWX 93 * C C X R Y TO THE POWER OF X

ABS 92 * X X X R ABSOLUTE VALUE

LINV 91 * X X X R LOGICAL INVERSION

LAND 90 * Y X X R LOGICAL AND

LOR 89 * Y X X R LOGICAL OR

LXOR 88 * Y X X R LOGICAL EXCLUSIVE OR

WRITE 87 * Y Y X R WRITE PARAM TO A, POINTER P

READ 86 Y X X R READ PARAM A TO X

Ax+B 85 * C C X R (Ax) + B

SWITCH 84 * Y Y X R IF (BIN) ; X= AIN

COMP 83 * Y Y Y R HIGH/LOW COMPARATOR W/HYSTERESIS

J-K 82 * Y X X R LOGIC J - K LATCH

SP0 44 * Y Y Y N SET POINT GENERATOR FOR LOOP 0

PID0 41 * X Y Y N PID CALCULATION FOR LOOP 0

AM0 43 * Y Y Y N AUTO MANUAL SELECTOR FOR LOOP 0

DEV0 47 * Y X X N DEVIATION CALCULATION FOR LOOP 0

SP1 54 * Y X X N SET POINT GENERATOR FOR LOOP 1

PID1 51 * X Y Y N PID CALCULATION FOR LOOP 1

AM1 53 * Y Y Y N AUTO MANUAL SELECTOR FOR LOOP 1

DEV1 57 * Y X X N DEVIATION CALCULATION FOR LOOP 1

SP2 64 * Y Y Y N SET POINT GENERATOR FOR LOOP 2

• Training Manual

F-CIM Lab

9 - 7

Inputs Table 9 .2 F-CIM Directory Continued

Block Name

F-CIM Number Sn-1 AIN BIN CIN Type

Description

PID2 61 * X Y Y N PID CALCULATION FOR LOOP 2

AM2 63 * Y Y Y N AUTO MANUAL SELECTOR FOR LOOP 2

DEV2 67 * Y X X N DEVIATION CALCULATION FOR LOOP 2

SP3 74 * Y Y Y N SET POINT GENERATOR FOR LOOP 3

PID3 71 * X Y Y N PID CALCULATION FOR LOOP 3

AM3 73 * Y Y X N AUTO MANUAL SELECTOR FOR LOOP 3

DEV3 77 * Y X X N DEVIATION CALCULATION FOR LOOP 3

MATHA 100 * Y Y Y N MATH BLOCK

MATHB 101 * Y Y Y N MATH BLOCK

MATHC 102 * Y Y Y N MATH BLOCK

MATHD 103 * Y Y Y N MATH BLOCK

MATHE 104 * Y Y Y N MATH BLOCK

MATHF 105 * Y Y Y N MATH BLOCK

MATHG 106 * Y Y Y N MATH BLOCK

MATHH 107 * Y Y Y N MATH BLOCK

EMATHA 52 * Y Y Y N EXTENDED MATH BLOCK

EMATHB 62 * Y Y Y N EXTENDED MATH BLOCK

4. Now that we have drawn the strategy as a block diagram, next step is to enter data on a work sheet. The work sheet will look similar to that shown in the next figure:

Function Inputs Table 9.3 Work Sheet

Step

Type

Sn-1 AIN BIN CIN

00 86 R H01 ANI 1 is Remote SP

01 44 N X L00 H00 L107 CC1 0 allows remote PV to track in manual mode

02 47 N X H00 ANI 0 is PV calculation error

03 41 N X C102 L107 Standard PID calculation

04 43 N X 1 H02 L01 Force control output to ANI 3 on CCI 2

05 87 R X C00 1 ANO 0 is control output

06 22 N Use standard display handler

• Training Manual F-CIM Lab

9 - 8

5. So far it has been only paperwork. The next step is to enter the function block inputs and parameters into the database of the controller.

Enter PROGRAM mode: Press the Dot button to enter the engineering mode. This may require you to press the Dot button more than once. The engineering mode will display a line of text at the bottom of the screen. The line of text will contain the word DISPLAY, CONFIGURE or PROGRAM. Press the F2 button until PROGRAM is displayed at the bottom as shown in the next figure:

Figure 9.2. Program Mode

Now press F3 to enter the program mode.

53MC5000 controllers can be configured for password protection. The controllers you are using should not have any password requirements. When you are working on controller in normal plan

Recommended