diff --git a/site_ansto/instrument/pelican/config/chopper/sct_fermichopper.tcl b/site_ansto/instrument/pelican/config/chopper/sct_fermichopper.tcl index 43260099..c61840da 100644 --- a/site_ansto/instrument/pelican/config/chopper/sct_fermichopper.tcl +++ b/site_ansto/instrument/pelican/config/chopper/sct_fermichopper.tcl @@ -31,7 +31,11 @@ namespace eval ::scobj::chopper { if {$val != $oldval} { sct update 1 hsetprop $chPath P_oldval $val - binary scan [binary format c $val] B* binNum + if {$statnode == "intlck_status" } { + binary scan [binary format S $val] B16 binNum + } else { + binary scan [binary format c $val] B8 binNum + } set bitfield [split $binNum ""] foreach n $fields b $bitfield { hset $chPath/$n $b