diff --git a/db/core/ecmcMotorRecord.template b/db/core/ecmcMotorRecord.template index e66d38ecc..12a46f5e3 100644 --- a/db/core/ecmcMotorRecord.template +++ b/db/core/ecmcMotorRecord.template @@ -325,3 +325,27 @@ record(ai,"$(PREFIX)$(MOTOR_NAME)-HomPos-RB") { record (asyn, "$(PREFIX)$(MOTOR_NAME)-$(MOTOR_PORT)-asyn") { } + +#- If axis is in interlock then set motor STOP +record(bo,"$(PREFIX)$(MOTOR_NAME)-TrgStpFwd"){ + #field(PINI, "1") + field(SCAN, "Passive") + field(OUT, "$(PREFIX)$(MOTOR_NAME).STOP PP") + field(DOL, "$(PREFIX)$(MOTOR_NAME)-SumIlockFwd CP") + field(ZSV, "OK") + field(OSV, "STOP") + field(VAL, "1") + field(OMSL, "closed_loop") + +} + +record(bo,"$(PREFIX)$(MOTOR_NAME)-TrgStpBwd"){ + #field(PINI, "1") + field(SCAN, "Passive") + field(OUT, "$(PREFIX)$(MOTOR_NAME).STOP PP") + field(DOL, "$(PREFIX)$(MOTOR_NAME)-SumIlockBwd CP") + field(ZSV, "OK") + field(OSV, "STOP") + field(VAL, "1") + field(OMSL, "closed_loop") +}