Application Design
Application Design
Application Design
OBJECTIVE
To make trainees aware of Microlok II as a product
for railway signalling.
To understand Microlok II as a product for railway
signalling.
To know various hardware used in Microlok II
(MLKII).
To know various aspects of design, installation,
testing and commissioning of MLKII.
To configure, design, install, commission and
maintain MLKII.
To update post commissioning changes in
yard.
DESIGN
Interface Design:
Wiring diagram of relays, panels, CT racks, Power supply,
Microlok II card file etc. (Mainly external to MLKII)
HOME NEXT
INPUTS FOR STARTING THE DESIGN
To start design of MLK II based Interlocking
system, Inputs required are:
equipment
to be interfaced with MLKII
APPLICATION PROGRAM DESIGN
TPRs
Up
RECR RGKE
Down Down
HECR HGKE
Up Up
CONCEPT OF MLKII APPLICATION LOGIC
GN + UN GN,
GN, UN
UN GNR, UNR GNCR, UNCR NRR NNR WNR, WRR WNR, WRR
Pressed NV I/P Up Down Up Down Up, Vital O/P Relay Up
WKRs WKRs
WKRs UCR ALSR WLR HR HR
Relay Up Up, Vital I/P Up Down Down Up, Vital O/P Relay Up
TPRs TPRs
TPRs
Relay Up Up, Vital I/P
RECR RECR
RECR RGKE INDICATIONS
Relay Down Down Vital I/P Down, NV O/P Control Panel
HECR HECR
HECR HGKE
HGKE
Relay Up Up, Vital I/P Up, NV O/P
* - SERIES
+ - PARALLEL
( - START OF PARALLEL PATH
) - END OF PARALLEL PATH
~ - BACK CONTACT
, - BIT SEPARATION
; - END OF STATEMENT /
SECTION
CONVERSION OF CIRCUIT TO EQUATION
A B C D XYZ
FILE NAMING
NEXT
APPLICATION PROGRAM DESIGN
Program is divided in various parts
Local I/O bit definition
section Serial bit definition
section Boolean bit definition
section Timer section Log
bit definition section
Constant Definition
System Configuration
Numeric section
Logic Section Logic
Compilation
NEXT
TEXT EDITOR
END
FILE NAMING
File Title
RNTL_C1_S01
Application Logic for C2 MLKII
RNTL_C2_S01
END
APPLICATION LOGIC
PROGRAM
RANITAL
HOME NEXT
PROGRAM TITLE
PROGRAM TITLE DISPLAYED ON SCROLLING DISPLAY OF MLKII
FOR C1 PROGRAM
FOR C2 PROGRAM
BACK NEXT
LOCAL BIT DEFINITIONS
BOARD: J1
ADJUSTABLE ENABLE: 1
TYPE: NV.IN32.OUT32
NV.OUTPUT:
1DGKE, 1RGKE, 1UGKE, 1.C1AJKE,
C1HGKE, SH3_OFFKE, SH3_ONKE, SH3AJKE,
SH5_OFFKE, SH5_ONKE, SH5AJKE, 8DGKE,
8RGKE, 8.SH8AJKE, SH8_OFFKE 10HGKE,
,
10RGKE, 10.SH10AJK 12HGKE,
12RGKE, E, SH10_OFFKE, 14DGKE,
12.SH12AJK
14RGKE, UD_DGKE,
E, SH12_OFFKE,
UD_HGKE,
16DGKE, 16RGKE, Note: These Bits are Defined in C1
UID_DGKE, UID_HGKE; Program.
The BITS which are LOCAL INPUT/OUTPUT are defined in this section.
BACK NEXT
LOCAL BIT DEFINITIONS
BOARD: J1
ADJUSTABLE ENABLE: 1
TYPE: NV.IN32.OUT32
NV.INPUT:
1GN, C1GN, SH3GN, SH5GN,
8GN, SH8GN, 10GN, SH10GN,
12GN, SH12GN, 14GN, 16GN,
14ATUN, DD1UN, DD2UN,
CLUN,
DLUN, DMUN, UMUN,
21WN, 22WN, SDUN,
23WN,
SPARE, SPARE,
25WN,
CH1N, CH2N, 28KTN,
CH3N; These 24LXN
Bits are Defined in C1 Program.
No ,
The BITS which are LOCAL INPUT/OUTPUT are defined
te in this section.
:
BACK NEXT
LOCAL BIT DEFINITIONS
BOARD: J1
ADJUSTABLE ENABLE: 1
TYPE: OUT16
OUTPUT:
The BITS which are LOCAL INPUT/OUTPUT are defined in this section.
BACK NEXT
LOCAL BIT DEFINITIONS
BOARD: J7
ADJUSTABLE ENABLE: 1
TYPE: IN16
INPUT:
The BITS which are LOCAL INPUT/OUTPUT are defined in this section.
BACK END
SERIAL SECTION
HOME NEXT
SERIAL LINK PARAMETERS
LINK: IVSL // ANY USER SELECTED TEXT STRING
ADJUSTABLE ENABLE: 1
PROTOCOL: MICR // GENISYS.SLAVE, GENISYS.MASTER,
OLOK // MICROLOK.SLAVE, MICROLOK.MASTER
.MAS
TER
// PHYSICAL PORT DEFINITIONS
BACK NEXT
SERIAL LINK PARAMETERS
LINK: NVLMP //(ANY USER SELECTED TEXT STRING)
ADJUSTABLE ENABLE: 1
PROTOCOL: GENIS // GENISYS.SLAVE, GENISYS.MASTER,
YS.SL // MICROLOK.SLAVE, MICROLOK.MASTER
AVE
// PHYSICAL PORT DEFINITIONS
BACK NEXT
SERIAL LINK PARAMETERS
LINK: NVLPC //(ANY USER SELECTED TEXT STRING)
ADJUSTABLE ENABLE: 1
PROTOCOL: GENIS // GENISYS.SLAVE, GENISYS.MASTER,
YS.SL // MICROLOK.SLAVE, MICROLOK.MASTER
AVE
// PHYSICAL PORT DEFINITIONS
BACK NEXT
SERIAL BIT DEFINITIONS
ADDRESS: 20
ADJUSTABLE ENABLE:
1 OUTPUT:
IVSL_COMOK.ISO,
BACK NEXT
SERIAL BIT DEFINITIONS
ADDRESS: 20
ADJUSTABLE ENABLE:
1 INPUT:
The BITS which are to be TRANSFERRED between two MLKII systems OR between MLKII and
OPC/MPC are defined in this section.
BACK END
VITAL SECTION
Consists complete interlocking logic except button relay and
indication logics
The names of Vital relays such as HR, DR, RECR, HECR, TPR
etc. are defined in Vital I/O board definition section
And rest of the relays such as GNR, NRR, NNR, UCR, ALSR
etc. are defined in Vital Boolean bit definition section
HOME NEXT
NON-VITAL SECTION
Consists button relay logics and indication logics
BACK NEXT
BOOLEAN BIT DEFINITION
BOOLEAN BITS
BACK END
TIMER SECTION
HOME NEXT
TIMER BIT DEFINITION
TIMER BITS
EW_N.R_CR: SET=0:SEC CLEAR=1:SEC;
EUUYNPR:
SET=0:SEC CLEAR=1:SEC;
OV5JSLR:
OV5JBPR: SET=0:SEC CLEAR=1:SEC;
OV5JR: SET=0:SEC
SET=120:SEC CLEAR=1:SEC;
1.C1JSLR:
1.C1JBPR: SET=0:SEC
CLEAR=0:SEC;
1.C1JR: SET=0:SEC
SET=120:SEC CLEAR=1:SEC;
CPS.STATUSJ2:
SYSINITTMR: SET=0:SEC
CLEAR=1:SEC;
FLASH: SET=130:SEC
SET=700:MSEC
CLEAR=0:SEC;
The BITS that are defined in LOCAL BITS can be defined in this section if that BIT needs to
be CLEAR=2:SEC;
SLOW to PICKUP or SLOW to DROP. CLEAR=0:SEC;
CLEAR=700:MSEC;
BACK END
LOG BIT DEFINITION
LOG BITS
1.C1EGNR, C1UCSR, 2.C2EGNR, C2UCSR,
1ANNR, 1BNNR, 1CNNR, C1ANNR,
1ANRR, 1BNRR, 1CNRR, C1ANRR,
OV5NNR, OV6NNR, OV7NNR, OV1_8NNR,
OV5JSLR, OV5JR, OV5SR, OV6JSLR,
16NLR, 16RLR, 17NLR, 17RLR,
1UCR, C1UCR, 2UCR, C2UCR,
1.C1TSR, 2.C2TSR, SH3TSR, SH4TSR,
1.C1ALSR, 2.C2ALSR, SH3ALSR, SH4ALSR,
1.C1UYR1, 1.C1UYR2, 1.C1UYR3, 1.C1UYR4,
CH1LR, CH1NR, CH1RR, CH2LR,
CPS.STATUSJ2, CPSJR, SYSINITTMR, SYSINITTMR1,
During the logic process if the STATUS of any BITS is required then that BITS are defined in this section.
END
CONSTANT BIT DEFINITION
BOOLEAN:
ONE=1; ZERO=0;
NUMERIC:
INSTALLATION_ADDRESS = 51721;
APPLICATION_DATA_VERSION = 07;
EXECUTIVE_SOFTWARE_VERSION = 401;
END
SYSTEM CONFIGURATION
CONFIGURATION
SYSTEM
ADJUSTABLE DEBUG_PORT_ADDRESS: 1;
DEBUG_PORT_BAUDRATE 19200;
ADJUSTABLE : LOGIC_TIMEOUT: 3000:MSEC; //100MSEC-5SEC
STEP
100MSEC
ADJUSTABLE DELAY_RESET: 100:MSEC;
ADJUSTABLE
//0-10SEC STEP
100MSEC
END
NUMERIC BIT DEFINITION
USER NUMERIC
END
LOGIC SECTION
Overlap Logic
BACK NEXT
LOGIC SECTION
Point NLR & RLR Logic
UCR Logic
TSR Logic
BACK NEXT
LOGIC SECTION
Block Logic
BACK NEXT
LOGIC SECTION
FCOR Logic
BACK END
COMPILATION OF APPLICATION PROGRAM
Program shall be stored as “PROGRAM.ML2” file
name
Compilation is carried out with help of Microlok II
Compiler
Result of compilation will be two files viz.
“PROGRAM.MLL”
& “PROGRAM.MLP”
“MLL” file is a listing file, which gives any errors, warnings,
no. of BITs used, no. of time one bit used and so many other
important information. This also gives unique identification
numbers called as “CHECKSUM” & “CRC”
HOME NEXT
COMPILATION TECHNIQUES
4.1 INTRODUCTION
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
4.3 RUNNING THE COMPILER
The compiler is configured in Text Editor Program. User can run the
compiler by selecting proper compiler option in “Tool” menu of
Editplus Program.
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
4.5.1 Source Listing
First in the listing is the source listing. It shows warnings, severe
warnings, and errors as they relate to source lines. The listing also
shows relevant statement numbers assigned by the compiler.
Each line of the source listing has the form:
<line number> [<statement number>] <text of original source
line> If a line does not have an associated statement number, the
<statement number> portion of the line will appear blank. Lines
that
will have statement numbers will be those with ASSIGN,
NV.ASSIGN, EVALUATE, NV.EVALUATE, or IF statements.
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
In order to call attention to variables that the user defined but were
never assigned a value, the complier will generate a list of
unassigned user-defined variables. This list will not include user
defined INPUTs, because inputs cannot be the object of an ASSIGN
or NV.ASSIGN statement.
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
Following this is the vitality of the bit. The table will indicate if the bit is
vital or non-vital.
Next the nature of the definition is displayed. It indicates if the bit is an
internal, user
configuration, output or input.
For example, part of a table might look like:
ID# ID Name FRONT BACK BLOCK TABLE CODE ASGN TARG VITAL
14 34R 0 0 0 0 0 ASGN VITAL OUT
123 1ASR 1 3 0 0 0 ASGN VITAL INT
125 TRIG 0 0 1 1 0 ASGN VITAL INT
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
BACK NEXT
COMPILATION TECHNIQUES
The following are a few examples of source code problems that would
cause the various classes of messages to occur:
Warnings (an application image is generated and can be used): Any
board or link defined as FIXED and disabled.
Severe warnings (an application image is generated): The user must
check any of the following conditions to determine if a problem will
result:
Non-vital assignment to vital bit.
Non-vital evaluate to vital numeric.
Errors (an application image is not
generated): Syntax errors
Use of undefined bits
BACK END
ANY QUESTIONS
Next….
END