Use of WALLI Part 3
Use of WALLI Part 3
Use of WALLI Part 3
The run sequence may be started from the Run menu The state is switched between on and off-line by
while a robot edit window has the screen focus and only successive selection from the Run menu, or by using the
the particular robot program will be obeyed, beginning at short cut keys, Ctrl+O. The current state is displayed in
the current cursor line and looping back to the start. If brackets beside the window title.
the program is started when the Main workcell edit
window or one of its subroutines has the screen focus, The Main workcell program may be switched off-line
the complete program is run from the beginning, calling also, providing it, or one of its sub-routines has the
the whole or parts of the robot programs in the screen focus. In this state, all response from the devices
sequences determined by the workcell program and the sub-devices connected to them, is simulated.
statements.
On-line is the default state, providing an electrical
connection can be established, otherwise off-line is
assumed.
An emergency stop may be invoked at any time with Single Step execution of CNC programs on-line is not
the use of the space bar on the keyboard. permitted, only as a graphical execution when off-line.
FILE ACCESS
The Walli3 for Windows software is distributed in a form
where the full range of robotic and CNC devices and
their peripheral sub-devices is supported without
restrictions for automated working within a Workcell,
irrespective of the equipment that has been ordered.
When the program is running, the program may be Clip 73 : File type list at start of Walli application.
moved on one line at a time from the dialogue box that is In this the file selection is pre-loaded to the project files
presented when each step has been completed, as in with extension [.wal] at the head of a drop-down list of
Clip 72, a box which is super-imposed on the Run the alternative file types which may be scrolled through,
dialogue box. each type associated with a device or the Cell Definition.
Printing
Selecting the Print option from the File menu allows the
complete program or sections of it, as it appears in each
of the edit windows, to be printed using the default
printer setting, unless this has been changed.
Linking invokes the Windows procedures for Dynamic Linking from a Robotic Device Program
Data Exchange, DDE, an advanced subject which
requires a detailed understanding of both applications When Link is selected from Walli’s Edit menu and one of
and meticulous observation of the syntax required for the robot device edit windows currently has the screen
stating the parameters of the data exchange. focus, the Link Options dialogue box presented has two
sections, for the Link Parameters and for the Linked
This syntax will be found to be different, application to Rows, as shown in Clip 86.
application, but within Wallli, the statements that are
permitted are constrained to entries within dialogue The terminology of the captions within the dialogue box
boxes introduced by selecting the Link option in Walli’s is an adaptation of that used in Dynamic Data Exchange,
Edit menu. This produces a dialogue box appropriate to but some of the options that these procedures present
the edit window that has the screen focus. are either implied or constrained by Walli. In particular,
the Link Mode is effectively for Automatic Transfer,
Explanation of the Linking procedure is best given by which occurs when any of the specified data in an
example, and for this reason a simple example has been exchange group changes.
included on the software distribution disc, which
illustrates a link to the Excel spreadsheet application in There are four entry fields in the Link Parameters
the Microsoft Office package. The file [ Link.wal ] should section, one for the Topic and three to specify the
be loaded into Walli, using the open project dialogue box exchange groups, each with check boxes on the left to
from the File menu. This file contains the rudiments of a enable the exchange.
project for the Gryphon robot, detailing only what is
necessary for the explanation, as in Clip 84.
The check box to the left enables the transfer when it There are two entry boxes, against each of the captions
is selected and marked by a cross. Transmit and Receive.
The phrase in the entry box refers to the grid space or Transmit
data cells allocated for the information in the linked
application file, where : The numbers entered here refer to the lines in the
device program that will be transferred to the linked
r refers to row application data cells from Walli. The two boxes are
c refers to column for respectively, the start line and the end line, but
: is the delimiter between end grid positions, since in this example, space has only been allocated
without spaces. for one row in the Excel Sheet1, these numbers are
necessarily the same. In this case, line 1 in the Walli
The syntax of the entry is particular to Excel. Gryphon program will be transferred to the Excel
Sheet1, row 8. The data stated in the program and
Equating the caption “Grid Data from Walli” with the the spreadsheet may be seen to be the same.
legend “Gryphon data (Set by Walli)” on Sheet1, the
parameter phrase { r8c2:r8c10 } refers to a range of data Receive
cells in row 8, from column 2, or B, to column 10, or J,
which can accommodate one line statement from the Similarly, the two boxes are for the start and end
Walli device program window. lines of the device program, that may be loaded from
the linked application. Again, since only space for one
Note : equivalent row in Sheet1 has been allocated, the
These are actual row and column numbers, not numbers entered are the same and in this case, line
the headings. 2 has been designated as able to receive program
data from Excel Sheet1, row 10.
Space for more than one line of program may be
allocated with the second part of the parameter phrase, There is clearly no need for a statement of linked row for
i.e. { ....:r8c10 } , adjusted to the last column of the last the Now data, it is implied.
row of the allocated space. Information entered into the Linked Rows section will
always be in terms of the lines of a Walli robotic device
program and the syntax will be the same for all linked
applications, that is actual line numbers in the device
Grid Data to Walli program, regardless of how they are labelled in the
program, by name or by number. To avoid the need to
The check box to the left enables the transfer. count lines, the device program actual line numbers may
be transferred to the Linked Rows section entry boxes,
Using the same notation and equating the caption “Grid by using a mouse selection in the left hand side of the
Data to Walli” with the legend “Gryphon data (Sent to program’s line field for the appropriate program line,
Walli)” on Sheet1, the parameter phrase { r10c2:r10c10 } when a tick symbol will appear indicating that the actual
refers to a range of data cells in row 10 from column 2, line number will be entered automatically.
or B, to column 10, or J, which could be used to transfer
data from the Excel application to a line of program in Linking from the Workcell Main Program or it’s
the Gryphon’s edit window. As before, space for more
than one line of program may be allocated by adjusting
Subroutines
the second part of the parameter phrase to include the
equivalent number of rows. If the Workcell Main edit window, a Walli subroutine or
the edit window for one of the CNC devices has the
Now Data from Walli screen focus when the Link option is selected from
Walli’s Edit menu, the Link Option dialogue box
The check box to the left enables the transfer. displayed is as shown below, with only one section for
the Linked Parameters, with selection check boxes
Using the same notation as before and equating this against two of the three entry captions, as in Clip 87.
time the caption “Now Data from Walli” with the legend
“Now data (Set by Walli)” on Sheet1, the parameter
phrase { r9c2:r9c10 } refers to a range of data cells in
row 9, from column 2, or B, to column 10, or J, which
may be used to accept data transferred in this case from
Data Logging
Using the same notation as has been used previously Start Log file to [ text ] row [ n ]
and equating the caption “Status Data from Walli” with
the two legends “Flags & Counters (Set by Walli)”, the allows the data to be sent to any Spreadsheet
parameter phrase { r2c2:r3c11 } refers to the cell data application by stating the name of the application
space in two rows on Sheet1, row 2 column 2 to row 3 separated from the sheet number as in Excel|Sheet1,
column 11, which may be used to receive data in the starting at any row except the first, which has been
form of logic states for all of Walli’s ten Flags and ten reserved for column titles.
Counters.
The command may also be used to switch between one
sheet and the next, but it should be remembered that the
Status Data to Walli current row number is not retained, so it would be
inappropriate to switch back again, unless the danger of
The selection box to the left enables the transfer of overwriting data is accepted.
information.
Log Command
Equating the caption “Status Data to Walli” and the two
legends “Flags & Counters (Sent to Walli)”, the The syntax of this command,
parameter phrase { r5c2:r6c11 } refers to the cell data
space on Sheet1 that may be used to transfer logic LOg [ software / hardware device n ] to column
information to set Walli’s ten Flags and ten Counters. [m]
The bounds of the statement will always be the same, allows the value of any of the ten program counters
that is to include all flags and counters, regardless of the and the logic state of any of the ten flags, as software
syntax of the entry phrase, and clearly there is again no devices, the values from the height and width gauges
need to specify what is sent, it is implied and constant. and the analog sensors or the logic state of the digital
sensors, all of which have been declared as
The response to the one line in the Walli Main program, hardware sub-devices for the workcell, to be logged
to SET FLAG 1, is shown in the spreadsheet as [ -1 ] to a column position on the spreadsheet.
entered in both row 2 column 2 and in row 5 column 2.
The remaining flags are not set as indicated by 0 and the The column position is a single statement, which means
counters are all initialised to zero. that the data specified will occupy the numbered column
position as the only variable statement on the current
Note : row accompanied by the date and time stamps in
To avoid DDE error messages, it is best to inhibit columns 1 and 2. Multiple data items which are
all the data exchanges in the boxes to the left of required to be recorded at the same point in program,
the captions in the dialogue boxes before closing must be called therefore by multiple Log commands, in
sequence. Providing the sequence is not too long, it is