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: Illegal field value PV: oms:m1 motor_init_record_com(): card does not exist! motorOMS st.cmd error
From: whitetiger1123 via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 24 Nov 2022 18:05:37 +0900

Hello all,

While running EPICS ioc startup script st.cmd on vxWorks for an app that was made successfully, I am getting following error

I want to use OMS MAXv with load DB file and set board configure..etc.

 

This is my error:

 

Vxworks

< cdCommands

startup = "/home/test/epics/synApps_6_1/support/motor-R7-1/modules/motorOms/iocs/omsIOC/iocBoot/iocOms"

New symbol "startup" added to kernel symbol table.

startup = 0x44f7f50: value = 72396944 = 0x450b090

putenv("IOC=iocOms")

value = 0 = 0x0

top = "/home/test/epics/synApps_6_1/support/motor-R7-1/modules/motorOms/iocs/omsIOC"

New symbol "top" added to kernel symbol table.

top = 0x450b040: value = 72397168 = 0x450b170 = 'p' = top + 0x130

putenv("TOP=/home/test/epics/synApps_6_1/support/motor-R7-1/modules/motorOms/iocs/omsIOC")

value = 0 = 0x0

topbin = "/home/test/epics/synApps_6_1/support/motor-R7-1/modules/motorOms/iocs/omsIOC/bin/vxWorks-ppc32"

New symbol "topbin" added to kernel symbol table.

topbin = 0x4505de0: value = 72375856 = 0x4505e30 = '0' = topbin + 0x50

motor = "/home/test/epics/synApps_6_1/support/motor-R7-1"

New symbol "motor" added to kernel symbol table.

motor = 0x4505db0: value = 72376016 = 0x4505ed0 = topbin + 0xf0

putenv("MOTOR=/home/test/epics/synApps_6_1/support/motor-R7-1")

value = 0 = 0x0

motorbin = "/home/test/epics/synApps_6_1/support/motor-R7-1/bin/vxWorks-ppc32"

New symbol "motorbin" added to kernel symbol table.

motorbin = 0x4505fd0: value = 72398512 = 0x450b6b0 = top + 0x670

asyn = "/home/test/epics/synApps_6_1/support/asyn-R4-36"

New symbol "asyn" added to kernel symbol table.

asyn = 0x450b710: value = 72398688 = 0x450b760 = '`' = asyn + 0x50

putenv("ASYN=/home/test/epics/synApps_6_1/support/asyn-R4-36")

value = 0 = 0x0

asynbin = "/home/test/epics/synApps_6_1/support/asyn-R4-36/bin/vxWorks-ppc32"

New symbol "asynbin" added to kernel symbol table.

asynbin = 0x450b850: value = 72399008 = 0x450b8a0 = asynbin + 0x50

sncseq = "/home/test/epics/synApps_6_1/support/seq-2-2-6"

New symbol "sncseq" added to kernel symbol table.

sncseq = 0x450b7f0: value = 72326896 = 0x44f9ef0

putenv("SNCSEQ=/home/test/epics/synApps_6_1/support/seq-2-2-6")

value = 0 = 0x0

sncseqbin = "/home/test/epics/synApps_6_1/support/seq-2-2-6/bin/vxWorks-ppc32"

New symbol "sncseqbin" added to kernel symbol table.

sncseqbin = 0x450bb60: value = 72399792 = 0x450bbb0 = sncseqbin + 0x50

busy = "/home/test/epics/synApps_6_1/support/busy-R1-7-2"

New symbol "busy" added to kernel symbol table.

busy = 0x44f9fe0: value = 72399920 = 0x450bc30 = '0' = sncseqbin + 0xd0

putenv("BUSY=/home/test/epics/synApps_6_1/support/busy-R1-7-2")

value = 0 = 0x0

busybin = "/home/test/epics/synApps_6_1/support/busy-R1-7-2/bin/vxWorks-ppc32"

New symbol "busybin" added to kernel symbol table.

busybin = 0x450bd30: value = 72400256 = 0x450bd80 = busybin + 0x50

ipac = "/home/test/epics/synApps_6_1/support/ipac-2-15"

New symbol "ipac" added to kernel symbol table.

ipac = 0x450bde0: value = 72400432 = 0x450be30 = '0' = ipac + 0x50

putenv("IPAC=/home/test/epics/synApps_6_1/support/ipac-2-15")

value = 0 = 0x0

epics_base = "/home/test/epics/base-3.15.6"

New symbol "epics_base" added to kernel symbol table.

epics_base = 0x450bf00: value = 72400720 = 0x450bf50 = 'P' = epics_base + 0x50

putenv("EPICS_BASE=/home/test/epics/base-3.15.6")

value = 0 = 0x0

epics_basebin = "/home/test/epics/base-3.15.6/bin/vxWorks-ppc32"

New symbol "epics_basebin" added to kernel symbol table.

epics_basebin = 0x450bfd0: value = 72372384 = 0x45050a0

< ../nfsCommands

#Instructions for creating and using a real nfsCommands file

#

# in order to use nfs do the following:

# 1) Create hostAdd and nfsMount commands for each nfs server

# 2) In each st.cmd file add the following two commands BEFORE any load commands

#    ../nfs.cmd

#    cd "<iocname>

#

# The hostAdd command has the form:

# hostAdd("<host>","xxx.xxx.xxx.xxx")

#

# The vxWorks nfsMount command has the form:

# nfsMount("<host>")

#

# You can also mount subdirectories as follows:

# nfsMount("<host>", "/xxx/xxx/xxx", "/xxx")

#

# For example assume

#

# host is mercury with inet address 155.77.2.56

# You want to mount the directory (which is a file system of mercury)

# /home/mercury5/iocinfo

#    as

# /iocinfo

#

# The commands would be

#

# hostAdd("mercury","155.77.2.56")

# nfsMount("mercury","/home/mercury5/iocinfo","/iocinfo")

 

cd topbin

value = 0 = 0x0

 

## You may have to change oms to something else

## everywhere it appears in this file

ld 0,0, "oms.munch"

BSP routine sysAtReboot() not found, epicsExit() will not be

called by reboot.  For reduced functionality, call

    rebootHookAdd(epicsExitCallAtExits)

value = 72372448 = 0x45050e0

 

 

## Register all support components

cd top

value = 0 = 0x0

dbLoadDatabase "dbd/oms.dbd"

value = 0 = 0x0

oms_registerRecordDeviceDriver pdbbase

value = 0 = 0x0

 

cd startup

value = 0 = 0x0

 

## motorUtil (allstop & alldone)

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

value = 0 = 0x0

 

cd "/home/test/epics/synApps_6_1/support/motor-R7-1/modules/motorOms/iocs/omsIOC/iocBoot/iocOms"

value = 0 = 0x0

 

## Support for the OMS MAXv (VxWorks shell or iocsh)

< MAXv.cmd

 

dbLoadTemplate("MAXv.substitutions")

value = 0 = 0x0

 

# OMS MAXv driver setup parameters:

#     (1)number of cards in array.

#     (2)VME Address Space - A(16,24,32).

#     (3)Base Address (see motorOms/omsApp/src/README).

#     (4)interrupt vector (0=disable or  64 - 255).

#     (5)interrupt level (2 - 6).

#     (6)motor task polling rate (min=1Hz,max=60Hz).

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

value = 0 = 0x0

#!MAXvSetup(1, 24,   0xFF0000, 200, 5, 10)

#!MAXvSetup(1, 32, 0xFF000000, 200, 5, 10)

#!drvMAXvdebug=4

 

# OMS MAXv configuration string:

#     (1) number of card being configured (0-14).

#     (2) configuration string; axis type (PSO/PSE/PSM) MUST be set here.

#         For example, set which TTL signal level defines an active limit

#         switch.  The "config" example below sets X,Y,Z,T to active low (LTL),

#         sets U,V,R,S to active high (LTH) and sets all axes to open-loop

#         stepper (PSO). See MAXv User's Manual for LTL/LTH and PSO/PSE/PSM

#         commands.

#         config="AX LTL PSO; AY LTL PSO; AZ LTL PSO; AT LTL PSO; AU LTH PSO; AV LTH PSO; AR LTH PSO; AS LTH PSO;"

#     (3) SSI based absolute encoder bit flag. Bit #0 for Axis X, bit #1 for

#         Axis Y, etc.. Set a bit flag to '1' for absolute encoder values; '0'

#         for the standard incremental encoder values.

#     (4) SSI based absolute encoder grey code flags (0/1 - yes/no, 0x12 -> UY)

 

# The max command-line length of the VxWorks shell is 128 chars

str = malloc(200);

New symbol "str" added to kernel symbol table.

str = 0x4555ed0: value = 72728064 = 0x455be00

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

value = 72728064 = 0x455be00

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

value = 72728064 = 0x455be00

MAXvConfig(0, str, 0, 0)

value = 0 = 0x0

free(str)

value = 0 = 0x0

< MAXv.iocsh

 

dbLoadTemplate("MAXv.substitutions")

value = 0 = 0x0

 

# OMS MAXv driver setup parameters:

#     (1)number of cards in array.

#     (2)VME Address Space - A(16,24,32).

#     (3)Base Address (see motorOms/omsApp/src/README).

#     (4)interrupt vector (0=disable or  64 - 255).

#     (5)interrupt level (2 - 6).

#     (6)motor task polling rate (min=1Hz,max=60Hz).

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

value = 0 = 0x0

#!MAXvSetup(1, 24,   0xFF0000, 200, 5, 10)

#!MAXvSetup(1, 32, 0xFF000000, 200, 5, 10)

#!drvMAXvdebug=4

 

# OMS MAXv configuration string:

#     (1) number of card being configured (0-14).

#     (2) configuration string; axis type (PSO/PSE/PSM) MUST be set here.

#         For example, set which TTL signal level defines an active limit

#         switch.  The "config" example below sets X,Y,Z,T to active low (LTL),

#         sets U,V,R,S to active high (LTH) and sets all axes to open-loop

#         stepper (PSO). See MAXv User's Manual for LTL/LTH and PSO/PSE/PSM

#         commands.

#         config="AX LTL PSO; AY LTL PSO; AZ LTL PSO; AT LTL PSO; AU LTH PSO; AV LTH PSO; AR LTH PSO; AS LTH PSO;"

#     (3) SSI based absolute encoder bit flag. Bit #0 for Axis X, bit #1 for

#         Axis Y, etc.. Set a bit flag to '1' for absolute encoder values; '0'

#         for the standard incremental encoder values.

#     (4) SSI based absolute encoder grey code flags (0/1 - yes/no, 0x12 -> UY)

 

epicsEnvSet("config0", "AA; LMH,H,H,H,H,H,H,H; AX LTH PSO; AY LTH PSO; AZ LTL PSO; AT LTL PSO; AU LTL PSO; AV LTL PSO; AR LTL PSO; AS LTL PSO;")

value = 0 = 0x0

MAXvConfig(0, "$(config0)", 0, 0)

value = 0 = 0x0

 

## Support for the OMS VME85

#< VME58.cmd

 

## Support for the OMS VME8 and VME44

#< VME8.cmd

 

## Support for the OMS PC68 and PC78 (requires asyn)

#< PC68.cmd

 

 

iocInit

Starting iocInit

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

## EPICS R3.15.6

## EPICS Base built Oct  7 2022

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

WARNING: OS Clock time was read before being set.

Using 1990-01-02 00:00:00.000000 UTC

iocInit: Time provider has not yet synchronized.

Illegal field value PV: oms:m1 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m2 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m3 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m4 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m5 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m6 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m7 motor_init_record_com(): card does not exist!

 

Illegal field value PV: oms:m8 motor_init_record_com(): card does not exist!

 

iocRun: All initialization complete

value = 0 = 0x0

 

## motorUtil (allstop & alldone)

motorUtilInit("oms:")

value = 0 = 0x0

 

# Boot complete

 

 

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

 

 

 

Am I set MAXvSetup and MAXvConfig wrong? Or do I have to load another db(currently is motorUtil.db)?

I’d like to know what happens with this and fix this error.

 

 

I hope you understand Iam new to the world of EPICS. Casual I’ve been trying to understand them for 3 days. From there to before he knew nothing of them.

I hope you can help.

Thanks and regards.

 


Replies:
Re: Illegal field value PV: oms:m1 motor_init_record_com(): card does not exist! motorOMS st.cmd error Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Convert ai record into timestamp Andrew Johnson via Tech-talk
Next: How to: IOC reading information from file? Marco A. Barra Montevechi Filho 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: EPICS startup script st.cmd on vxWorks warning message Andrew Johnson via Tech-talk
Next: Re: Illegal field value PV: oms:m1 motor_init_record_com(): card does not exist! motorOMS st.cmd error Mark Rivers 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, 24 Nov 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·