EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Fw: motor control css problem
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 5 Dec 2022 13:43:12 +0000
Closing issue with tech-talk.

From: whitetiger1123 <holyeongbaeg at gmail.com>
Sent: Sunday, December 4, 2022 11:29 PM
To: Mark Rivers <rivers at cars.uchicago.edu>
Subject: RE: motor control css problem
 

I set the configuration string to reflect the physical switch configuration as you said,

Now it works! Thanks!

 

Windows메일에서 발송된 메일입니다.

 

보낸 사람: Mark Rivers
보낸 날짜: 2022 12 5일 월요일 오후 1:53
받는 사람: whitetiger1123
참조: tech-talk at aps.anl.gov
제목: Re: motor control css problem

 

Does you motor have a limit switch? If so is the switch open when the motor hits the limit, or closed when it hits the limit?

 

You need to set the configuration string to reflect the physical switch configuration.

 

You have set the readback to be oms:m1. That is not correct, that field is used for an external readback device like an LVDT. Leave that field blank. 

 

When you move the motor in the other direction does it also show a limit?

 

Mark

 

Sent from my iPhone



On Dec 4, 2022, at 10:24 PM, whitetiger1123 via Tech-talk <tech-talk at aps.anl.gov> wrote:



Hi, now Im going to test the motor control from now on.

Before I ask a question, I would like to thank the epics tech talk for helping me this step.

Im a beginner in epics and RTOS, but I was able to come to this step with a lot of help. Really appreciate it.

 

I booted MVME6100 with epics st.cmd, MAXv controller. Now Im trying to control motor use CSS.

I connected epics pv with css pv. And then I try to move this motor to +, the motor doesnt work.

 

 

vxWorks system boot

 

 

snipped..

 

 

ld 0,0, "oms.munch"

 

 

cd top

dbLoadDatabase "dbd/oms.dbd"

oms_registerRecordDeviceDriver pdbbase

 

cd startup

 

dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=oms:")

< MAXv.cmd

dbLoadTemplate("MAXv.substitutions")

MAXvSetup(1, 16,     0xF000, 200, 5, 10)

str = malloc(200);

strcpy str, "AA; LMH,H,H,H,H,H,H,H;"

strcat str, "AX LTH PSE; AY LTH PSO; AZ LTL PSO; AT LTL PSE; AU LTL PSE; AV LTL PSE; AR LTL PSE; AS LTL PSE;"

MAXvConfig(0, str, 0, 0)

free(str)

 

iocInit

Starting iocInit

############################################################################

## EPICS R3.15.6

## EPICS Base built Oct  7 2022

############################################################################

iocRun: All initialization complete

 

## motorUtil (allstop & alldone)

motorUtilInit("oms:")

 

# Boot complete

 

Done executing startup script '/home/test/epics/synApps_6_1/support/motor-R7-1/modules/motorOms/iocs/omsIOC/iocBoot/iocOms/st.cmd'.

 

 

 

The motor is pk545nbw oriental motor, 5 phase stepper motor.

 

1.     I set correct pv and phase to motorx_setup at

 

2.     And then when I try to click this(>) button, it doesnt move any more.

0.00200 is the all I can move on css and real motor is not

 

3.     Is it because of this limit at motorx_all?

If it does not move because of this limit, how can I remove

 

 

Does anyone know how to resolve this problem? Please help me or give me any suggestions.

Thanks

 

 


References:
motor control css problem whitetiger1123 via Tech-talk
Re: motor control css problem Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Archiver Appliance: How to extract a PV current value using a SQL query Abdalla Ahmad via Tech-talk
Next: Eurotherm2604 modbus support Sintschuk, Michael via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: motor control css problem Mark Rivers via Tech-talk
Next: Archiver Appliance: How to extract a PV current value using a SQL query Oscar Ibañez via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 05 Dec 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·