beautypg.com

F-tran programming lab – Micromod Micro-DCI: 53MC5000 Training Manual User Manual

Page 147

background image

10- 1

10

F-TRAN Programming Lab

10.1 Foreword

Certain complex control strategies can not be programmed using the Flexible Control
Strategies (FCS). They need programming using F-CIM or F-TRAN. F-TRAN is the most
flexible and any complex strategy can be programmed using F_TRAN. It needs a little
programming background but does not need extensive programming experience.

10.2 Objectives

In this lab we will learn the basics of F-TRAN programming. We will also program a
simple strategy using F-TRAN. After completing this lab, you should know fundamentals
of FTRAN programming, how to edit and compile the program, build the executable
image, load the image into the controller and run the control strategy.

10.3 Introduction to F-TRAN

F-TRAN programs are classified into three types: Control F-TRAN and Display F-TRAN
and Subroutines. Details are given below:

10.3.1 Control

F-TRAN:

These programs are used to program the actual control strategy. As many as 20 Control F-
TRAN programs can be stored in the controller. Each F-TRAN program is assigned a
Control Function Index number (CFIX). The valid ranges for assigning a CFIX is 2 – 255,
excluding 90 – 100. You can run one F-TRAN at a time by setting the FIX parameter at
database location B00. For example, if the value of B00 was 5, then the F-TRAN program
with Function Index number 5 will be executed.

You can also specify the execution rate of the selected F-TRAN by setting the Scan File
parameter at location B03. This rate is in increments of 50 milliseconds. For example, if
the value of B03 is 2, the F-TRAN program will be executed every 100 milliseconds.

10.3.2 Display

F-TRAN:

The display F-TRAN programs are used to program custom displays. The display
F-TRAN programs are assigned a Display Function Index number (DFIX). The valid
range for assigning the DFIX is 1 – 255. The standard displays such as the loop display,
trend display, etc. also have a display index number associated with them (1-33). If you
assign a display F-TRAN program a number that is same as one of the standard displays,
the custom display will be used instead of the standard display.