3 subroutines – Micromod Micro-DCI: 53MC5000 Training Manual User Manual

Page 148

Advertising
background image

Training Manual

F-TRAN Programming Lab

10- 2

The controller is capable of storing up to 70 customer displays (provided there is
sufficient memory). The controller uses a grid system to access the user defined list of
displays. Up to 64 displays can be assigned to the grid. The display assignments can be a
combination of standard displays and user created displays.

The F1 and F2 function pushbuttons on the display are used to maneuver through the
columns and rows of the display grid.

Display prams are run as a background task. Control programs are classified as
foreground tasks and take precedence over display functions. Displays, like control
programs, have an execution rate. Also like the control programs, the displays execute in
multiples of 50 milliseconds. Database location B06 is used to regulate the execution rate
of the displays.

10.3.3 Subroutines:

Subroutines can be either control or display programs. These programs are routines you
can write and then call from a main control or display F-TRAN program. Subroutines are
also assigned a Function Index number (GFIX). The range for the index number is 200 –
255. For example, if your subroutine index is 210, you can simply call it with the G (go)
statement form the F-TRAN program. This statement for this example would be: G210.

Standard control subroutines for PID functions are already programmed in the controller.
You can call these subroutines from your F-TRAN programs. Following is the list of pre-
programmed subroutines with their IDs:

G00

Setpoint Generator-0

G01

Setpoint Generator-1

G02

Setpoint Generator-2

G03

Setpoint Generator-3

G04

Deviation/Alarm Calculaion-0

G05

Deviation/Alarm Calculaion-1

G06

Deviation/Alarm Calculaion-2

G07

Deviation/Alarm Calculaion-3

G08

PID-0

G09

PID-1

G10

PID-2

G11

PID-3

G12

Auto/Manual Switch-0

G13

Auto/Manual Switch-1

G14

Auto/Manual Switch-2

G15

Auto/Manual Switch-3

G22

Display handler

Advertising