Access from the user program
KL2521
31
Version: 2.1
5.3
Register description
The registers can be read or written via the register communication. They are used for the parameterization
of the terminal.
R0 to R7: Registers in the internal RAM of the terminal
The process variables can be used in addition to the actual process image. Their function is specific to the
terminal.
•
R0 target counter value (low word)
This register contains the low word of the target counter value.
•
R1 target counter value (high word)
This register contains the high word of the target counter value.
•
R2 maximum frequency
This register contains the high word of the target counter value.
•
R3 counter extension high word
This register contains the overflow value (internal 32-bit extension).
•
R4 to R6: Reserved
•
R7: Command register [0x0000]
For a command to be executed, it is first necessary for the user code word, 0x1235, to be entered
into register R31.
Command 0x7000: Restore Factory Settings
Entering 0x7000 in register R7 restores the delivery state for the following registers.
R32:
0x0030
(48
dec
)
R38:
0x86A0 (34464
dec
)
R33:
0x0000
(0
dec
)
R39:
0x0001
(1
dec
)
R34:
0x0000
(0
dec
)
R40:
0x03E8 (1000
dec
)
R35:
0x0000
(0
dec
)
R41:
0x03E8 (1000
dec
)
R36:
0xC350
(50000
dec
)
R42:
0x0064
(100
dec
)
R37:
0x0000
(0
dec
)
R43:
0x0032
(50
dec
)
R8 to R15: Registers in the internal ROM of the terminal
The type and system parameters are hard programmed by the manufacturer, and the user can read them
but cannot change them.
•
R8: Terminal type
The terminal type in register R8 is needed to identify the terminal.
•
R9: Software version (X.y)
The software version can be read as a string of ASCII characters.
•
R10: Data length
R10 contains the number of multiplexed shift registers and their length in bits.
The Bus Coupler sees this structure.
•
R11: Signal channels
Related to R10, this contains the number of channels that are logically present. Thus for example a
shift register that is physically present can perfectly well consist of several signal channels.
•
R12: Minimum data length
The particular byte contains the minimum data length for a channel that is to be transferred. If the MSB
is set, the control and status byte is not necessarily required for the terminal function and is not
transferred to the control, if the Bus Coupler is configured accordingly.
Содержание KL2521 Series
Страница 2: ......
Страница 4: ...Table of contents KL2521 4 Version 2 1...