Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleiocBoot/common/blenCommon.cmd
# BSA records
dbLoadRecords("db/Bsa.db", "DEVICE=BLEN:${AREA}:${POS},ATRB=AIMAX, SINK_SIZE=1")
dbLoadRecords("db/Bsa.db", "DEVICE=BLEN:${AREA}:${POS},ATRB=BIMAX, SINK_SIZE=1")
dbLoadRecords("db/Bsa.db", "DEVICE=BLEN:${AREA}:${POS},ATRB=ARAW, SINK_SIZE=1")
dbLoadRecords("db/Bsa.db", "DEVICE=BLEN:${AREA}:${POS},ATRB=BRAW, SINK_SIZE=1")

Check diagnostic reports

The IOC application provides an IOC shell function called blenReport to help the IOC Maintainer to diagnose the system. Once in the IOC shell, blenReport will output:

Panel
borderColorgray
borderStyledashed
titleOutput of blenReport

------- FCOM report -------

-- Rx --
# FCOM messages received with success: 0
# timeouts: 76280882
# FCOM messages arriving with error: 1
# FCOM messages with message status error: 276540784

-- Tx --
# FCOM messages transmitted with success: 329187384
# errors when transmitting FCOM messages: 0

-- General Data --
Last TMIT = 4101001.750000
Last X = 0.000000
Last Y = 0.000000
Last transmitted aimax = 0.000000
Last transmitted bimax = 0.000000
Last timestamp high = 935094278
Last timestamp low = 951713816
Pulse ID = 24

The first half of the output deals with statistics related to FCOM. It is broken into two parts: Rx for received packets and Tx for transmitted packets. The numbers are cumulative since when the IOC was booted.

The second half deals with general data received and transmitted. The table below explains each of the shown parameters.

MessageDescription
# FCOM messages received with successThe number of FCOM packets received from the BPM with success. These packets contain the information about TMIT, X beam position, and Y beam position.
# timeoutsNumber of times that a timeout happened while waiting for an FCOM packet.
# FCOM messages arriving with errorNumber of times that an FCOM packet arrived but was corrupted.
# FCOM messages with message status errorNumber of times that a valid FCOM packet was received successfully from the BPM, but contained any type of error flag.
# FCOM messages transmitted with successThe number of FCOM packets transmitted successfully to the multicast network. These packets contain AIMAX, BIMAX, ASUM, and BSUM, calculated by the firmware, to be received by the Fast Feedback system. The IOC has no way to know if the packet arrived successfully at the destination, so this parameter can only be used to know when a multicast packet left the IOC.
# errors when transmitting FCOM messagesThe number of times when an error occurred when trying to send an FCOM packet.
Last TMITLast TMIT value received from the BPM.
Last XLast X beam position received from the BPM.
Last YLast Y beam position received from the BPM.
Last transmitted aimaxLast AIMAX value transmitted to the Fast Feedback system.
Last transmitted bimaxLast BIMAX value transmitted to the Fast Feedback system.
Last timestamp highThe last timestamp processed (high word).
Last timestamp lowThe last timestamp processed (low word).
Pulse IDThe last pulse ID processed.


Algorithm description

Anchor
Waveform
Waveform
Waveform and integration windows

...