![Beckhoff KL3444 Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/beckhoff/kl3444/kl3444_documentation_2719643053.webp)
Access from the User Program
KL3444, KL3448, KL3454 und KL3458
53
Version: 3.2.0
•
R33: User scaling - offset (Bw)
This register contains the offset of the user scaling.
User scaling can be enabled in the feature register via bit
•
R34: User scaling - gain (Aw)
This register contains the user scaling gain; 0x0400 (1024
dec
) corresponds to 1.
User scaling can be enabled in the feature register via bit
•
R35: Threshold 1 in Y2
If the process data are outside this threshold, the appropriate bits are set in the status byte.
•
R36: Threshold 2 in Y2
If the process data are outside this threshold, the appropriate bits are set in the status byte.
•
R37: Cut-off frequency of the digital IIR filter
This register determines the cut-off frequency of the digital IIR filter (first order). The IIR filter can be
deactivated in the feature register with bit
Value
Cut-off frequency
KL3444, KL3454
KL3448, KL3458
0x0100 (default)
approx. 200 Hz
approx. 100 Hz
0x0200
approx. 100 Hz
approx. 50 Hz
0x0300
approx. 50 Hz
approx. 25 Hz
0x0400
approx. 20 Hz
approx. 10 Hz
other
No filter active
7.6
Examples of Register Communication
The numbering of the bytes in the examples corresponds to the display without word alignment.
7.6.1
Example 1: reading the firmware version from Register 9
Output Data
Byte 0: Control byte
Byte 1: DataOUT1, high byte
Byte 2: DataOUT1, low byte
0x89 (1000 1001
bin
)
0xXX
0xXX
Explanation:
• Bit 0.7 set means: Register communication switched on.
• Bit 0.6 not set means: reading the register.
• Bits 0.5 to 0.0 specify the register number 9 with 00 1001
bin
.
• The output data word (byte 1 and byte 2) has no meaning during read access. To change a register,
write the required value into the output word.
Input Data (answer of the bus terminal)
Byte 0: Status byte
Byte 1: DataIN1, high byte
Byte 2: DataIN1, low byte
0x89
0x33
0x41
Explanation:
• The terminal returns the value of the control byte as a receipt in the status byte.
• The terminal returns the firmware version 0x3341 in the input data word (byte 1 and byte 2). This is to
be interpreted as an ASCII code:
◦ ASCII code 0x33 represents the digit 3
◦ ASCII code 0x41 represents the letter A
The firmware version is thus 3A.
Содержание KL3444
Страница 2: ......