Download  Print this page

Chapter 4 Standard Software; Function Block 158; Parameter Bgdb; Parameter Pafe - Siemens 6ES5-424 Technical Reference Manual

Counter module.
Hide thumbs

Advertisement

Chapter 4
Standard Software
At this time, there are two standard software function blocks
that can be used with the 6ES5 242 counter module. They
are FBI58 which is used to initialize the module; and FBI59
which is used by an application program to communicate the
module.
These two function blocks will support the needs of most
countig applications. Special applications will require the
creation of custom function blocks. To that end, additional
information in this section will provide the framework to follow
as an example.
4.1 Function Block 158
Function block 158 is used to initialize the module when the
PC is first powered up or after a cold or warm restart. Each
module within a PC must have a call from FB158. These calls
should be placed in the proper organizational blocks for your
d
PC type.
4.1 . l Organization Blocks for FBI 58
Calls to FBI58 should be placed in the listed organization
blocks according to Table 4-1.
Table 4-1 Organization Block Calls
135U SYSTEM:
OB20 Manual Cold restart without memory
OB21 Manual Cold restart with memory
0822 Automatic Warm restart with memory
1 15U SYSTEM:
OB21 Initial start from stop
OB22 Initial power on sequence
150 SYSTEM:
OB20 Manual Cold restart
0821 Manual Warm restart
p
0822 Automatic Warm restart
4.1.2 Explanation of FBI 58
The listing in Figure 4-1 illustrates FBI 58 as it will appearwhwn
it is called on the programming unit. Also listed is an
explanation for each of the parameters used within the function
block.
0000
NAME : PER: ZTP
0001
BGDB :
W1 28,235
0002
P/Q
:
KSP only 150Sl135U (see Software
0003
PAFE :
F 191.4
description)
0004
BFEH :
F 191.5
0005
SFEH :
F 191.6
0006
.
***
4.1.3 Parameter BGDB
BGDB:
The first byte specifies the module's peripheral address; i.e.,
128. The address range is from 128 to 240. Switch S1 on the
module is used to select this address.
The second byte points to the data block that is assigned to
this address. The data block must be opened to at least 70 data
words. This data block will explained in detail in a later section.
4.1.4 Parameter P/Q (only 150S/135~)
PIQ:
This parameter specifies which peripheral area the module is
located. P = Normal peripheral area. Q = Extended peripheral
area. The KS format is used.
4.1 .5 Parameter PAFE
PAFE:
Parameter assignment error flag. If the assigned bit is set, the
user must check Flag Byte 255 to determine the error.
255.0
=
address range incorrect
255.1 = not used
255.2
=
data block not defined
255.3 = data block is too short or non-existent
255.4 = not used
255.5 = not used
255.6
=
not used
255.7 = not used
4.1.6 Parameter BFEH
BFEH:
Specifies the hardware error flag. (Module Self Test)
4.1.7 Parameter SFEH
SFEH:
Specifies the general error flag. This flag will set if either
PAFE or BFEH is set.
4.2 Function Block 159
Function Block 159 is available to the user for control of the
17 functions provided by the 6ES5 242 module. These
functions are determined using the BEF parameter. All of the
parameters associated with FBI59 are described in this
section.
Figure 4-1 Function Block 158

Advertisement

Table of Contents

Comments to this Manuals

Symbols: 0
Latest comments: