adds PV to find out number of supported channels

This commit is contained in:
2024-10-23 09:25:41 +02:00
parent 80bd2973be
commit 91c059370b
4 changed files with 23 additions and 1 deletions

View File

@ -46,10 +46,11 @@ runScript "$(sinq_DIR)counterbox_v2.cmd" "NAME=COUNTERBOX, ASYN_PORT=CBOXV2, CNT
|---------------------------------------|----------------------------------------------------------------------| |---------------------------------------|----------------------------------------------------------------------|
| \$(PREFIX):\$(NAME):MsgTxt | Contains unexpected response to executed command | | \$(PREFIX):\$(NAME):MsgTxt | Contains unexpected response to executed command |
| \$(PREFIX):\$(NAME):STATUS | 0: Idle, 1: Counting, 2: Low rate, 3: Paused, 4: Error | | \$(PREFIX):\$(NAME):STATUS | 0: Idle, 1: Counting, 2: Low rate, 3: Paused, 4: Error |
| \$(PREFIX):\$(NAME):MONITOR-CHANNEL | Channel that PRESET-COUNT monitors (has RBV, only v2 can be changed) |
| \$(PREFIX):\$(NAME):PRESET-COUNT | Run count until specified pv value reached | | \$(PREFIX):\$(NAME):PRESET-COUNT | Run count until specified pv value reached |
| \$(PREFIX):\$(NAME):PRESET-TIME | Run count until specified pv value in seconds reached | | \$(PREFIX):\$(NAME):PRESET-TIME | Run count until specified pv value in seconds reached |
| \$(PREFIX):\$(NAME):THRESHOLD | Minimum rate for counting to preceed. (has RBV) | | \$(PREFIX):\$(NAME):THRESHOLD | Minimum rate for counting to preceed. (has RBV) |
| \$(PREFIX):\$(NAME):THRESHOLD-MONITOR | Channel monitored for minimum rate (has RBV) | | \$(PREFIX):\$(NAME):THRESHOLD-MONITOR | Channel monitored for minimum rate (has RBV) |
| \$(PREFIX):\$(NAME):ELAPSED-TIME | Time Counterbox has been measuring for | | \$(PREFIX):\$(NAME):ELAPSED-TIME | Time Counterbox has been measuring for |
| \$(PREFIX):\$(NAME):M_ | Current count on channel. (1-10 depending on box) | | \$(PREFIX):\$(NAME):M_ | Current count on channel. (1-10 depending on box) |
| \$(PREFIX):\$(NAME):MONITOR-CHANNEL | Channel that PRESET-COUNT monitors (has RBV, only v2 can be changed) | | \$(PREFIX):\$(NAME):CHANNELS | Number of available channels (4, 8 or 10) |

View File

@ -22,6 +22,13 @@ record(longin, "$(P):$(NAME):MONITOR-CHANNEL_RBV")
field(DISP, 1) field(DISP, 1)
} }
record(longin, "$(P):$(NAME):CHANNELS")
{
field(DESC, "Total Supported Channels")
field(VAL, 4)
field(DISP, 1)
}
################################################################################ ################################################################################
# Count Commands # Count Commands

View File

@ -22,6 +22,13 @@ record(longin, "$(P):$(NAME):MONITOR-CHANNEL_RBV")
field(DISP, 1) field(DISP, 1)
} }
record(longin, "$(P):$(NAME):CHANNELS")
{
field(DESC, "Total Supported Channels")
field(VAL, 8)
field(DISP, 1)
}
################################################################################ ################################################################################
# Count Commands # Count Commands

View File

@ -24,6 +24,13 @@ record(longin, "$(P):$(NAME):MONITOR-CHANNEL_RBV")
field(SCAN, "5 second") field(SCAN, "5 second")
} }
record(longin, "$(P):$(NAME):CHANNELS")
{
field(DESC, "Total Supported Channels")
field(VAL, 10)
field(DISP, 1)
}
################################################################################ ################################################################################
# Count Commands # Count Commands