Hello:
I use sscan Record to drive 2 positioners synchronously.
When the 2 positioners’ scan mode are all TABLE, only
positioner 1 can be scanned, it can move position by position as P1PA
specified. positioner2 will move to 0, then stop. if I set positioner 2 to
LINEAR mode, these 2 can both be scanned, 2 motors can move position by
position synchronously.
I have specified P1PA and P2PA by
caput ?a
IOC:scan1.P1PA 10 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
caput ?a
IOC:scan1.P2PA 10 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Could you tell me why positioner 2 can’t move
position by position like position 1 does when both in TABLE mode? Is there any
problem with my db file?
The db file is like this:
record(motor,
"$(P)m1"){
field(SCAN,
"Passive")
field(DESC,"beijing 5phase
motor")
field(DTYP,"OMS
MAXv")
field(DIR,"Pos")
field(VELO,"10000")
field(VBAS,"4000")
field(ACCL,"0.2")
field(BDST,"0")
field(OUT,"#C0S0@")
field(MRES,"8")
field(PREC,"0")
field(EGU,"um")
field(DHLM,"100000")
field(DLLM,"-100000")
field(VMAX,"15000")
field(INIT,"AF")
}
record(motor,
"$(P)m2"){
field(SCAN,
"Passive")
field(DESC,"beijing 5phase
motor")
field(DTYP,"OMS
MAXv")
field(DIR,"Pos")
field(VELO,"10000")
field(VBAS,"4000")
field(ACCL,"0.2")
field(BDST,"0")
field(OUT,"#C0S1@")
field(MRES,"8")
field(PREC,"0")
field(EGU,"um")
field(DHLM,"100000")
field(DLLM,"-100000")
field(VMAX,"15000")
field(INIT,"AF")
}
record(sscan,
"$(P)scan1") {
field(DESC, "Scan 1")
field(PINI, "YES")
field(PRIO, "HIGH")
field(MPTS, "10")
field(FPTS, "FREEZE")
field(FFO, "USE F-FLAGS")
field(P1HR, "100000")
field(P1LR, "0")
field(P1PR,
"0")
field(P1PV, "$(P)m1.DVAL")
field(P1SM, "TABLE")
field(P1AR, "ABSOLUTE")
field(P1EU, "um")
field(R1PV, "$(P)m1.DRBV")
field(P2HR, "100000")
field(P2LR, "0")
field(P2PR, "0")
field(P2PV, "$(P)m2.DVAL")
field(P2SM, "TABLE")
field(P2AR, "ABSOLUTE")
field(P2EU, "um")
field(R2PV, "$(P)m2.DRBV")
field(NPTS, "10")
field(P1SP, "0")
field(P1SI, "1000")
field(P2SP, "0")
field(P2SI, "1000")
field(PDLY, "0.1")
}
likun
Beamline Control
Group, SSRF, China
李坤
中国科学院上海应用物理研究所
控制组
电话:021-33933238
email:[email protected]
|