TOC PREV NEXT INDEX

Put your logo here!


6.2 Commands

6.2.1 Command Formats

6.2.1.1 ASCII commands
Two ASCII formats are allowed for command parameters: the Fixed format and the Named Parameters format. These two formats are accepted by both the Engineering User Interface and the Command Interpreters.
The two formats cannot be mixed.
The following rules apply to both formats:
· If a parameter accepts more than one value, the values shall be separated by spaces.
· Integer and real values shall be written in any format recognised by scanf function.
· String values shall be optionally enclosed between double quotes. If the string is enclosed between double quotes, double quote inside the string shall be escaped with a `\' character.
Strings containing space characters must be enclosed between double quotes.
String values are not allowed to start with a dash ("-"). This is reserved for parameter names. The only exceptions are values being a number or enumerated values.
· Logical parameters always default to FALSE.
· Parameter names and enumerated string values are not case sensitive.
Fixed format
Parameters in Fixed format consist of a string containing a sequence of parameter values separated by commas.
Parameters are position dependant, the order being defined in the CDT.
Space characters can be inserted before and after the commas.
Defaulted parameters can be left empty.
Logical values shall have the value TRUE or FALSE, corresponding to ccsTRUE and ccsFALSE.
Example:
12 13, 0x00ff,:motor.sensor(1:4) :motor.sensor(2:4), "\"quote\", TRUE, -1.2e4
Named Parameter format
Parameters in Named Parameters format consist of a string containing a sequence of pairs of parameter name and value.
Parameter names and values are separated by one or more space characters.
Parameters names are defined in the CDT.
Parameter names must be prepended with the `-' character, e.g. a parameter of name list shall be given as -list.
For repeated parameters, several values may follow the parameter name.
Parameters can be given in any order. If a parameter is given twice, only the last occurrence counts.
For defaulted parameters, the name can be left out or it can be given without value.
Logical values shall be input as -flag, where flag is the parameter name, indicating that the value is TRUE.
Example:
-list :motor.sensor(1:4) :motor.sensor(2:4) -check -newValue 1
6.2.1.2 Formatted binary
Commands with parameters in "formatted binary" format can be sent from the Engineering User Interface. For this format, the Engineering User Interface shall use the Command Definition tables to convert the ASCII string typed by the user into a binary representation.
Parameters described in the Command Definition files are of three types: String, Integer, Real or Logical.
Parameters in "formatted binary" format shall be written into a binary buffer one after the other, without alignment for integer of real values. Strings shall be terminated by `\0', integers shall be written as vltINT32 (4 bytes) bits, real values shall be written as vltDOUBLE (8 bytes) and logicals as vltLOGICAL (1 byte).
6.2.1.3 Unformatted binary
Command with parameters in "unformatted binary" format cannot be sent from the Engineering User Interface.
The parameters are contained into a binary data structure known by both the source process and the destination process.

The command definition table syntax is defined in section 2.12.
Cmd Interpreter cmdLoadTable
NAME CMDLOAD

DESCRIPTION Request a Command Interpreter to load new Command Definition and Command Configuration tables.

PARAM. FORMAT ASCII

PARMATERS · path name of Command Definition table (string)
· path name of Command Configuration table (string)

REPLY FORMAT EMPTY

Cmd Interpreter cmdSetTestError
NAME CMDSERR

DESCRIPTION Set error number to be returned with the next command.

PARAM. FORMAT ASCII

PARMATERS · error number (integer)

REPLY FORMAT EMPTY

Database dbAliasToName
NAME DBATON

DESCRIPTION Get the point name corresponding to the given alias..

PARAM. FORMAT ASCII

PARAMETERS · point alias (string, maximum 19 characters)

REPLY FORMAT ASCII

REPLY · point name (string)

Database dbDisRemoteAccess
NAME DBDREM

DESCRIPTION Disable the access to remote databases.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Database dbDisSim
NAME DBDSIM

DESCRIPTION Disable the simulation of remote database access.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Database dbEnRemoteAccess
NAME DBEREM

DESCRIPTION Enable the access to remote databases.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Database dbEnSim
NAME DBESIM

DESCRIPTION Enable the simulation of remote database access.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Database dbGetAlias
NAME DBGALS

DESCRIPTION Get the alias of a point.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · point alias (string)

Database dbGetAttrInfo
NAME DBGAINF

DESCRIPTION Get information about an attribute.

PARAM. FORMAT ASCII

PARAMETERS · attribute name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · type of attribute (string: "Scalar", "Vector", "Table)
· number of fields (integer)
· number of records (integer)
· size in bytes of a record (integer)
· number of records used (integer)
· list of types of element (string: "dbLOGICAL", etc.)
Database dbGetAttrNames
NAME DBGANAM

DESCRIPTION Get the list of attributes in a point.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · number of attributes (integer), then for each attribute:
· ain (integer)
· attribute name (string)

Database dbGetAttrNumber
NAME DBGANUM

DESCRIPTION Get the number of attributes in a point.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · number of attributes (integer)

Database dbGetCwp
NAME DBGCWP

DESCRIPTION Get the current working point in a remote database.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · point name (string)

Database dbGetDirAddr
NAME DBGDIRA

DESCRIPTION Get the direct address of a database point or attribute.

PARAM. FORMAT ASCII

PARAMETERS · symbolic name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · addressing level (string: "plin", "ain", "record", "field")
· plin (integer)
· ain (integer)
· start record (integer)
· end record (integer)
· start field (integer)
· end field (integer)

Database dbGetFamily
NAME DBGFAM

DESCRIPTION Get plin of parent and children points.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · plin of point (integer)
· plin of parent point (integer)
· number of children (integer), followed by list of:
· children plin (integer)

Database dbGetFamilyNames
NAME DBGFAMN

DESCRIPTION Get name of parent and children points.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)
· type of symbolic addresses in reply (string: "Absolute", "Relative" or "Alias")

REPLY FORMAT ASCII

REPLY · name of parent point (string)
· number of children (integer), followed by list of:
· children name (string)

Database dbGetFieldNames
NAME DBGFNAM

DESCRIPTION Get field names of table attribute.

PARAM. FORMAT ASCII

PARAMETERS · attribute name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · number of fields (integer), followed by:
· list of field names (string),
· list of field types (string)

Database dbGetParent
NAME DBGPAR

DESCRIPTION Get plins of parent point.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · plin of parent point (integer)

Database dbLoad
NAME DBLOAD

DESCRIPTION Load the definition of the local database from disk.

PARAM. FORMAT ASCII

PARAMETERS · path name of root directory (string)

REPLY FORMAT EMPTY

Database dbLoadBranch
NAME DBLDB

DESCRIPTION Load the definition of a branch of the local database from disk. The current definition is replaced by the new one.

PARAM. FORMAT ASCII

PARAMETERS · path name of branch root directory (string)
· branch root point name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Database dbLockAttr
NAME DBLCKA

DESCRIPTION Lock an attribute in a remote database for writing.

PARAM. FORMAT ASCII

PARMATERS · attribute name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Database dbLockPoint
NAME DBLCKP

DESCRIPTION Lock a point in a remote database for read and write access. All the attributes inside the point are locked.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)
· time-out for retry, in seconds (integer), not implemented on LCUs

REPLY FORMAT EMPTY
Database dbRead
NAME DBREADS

DESCRIPTION Read a remote scalar database attribute. The attribute is accessed by symbolic name.

PARAM. FORMAT ASCII

PARAMETERS · attribute name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · attribute value
Database dbReadSymbolic
NAME DBREAD

DESCRIPTION Read a remote database attribute. The attribute is accessed by symbolic name.
This command is also used by the LCU Common Software to access a remote database. The remote database can reside on a workstation (CCS on-line database) or another LCU.

PARAM. FORMAT UNFORMATTED BINARY

PARAMETERS · database attribute definition:
typedef struct {
dbSYMADDRESS name; /* Name of entry in database */
vltUINT16 maxLen; /* Maximum number of bytes to return */
} dbDBREAD_PARAM;

REPLY FORMAT UNFORMATTED BINARY

REPLY · data description:
typedef struct {
dbATTRTYPE attrType, /* Type of attribute */
vltUINT16 bufLen, /* Number of bytes returned for values*/
} dbDBREAD_REPLY;
· type(s) of the value(s) returned (array of dbTYPE), terminated by dbUNDEFINED,
· value(s) of the requested database entry (array of char), the user will
have to know the format of the database entry requested

Database dbSetCwp
NAME DBSCWP

DESCRIPTION Set the current working point in a remote database.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Database dbUnload
NAME DBULOAD

DESCRIPTION Unload the definition of the local database to disk.

PARAM. FORMAT ASCII

PARAMETERS · path name of root directory (string)

REPLY FORMAT EMPTY

Database dbUnloadBranch
NAME DBULDB

DESCRIPTION Unload the definition of a branch of the local database to disk.

PARAM. FORMAT ASCII

PARAMETERS · path name of branch root directory (string)
· branch root point name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Database dbUnlockAttr
NAME DBULCKA

DESCRIPTION Unlock an attribute in a remote database.

PARAM. FORMAT ASCII

PARAMETERS · attribute name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Database dbUnlockPoint
NAME DBULCKP

DESCRIPTION Unlock a locked point in a remote database.

PARAM. FORMAT ASCII

PARAMETERS · point name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Database dbWrite
NAME DBWRITS

DESCRIPTION Write a remote scalar database attribute. The attribute is accessed by symbolic name.

PARAM. FORMAT ASCII

PARAMETERS · attribute name (dbSYMADDRESS)

PARAM. FORMAT ASCII

PARAMETERS · value of attribute to be written

REPLY FORMAT EMPTY

Database dbWriteSymbolic
NAME DBWRIT

DESCRIPTION Write a remote database attribute. The attribute is accessed by symbolic name.

PARAM. FORMAT UNFORMATTED BINARY

PARAMETERS · database attribute definition and value:
typedef struct {
dbSYMADDRESS name; /* Name of entry in database */
dbATTRTYPE attrType; /* Type of attribute */
vltUINT16 recCnt; /* Number of records written */
vltUINT16 bufLen; /* Number of bytes in buffer of values*/
} dbDBWRIT_PARAM;
· type(s) of the value(s) written (array of dbTYPE), terminated by dbUNDEFINED,
· value(s) of the written database entry (array of char), the user will
have to know the format of the database entry to write

REPLY FORMAT UNFORMATTED BINARY

REPLY · number of bytes written (vltINT32)

Error System errGetFirstBuffer
NAME ERRFRST

DESCRIPTION At boot time of an LCU, error logging is not enabled until an ERRSTRT command is received. Errors logged during this period are not lost but recorded into a specific start-up error buffer (until the start-up error buffer is full). The ERRFRST command retrieves the start-up error buffer. If a log is recorded in the buffer, the reply is sent as a log message and no normal reply is sent.

PARAM. FORMAT EMPTY

REPLY FORMAT UNFORMATTED BINARY

REPLY As ERRSTRT

Error System errStartLogging
NAME ERRSTRT

DESCRIPTION When LCC receives this command all error logs will be sent to the originator of the command. Buffered log data will be sent as reply messages.
The parameter is the process name under which error log servers are registered in the Message System. It is used only when an error stack is received by the LCU in an error reply and the environment name in the stack does not match the environment name of the current error log server. In this case, the LCU will attempt to send the error logging related to that stack to the process whose name is given by the parameter running on the environment given in the stack.

PARAM. FORMAT ASCII

PARAMETERS · name of error log server process (string, maximum 19 characters)

REPLY FORMAT UNFORMATTED BINARY

REPLY · number of errors (vltUINT16)
For each error:
· error definition header:
typedef struct { /* Reply for ERRSTRT command */
ccsTIMEVAL timeStamp; /* Time stamp (UTC) of the error */
ccsSTACK_ID stackId; /* Error stack identifier */
vltUINT16 seqNumber; /* Sequence number in the stack */
ccsPROCNAME processName; /* Name of process that found error */
ccsMODULEID moduleId; /* Name of module that found error */
ccsLOC_ID locId; /* Name of function where error was */
/* found */
vltUINT16 errorNumber; /* Error number */
ccsPROCNUM procNum; /* Procnum of process reporting error*/
vltUINT8 fill[1]; /* Filling characters to have same */
/* structure length on WS and LCU */
} errERRSTRT_REPLY_HEADER;
· error dynamic parameters (null terminated string)

Error System errStopLogging
NAME ERRSTOP

DESCRIPTION Stop the logging of error messages.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtAttach
NAME EVTATT

DESCRIPTION Request event reports for a database parameter.
For a scalar attribute (or an element of a vector or table), the trigger condition specifies when events are generated: for any write, when the value changes or when the value changes more than the given deadband.
For vectors and table attributes, events are generated for any write.
Event reports are sent as specific messages (msgTYPE_EVENT) in which the message header is followed by the evtEVTREQ_REPLY event report structure, defined in evt.h header file common to CCS and LCC.

PARAM. FORMAT ASCII

PARAMETERS · parameter name (string, maximum 255 characters)
· trigger condition (string: "AnyWrite", "NotEqual" or "Deadband")

REPLY FORMAT ASCII

REPLY Event identifier:
· environment name (string)
· event number (integer)
· filter (integer)

Event Monitoring evtAttachAlarm
NAME EVTATTA

DESCRIPTION Request abnormal event reports for a database parameter.
Abnormal event reports are sent as specific messages (msgTYPE_ALARM) in which the message header is followed by the evtEVTREQA_REPLY event report structure, defined in evt.h header file common to CCS and LCC.

PARAM. FORMAT ASCII

PARAMETERS · parameter name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY Event identifier:
· environment name (string)
· event number (integer)
· filter (integer), not used on LCUs, a zero value is always returned.

Event Monitoring evtConfig
NAME EVTCNF

DESCRIPTION Configure a database parameter for monitoring.
Values of limits and deadband must be of the same type as the configured parameters. If optional limit is not defined, no alarms for the limit will be generated.

PARAM. FORMAT ASCII

PARAMETERS · parameter name (string, maximum 255 characters)
· value for high high limit (string, optional)
· value for high limit (string, optional)
· value for low limit (string, optional)
· value for low low limit (string, optional)
· value for deadband (string, optional)

REPLY FORMAT EMPTY

Event Monitoring evtConfigAbnormal
NAME EVTCNFA

DESCRIPTION Configure a database parameter for abnormal event monitoring.
If an optional alarm number is not defined, no alarm is generated for the corresponding limit.

PARAM. FORMAT ASCII

PARAMETERS · parameter name (string, maximum 255 characters)
· alarm number for High High limit (integer, optional)
· alarm number for High limit (integer, optional)
· alarm number for Low limit (integer, optional)
· alarm number for Low Low limit (integer, optional)

REPLY FORMAT EMPTY

Event Monitoring evtDetach
NAME EVTDET

DESCRIPTION Cancel the request of a specific event.

PARAM. FORMAT ASCII

PARAMETERS Event identifier:
· environment name (string, maximum 7 characters), defaulted with empty
string (target environment),
· event number (integer)
· filter (integer), not used on LCUs, defaulted with a zero value

REPLY FORMAT EMPTY

Event Monitoring evtDisAlarm
NAME EVTDA

DESCRIPTION Disable the sending of abnormal event reports to the calling process.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtDisAllAlarm
NAME EVTDAA

DESCRIPTION Disable the sending of abnormal event reports to all processes.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtDisAllEvent
NAME EVTDAE

DESCRIPTION Disable the sending of event reports to all processes.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtDisEvent
NAME EVTDE

DESCRIPTION Disable the sending of event reports to the calling process.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtEnAlarm
NAME EVTEA

DESCRIPTION Enable the sending of abnormal event reports to the calling process.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtEnAllAlarm
NAME EVTEAA

DESCRIPTION Enable the sending of abnormal event reports to all processes.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtEnAllEvent
NAME EVTEAE

DESCRIPTION Enable the sending of event reports to all processes.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtEnEvent
NAME EVTEE

DESCRIPTION Enable the sending of event reports to the calling process.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Event Monitoring evtGetAlarmConfig
NAME EVTGCFA

DESCRIPTION Get the abnormal event monitoring configuration of a database parameter.
The value `-1' is returned for alarm numbers not configured.

PARAM. FORMAT ASCII

PARAMETERS · parameter name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · alarm number for High High limit (integer)
· alarm number for High limit (integer)
· alarm number for Low limit (integer)
· alarm number for Low Low limit (integer)

Event Monitoring evtGetAlarmList
NAME EVTGA

DESCRIPTION Get the list of database parameters and/or signals for which abnormal event reports are reported to a given process.

PARAM. FORMAT ASCII

PARAMETERS · environment name of process (string, maximum 7 characters), empty string defaults
to source environment
· process name (string, maximum 19 characters), empty string defaults to source
process

REPLY FORMAT ASCII

REPLY · number of items (integer), followed by list of event descriptions:
· parameter and/or signal name (string)
· name of process receiving the event (string)
· environment name of process receiving the event (string)
· event number (string)

Event Monitoring evtGetAllAlarmList
NAME EVTGAA

DESCRIPTION Get the list of database parameters and/or signals for which abnormal event reports are reported, for all processes.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · number of items (integer), followed by list of event descriptions:
· parameter and/or signal name (string)
· name of process receiving the event (string)
· environment name of process receiving the event (string)
· event number (string)
Event Monitoring evtGetAllEventList
NAME EVTGAE

DESCRIPTION Get the list of database parameters and/or signals for which events are sent.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · number of items (integer), followed by list of event descriptions:
· parameter and/or signal name (string)
· name of process receiving the event (string)
· environment name of process receiving the event (string)
· event number (string)
· trigger condition (string)

Event Monitoring evtGetConfig
NAME EVTGCF

DESCRIPTION Get the event monitoring configuration of a database parameter.
Value `none' is returned for limits or deadband not configured.

PARAM. FORMAT ASCII

PARAMETERS · parameter name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · value for high high limit (string)
· value for high limit (string)
· value for low limit (string)
· value for low low limit (string)
· value for deadband (string)

Event Monitoring evtGetEventList
NAME EVTGE

DESCRIPTION Get the list of database parameters and/or signals for which events are sent to a given process.

PARAM. FORMAT ASCII

PARAMETERS · environment name of process (string, maximum 7 characters), empty string defaults
to source environment
· process name (string, maximum 19 characters), empty string defaults to source
process

REPLY FORMAT ASCII

REPLY · number of items (integer), followed by list of event descriptions:
· parameter and/or signal name (string)
· name of process receiving the event (string)
· environment name of process receiving the event (string)
· event number (string)
· trigger condition (string)

Event Monitoring evtGetSampleRate
NAME EVTGSR

DESCRIPTION Get the current sampling rate of monitored input signals.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · period (string: "10ms", "100ms", "Sec")
· number of seconds (integer), only for "Sec"

Event Monitoring evtSetSampleRate
NAME EVTSSR

DESCRIPTION Set the sampling rate of monitored input signals.

PARAM. FORMAT ASCII

PARAMETERS · period (string: "10ms", "100ms", "Sec")
· number of seconds (integer), used only for "Sec"

REPLY FORMAT EMPTY

Event Monitoring evtSingleDisable
NAME EVTSDI

DESCRIPTION Disable the sending of a specific event. Events are enabled by default.


PARAM. FORMAT ASCII

PARAMETERS Event identifier:
· environment name (string, maximum 19 characters), defaulted with empty
string (target environment),
· event number (integer)
· filter (integer), not used on LCUs, defaulted with a zero value

REPLY FORMAT EMPTY

Event Monitoring evtSingleEnable
NAME EVTSEN

DESCRIPTION Enable the sending of a specific event. Events are enabled by default.

PARAM. FORMAT ASCII

PARAMETERS Event identifier:
· environment name (string, maximum 7 characters), defaulted with empty
string (target environment),
· event number (integer)
· filter (integer), not used on LCUs, defaulted with a zero value

REPLY FORMAT EMPTY

Signals ioChangeBit
NAME BITCHG

DESCRIPTION Change the state of a single bit output signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Signals ioClearBit
NAME BITCLR

DESCRIPTION Set a single bit output signal to its inactive state.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Signals ioConfigAnalog
NAME AIOCNF

DESCRIPTION Configure an analog signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· device name (string, maximum 19 characters)
· signal number (integer, 0 to 15)
· input or output (string: "Input" or "Output")
· conversion factor (real)
· lower range (real), used only for output signals
· higher range (real), used only for output signals
· gain factor (string: "1", "10", "100", "500"),
· default simulation value (real)

REPLY FORMAT EMPTY

Signals ioConfigDigital
NAME DIOCNF

DESCRIPTION Configure a digital signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· device name (string, maximum 19 characters)
· start bit (integer: 0 to 63)
· bit number (integer: 1 to 32)
· input or output (string: "Input" or "Output")
· signal active level (string: "High" or "Low")
· default simulation value (integer)

REPLY FORMAT EMPTY

Signals ioGetAnalogConfig
NAME AIOGCNF

DESCRIPTION Get the configuration of an analog signal

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · device name (string)
· signal number (integer)
· input or output (string: "Input" or "Output")
· conversion factor (real)
· lower range (real), used only for output signals
· higher range (real), used only for output signals
· gain factor (real),
· default simulation value (real)

Signals ioGetDigitalConfig
NAME DIOGCNF

DESCRIPTION Get the configuration of a digital signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · device name (string)
· start bit (integer)
· bit number (integer)
· input or output (string: "Input" or "Output")
· signal active level (string: "High" or "Low")
· default simulation value (integer)

Signals ioGetList
NAME IOGLST

DESCRIPTION Get the list of all configured signals.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · number of signals (integer), then for each signal:
· signal name (string)
· signal type (string: "Analog" or "Digital")
· input or output (string: "Input" or "Output")

Signals ioPulseBit
NAME BITPULS

DESCRIPTION Pulse a single bit output signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· pulse duration in milliseconds (integer), a duration less than one system tick will
produce a short pulse of about 50 microseconds.

REPLY FORMAT EMPTY

Signals ioReadAnalog
NAME AIOREAD

DESCRIPTION Read value of an analog input signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · signal value (real)

Signals ioReadAnalogRaw
NAME AIORRAW

DESCRIPTION Read value of an analog input signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · signal value (real)
· raw value (real)

Signals ioReadDigital
NAME DIOREAD

DESCRIPTION Read value of a digital input signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT ASCII

REPLY · signal value (integer)

Signals ioSetAnalogSimValue
NAME AIOSSIM

DESCRIPTION Set the simulation value of an analog input signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· simulation value (real)

REPLY FORMAT EMPTY

Signals ioSetBit
NAME BITSET

DESCRIPTION Set a single bit output signal to its active state.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)

REPLY FORMAT EMPTY

Signals ioSetDigitalSimValue
NAME DIOSSIM

DESCRIPTION Set the simulation value of a digital input signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· simulation value (integer)

REPLY FORMAT EMPTY

Signals ioStartSampling
NAME IOSTART

DESCRIPTION Start monitoring of signals.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of digital signal names (string, maximum 255 characters, maximum 10 values),
used only when scope is "Specific"

REPLY FORMAT EMPTY

Signals ioStopSampling
NAME IOSTOP

DESCRIPTION Stop monitoring of signals.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of digital signal names (string, maximum 255 characters, maximum 10 values),
used only when scope is "Specific"

REPLY FORMAT EMPTY

Signals ioWriteAnalog
NAME AIOWRIT

DESCRIPTION Write value of an analog output signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· signal value (real)

REPLY FORMAT EMPTY

Signals ioWriteDigital
NAME DIOWRIT

DESCRIPTION Write value to a digital output signal.

PARAM. FORMAT ASCII

PARAMETERS · signal name (string, maximum 255 characters)
· signal value (integer)

REPLY FORMAT EMPTY

LCU Management lccCheckConf
NAME LCCCHK

DESCRIPTION Check the hardware configuration.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccColdStart
NAME LCCCOLD

DESCRIPTION Perform a cold-start of the LCU. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure.

PARAM. FORMAT ASCII

PARAMETERS · end mode (string: "Stand-by", "Stand-alone" or "On-line")

REPLY FORMAT EMPTY

LCU Management lccDevExitSim
NAME LCCOSIM

DESCRIPTION Notify LCC that a software device exits simulation mode. The LCU is taken to the state LOADED.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure.

PARAM. FORMAT ASCII

PARAMETERS · device name (string, maximum 19 characters)

REPLY FORMAT EMPTY

LCU Management lccDevEnterSim
NAME LCCISIM

DESCRIPTION Notify LCC that a software device enters simulation mode.

PARAM. FORMAT ASCII

PARAMETERS · device name (string, maximum 19 characters)

REPLY FORMAT EMPTY

LCU Management lccGetDevTimeout
NAME DEVGTIM

DESCRIPTION Get LCC's device timeout value.

PARAM. FORMAT ASCII

PARAMETERS EMPTY

REPLY FORMAT · timeout value in seconds (integer)

LCU Management lccSetDevTimeout
NAME DEVSTIM

DESCRIPTION Set LCC's device timeout value.

PARAM. FORMAT ASCII

PARAMETERS · timeout value in seconds (integer)

REPLY FORMAT EMPTY

LCU Management lccDisSim
NAME LCCDSIM

DESCRIPTION Disable the LCU simulation mode.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command STOPSIM.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccDisSim
NAME STOPSIM

DESCRIPTION Disable the LCU simulation mode.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCDSIM.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccEnSim
NAME LCCESIM

DESCRIPTION Set the LCU in simulation mode.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command SIMULAT.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccEnSim
NAME SIMULAT

DESCRIPTION Set the LCU in simulation mode.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCESIM.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccGetDeviceList
NAME LCCGDEV

DESCRIPTION Get list of the software devices configured in the LCU, including the status of each device.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · number of devices (integer), then for each device:
· device name (string)
· name of process controlling the device (string)
· device status (string: "Off", "Init", "Ready", "Failure")

LCU Management lccGetDeviceState
NAME LCCGDST

DESCRIPTION Get the state and simulation status of a software device.

PARAM. FORMAT ASCII

PARAMETERS · device name (string, maximum 19 characters)

REPLY FORMAT ASCII

REPLY · device state (string: "Off", "Loaded", "Stand-by", "On-line")
· simulation status (string "simulation" when in simulation mode, empty when not in
simulation)

LCU Management lccGetId
NAME LCCGID

DESCRIPTION Get the LCU identification.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · node name (string)
· node IP address (integer)
· boot node name (string)
· boot node IP address (integer)

LCU Management lccGetStatus
NAME LCCGST

DESCRIPTION Get the status of the LCU. This command is equivalent to the command STATE.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · current mode (string: "Loaded", "Stand-by", "Stand-alone", "On-line")
· operation being performed (string "Cold start", "Warm start", "Shutdown" or empty)
· initialisation phase (string "initialising" or empty)
· simulation mode (string "simulation mode" or empty)
· devices in simulation mode (string "device in simulation" or empty)

LCU Management lccGetStatus
NAME STATE

DESCRIPTION Get the status of the LCU. This command is equivalent to the command LCCGST.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · current mode (string: "Loaded", "Stand-by", "Stand-alone", "On-line")
· operation being performed (string "Cold start", "Warm start", "Shutdown" or empty)
· initialisation phase (string "initialising" or empty)
· simulation mode (string "simulation mode" or empty)
· devices in simulation mode (string "device in simulation" or empty)

LCU Management lccGetVersion
NAME LCCGVER

DESCRIPTION Get the version of the LCU Common Software. This command is equivalent to the
command VERSION.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · version number (string)

LCU Management lccGetVersion
NAME VERSION

DESCRIPTION Get the version of the LCU Common Software. This command is equivalent to the command LCCGVER.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · version number (string)

LCU Management lccInitFull
NAME LCCINIT

DESCRIPTION Initializes all devices configured in the LCU. Takes the LCU subsystem from any state to state given by endMode.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command INIT.

PARAM. FORMAT ASCII

PARAMETERS · end mode (string: "Stand-by", "Stand-alone" or "On-line")
· conditional initialization (string: "Yes", "No"), i.e. if value is "Yes" devices previously
initialized are not initialized any more
· continue on error (string: "Yes", "No")

REPLY FORMAT EMPTY

LCU Management lccInitFull
NAME INIT

DESCRIPTION Initializes all devices configured in the LCU. Takes the LCU subsystem from any state to state given by endMode.
In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCINIT.

PARAM. FORMAT ASCII

PARAMETERS · end mode (string: "Stand-by", "Stand-alone" or "On-line")
· conditional initialization (string: "Yes", "No"), i.e. if value is "Yes" devices previously
initialized are not initialized any more
· continue on error (string: "Yes", "No")

REPLY FORMAT EMPTY

LCU Management lccNfs
NAME LCCNFS

DESCRIPTION Return the NFS devices status

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · NFS device status.

LCU Management lccOnLine
NAME LCCONLN

DESCRIPTION Set the LCU in on-line mode. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to
the command ONLINE.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccOnLine
NAME ONLINE

DESCRIPTION Set the LCU in on-line mode. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCONLN.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccPrintEnvTbl
NAME LCCPET

DESCRIPTION Return the local environment table

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · local environment table, e.g. all environments known to the LCU.

LCU Management lccPrintLocalTbl
NAME LCCPLT

DESCRIPTION Return the local process table.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · local process table, e.g. all processes registered in the LCU.
LCU Management lccReboot
NAME LCCBOOT

DESCRIPTION Reboot the LCU.
PARAM. FORMAT ASCII

PARAMETERS · generate SYSRESET on the VME bus (string: "Yes" or "No")

REPLY FORMAT EMPTY

LCU Management lccReconfigure
NAME LCCRCNF

DESCRIPTION Stop the LCU and configure the database and the software. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure.

PARAM. FORMAT ASCII

REPLY FORMAT · source (string: "File" or "Buffer")
· buffer with file name for "File" source, or attribute values for "Buffer" source
(string). Same buffer format as dbRestore.

REPLY FORMAT EMPTY

LCU Management lccReload
NAME LCCRLD

DESCRIPTION Stop the LCU and reload given software modules. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure.

PARAM. FORMAT ASCII

REPLY FORMAT · name of file containing name of modules to be reloaded (string)

REPLY FORMAT EMPTY

LCU Management lccSelfTest
NAME LCCTEST

DESCRIPTION Execute the self-test procedure of the LCU. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This
command is equivalent to the command SELFTST.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccSelfTest
NAME SELFTST

DESCRIPTION Execute the self-test procedure of the LCU. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCTEST.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccSetDeviceState
NAME LCCSDST

DESCRIPTION Notify LCC that a software device has changed state.

PARAM. FORMAT ASCII

PARAMETERS · device name (string, maximum 19 characters)
· new device state (string: "Loaded", "Stand-by", "On-line")

REPLY FORMAT EMPTY

LCU Management lccShutdown
NAME LCCSHUT

DESCRIPTION Perform a shutdown of the LCU. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is
equivalent to the command OFF.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccShutdown
NAME OFF

DESCRIPTION Perform a shutdown of the LCU. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCSHUT.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStandAlone
NAME LCCSTAL

DESCRIPTION Set the LCU in stand-alone mode. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is
equivalent to the command STANDAL.
PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStandAlone
NAME STANDAL

DESCRIPTION Set the LCU in stand-alone mode. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCSTAL.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStandBy
NAME LCCSTBY

DESCRIPTION Set the LCU in stand-by mode. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is
equivalent to the command STANDBY.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStandBy
NAME STANDBY

DESCRIPTION Set the LCU in stand-by mode. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCSTBY.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStop
NAME LCCSTOP

DESCRIPTION Stop the current LCU management operation. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This
command is equivalent to the command STOP.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStop
NAME STOP

DESCRIPTION Stop the current LCU management operation. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure. This command is equivalent to the command LCCSTOP.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccStopWatchdog
NAME WDSTOP

DESCRIPTION Stop the software watchdog.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

LCU Management lccWaitFirstInit
NAME LCCWFST

DESCRIPTION Wait until the next device has initialised or the time-out expires.

PARAM. FORMAT ASCII

PARAMETERS · time-out in seconds (integer)

REPLY FORMAT ASCII

REPLY · device name (string), empty string is returned if all devices have already initialised.

LCU Management lccWaitFullInit
NAME LCCWFUL

DESCRIPTION Wait until all the devices have initialised or the time-out expires.

PARAM. FORMAT ASCII

PARAMETERS · time-out in seconds (integer)

REPLY FORMAT EMPTY

LCU Management lccWarmStart
NAME LCCWARM

DESCRIPTION Perform a warm-start of the LCU. In case of device error, the list of failed devices is returned in the run-time parameters field of the error structure.

PARAM. FORMAT ASCII

PARAMETERS · end mode (string: "Stand-by", "Stand-alone" or "On-line")

REPLY FORMAT EMPTY

Logging System logCheckStart
NAME LOGCHK

DESCRIPTION Check if message logging and error logging have been already started.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · logging is started (string: "Yes", "No")
· error logging is started (string: "Yes", "No")

Logging System logDisAnalog
NAME LOGDAIO

DESCRIPTION Disable the automatic logging of change of value of analog signals.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of analog signal names (string, maximum 255 characters, maximum 10 values),
used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logDisDigital
NAME LOGDDIO

DESCRIPTION Disable the automatic logging of change of value of digital signals.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of analog signal names (string, maximum 255 characters, maximum 10 values),
used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logDisMsg
NAME LOGDMSG

DESCRIPTION Disable the automatic logging of messages sent and received by all processes or by a specific process.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· process name (string, maximum 19 characters), used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logDisReadDb
NAME LOGDRDB

DESCRIPTION Disable the automatic logging of read accesses to the database.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of symbolic database parameter names (string, maximum 255 characters,
maximum 10 values), used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logDisWriteDb
NAME LOGDWDB

DESCRIPTION Disable the automatic logging of write accesses to the database.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of symbolic database parameter names (string, maximum 255 characters,
maximum 10 values), used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logEnAnalog
NAME LOGEAIO

DESCRIPTION Enable the automatic logging of change of value of analog signals.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of analog signal names (string, maximum 255 characters, maximum 10 values),
used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logEnDigital
NAME LOGEDIO

DESCRIPTION Enable the automatic logging of change of value of digital signals.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of digital signal names (string, maximum 255 characters, maximum 10 values),
used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logEnMsg
NAME LOGEMSG

DESCRIPTION Enable the automatic logging of messages sent and received by all processes or by a specific process.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· process name (string, maximum 19 characters), used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logEnReadDb
NAME LOGERDB

DESCRIPTION Enable the automatic logging of read accesses to the database.

PARAM. FORMAT ASCII

PARAMETERS · scope (string: "All" or "Specific")
· list of symbolic database parameter names (string, maximum 255 characters,
maximum 10 values), used only when scope is "Specific"

REPLY FORMAT EMPTY

Logging System logEnWriteDb
NAME LOGEWDB

DESCRIPTION Enable the automatic logging of write accesses to the database.

PARAM. FORMAT ASCII

PARAM. FORMAT · scope (string: "All" or "Specific")
· list of symbolic database parameter names (string, maximum 255 characters,
maximum 10 values), used only when scope is "Specific"

REPLY FORMAT EMPTY

REPLY FORMAT
Logging System logGetFirstBuffer
NAME LOGFRST

DESCRIPTION At boot time of an LCU, logging is not enabled until a LOGSTRT command is received. Messages logged during this period are not lost but recorded into a specific start-up log buffer (until the start-up log buffer is full). The LOGFRST command retrieves the start-up log buffer. If a log is recorded in the buffer, the reply is sent as a log message and no normal reply is sent.

PARAM. FORMAT EMPTY

REPLY FORMAT UNFORMATTED BINARY

REPLY As LOGSTRT

Logging System logGetEventList
NAME LOGGLST

DESCRIPTION Get list of all events enabled for logging.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · number of events (integer), then for each event:
· event type (string: "Message", "Read DB", "Write DB", "Analog", "Digital")
· scope (string: "All" or "Specific")
· name of item (string), item is process, database parameter or signal, only when
scope is "Specific"

Logging System logStartLogging
NAME LOGSTRT

DESCRIPTION When LCC receives this command all log messages, except error log messages (see command ERRSTRT), will be sent to the originator of the command.Buffered log data will be sent as reply messages.

PARAM. FORMAT EMPTY

REPLY FORMAT UNFORMATTED BINARY

REPLY · number of logs (vltUINT16)
For each log:
· log definition header:
typedef struct { /* Reply for LOGSTRT command */
ccsTIMEVAL timeStamp; /* Time stamp (UTC) of the log */
ccsPROCNAME processName; /* Name of process requesting log */
ccsMODULEID moduleId; /* Name of module requesting log */
vltUINT8 logId; /* Log format definition identifier */
ccsPROCNUM procNum; /* Procnum of process requesting log*/
vltUINT8 fill[2]; /* Filling characters to have same */
/* structure length on WS and LCU */
} logLOGSTRT_REPLY_HEADER;
· log text (null terminated string)

Logging System logStopLogging
NAME LOGSTOP

DESCRIPTION Stop the sending of logged data.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Message System msgCheckProcess
NAME MSGCHCK

DESCRIPTION Check that a process is registered in the Message System.

PARAM. FORMAT ASCII

PARAMETERS · process name (string, maximum 19 characters)

REPLY FORMAT ASCII

REPLY · registration status (string: "Registered" or "Not registered")
· procnum (integer), only when process is registered

Message System msgGetProcesses
NAME MSGGPL

DESCRIPTION Get a list of all registered processes.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · number of processes, followed by list of:
· process name (string)
· procnum (integer)

Message System msgScheduleProcess
NAME MSGSCHP

DESCRIPTION Schedule a process on the remote environment. This message can only be sent to the "msgServer" process running on each environment. It is not handled by Command Interpreters as other commands.

PARAM. FORMAT FORMATTED BINARY

PARAMETERS · runstring containing the name of the process to schedule followed by optional
arguments (string). For VxWorks environments, the first word of the runstring shall
be the name of the task entry point. A task will be scheduled with the given entry
point and the complete runstring as unique argument. It is the responsibility of the
scheduled process to parse the arguments in the runstring. The runstring must be in
the format "taskName arg1 arg2 arg3", a string within double quotes with task
name and arguments separated by spaces
· task priority for VxWorks environments or flags for Unix environments (integer)
· task options (integer), used only for VxWorks environments
· stack size (integer), used only for VxWorks environments
· task name (string), used only for VxWorks environments

REPLY FORMAT EMPTY

Message System BREAK
NAME BREAK

DESCRIPTION Send a BREAK signal to a process. The BREAK handler set by the process when entering the Message System (ccsInit) will be called.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Message System KILL
NAME KILL

DESCRIPTION Send a KILL signal to a process. The KILL handler set by the process when entering the Message System (ccsInit) will be called.

PARAM. FORMAT EMPTY

REPLY FORMAT EMPTY

Timers timerCancelRequest
NAME TIMCAN

DESCRIPTION Cancel a timer request.

PARAM. FORMAT ASCII

PARAMETERS · request identifier (integer)

REPLY FORMAT EMPTY

Timers timerGetReport
NAME TIMGREP

DESCRIPTION Get a formatted report of all timers on the time list.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · buffer containing formatted report of all times currently on the time list (string)

Timers timerGetStatus
NAME TIMGST

DESCRIPTION Get the status of the Time Handling Module.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · status of timers 0 to 4 (string: "Free" or "Busy")
· status of 10 ms pulse (string: "Free" or "Busy")
· status of 1s pulse (string: "Free" or "Busy")
· Time Module mode (string: "UTC", "Local" or "Simulation")

Timers timerGetTimerStatus
NAME TIMGTST

DESCRIPTION Get the status of a timer.

PARAM. FORMAT ASCII

PARAMETERS · timer identifier (integer: 0 to 4)

REPLY FORMAT ASCII

REPLY · timer status (string: "Free" or "Busy")
· start status (string: "Started" or "Not started")
· mode (string: "Once Immediate", "Once after Time", "Once after Gate",
"Periodic Immediate", "Periodic after Time", Periodic after Gate", "After Time",
"After Gate", "On UTC" or "Periodic after UTC")
· time of last interrupt (string: "YY-MM-DD HH:MM:SS.xxxxxx")
· time of next interrupt (string: "YY-MM-DD HH:MM:SS.xxxxxx")

Timers timerScheduleTask
NAME TIMSCHE

DESCRIPTION Schedule a task synchronised to Time Reference System.

PARAM. FORMAT ASCII

PARAMETERS · name of task entry point (string)
· task priority (integer: 1 to 255)
· task options (integer)
· task stack size (integer)
· task name (string)
· mode of activation ("Once", "Periodic", "UTC" or "Periodic after UTC")
· start time seconds (integer)
· start time milliseconds (integer)
· interval seconds (integer)
· interval milliseconds (integer)


REPLY FORMAT FORMATTED BINARY

REPLY · request identifier (integer)

Timers timerSendCommand
NAME TIMSCMD

DESCRIPTION Send command synchronised to Time Reference System.

PARAM. FORMAT UNFORMATTED BINARY

PARAMETERS · message scheduling definition:
typedef struct { /* Parameters of TIMSEND command */
timerSCHEDULE_MODE mode; /* Scheduling mode */
ccsTIMEVAL startTime, /* Start time */
ccsTIMEVAL interval, /* Interval of periodic activation */
msgCMD command, /* Command name */
msgCMDID commandId, /* Command identifier */
ccsENVNAME destenv, /* Where to send the command */
ccsPROCNAME destproc, /* To whom: process name */
msgLENGTH buflen, /* Message length */
} timerTIMSCMD_PARAM;
· message body (array of char)

REPLY FORMAT FORMATTED BINARY

REPLY · request identifier (integer)

Timers timerSendReply
NAME TIMSRPY

DESCRIPTION Send reply synchronised to Time Reference System.

PARAM. FORMAT UNFORMATTED BINARY

PARAMETERS · message scheduling definition:
typedef struct { /* Parameters of TIMSEND command */
timerSCHEDULE_MODE mode; /* Scheduling mode */
ccsTIMEVAL startTime, /* Start time */
ccsTIMEVAL interval, /* Interval of periodic activation */
msgPROCESSID destId; /* Destination of the reply */
msgCMDID commandId; /* Command Id replied to */
const msgCMD command; /* Command replied to */
msgLENGTH buflen; /* Buffer length. Max len = 8kB. */
vltLOGICAL lastReply; /* Flag to indicate if another */
/* reply follows */
} timerTIMSRPY_PARAM;
· message body (array of char)

REPLY FORMAT FORMATTED BINARY

REPLY · request identifier (integer)

Time System timsGetMode
NAME TIMGMOD

DESCRIPTION Get the operating mode of the Time Handling Module.

PARAM. FORMAT EMPTY

REPLY FORMAT ASCII

REPLY · mode (string: "UTC", "Local" or "Simulation")

Time System timsGetUTC
NAME TIMGUTC

DESCRIPTION Get the Universal Coordinated Time and the mode of the Time Module from an LCU.

PARAM. FORMAT EMPTY

REPLY FORMAT FORMATTED BINARY

REPLY · UTC seconds (integer)
· UTC microseconds (integer)
· Time Module mode (string: "UTC", "Local" or "Simulation")

Time System timsSetMode
NAME TIMSMOD

DESCRIPTION Set the operating mode of the Time Handling Module.

PARAM. FORMAT ASCII

PARAMETERS · mode (string: "UTC", "Local" or "Simulation")

REPLY FORMAT EMPTY

Time System timsSetUTC
NAME TIMSUTC

DESCRIPTION Set the Universal Coordinated Time of an LCU. The Time Module must be in Local or Simulation mode.

PARAM. FORMAT FORMATTED BINARY

PARAMETERS · UTC seconds (integer)
· UTC microseconds (integer)

REPLY FORMAT EMPTY

6.3 Tools

The following pages give the reference pages of the LCU Common Software Tools: lccdt, lccit, lccBoot, lcustatCheck and lcuwdTrig.


Quadralay Corporation
http://www.webworks.com
Voice: (512) 719-3399
Fax: (512) 719-3606
sales@webworks.com
TOC PREV NEXT INDEX