8 a programming example – Micromod Micro-DCI: 53MC5000 Multi-Loop Process Controller CUSTOMIZATION GUIDE User Manual
Page 52
![background image](/manuals/337708/52/background.png)
2.8 A Programming Example
The following is a program text file that illustrates the use of the F-TRAN language in building a
simple single loop controller. This text is converted to the run time program using the
MicroMod
programming utilities (FPP, CPILE6, LINK) available in 53HC3300C or with 53SU5000 Rev. 3.
#define
AI0 H00
#define
AI1 H01
#define
AO0 C00
#define
PV C100
#define
OUT C102
#define
RSP C120
#define
RFC 127
#define
AUT L107
#define
CTC L123
#define
SPGEN G00
#define
DVGEN G04
#define PID
G08
#define
AMSW G12
#define
DISPL G22
PV = AI0
\READ PROCESS VARIABLE FROM AI0\
RSP = AI1
\READ REMOTE SETPOINT FROM AI1\
RF = OUT
\SET RESET FEEDBACK EQUAL TO LAST OUTPUT\
CTC = AUT
\SET RESET TRACKING BASED ON AUTO-MANUAL SELECTION\
SPGEN
\SETPOINT GENERATOR SUBROUTINE\
DVGE
N \DEVIATION GENERATOR SUBROUTINE\
PID
\PID CONTROLLER CALCULATION SUBROUTINE\
AMSW
\AUTO-MANUAL SELECTOR SUBROUTINE\
DISPL
\DISPLAY SEQUENCING SUBROUTINE\
AO0 = OUT
\COPY CONTROL OUTPUT TO OUTPUT HARDWARE\
E
MODULAR CONTROLLER CUSTOMIZATION GUIDE
2-45
- Micro-DCI: EP1000A E-Port (56 pages)
- Micro-DCI: 53SL6000 Single Loop Controller (138 pages)
- Micro-DCI: 53SL5100B Single Loop Controller (115 pages)
- Micro-DCI: 53ML5100 Manual Loader (49 pages)
- Micro-DCI: 53MC5000 PLC AND PRINTER INTERFACES (124 pages)
- Micro-DCI: 53MC5000 MicroLink (33 pages)
- Micro-DCI: 53MC5000 Multi-Loop Process Controller Installation (99 pages)
- Micro-DCI: 53MC5000 Multi-Loop Process Controller Instruction Manual (406 pages)
- Micro-DCI: 53MC5000 Multi-Loop Process Controller FLEXIBLE CONTROL STRATEGIES (201 pages)
- Micro-DCI: 53IT5100B Micro-DCI 4-Channel Indicator Totalizer (71 pages)
- Micro-DCI: 53MC5000 Training Manual (180 pages)
- Micro-DCI: 53SL5100A Single Loop Controller Rev. 1 Firmware (6 pages)
- Micro-DCI: 53SL5100A Single Loop Controller (152 pages)
- Micro-DCI: 53ML5100A LOADING STATION REV. 1 FIRMWARE (20 pages)
- Micro-DCI: 53ML5100A LOADING STATION (55 pages)
- Micro-DCI: 53IT5100A Indicator/Totalizer Rev. 1 Firmware (4 pages)
- Micro-DCI: 53IT5100A Indicator/Totalizer (80 pages)
- MOD: 2001P - MODCELL Logic Control Identity Module (Version 6) System, I/O and Communications Functions (272 pages)
- MOD: 2001P - MODCELL Logic Control Identity Module (Version 6) Algorithms, Tables and Sequential Logic Functions (160 pages)
- MOD: 2004P - MODCELL Continuous Control Identity Module (Version 3) PID and Ramp/Soak Functions (70 pages)
- MOD: 30ML and Modcell Totalization Application Guide (24 pages)
- MOD: 30ML and Modcell Maintenance for 2001N, 2002N, and 1800R (152 pages)
- MOD: Remote I/O Modules for use with 2020N Remote I/O Interface Module (42 pages)
- MOD: MODCELL Multiloop Processor 2002N Model C and Associated Hardware (82 pages)
- MOD: 30ML Installation (106 pages)
- MOD: 30ML Replacement for MOD30 Instruments (36 pages)
- MOD: 30ML Installation for Replacing SLC/CLC Instruments (68 pages)
- MOD: 30ML Function Code Configuration Guide for Replacing SLC/CLC Instruments (394 pages)
- MOD: 30ML Operation and Template Setup (84 pages)
- MOD: 30ML Functions Data Base Reference (152 pages)
- MOD: 30ML Display Script Guide (98 pages)
- MOD: 30ML FrontFace Configuration Charts (6 pages)
- MOD: 30ML Quick Reference Guide (2 pages)
- MOD: 30ML Controller Operation and Maintenance Training Manual (74 pages)
- MOD: Modcell 2050R Users Guide (228 pages)
- MOD: Modcell 2050R MODBUS Communications (70 pages)
- MOD: Modcell 2050R Quick Reference Guide (2 pages)
- MOD: Modcell 2050R Mounting Dimensions (1 page)
- MOD: Modcell 2050R 2050FZ0, QS-1300/1400 to 2050R Conversion Accessory (10 pages)
- MOD: Modcell 2050R 2051FZ2, Foxboro 62H to 2050R Conversion Accessory (4 pages)
- MOD: Modcell 2050R 2051FZ1 and 2051FZ1, Foxboro SPEC 200 to 2050R Conversion Accessory (4 pages)
- MOD: 1731N ICN Mini-Link Users Guide (28 pages)
- MOD: 1732N, 1733N External Mini-Link Users Guide (22 pages)
- MOD: ICN OPC Server Users Guide (38 pages)