omron — $SYS.INFO string function

$SYS.INFO string function Mode 1 $SYS.INFO(1,$string) returns an entry from the ActiveVR log. The entry returned is identified by the $string parameter, which should be defined as follows: $string = $ENCODE(item) where the value of item is interpreted as follows: item = 0 the total number of entries in the log(N) item > 0 request the respective entry in the log. item = 1 request the oldest log entry item = N requests the latest entry in the log. The returned value is an empty string if any error occurs. Otherwise, it is an ASCII string containing one or three numeric values. If item #0 was requested, the string contains a single integer value.

If a log entry was requested, the string contains timestamps and the logged instruction in the same format as the trace messages displayed when AVR.TRACE is enabled. That is, the string for the log entry has the format: "tstart tend trace" where: tstart ASCII string showing the timestamp, in milliseconds, when instruction execution started. tend ASCII string showing the timestamp, in milliseconds, when instruction execution completed. trace ASCII string showing the instruction that was executed. NOTE: Because of the way eV+ processes motion instructions, the value of tend-tstart does not indicate how long it took to perform a motion.

It indicates how long the instruction had to wait for any previous motion to complete. Related Keywords AVR system switch eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 520