![Tecomat TC600 Series Скачать руководство пользователя страница 71](http://html1.mh-extra.com/html/tecomat/tc600-series/tc600-series_manual_1072620071.webp)
Technical equipment of TC600 PLC
71
TXV 138 08.02
Servicing of CH1, CH2, CH3 depends on the set mode. CH1 has fixed-
set mode PC, channels CH2 and CH3 have selectable modes (see Article
4.4 and 4.5). Detailed description of the modes including the servicing table
is given in the handbook
Serial Communication of Tecomat Programmable
Logic Controllers, TXV 001 06.02.
10.5.8
Servicing of Interrupt Inputs
Declaration of interrupt inputs is done by the directive
#unit
with general
structure according to item 10.5.2. Parameter
INITAB
of the directive is
mandatory. The initialization table serves for definition of edges of signals
which evoke the interrupt request (IRQ).
#table byte IniTable = item 1,
;DI0 control
item 2,
;DI1 control
item 3,
;DI2 control
item 4
;DI3 control
Items 1 to 4 may have the following values:
0 - without IRQ
1 - IRQ allowed from the ascending signal edge
2 - IRQ allowed from the descending signal edge
3 - IRQ allowed from both signal edges
#def NO 0
;without IRQ
#def UP 1
;IRQ from the ascending signal edge
#def DOWN 2
;IRQ from the descending signal edge
#def ALL 3
;IRQ from both signal edges
;
#table byte IniIRQ = all, ;IRQ from both edges of input 0
up, ;IRQ from ascending edge of input 1
down, ;IRQ from descending edge of input2
no ;without IRQ from input 3
;
#unit 0, 0, IntIn_600_, Xn, Yn, On, IniIRQ
;
Parameter
TYP, POC_IN, POC_OUT
of the directive
#unit
is input sym-
bolically as
IntIn_600_
or numerically
$20, 1, 1.
Placement of the state
and control word (parameters
Xn, Yn
) depends on the BM type (on occupa-
tion of the scratchpad by images of inputs and outputs).
Interrupt inputs occupy 1 byte in the scratchpad in the image of inputs
(state word) and 1 byte in the image of outputs (control word).
The STAT state word serves for distinguishing of the interrupt source.
Flags of the interrupt in the state word are set before running of the P42 in-
terrupt process. The state word placed in the scratchpad at the address de-
fined by parameter
Z_IN
of directive
#unit
has the following structure:
-
-
-
-
STAT
.3
STAT
.2
STAT
.1
STAT
.0
Z_IN
STAT.0
= 1
- interrupt from input DI0
STAT.1 = 1 - interrupt from input DI1
STAT.2 = 1 - interrupt from input DI2
STAT.3 = 1 - interrupt from input DI3
The CONT control word serves for allowing or prohibiting an interrupt
from individual inputs in the course of the program execution. It is accepted
by the system after it is written to the scratchpad. The control word placed in
the scratchpad at the address defined by parameter
Z_OUT
of directive
#unit
has the following structure:
Declaration of
interrupt inputs
Structure of the
initialization table
Declaration example
Servicing of interrupt
inputs
State word
Control word