
6AW5451-6XX01-1K
ES 030-K Manual
3 - 10
Subject to change without prior notice
RD: 08.2000
(4)J31069-D0136-U001-A0-7618
3.2.2
Function Block (FB)
The user has 56 FBs (FB 1, FB 9 - 63) available for use. FB 2 -
FB 8 are system FBs which can be parameterized and utilised
by the user. The parameters are KY, FW and DW. They can be
mixed and utilised in an FB parameterization. The FB 1 is to be
treated like the OB 1 in the SIMATIC, (i.e., the FB 1 or the OB 1
must exist).
Overview Table of All System FBs:
Remember:
Before being called, a system FB must first be programmed by
the user. Examples are given in the appendix (Chapter 8.8).
FB 2
FB 3
FB 4
FB 5
FB 6
FB 7
FB 8
Code conversion, ASCII to binary
Code conversion, binary to ASCII
Designating text area as input field
Deleting designation as input fields
Copy data areas
Reserved
Reserved
3.2.2.1 Code Conversion, ASCII to Binary
Data is entered into the display in ASCII. In order to use these
numbers in a computation, they must be re-coded into a
binary number. In the ES 030-K, the function block FB 2 is
already available to perform this conversion.
Parameterization:
:JC FB2
NAME :ASCI-DU
QUEL :KY
a,b
ZIEL :KY
c,d
ANZ :KY
e,f
a,b = DB,DW address of the data to be converted
c,d = DB,DW address where the binary number is
to be stored
e
= Beginning of data 0 = DL; 1 = DR
f
= Amount of data in bytes
Values permitted for recording: 30H to 39H
Maximum amount of data: 5 bytes + sign
The parameterization is possible using KY, FW, or DW.
Leading zeroes or leading blanks are permitted in the ASCII
data. The first character may also be a + or a -. A blank in an
ASCII character stops the conversion, whether ANZ has been
reached or not.
The set bit 7 in the ASCII digits (input field of the display) does
not influence the conversion.
Errors are signalled by flag byte 8. An error bit is not set when
parameterization is incorrect.
3.2.2.2 Code Conversion, Binary to ASCII
The ES 030-K contains function block FB3 for the conversion
of binary numbers to ASCII characters.
Parameterization:
:JC FB3
NAME :DU-ASCII
QUEL :KY
a,b
ZIEL :KY
c,d
ANZ :KY
e,f
a,b = DB,DW address of the data to be converted
c,d = DB,DW address where the ASCII number is to
be stored
e
= Beginning of ASCII character 0 = DL; 1 = DR
f
= Number of ASCII characters in bytes (ANZ)
Permitted values for recording: -32767 to +32767
The parameterization is possible using KY, FW, or DW.
Errors are signalled by flag byte 8.
3.2.2.3 Designating a Text Area as Input Field
FB 4 can be used to set bit 7 (designation as input field on the
display).
Parameterization:
:JC FB4
NAME :SET7
FELD :KY
a,b
ANZ :e,f
a,b = DB, DW address of the field
e
= Beginning of field 0 = DL; 1 = DR
f
= number (length of field) in bytes
The parameterization is possible using KY, FW, or DW.
3.2.2.4 Deleting the Designation as Input Field
FB 5 can be used to reset bit 7 (cancelling the designation as
input field on a display).
Parameterization:
:JC FB5
NAME :LOE7
FELD :KY
a,b
ANZ :e,f
a,b = DB, DW address of the field
e
= Beginning of field 0 = DL; 1 = DR
f
= number (length of field) in bytes
The parameterization is possible using KY, FW, or DW.
3.2.2.5 Copying of Data Areas
The function block FB 6 is available in the ES 030-K, in order to
be able to quickly copy areas of data. It copies the data from a
source to a designated destination. Exceeding the data block
limits is functionally correct.
Parameterization:
:JC FB6
NAME :COPY
QUEL :KY
a,b
ZIEL :KY
c,d
ANZ
:KY e,f
a,b = DB, DW address of source field
c,d = DB, DW address of destination field
e
= Beginning of fields (Bit 0 = for source;
Bit 1 = for destination; 0 = DL; 1 = DR)
Source Destination Value
DL DL
0
DR DL
1
DL DR
2
DR DR
3
f =
number of bytes to be transferred
The parameterization is possible using KY, FW, or DW.
3.2.3
Organisation Block (OB)
In the ES 030-K, four OBs can be programmed or called up.
OB 1 corresponds to FB 1, see chapter 3.2.2
OB 20 system start, see chapter 3.4.
OB 22 functions as on voltage failure, see chapter 3.4.
OB 39 immediate processing of system flag, see
Summary of Contents for MOBY ES030-K
Page 1: ...s MOBY ES 030 K Acquisition Station Manual Release 08 2000 ...
Page 2: ......
Page 99: ......