Mitsubishi Electronics FX2C Home Theater Server User Manual


 
ii
3. STL Pro
g
rammin
g
.................................................................................3-1
3.1 What is STL, SFC And IEC1131 Part 3?.............................................................3-1
3.2 How STL Operates..............................................................................................3-2
3.2.1 Each step is a pro
g
ram ............................................................................................. 3-2
3.3 How To Start And End An STL Pro
g
ram .............................................................3-3
3.3.1 Embedded STL pro
g
rams .........................................................................................3-3
3.3.2 Activatin
g
new states.................................................................................................3-3
3.3.3 Terminatin
g
an STL Pro
g
ram ....................................................................................3-4
3.4 Movin
g
Between STL Steps ................................................................................3-5
3.4.1 Usin
g
SET to drive an STL coil ................................................................................. 3-5
3.4.2 Usin
g
OUT to drive an STL coil................................................................................. 3-6
3.5 Rules and Techniques For STL pro
g
rams...........................................................3-7
3.5.1 Basic Notes On The Behavior Of STL pro
g
rams....................................................... 3-7
3.5.2 Sin
g
le Si
g
nal Step Control ........................................................................................3-9
3.6 Restrictions Of Some Instructions When Used With STL..................................3-10
3.7 Usin
g
STL To Select The Most Appropriate Pro
g
ram .......................................3-11
3.8 Usin
g
STL To Activate Multiple Flows Simultaneousl
y
...................................... 3-12
3.9 General Rules For Successful STL Branchin
g
..................................................3-14
3.10 General Precautions When Usin
g
The FX-PCS/AT-EE Software.....................3-15
3.11 Pro
g
rammin
g
Examples .................................................................................... 3-16
3.11.1 A Simple STL Flow.................................................................................................. 3-16
3.11.2 A Selective Branch/ First State Mer
g
e Example Pro
g
ram.......................................3-18
3.12 Advanced STL Use............................................................................................3-20
4. Devices in Detail....................................................................................4-1
4.1 Inputs...................................................................................................................4-1
4.2 Outputs ................................................................................................................4-2
4.3 Auxiliar
y
Rela
y
s ...................................................................................................4-3
4.3.1 General Stable State Auxiliar
y
Rela
y
s ......................................................................4-3
4.3.2 Batter
y
Backed/ Latched Auxiliar
y
Rela
y
s.................................................................4-4
4.3.3 Special Dia
g
nostic Auxiliar
y
Rela
y
s .......................................................................... 4-5
4.3.4 Special Sin
g
le Operation Pulse Rela
y
s.....................................................................4-5
4.4 State Rela
y
s ........................................................................................................ 4-6
4.4.1 General Stable State - State Rela
y
s ......................................................................... 4-6
4.4.2 Batter
y
Backed/ Latched State Rela
y
s......................................................................4-7
4.4.3 STL Step Rela
y
s ....................................................................................................... 4-8
4.4.4 Annunciator Fla
g
s ..................................................................................................... 4-9
4.5 Pointers ............................................................................................................. 4-10
4.6 Interrupt Pointers...............................................................................................4-11
4.6.1 Input Interrupts ........................................................................................................4-12
4.6.2 Timer Interrupts ....................................................................................................... 4-12
4.6.3 Disablin
g
Individual Interrupts .................................................................................4-13
4.6.4 Counter Interrupts ...................................................................................................4-13
4.7 Constant K.........................................................................................................4-14
4.8 Constant H.........................................................................................................4-14
4.9 Timers................................................................................................................4-15
4.9.1 General timer operation...........................................................................................4-16
4.9.2 Selectable Timers.................................................................................................... 4-16
4.9.3 Retentive Timers .....................................................................................................4-17
4.9.4 Timers Used in Interrupt and ‘CALL’ Subroutines ................................................... 4-18
4.9.5 Timer Accurac
y
....................................................................................................... 4-18
4.10 Counters............................................................................................................4-19
4.10.1 General/ Latched 16bit UP Counters ...................................................................... 4-20
4.10.2 General/ Latched 32bit Bi-directional Counters.......................................................4-21
FX Series Programmable Controllers