MPH-02, MPB-02, MPD-02
Handling, Diagnostic and Service Functions
10-59
DOK-INDRV*-MP*-02VRS**-FK01-EN-P
a binary number. When selecting "BOOL" as the display type, "1" is output
when a value unequal zero was read, otherwise "0" is displayed.
The processing of the values read is illustrated on the diagram in Fig.
"Sequence diagram of the patch function "read storage location"". If a
storage location is read as integer and output in a non-float format, the
value read is ANDed with the bit mask set via the patch bit mask
parameters (P-0-0482/P-0-0488). The standard setting of this mask is
0xFFFFFFFF so that the value read is not changed.
When a storage location is read as a float value and a non-float format is
selected for display, the value read is multiplied with 10
-exponent
. This allows
making an adjustment to the displayed value range (-2147483648 to
2147483647, value range of a "signed int"). The exponent can be set via
the parameters
P-0-0483, Patch function 1, exponent
or
P-0-0489,
Patch function 2, exponent
.
Note:
If the value read and scaled with the exponent is outside the
possible range of display, one of the extreme values is
displayed. In this case it is necessary to select a different
exponent.
Write Access
(Changing Internal Storage Locations/Signals)
In analogy to read access it is possible to write any storage location. The
sequence of write access is illustrated in Fig. "Sequence diagram of the
patch function "write storage location"". A bit mask possibly set
(P-0-0482/P-0-0488) is taken into account (ANDed) as is a preset patch
exponent (P-0-0483/P-0-0489).
Note:
Please observe that in the "BOOL" display mode it is
impossible to write the storage location because it is
impossible to assign an unequivocal numeric value to the
value "TRUE" (displayed as "1"). Any value unequal zero is
interpreted as "TRUE".
Note:
As in the case of read access, odd addresses in the case of
write access are only allowed in the INT1 mode. In contrast to
read access, the write access is directly carried out as a byte
access. You should therefore avoid activating addresses
outside the DRAM in this way because this can lead to
undefined hardware behavior.
Examples of Application
In conjunction with the "analog output" function it is possible to transmit
the content of a storage location to an analog output. To do this, the IDN
of the desired patch display (P-0-0485/P-0-0491) has to be entered in one
of the parameters
P-0-0420, Analog output 1 signal selection
or
P-0-0423, Analog output 2 signal selection
.
Note:
Please observe that changes in the patch attributes
(P-0-0481/P-0-0487) are not automatically transmitted to the
parameters P-0-0418/P-0-0419 and P-0-0422/P-0-0425. After
a change in the patch attribute you should therefore write the
parameters P-0-0420/P-0-0423, P-0-0418/P-0-0419 and
P-0-0422/P-0-0425 again.
See also "Analog Outputs" in chapter "Extended Drive Functions"
Using the Patch Function in
Conjunction with the Analog
Output
Courtesy
of
CMA/Flodyne/Hydradyne
▪
Motion
Control
▪
Hydraulic
▪
Pneumatic
▪
Electrical
▪
Mechanical
▪
(800)
426-5480
▪
www.cmafh.com