Parameter Dbdw; Parameter Intl; Parameter Feml; Parameter Pafe - Siemens 6ES5-424 Technical Reference Manual

Counter module
Table of Contents

Advertisement

Chapter 4
Standard Software
9. FL
-
Load predefined function. This function is used to call
a pre-defined function that has been stored in EPROM 2.
A 4k byte memory area is available on the module for this
purpose.
Each user program must be identified with a function
numbers (FN). Up to 254 function numbers can be
assigned, the range being from O O H to EFH. This function,
FL, is used to tell the module which function number (FN)
is to executed.
The function number must be stored in a function number
register (FNR). The FNR is actually the left byte of a data
word pointed to by the DBDW parameter; i.e., DBDW:
KY200,3 will tell FBI59 that the FNR is the value in DB200,
DW3. If DB200, DW3 = KHOAOO, the function number to be
executed would be FNI 0. The FNR must be loaded before
the call to FBI 59.
@
10. RI
-
Reset interrupts. This function will reset the ABlT
parameter bit, the INTL flag byte will also be reset. Note
that the ABIT parameter is not used with the S5-135U
and 1 15U.
11.
-
15. S1 thru S5
-
Step counter. This function allows you
to single step counters 1 thru 5 (S1 thru S5). The counter
will be incremented or decremented by one count
depending on the counter's selected counting direction.
To step a counter five times for example, the FB would
have to be called five times.
16. LE
-
Read counter. This function will read the values of
the counter or counters selected and place the value in a
result of counter register. These values will then be placed
in an eight data word block within the DB selected.
The parameter DBDW is used to point to the data word
which will be the first word of the eight word block. Note, the
DB in parameter DBDW must be the same DB as in FBI 58.
The first data word must be greater than 51. For an
explanation of the meaning of each data word in the eight
word block refer to the next section. The eight word block
will start at DW60; i.e., DBDW: KY235,60.
[ @
17. IN
-
Reset interrupt bit. This function is used to reset the
interrupt flags in the ABlT and INTL parameters.
4.2.6 Parameter DBDW
DBDW:
This parameter is used to point to the data block and data
word for some of the BEF parameter modes. A list of which
functions of the BEF parameter require a value to be placed
in the DBDW parameter.
BEF parameters requiring a DBDW value:
PA
Parameter assignment
LE
Read Counter
BEF parameters not requiring a DBDW value:
ST
Start counter
L 0
Load counter
LS
Load and start counter
CO
Copy H to E
SA
Save counter to H
SP
Stop counter
RB
Reset module
FL
Load predefined function
RI
Reset interrupts
S1
Step counter 1
S2
Step counter 2
S3
Step counter 3
S4
Step counter 4
S5
Step counter 5
IN
Reset interrupt bit
4.2.7 Parameter lNTL
INTL:
Interrupt flag byte. If the module recognizes a group interrupt
the source of the error can be found by reading the INTL Byte.
4.2.8 Parameter FEML
FEML:
Error flag byte. This byte represents the low order byte of the
FEM register.
4.2.9 Parameter PAFE
PAFE:
Parameter assignment error flag. If the assigned bit is set then
the user must check Flag Byte 255 to determine the error.
255.0
=
address range incorrect
255.1 = Parameter P/Q is not defined
255.2 = data block not defined
255.3 = data block is too short or non-existant
255.4
=
BEF parameter error
255.5
=
not used
255.6 = n.0 counter defined
255.7 = not used

Advertisement

Table of Contents
loading

Table of Contents