# Set up the beckhoff to match the SSI sensor # Assumes binary output, make sure to do grey -> binary conversion if needed # # ## Assumes Beckhof KL5001 # HW revision xx # FW revision 4B # Serial number ending in xxxx # and set up as follows: # Mapping in bus coupler can be standard or alternate format. # # Format: Alternate # Complete Evaluation: 1 # MOTOROLA format: 0 # Word alignment: 1 # ## This will give the following mapping # I/O Offset High Byte Low Byte # 3 D3 D2 # 2 - - # 1 D1 D0 # 0 - CB/SB # # Key # Complete evaluation: The terminal is mapped with control / status byte. # Motorola format: The Motorola # or Intel formal can be set. # Word alignment: The terminal is at a word limit in the bus coupler. # CB: Control-Byte (appears in the PI of the outputs). # SB: Status-Byte (appears in the PI of the inputs). # D0 - D3: Data bytes ## TR Encoder (24bit data) # [ ] Gray-binary number conversion # [x] Alternative output format # [x] Synchronous Mode # [ ] Single-turn evaluation of the sensor # [ ] Disable Frame-Error # These settiings are reflected in R32 # #( Current settings shown) # REGISTER VALUES: write 0x1235 to enable changes in the register # R31: 0x0000 : Code word register # Write 0x1235 to enable register write functions # R32: 0x0006 : Feature Register # R33: 0x0002 : Baud Rate # R34: 0x0018 : (in decimal 24) : Data Length # R35: 0x0000 : Variable Frame Length record(longin, "$(APC):M$(SLOT)_CH$(CH)_STAT"){ field(DESC, "Status Code") field(DTYP, "asynUInt32Digital") field(INP, "@asynMask($(PORT) $(OFF1) 0xffff)") field(SCAN, "I/O Intr") field(HIGH, "1") field(HSV, "MAJOR") field(FLNK, "$(APC):M$(SLOT)_CH$(CH)_SSIER") field(ASG, "Internal") } record(calcout, "$(APC):M$(SLOT)_CH$(CH)_SSIER"){ field(DESC, "SSI Input Error") field(INPA, "$(APC):M$(SLOT)_CH$(CH)_STAT MS") field(CALC, "A & 0x1") field(HIGH, "1") field(HSV, "MAJOR") field(FLNK, "$(APC):M$(SLOT)_CH$(CH)_FRMER") field(ASG, "Internal") } record(calcout, "$(APC):M$(SLOT)_CH$(CH)_FRMER"){ field(DESC, "Frame Error") field(INPA, "$(APC):M$(SLOT)_CH$(CH)_STAT MS") field(CALC, "(A >> 1) & 0x1") field(HIGH, "1") field(HSV, "MAJOR") field(FLNK, "$(APC):M$(SLOT)_CH$(CH)_ERRR") field(ASG, "Internal") } record(calcout, "$(APC):M$(SLOT)_CH$(CH)_ERRR"){ field(DESC, "General Error") field(INPA, "$(APC):M$(SLOT)_CH$(CH)_STAT MS") field(CALC, "(A >> 6) & 0x1") field(HIGH, "1") field(HSV, "MAJOR") field(FLNK, "$(APC):M$(SLOT)_CH$(CH)_SSIER") field(ASG, "Internal") } record(ai, "$(APC):M$(SLOT)_CH$(CH)_SIG") { field(DESC, "SSI Data") field(DTYP, "asynInt32") field(INP, "@asyn($(PORT) $(OFF2)) INT32_LE_ALT") field(LINR, "$(LINR)") field(SCAN, "I/O Intr") field(EGU, "$(EGU)") field(HHSV, "NO_ALARM") field(LLSV, "NO_ALARM") field(HSV, "NO_ALARM") field(LSV, "NO_ALARM") field(ASG, "Internal") }