Infosys在阅读器中打开 / AI 翻译

KL5001/KS5001 | SSI Sensor Interface · 0 次阅读

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 to R5: reserved
  • R6: Diagnostic register
    The diagnostic register can contain additional diagnostic information. Parity errors, for instance, that occur in serial interface terminals during data transmission are indicated here.
  • R7: Command register
    High-Byte_Write = function parameter
    Low-Byte_Write = function number
    High-Byte_Read = function result
    Low-Byte_Read = function number

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.
  • R13: Data type register

Data type register

Meaning

0x00

Terminal with no valid data type

0x01

Byte array

0x02

Structure 1 byte n bytes

0x03

Word array

0x04

Structure 1 byte n words

0x05

Double word array

0x06

Structure 1 byte n double words

0x07

Structure 1 byte 1 double word

0x08

Structure 1 byte 1 double word

0x11

Byte array with variable logical channel length

0x12

Structure 1 byte n bytes with variable logical channel length (e.g. 60xx)

0x13

Word array with variable logical channel length

0x14

Structure 1 byte n words with variable logical channel length

0x15

Double word array with variable logical channel length

0x16

Structure 1 byte n double words with variable logical channel length

  • R14: reserved
  • R15: Alignment bits (RAM)
    The alignment bits are used to place the analog terminal in the Bus Coupler on a byte boundary.

R16 to R30: Manufacturer parameter area (SEEROM)

The manufacturer parameters are specific for each type of terminal. They are programmed by the manufacturer, but can also be modified by the controller. The manufacturer parameters are stored in a serial EEPROM in the terminal, and are retained in the event of voltage drop-out.

These registers can only be altered after a code word has been set in R31.

R31 to R47: User parameter area (SEEROM)

The user parameters are specific for each type of terminal. They can be modified by the programmer. The user parameters are stored in a serial EEPROM in the terminal, and are retained in the event of voltage drop-out. The user area is write-protected by a code word.

Register description 1:

• R31: Code word register in RAM

The code word 0x1235 must be entered here so that parameters in the user area can be modified. If any other value is entered into this register, the write-protection is active. When write protection is not active, the code word is returned when the register is read. If the write protection is active, the register contains a zero value.

  • R32: Feature register
    [0x0007]
    This register specifies the operation modes of the terminal.

Feature bit no.

 

Description of the operation mode

Bit 0

0/1

  • 0: Binary output
  • 1: Gray binary conversion [default]
    The numbers are output as binary numbers.

Bit 1

0/1

  • 0: Standard output format
  • 1: Alternative output format [default].

Bit 2

0/1

  • 0: free running
  • 1: Synchronous operating mode [default]
    The data are loaded in synchronization with the reading cycle of the K-bus.

Bit 3

0/1

  • 0: Multi-turn evaluation of the encoder [default], max. 25 bits
  • 1: Multi-turn evaluation of the encoder, max. 13 bits

Bit 4

0/1

  • 0: enable frame error [default]
  • 1: disable Frame Error:
    After the last valid bit, no check is carried out as to whether the data line supplies a zero signal.

Bit 5*

0/1

Some SSI encoders indicate the status of their supply voltage with the Power Failure Bit (PFB).

  • 0: Power Failure not displayed [default]
  • 1: Power Failure displayed:
    Bit 2 of the status byte of the KL5001 indicates the last-transmitted state of the PFB.

Bit 6*

0/1

  • 0: variable data frame disabled [default]
  • 1 variable data frame enabled
    The data frame length is specified in R35 and is limited to 2 to 32 bits.

Bit 7…15

-

Reserved, don't change

*) from hardware version 09 and firmware version 4A

  • R33: Baud rate
    [0x0002]
    The baud rate for the reading of the SSI encoder is selected using this register.
    • High byte = not used

Low byte

Baud rate

1

1 MHz

2

250 kHz [default]

3

125 kHz

4

100 kHz

5

83 kHz

6

71 kHz

7

62,5 kHz

  • R34: Data length
    [0x18]
    The data length that appears in the process image can be set with this register.
    The permissible value range is: 0 to 32 bits
    HB = not used
    Low byte = 0 - 32 bits in hexadecimal representation.
  • R35*: Variable frame length
    The data frame length can be set with register R35 if bit R32.6 is set in the feature register (R32). The data frame length should be ≥ the data length (R34), as otherwise a FRAME_E is generated in the status byte.
    *) from hardware version 09 and firmware version 4A