# Sextupole magnet motion
# 3-motors : 1, 2, 3
# Example devices : (FACET) SEXT:LI20:2335, SEXT:LI20:2165
# Reference Undulator xxCamMotion.vdb, xxUndulatorDispAlarmSub.vdb, and xxUndulatorSmartMon.vdb 

######
###### STOP all motors in one ID
#record(seq, "SEXT:LI20:2165:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(DOL1, "1")
#  field(LNK1, "SEXT:LI20:2165:CMXSTPMOTRSC.PROC")
#  field(DOL2, "1")
#  field(LNK2, "SEXT:LI20:2165:TMXSTPMOTRSC.PROC")
#}

#record(bo, "SEXT:LI20:2165:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(FLNK, "SEXT:LI20:2165:STOPMOTOR_X")
#}


######
###### STOP all motors in one ID
#record(longout, "SEXT:LI20:2165:STOPMOTOR_1") {
record(longout, "SEXT:LI20:2165:STOPMOTORS") {
  field(DESC, "stop all motor of this ID")
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2165:1:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2165:STOPMOTOR_2")
}

record(longout, "SEXT:LI20:2165:STOPMOTOR_2") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2165:2:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2165:STOPMOTOR_3")
}

record(longout, "SEXT:LI20:2165:STOPMOTOR_3") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2165:3:MOTR.STOP")

}
# Sextupole magnet motion
# 3-motors : 1, 2, 3
# Example devices : (FACET) SEXT:LI20:2335, SEXT:LI20:2165
# Reference Undulator xxCamMotion.vdb, xxUndulatorDispAlarmSub.vdb, and xxUndulatorSmartMon.vdb 

######
###### STOP all motors in one ID
#record(seq, "SEXT:LI20:2335:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(DOL1, "1")
#  field(LNK1, "SEXT:LI20:2335:CMXSTPMOTRSC.PROC")
#  field(DOL2, "1")
#  field(LNK2, "SEXT:LI20:2335:TMXSTPMOTRSC.PROC")
#}

#record(bo, "SEXT:LI20:2335:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(FLNK, "SEXT:LI20:2335:STOPMOTOR_X")
#}


######
###### STOP all motors in one ID
#record(longout, "SEXT:LI20:2335:STOPMOTOR_1") {
record(longout, "SEXT:LI20:2335:STOPMOTORS") {
  field(DESC, "stop all motor of this ID")
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2335:1:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2335:STOPMOTOR_2")
}

record(longout, "SEXT:LI20:2335:STOPMOTOR_2") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2335:2:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2335:STOPMOTOR_3")
}

record(longout, "SEXT:LI20:2335:STOPMOTOR_3") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2335:3:MOTR.STOP")

}
# Sextupole magnet motion
# 3-motors : 1, 2, 3
# Example devices : (FACET) SEXT:LI20:2335, SEXT:LI20:2165
# Reference Undulator xxCamMotion.vdb, xxUndulatorDispAlarmSub.vdb, and xxUndulatorSmartMon.vdb 

######
###### STOP all motors in one ID
#record(seq, "SEXT:LI20:2145:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(DOL1, "1")
#  field(LNK1, "SEXT:LI20:2145:CMXSTPMOTRSC.PROC")
#  field(DOL2, "1")
#  field(LNK2, "SEXT:LI20:2145:TMXSTPMOTRSC.PROC")
#}

#record(bo, "SEXT:LI20:2145:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(FLNK, "SEXT:LI20:2145:STOPMOTOR_X")
#}


######
###### STOP all motors in one ID
#record(longout, "SEXT:LI20:2145:STOPMOTOR_1") {
record(longout, "SEXT:LI20:2145:STOPMOTORS") {
  field(DESC, "stop all motor of this ID")
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2145:1:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2145:STOPMOTOR_2")
}

record(longout, "SEXT:LI20:2145:STOPMOTOR_2") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2145:2:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2145:STOPMOTOR_3")
}

record(longout, "SEXT:LI20:2145:STOPMOTOR_3") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2145:3:MOTR.STOP")

}
# Sextupole magnet motion
# 3-motors : 1, 2, 3
# Example devices : (FACET) SEXT:LI20:2335, SEXT:LI20:2165
# Reference Undulator xxCamMotion.vdb, xxUndulatorDispAlarmSub.vdb, and xxUndulatorSmartMon.vdb 

######
###### STOP all motors in one ID
#record(seq, "SEXT:LI20:2365:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(DOL1, "1")
#  field(LNK1, "SEXT:LI20:2365:CMXSTPMOTRSC.PROC")
#  field(DOL2, "1")
#  field(LNK2, "SEXT:LI20:2365:TMXSTPMOTRSC.PROC")
#}

#record(bo, "SEXT:LI20:2365:STOPMOTORS") {
#  field(DESC, "stop all motors")
#  field(FLNK, "SEXT:LI20:2365:STOPMOTOR_X")
#}


######
###### STOP all motors in one ID
#record(longout, "SEXT:LI20:2365:STOPMOTOR_1") {
record(longout, "SEXT:LI20:2365:STOPMOTORS") {
  field(DESC, "stop all motor of this ID")
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2365:1:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2365:STOPMOTOR_2")
}

record(longout, "SEXT:LI20:2365:STOPMOTOR_2") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2365:2:MOTR.STOP")
  field(FLNK, "SEXT:LI20:2365:STOPMOTOR_3")
}

record(longout, "SEXT:LI20:2365:STOPMOTOR_3") {
  field(DTYP, "Soft Channel")
  field(OMSL, "closed_loop")
  field(DOL, "1")
  field(OUT, "SEXT:LI20:2365:3:MOTR.STOP")

}
