Series: Operator'S Manual
Series: Operator'S Manual
OPERATOR'S MANUAL
B-83114EN/01
• Original Instructions
Before using the Robot, be sure to read the "FANUC Robot Safety Manual (B-80687EN)" and
understand the content.
The products in this manual are controlled based on Japan’s “Foreign Exchange and
Foreign Trade Law”. The export from Japan may be subject to an export license by the
government of Japan.
Further, re-export to another country may be subject to the license of the government of
the country from where the product is re-exported. Furthermore, the product may also be
controlled by re-export regulations of the United States government.
Should you wish to export or re-export these products, please contact FANUC for advice.
In this manual we have tried as much as possible to describe all the various matters.
However, we cannot describe all the matters which must not be done, or which cannot be
done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual should be
regarded as ”impossible”.
SAFETY
B-83114EN/01 SAFETY PRECAUTIONS
1 SAFETY PRECAUTIONS
For the safety of the operator and the system, follow all safety precautions when operating a robot and its
peripheral devices installed in a work cell.
In addition, refer to the “FANUC Robot SAFETY HANDBOOK (B-80687EN)”.
Operator:
• Turns robot controller power ON/OFF
• Starts robot program from operator’s panel
Maintenance engineer:
• Operates the robot
• Teaches robot inside the safety fence
• Maintenance (adjustment, replacement)
During the operation, programming, and maintenance of your robotic system, the programmer, teaching
operator, and maintenance engineer should take additional care of their safety by using the following safety
precautions.
(1) Have the robot system working persons attend the training courses held by FANUC.
FANUC provides various training courses. Contact our sales office for details.
s-3
SAFETY PRECAUTIONS B-83114EN/01
(2) Even when the robot is stationary, it is possible that the robot is still in a ready to move state, and is
waiting for a signal. In this state, the robot is regarded as still in motion. To ensure working person
safety, provide the system with an alarm to indicate visually or aurally that the robot is in motion.
(3) Install a safety fence with a gate so that no working person can enter the work area without passing
through the gate. Install an interlocking device, a safety plug, and so forth in the safety gate so that the
robot is stopped as the safety gate is opened.
The controller is designed to receive this interlocking signal of the door switch. When the gate is
opened and this signal received, the controller stops the robot in an emergency. For
connection, see Fig.1.2 (a) and Fig.1.2 (b).
(4) Provide the peripheral devices with appropriate grounding (Class A, Class B, Class C, and Class D).
(5) Try to install the peripheral devices outside the work area.
(6) Draw an outline on the floor, clearly indicating the range of the robot motion, including the tools such
as a hand.
(7) Install a mat switch or photoelectric switch on the floor with an interlock to a visual or aural alarm that
stops the robot when a working person enters the work area.
(8) If necessary, install a safety lock so that no one except the working person in charge can turn on the
power of the robot.
The circuit breaker installed in the controller is designed to disable anyone from turning it on
when it is locked with a padlock.
(9) When adjusting each peripheral device independently, be sure to turn off the power of the robot.
RP1
Pulsecoder
RI/RO,XHBK,XROT
RM1
Motor power/brake
EARTH
Safety fence
s-4
B-83114EN/01 SAFETY PRECAUTIONS
Dual chain
Panel board (Note)
FENCE2
(1) If you do not have to operate the robot, turn off the power of the robot controller or press the
EMERGENCY STOP button, and then proceed with necessary work.
(2) Operate the robot system at a location outside of the safety fence
(3) Install a safety fence with a safety gate to prevent any worker other than the operator from entering the
work area unexpectedly and to prevent the worker from entering a dangerous area.
(4) Install an EMERGENCY STOP button within the operator’s reach.
Dual chain
External stop button
Panel board
EES1
(Note)
EES11 Connecto EES1and EES11,EES2 and EES21or EMGIN1and EMGIN2.
s-5
SAFETY PRECAUTIONS B-83114EN/01
(1) Unless it is specifically necessary to enter the robot work area, carry out all tasks outside the area.
(2) Before teaching the robot, check that the robot and its peripheral devices are all in the normal operating
condition.
(3) If it is inevitable to enter the robot work area to teach the robot, check the locations, settings, and other
conditions of the safety devices (such as the EMERGENCY STOP button, the DEADMAN switch on
the teach pendant) before entering the area.
(4) The programmer must be extremely careful not to let anyone else enter the robot work area.
Our operator panel is provided with an emergency stop button and a key switch (mode switch)
for selecting the automatic operation mode (AUTO) and the teach modes (T1 and T2). Before
entering the inside of the safety fence for the purpose of teaching, set the switch to a teach
mode, remove the key from the mode switch to prevent other people from changing the
operation mode carelessly, then open the safety gate. If the safety gate is opened with the
automatic operation mode set, the robot enters the emergency stop state. After the switch is set
to a teach mode, the safety gate is disabled. The programmer should understand that the
safety gate is disabled and is responsible for keeping other people from entering the inside of
the safety fence.
Our teach pendant is provided with a DEADMAN switch as well as an emergency stop button.
These button and switch function as follows:
(1) Emergency stop button: Causes an emergency stop when pressed.
(2) DEADMAN switch: Functions differently depending on the mode switch setting status.
(a) Automatic operation mode: The DEADMAN switch is disabled.
(b) Teach mode: Causes an emergency stop when the operator releases the DEADMAN
switch or when the operator presses the switch strongly.
Note)The DEADMAN switch is provided to place the robot in the emergency stop state when
the operator releases the teach pendant or presses the pendant strongly in case of emergency.
The R-30iA/ R-30iA Mate employs a 3-position DEADMAN switch, which allows the robot to
operate when the 3-position DEADMAN switch is pressed to its intermediate point. When the
operator releases the DEADMAN switch or presses the switch strongly, the robot enters the
emergency stop state.
The operator’s intention of starting teaching is determined by the controller through the dual
operation of setting the teach pendant enable/disable switch to the enable position and
pressing the DEADMAN switch. The operator should make sure that the robot could operate in
such conditions and be responsible in carrying out tasks safely.
The teach pendant, operator panel, and peripheral device interface send each robot start
signal. However the validity of each signal changes as follows depending on the mode switch
and the DEADMAN switch of the operator panel, the teach pendant enable switch and the
remote condition on the software.
s-6
B-83114EN/01 SAFETY PRECAUTIONS
You must make three-mode switch T1/T2 for RIA specification to start from Teach pendant.
(5) (Only when R-30iA Controller or CE or RIA specification of R-30iA Mate controller is selected.) To
start the system using the operator’s panel, make certain that nobody is the robot work area and that
there are no abnormal conditions in the robot work area.
(6) When a program is completed, be sure to carry out a test run according to the procedure below.
(a) Run the program for at least one operation cycle in the single step mode at low speed.
(b) Run the program for at least one operation cycle in the continuous operation mode at low speed.
(c) Run the program for one operation cycle in the continuous operation mode at the intermediate
speed and check that no abnormalities occur due to a delay in timing.
(d) Run the program for one operation cycle in the continuous operation mode at the normal
operating speed and check that the system operates automatically without trouble.
(e) After checking the completeness of the program through the test run above, execute it in the
automatic operation mode.
(7) While operating the system in the automatic operation mode, the teach pendant operator should leave
the robot work area.
s-7
SAFETY PRECAUTIONS B-83114EN/01
(8) When a tool is mounted on the robot, or when any moving device other than the robot is installed, such
as belt conveyor, pay careful attention to its motion.
(9) If necessary, have a worker who is familiar with the robot system stand beside the operator panel and
observe the work being performed. If any danger arises, the worker should be ready to press the
EMERGENCY STOP button at any time.
(10) When replacing or reinstalling components, take care to prevent foreign matter from entering the
system.
(11) When handling each unit or printed circuit board in the controller during inspection, turn off the circuit
breaker to protect against electric shock.
If there are two cabinets, turn off the both circuit breaker.
(12) When replacing parts, be sure to use those specified by FANUC.
In particular, never use fuses or other parts of non-specified ratings. They may cause a fire or result in
damage to the components in the controller.
(13) When restarting the robot system after completing maintenance work, make sure in advance that there
is no person in the work area and that the robot and the peripheral devices are not abnormal.
s-8
B-83114EN/01 SAFETY PRECAUTIONS
s-9
B-83114EN/01 TABLE OF CONTENTS
TABLE OF CONTENTS
SAFETY.......................................................................................................s-1
1 OVERVIEW ............................................................................................. 1
1.1 OVERVIEW ................................................................................................... 1
1.2 HARDWARE REQUIREMENTS .................................................................... 1
1.3 SOFTWARE REQUIREMENTS..................................................................... 1
1.4 RESTRICTIONS ............................................................................................ 2
1.5 CAUTIONS .................................................................................................... 2
2 iPENDANT WEB BROWSER ................................................................. 3
2.1 OVERVIEW ................................................................................................... 3
2.2 BROWSER MENUS ...................................................................................... 3
3 USING FANUC iPENDANT CONTROLS ............................................... 5
3.1 iPENDANT CONTROLS SUMMARY ............................................................ 5
3.2 RECOMMENDED ENVIRONMENT .............................................................. 5
3.3 INSTALLATION ............................................................................................. 5
3.4 Control Features Summary............................................................................ 7
4 FRONTPAGE .......................................................................................... 9
4.1 WORKING with SITE..................................................................................... 9
4.2 WORKING with PAGES ................................................................................ 9
4.2.1 File Names..............................................................................................................10
4.2.2 Meta Tags ...............................................................................................................11
4.2.3 Page Properties .......................................................................................................11
4.2.4 Window Size ..........................................................................................................11
4.2.5 Positioning..............................................................................................................13
4.2.6 HTML Editing........................................................................................................13
4.2.7 Fonts .......................................................................................................................13
4.2.8 Images ....................................................................................................................13
4.2.9 Links.......................................................................................................................13
4.2.10 Frames ....................................................................................................................14
4.2.11 Themes and Styles..................................................................................................14
4.3 PUBLISHING YOUR SITE........................................................................... 14
5 MAKING A CUSTOM iPENDANT SCREEN......................................... 17
5.1 CONTROL ARRANGEMENT ...................................................................... 17
5.2 COMMON CONTROL PROPERTIES ......................................................... 18
5.2.1 Object Tag ..............................................................................................................18
5.2.2 DataType and DataIndex........................................................................................18
5.2.3 Images ....................................................................................................................19
5.2.4 Border.....................................................................................................................20
5.2.5 Colors .....................................................................................................................20
5.2.6 Fonts .......................................................................................................................21
5.2.7 Alignment...............................................................................................................21
5.2.8 Monitor...................................................................................................................21
5.2.9 Function Key ViewType ........................................................................................22
5.2.10 Caption ...................................................................................................................22
5.2.11 Pulse DO.................................................................................................................23
c-1
TABLE OF CONTENTS B-83114EN/01
APPENDIX
A COMMANDING LINKS FROM KAREL............................................... 111
A.1 FORCE_LINK BUILT-IN ROUTINE ........................................................... 111
A.2 GENERIC LINKING FUNCTIONALITY...................................................... 111
A.3 GENERIC LINKING DETAILED INFORMATION....................................... 112
B DISCTRL_DIAG BUILT-IN .................................................................. 114
B.1 DIALOG BOX XML FILE............................................................................ 115
B.1.1 Tags and Attributes ..............................................................................................116
B.1.1.1 <DIALOG> </DIALOG>................................................................................ 116
B.1.1.2 <TEXT> </TEXT>.......................................................................................... 117
B.1.1.3 <DLGTILE> </DLGTILE> ............................................................................ 117
B.1.1.4 <object> </object>........................................................................................... 117
B.1.1.5 XML content example ..................................................................................... 118
B.1.1.6 KAREL program example ............................................................................... 119
c-4
B-83114EN/01 TABLE OF CONTENTS
c-5
B-83114EN/01 1.OVERVIEW
1 OVERVIEW
This document is meant to provide detailed information on how to create, and use these custom screens
on an iPendant. Please refer to the FANUC Robotics SYSTEM R-30iA Controller Setup and Operations
Manual for information relating to iPendant screen navigation and iPendant-specific functions.
* NetFront by ACCESS Co. Ltd. is adopted for the Internet browser used in this product.
1.1 OVERVIEW
Putting iPendant control (parts of screens) on Web page enables followings in custom screens.
• Dynamic display and input of Register, System and KAREL Variables and I/O values
• Change between web pages (Manually and Automatically).
There are various iPendant controls. Please refer to Chapter 2 for overview of iPendant control. Please
refer to Section 2.4 to see what kinds of iPendant control you can use. For details of each control, please
refer to Chapter 4, 5, 6,7 and 8. To grasp big picture of creating custom screen, please refer to Appendix
C.
-1-
1.OVERVIEW B-83114EN/01
1.4 RESTRICTIONS
• Display on FrontPage, ROBOGUIDE and real controller are not same completely.
Please confirm display of screen on real iPendant.
• When viewing your page in the integrated browser the FANUC iPendant Controls will appear static,
since they are not connected to the robot controller.
1.5 CAUTIONS
Web pages are normally created on FrontPage and displayed on ROBOGUIDE. Then display of the pages
is finally confirmed on real iPendant. For these steps, following knowledge and operations are required. It
is desired to have basic knowledge of HTML.
• You can operate only one button on a screen at one time. You cannot use 2 or more buttons at the
same time.
• If you press 2 or more places on touch panel, touch panel may recognize wrong place, which is
different from touched place. Please touch only one place on touch panel.
• When touch panel is broken, the panel can recognize wrong place that are different from place
operator touched. Don’t use touch panel to set signals that can affect safety of system.
• Use touch panel by finger or dedicated pen for touch panel operation. If you use sharp object like
usual pens, touch panel may get broken
• When following dialog box is displayed on iPendant, touch panel may be broken. Turn down robot
controller and exchange iPendants
-2-
B-83114EN/01 2.iPENDANT WEB BROWSER
The iPendant BROWSER screen allows you to access web pages on the robot or web pages on any device
on the network with the robot. Please refer to “R-30iA/R-30iA Mate CONTROLLER Ethernet Function
OPERATOR’S MANUAL” (B-82974EN/01) for information on using the robot’s web server.
You can add your own links to the BROWSER [TYPE] menu, which is displayed by the F1 key. Ten
links are available in this [TYPE] menu. They are defined in the system variable $TX_SCREEN[n]
where:
The screen name must be provided or the entry will not be shown.
-3-
2.iPENDANT WEB BROWSER B-83114EN/01
$TX_SCREEN[1].$DESTINATION = ‘http://pderob011’
$TX_SCREEN[1].$SCREEN_NAME = ‘pderob011’
$TX_SCREEN[2].$DESTINATION = ‘/fr/example.htm’
$TX_SCREEN[2].$SCREEN_NAME = ‘Example’
$TX_SCREEN[3].$DESTINATION = ‘/fr/status.htm’
$TX_SCREEN[3].$SCREEN_NAME = ‘User3’
NOTE
Don’t remove or overwrite pages set in $TX_SCREEN[ ] as default setting. They
are used by system software.
-4-
B-83114EN/01 3.USING FANUC iPENDANT CONTROLS
NOTE
Other Microsoft ActiveX controls cannot be used with the iPendant.
• Permit the dynamic display and input of Register, System and KAREL Variables, and I/O values.
• Change between web pages (Manually and Automatically).
FrontPage 2003 is the recommended application for development because it interacts with ActiveX
controls by displaying custom property pages and showing more information at design time. Other web
authoring tools can also be used; however you may have to enter all the ActiveX control parameters
manually.
3.3 INSTALLATION
To create custom screen, FANUC iPendant Controls must be installed to your PC. Please install
ROBOGUIDE because install of ROBOGUIDE installs automatically iPendant Controls, too. To confirm
installation, use following procedure.
-5-
3.USING FANUC iPENDANT CONTROLS B-83114EN/01
3 Select Advanced Controls in Component type list and select ActiveX Control in Choose a control
list. Then press Next. Dialog box similar to following is displayed.
4 If FANUC iPendant Controls do not appear, select Customize button. If they were installed
properly, you will see a screen where you can select all the FANUC iPendant Controls.
-6-
B-83114EN/01 3.USING FANUC iPENDANT CONTROLS
5 If you insert an ActiveX component, and it shows up with the following image in FrontPage:
You most likely installed the .ocx on a drive that is currently no longer available. (i.e. a networked
drive)
• Label
Used to display the value of Register, Variable and I/O. Also used to display fixed strings and the
combination of fixed strings and digits.
• EditBox
Used to change the value of a Register, a Variable or an I/O point. Popup keyboard and iPendant
numeric keypad are supported.
• ToggleLamp
Used to change the color or image displayed by the control if the value of a Register, a Variable or
an I/O point, fulfills the specified single condition. Three types of lamps are available: panel, circle,
or an image. This control can also be used to display a fixed image.
• CommandButton
Used to write the specified value to a Register, a Variable or an I/O point. Two types of buttons are
available: rectangular pushbutton and image.
• ToggleButton
Used to write one of two specified values to a Register, a Variable or an I/O point based on the state
of the button. Three types of buttons are available: rectangular pushbutton, checkbox and image.
• Multi
-7-
3.USING FANUC iPENDANT CONTROLS B-83114EN/01
Used to display up to 10 different images or strings based on the value of a Register, a Variable or
an I/O point. It can be used to create simple animations like a progress bar.
• AutoChange
Used to change a page being displayed automatically based on the value of a Register, a Variable or
an I/O point. This can be used to change the displayed page from a TP or KAREL program.
• MenuChange
Used to select a page to be displayed from a popup menu. The pages are displayed when the button
is pressed. Two types of buttons are available: rectangular pushbutton and image.
• ButtonChange
Used to display the specified page. Two types of buttons are available: rectangular pushbutton and
image.
• ComboBox
Used to change the value of a Register, a Variable or an I/O point using a popup menu selection.
• Execution
Used to run the specified KAREL program when the page is loaded.
• Chart
Used to graphically display data from the controller as a bar or line chart.
• Drawing 2D
Used to draw Text, Lines, Paths, Circles, Rectangles, Diamonds or images on the iPendant
• GRID
Used to render Text, Lines, Circles, Rectangles, and Images registered to a grid.
Each control has several settable properties, which will be described later, but in general each control
allows you to set:
• Which numeric register, System variable, KAREL variable, or I/O type to use.
• The border of the control, which can be 3D (thin and bold border), straight (black and forecolor) and
none.
• The size, color, and font used by the control.
-8-
B-83114EN/01 4.FRONTPAGE
4 FRONTPAGE
This chapter gives tips on using FrontPage 2003 to develop web pages for the iPendant. Refer to the
FrontPage documentation for complete details.
If you are not working in ROBOGUIDE, then create a new site (from the File menu) somewhere on your
PC to store your files. Later you can “Publish” these files directly to the controller.
NOTE
You should put all your web files into one directory without any subdirectories.
Subdirectories are not fully supported on the R-30iA Controller.
NOTE
When viewing your page in the integrated browser the FANUC iPendant Controls
will appear static, since they are not connected to the robot controller.
The dialog box available from Tools | Page Options | Authoring Tab allows you to set up your
compatibility options specifically for iPendant:
-9-
4.FRONTPAGE B-83114EN/01
Microsoft FrontPage and SharePoint Technologies, VBScript, Java applets, Cascading style sheets (CSS),
Active Server Pages, and PNG graphics are not supported by iPendant and should be disabled.
Files that are specific to a particular language should end in a suffix. However, the links should not
include the suffixes. The web server will automatically find the correct file based on the current language
setting of the robot. For instance, if you link to arc.stm and the robot language is set to English, the web
server will find arc.stm if it exists. If it does not exist the Web Server will look for arceg.stm.
Language Suffix
English eg
Japanese jp
Kanji kn
French fr
German gr
Spanish sp
- 10 -
B-83114EN/01 4.FRONTPAGE
NOTE
If cache is disabled, display of pages can get slow.
A table with 1 row and column can be inserted on a blank web page as a guideline with the width and
height set (in pixels) to the appropriate values from the table above.
- 11 -
4.FRONTPAGE B-83114EN/01
On real controller, set size of cell, too. Space in a cell, space between cells and width of boarder line can
affect to display. If you set width of boarder line to 0, you can have slightly larger display area but setting
size to 1 would be useful to use the table as outline during design of web page.
An alternative is to set the table height and width to 95% instead of specifying a pixel value. You may
still need to adjust your page once it is complete to eliminate scroll bars.
Use additional tables inside of this table for positioning of iPendant Controls as discussed in the next
subsection.
- 12 -
B-83114EN/01 4.FRONTPAGE
NOTE
Both the Horizontal and Vertical Scroll bars are 16 pixels wide, so if you design
pages that exceed the above sizes, you will need to take this into account.
4.2.5 Positioning
FrontPage has the ability to design web pages with pixel-precise positioning. This feature uses cascading
style sheets (CSS), which are not supported on iPendant.
The best way to position controls, text and images on an iPendant screen is through the use of tables
embedded inside of other tables. Use the Cell and Table Properties dialog boxes to get pixel-perfect
adjustments by right clicking on the table or cell and adjusting the necessary parameters. A Table toolbar
is also available.
To quickly select a section of code in the code window, use the Quick Tag Selector at the top of the page.
To enable the Quick Tag Selector go to View | Quick Tag Selector from the menu bar. You can select the
beginning tag in a tag set and FrontPage will highlight all the information that falls between the beginning
tag and the ending tag for that set. Or you can select View | Reveal Tags to have the tags displayed in the
Design View.
4.2.7 Fonts
The HTML tag <FONT SIZE=n> is supported on the iPendant. The following are the font sizes that
correspond to the HTML Font settings:
Tag Size on iPendant
Font size = 1 12 (hard to read)
Font size = 2 14
Font size = 3 14
Font size = 4 16
Font size = 5 18
Font size = 6 24
Font size = 7 24
Bold and underline are supported by the iPendant. Italic font will always display as bold.
4.2.8 Images
The iPendant supports GIF and JPG formats. Generally, GIF images are best used to display small
graphics, such as buttons, icons, and banners, or images that contain large blocks of solid colors and little
detail. Use the JPG format for images that contain a high level of detail or colors. The Picture Properties
dialog box can be used to set the attributes for the image.
4.2.9 Links
For navigation purposes, the iPendant MenuChange and ButtonChange controls can be used to select new
pages. The anchor (<a>) tag can also be used. The href attribute defines a source hyperlink. The value of
- 13 -
4.FRONTPAGE B-83114EN/01
the attribute is the URL of the destination. Typically, the URL should be a relative address, but it is
sometimes difficult to know the base address.
A URL can be any file or web page accessible from the robot or a KAREL program. Please refer to
“R-30iA/R-30iA Mate CONTROLLER Ethernet Function OPERATOR’S MANUAL” (B-82974EN/01)
for information on using KAREL or KCL.
Here are some examples for using URLs.
<a href="/mc/demo.stm">Demo</a>
NOTE
1 For execution of KAREL program, iPendant firmware version with v7.50P/06 or
later is needed. Firmware version is displayed at left upper corner of iPendant just
after cycle power.
2 If execution of KAREL does not create response page (when you want to simply
execute KAREL program), use /KARELCMD/ instead of /KAREL/.
3 In general, KAREL program have to create response page. When no response
page is required, create static variable return_code and set it to 204.
4.2.10 Frames
NOTE
Frames should be avoided if possible.
The iPendant supports frames but only 5 frames are available for use. Reserved target names of _blank
and _top should never be used since they will force the iPendant to log off the controller. Floating frames
(IFRAME tag) are not supported.
For instance, browsing to this web page and pressing ENTER on the link would cause a logout.
<html>
<body>
<center>
<a href="dologout.htm" target="_top">Press ENTER to Logout</a>
</center>
</body>
</html>
Pressing the MENUS key will log you back into the robot, however this may take several seconds.
Select FTP as the server type and use ftp://robot_ip_addr/fr: to publish files on the FR: device as shown
below:
- 14 -
B-83114EN/01 4.FRONTPAGE
NOTE
The robot does not support subdirectory creation from FTP so you should only
publish files in the web’s current folder. If FrontPage is trying to publish files
created in another subdirectory such as _derived, you will need to remove these
files.
Once you click OK the Web Site tab will be displayed and FrontPage will attempt to connect to your
robot. After a successful connection is established you can choose which files to download to the robot.
- 15 -
4.FRONTPAGE B-83114EN/01
See the FrontPage Help for additional information on transferring and synchronizing files.
- 16 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
4 Choose the control you want to insert from the list of available FANUC iPendant controls, and click
OK. The selected control is now inserted into your page.
5 Configure its properties by double-clicking on the control. The property dialog box that appears will
depend on the control you have inserted.
NOTE
FrontPage will not insert the Height and Width into the control parameters unless
you actually modify them. This will result in the control being the wrong size (very
small) on the iPendant. To solve the problem resize the control (by grabbing one
of the handles and moving it). This will put the current size into the parameters for
the control.
- 17 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Then on the Object Tag property page for the control you can reset the size to exactly what you want.
- 18 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
DataIndex specifies the number or the variable name associated with the DataType.
DataType DataIndex
101 – Numeric Register Index of register. For R[1], 1
102 – System Variable System variable name.
Type must be Integer, Real, Boolean, Short, Byte, or String. For
example,
$MNUTOOLNUM[1]
103 – KAREL Variable KAREL variable name.
Enclose the program name inside […]. The type must be Integer,
Real, Boolean, Short, Byte, or String. For example,
[USEREXT]STR_VAR
[USEREXT]STRUC_VAR.FIELD1
104 – Dictionary Element Specify the dictionary name and enclose the dictionary element inside
[…]. For example,
TPAR[5]
I/O (1-DI, 2-DO,……) Port number
5.2.3 Images
The Images dialog allows you to select the images to display when the ViewType is Image.
• The display size is automatically adjusted to the size of the image which is specified by FalseImage
or DataDefault for the Multi Control. Therefore the size of any other images specified should be
the same size as FalseImage. It is not possible to change the size using the mouse.
• It is necessary to copy all the image files which are specified to the directory on the iPendant where
the web page is located.
• If iPendant cannot find an image file, “No Image File” is displayed on the control.
- 19 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
• FrontPage may not be able to find the Image files after the page is closed and reopened. You can
specify the directory containing the image files by setting a Registry String. An example is shown
below.
Or you can reselect one of the images from the Property Page dialog box. The ActiveX Controls
will set this registry key for you. You may need to select View | Refresh to refresh the web page.
• Transparent gif images are supported. The color that shows behind the image must be specified as
follows:
5.2.4 Border
Border Select the border design of the control out of the types shown below.
5.2.5 Colors
The Colors dialog allows you to specify the color of certain elements. The iPendant supports 256 colors.
All controls have the following Colors associated with them:
Some controls will have additional choices such as TrueColor and BackColor. (See the individual
controls for additional details)
- 20 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
5.2.6 Fonts
The Fonts dialog allows you to specify the font used with the control. The iPendant supports a subset of
the Fonts available in FrontPage. If you want the fonts to appear similar to how it will appear on iPendant,
then use the following font settings:
Tag Value
Font: Courier New
Font Style: Regular or Bold
Size: 14, 16, 18, or 24
Strikeout Do not check
Underline Do not check
The EasyPanel controls may convert 16 down to 15.75. If this happens, use 16.5.
5.2.7 Alignment
HAlign Selects the horizontal alignment of characters out of the types shown below.
HAlign Description
0 - Left Left align the text.
1 - Center Center the text.
2 – Right Right align the text.
VAlign Selects the vertical alignment of characters out of the types shown below.
VAlign Description
0 - Top Top align the text.
1 - Center Center the text.
2 - Bottom Bottom align the text.
5.2.8 Monitor
The Monitor dialog allows you to specify whether the item specified in the DataType field is Monitored
or Updated Periodically and the time interval in milliseconds used to monitor or update the data. If the
Periodic checkbox is not checked (FALSE) the data will be monitored at the specified rate and the current
value will only be sent to the iPendant if the value has changed since the last period. If the Periodic
checkbox is checked (TRUE) the value of the item specified in the DataType field will be sent to the
iPendant at the interval rate regardless of whether or not it has changed since the last update. Monitoring
the data is more efficient because the data is only sent from the robot to the iPendant when the data has
changed.
The interval time will default to 250 ms. The minimum interval time is 100 ms. The periodic switch will
default to unchecked (FALSE).
Identical monitors for the iPendant are shared, even across multiple pages. The lowest interval time is
used. For instance, if the page in the left window is monitoring DI[1] at 250 ms and the page in the right
window starts monitoring DI[1] at 100 ms, then the left page will also monitor at 100 ms. If the right
page is changed to another page, the left page will continue to monitor at 100 ms until the page is
changed.
- 21 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
• Checked
Specifies that properties that are set to their corresponding “default” values are not included in the
web page. This effectively saves load time.
• Unchecked
Specifies that all parameters are included in the web page, whether they have “default” values or not.
• EditBox Control
• CommandButton Control
• ToggleButton Control
• ButtonChange Control
• MenuChange Control
• ComboBox Control
The ViewType will display a dropdown box with F2 – F5 and F7 – F10 as selections. F1 and F6 are not
available because the controller reserves them for the [ TYPE ] function key. If a function key is
selected, then the iPendant control will be invisible, but it will register itself with the FunctionKey control.
The iPendant control can reside anywhere on the visible portion of the web page. If it is not on the
visible portion (scroll bars are necessary to see it) then it may not be created. It is only operational if it
has been created. The control can be any size as long as it is big enough to be created. The size
doesn’t matter since it is invisible.
To avoid cursoring to the invisible control, use tabindex=”-1” in the object tag like following example.
<object classid="clsid:71060660-0E45-11D3-81B6-0000E206D650" id="FRIPEditBox1"
width="116" height="50" tabindex="-1">
<param name="Caption" value="F2">
<param name="ViewType" value="1">
...
</object>
The button caption and/or button images will be used by the FunctionKey control. Both TrueImage and
FalseImage are used. The Image, if specified, is displayed first; and the Caption, if specified, is
displayed next. Properties that are ignored include most of the display properties:
• Font
• Halign
• VAlign
• Border
All FunctionKey controls will use their color properies, such as ForeColor and BackColor.
5.2.10 Caption
If the DataType value is other than 100 – Static, the string in the caption is managed as a format string
(Some control does not use caption as format property). The “%v” in the string is converted as the value
of the specified variable. When the format string is NULL, only the value of the specified variable is
displayed. Any C Style Format specifier may also be used instead of “%v”. In the example below, the
left side shows the result and the “fmt:” shows the format string that was specified in the Caption.
- 22 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
If the Caption contains multiple words and it doesn’t fit into the available columns, it is automatically
split into multiple rows. If the automatic split is not appropriate, the Caption can be manually split into
multiple rows by adding \n where appropriate. You may use %n anywhere in the Caption to suppress
the value and show only the Caption.
5.2.11 Pulse DO
The feature allows the user to pulse a digital output port for a specified number of milliseconds. In
FrontPage, if the user selects DataType = DO for CommandButton or ToggleButton, then the Pulse
Checkbox will be enabled. Once the Pulse checkbox is clicked, the ms textbox is enabled.
- 23 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
If Time is zero, no pulse will occur. A pulse always writes the value in SetValue and then after the time
has expired, writes the reverse. So if the port is “normally off”, SetValue can be set to True to pulse it
on. If the port is “normally on”, SetValue can be set to False to pulse it off.
The Port Simulation Type will be similar to the Boolean type. It automatically displays SIMULATE,
UNSIMULATE but you can specify the string precision in the Caption field. So if Caption = "%.1S"
(note precision is after the period), then only "S" or "U" will be displayed.
If "SIM" or "UNSIM" is desired, then the ComboBox Control or Multi Control can be used instead.
These controls allow you to specify whatever strings you want displayed. ComboBox is used to both
monitor and modify the simulation status while Multi is used to only monitor the simulation status.
5.2.13 Positions
The Label Control allows positions to be displayed.
- 24 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
The allowable types can be selected from a dropdown box similar to the one above:
Where:
DataType Description
105 – Position Register Displays the value of the Position Register specified in DataIndex.
106 – KAREL Position Displays the value of the KAREL Position specified in DataIndex.
107 – Current Position Displays the value of the Current Position in the representation specified in
DataIndex.
108 – Tool Frame Displays the value of the Tool Frame, MNUTOOL[GroupNum, frmid], whose
frmid is specified in DataIndex.
109 – Jog Frame Displays the value of the Jog Frame, [TPFDEF]JOGFRAMES[GroupNum,
frmid], whose frmid is specified in DataIndex.
110 – User Frame Displays the value of the User Frame, $MNUFRAME[GroupNum, frmid], whose
frmid is specified in DataIndex.
DataIndex Specifies the number or the variable name associated with the DataType.
DataIndex Description
Position Registers, Tool Frame, Index of Position Register or Frame
Jog Frame, User Frame
KAREL position Program and variable name.
Enclose the program name inside […].
[USEREXT]POSN
[USEREXT]XYZEXT
[*SYSTEM*]$GROUP[1].$UFRAME
Current Position representation is specified. JOINT is the default.
JOINT
WORLD
USER
GroupNum Specifies the group number associated with the DataType/DataIndex if more than one group
is available on the robot controller. Not used for KAREL Positions that are inherently defined for a
single group.
PosAlign Selects the position alignment from the types shown below.
PosAlign Description
0-Default Align the position similar to Position Menu.
1-SubWindow Align the position similar to TPP and Position Register subwindows.
2-Vertical Align the position vertically.
The other properties of the label control are also used, such as Fonts, Border, Halign, Valign, and Colors.
Here are some examples of the current position with different alignments:
- 25 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
All position types have a default title. However, you can override the default title by specifying the
Caption parameter. Each PosAlign is different:
PosAlign Caption
0-Default Truncates the caption to 19 characters
1-SubWindow Truncates the caption to 5 characters
2-Vertical Uses the entire caption. You can split the caption using \n.
The comment for Position Registers and Frame Positions is shown on a separate line.
- 26 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
The default title for a KAREL position is its name. It will be shown on the comment line instead of the
top line.
In FrontPage, the Indirect Property tab can be used to set up the Indirect DataType/DataIndex properties.
The indirection is evaluated each time the page is loaded. The Indirect DataType/DataIndex properties are
monitored so they will change dynamically.
- 27 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
5.2.15 PANEID
iPendant can display multiple screens at the same time. Display area of each screen is called “pane”.
The special keyword !PANEID can be used in any iPendant control’s parameter that defines a String.
The proper value is substituted into the parameter according to the table below:
!PANEID Description
1 The first iPendant pane
2 The second iPendant pane
3 The third iPendant pane
4-9 Panes for Internet Explorer connections
5.2.16 Pipe
Properly configured iPendant controls will actively monitor and modify controller information and
processes without you having to write code on the controller. There are times, however, where you
might require additional flexibility and control. The Pipe mechanism provides this ability.
you will be able to send the control commands while it is active. Open the file using the string “PIP:” as
its device prefix. Then write string commands to the file in the format:
id=”control_id” param_name=”new_value”
where:
control_id is the string you provided in the Object tag Name field
param_name is the name of the parameter you wish to modify.
new_value is the new value you want to assign to the parameter
A KAREL example to change the caption of the label control named Label_1 follows.
Remember, Label_1 must have been configured to listen to pipe “mypipe!paneid.dat” at design time.
- 28 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
5.2.17 SetFocus
Use the SetFocus parameter to tell the browser to give focus to or remove it from the control. This only
applies to the following controls that can accept focus.
• EditBox Control
• CommandButton Control
• ToggleButton Control
• ButtonChange Control
• MenuChange Control
• ComboBox Control
Sending a value of “1” directs the browser to give focus to the identified control. Sending a value of “0”
sets the focus to the parent HTML page, essentially removing focus from the identified control.
5.2.18 ClickMe
Use the ClickMe parameter to tell the browser to send the action event to the control. This looks to the
control exactly as if the user had clicked on it. This only applies to the following controls that can be
clicked.
• EditBox Control
• CommandButton Control
• ButtonChange Control
• MenuChange Control
• ComboBox Control
The value sent has no meaning at this time, but we suggest sending a 1 as other values may have
significance in the future.
- 29 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
The value of a Register, System or KAREL Variable or I/O is displayed as shown in the figure above.
Fixed strings can also be displayed.
NOTE
1 If the read value is Boolean I/O type, ON/OFF string is displayed.
2 If the read value is Boolean var type, TRUE/FALSE string is displayed.
3 If the DataType value is 100 – Static, the string in Caption is displayed as a fixed
string.
4 If the DataType value is other than 100 – Static, the string in caption is managed
as a format string.
Property
Property Description
Caption Specify the fixed String or format string. (Refer to Note)(The maximum is 128 characters.)
ForeColor Specify the color of characters.
BackColor Specify the background color.
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
DataType Specify the type of the data for display.
DataIndex Specify the number or the variable name.
IOSim Used only for I/O types. When TRUE, the port simulation status is displayed instead of the
actual point.
Interval Specify the interval time in ms.
Periodic Specify whether to monitor the data or send periodically.
- 30 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Property Description
Border Select the border design of the control.
PosAlign Used only for position types. Selects the position alignment from the types shown below.
0 - Default Align the position similar to Position Menu.
1 - Subwindow Align the position similar to TPP and Position Register subwindows.
2 - Vertical Align the position vertically.
GroupNum Used only for position types. Specifies the group number associated with the
DataType/DataIndex if more than one group is available on the robot controller. Not used for
KAREL Positions which are inherently defined for a single group.
This is used to change the value of a Register, System or KAREL Variable (except XYZWPR type) or
I/O.
The specified data value can also be monitored and displayed.
When you select this control on the page, the virtual keyboard is displayed and it accepts input.
Three kinds of virtual keyboards are supported, NumericKey, FullKey and NumericInc.
NOTE
If the written variable is Boolean type, you can use 0/1 value.
Property
Property Description
Caption Specify the fixed String. (The maximum is 128 characters.)
ForeColor Specify the color of characters.
BackColor Specify the background color.
- 31 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Property Description
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
DataType Specify the type of the data for display and change.
DataIndex Specify the number or the variable name.
IOSim Used only for I/O types. When TRUE, the port simulation status is displayed and changed
instead of the actual point.
Interval Specify the interval time in ms.
Periodic Specify whether to monitor the data or send periodically.
Border Select the border design of the control.
Type Select the type of virtual keyboard.
0 - NumericKey Display the virtual keyboard for numeric input.
1 - FullKey Display the virtual keyboard for alpha and numeric input.
2 - NumericInc Display the virtual keyboard for numeric input. Numeric key and several
other keys are displayed on the key board.
ValueMin Specify the minimum value. Available only when NumericKey is selected.
ValueMax Specify the maximum value. Available only when NumericKey is selected.
IncrValue This is used only when NumericInc type is selected. This decides incremental/decremental
value when increment/decrement key is pressed.
NOTE
On ROBOGUIDE, dialog box is displayed instead of virtual keyboard. Whatever
type you use, there is little difference in appearance of dialog boxes.
This is used to change the color of the control if the value of a Register, System or KAREL Variable
(except XYZWPR type) or I/O fulfills the specified condition with the specified value or not.
The six kinds of condition operators, EQ, NE, LT, LE, GT and GE are supported. Three kinds of lamps
are available. They are the panel, the circle, and the image.
In case of the image type, by exchanging the two kinds of images, a toggle lamp can be created. It is also
possible to display a fixed image.
- 32 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
NOTE
EQ, NE and so on is comparison operator that is decided by property,
CmpOperator. It is used for evaluation to decide color/Image to display.
CmpOperator is used in following way.
Property
Property can be divided into the groups shown below:
Related data for read: DataType, DataIndex
Related display: ForeColor, BackColor, Caption, Font, Border, ViewType
Related specifying display color: TrueColor, FalseColor
Related displayed image: TrueImage, FalseImage
Related specifying operation: CmpOperator, CmpValue
Property Description
Caption Specify the fixed String. (The maximum is 128 characters.)
ForeColor Specify the color of characters.
BackColor Specify the background color.
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
DataType Specify the type of the data to display. The following data types are supported
100 - Static
Not used usually. If ViewType is image type, the image specified in FalseImage is displayed
as fixed.
101 - Numeric Register
Compare the value of register specified in DataIndex with CompareValue.
102 - System Variable
Compare the value of the System Variable specified in DataIndex with CompareValue.
103 - KAREL Variable
Compare the value of the KAREL Variable specified in DataIndex with CompareValue.
I/O
Compare the value of I/O specified in DataType and DataIndex with CmpValue.
DataIndex Specify the number or the variable name.
IOSim Used only for I/O types. When TRUE, the port simulation status is displayed instead of the
actual point.
Interval Specify the interval time in ms.
Periodic Specify whether to monitor the data or send periodically.
Border Select the border design of the control.
ViewType Select the type of the button to display.
0 - Panel Specify the panel type.
1 - Circle Specify the circle type.
3 - Image Specify the image type.
- 33 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Property Description
Type Select the data type to transact.
0 - Logical
Data is transacted as Boolean type. The setting of CmpOperator and the value of
CmpValue are ignored.
1 - Numerical
Data is transacted as numerical type. The setting of CmpOperator and the value of
CmpValue is applied.
CmpOperator Select the condition expression evaluated as TRUE (Refer to Note 1). This value is effective
when Type is numerical.
0 - EQ Specify the equal case (=).
1 – NE Specify the not equal case (<>).
2 - LT Specify the less than case (<).
3 – LE Specify the less than or equal case (<=).
4 - GT Specify the greater than case (>).
5 – GE Specify the greater than or equal case (>=).
CmpValue Specify the standard value for comparison. If the result of comparison between read value and
this value is TRUE, TrueColor or TrueImage is displayed. Otherwise FalseColor or FalseImage
is displayed. This value is effective when Type is numerical.
TrueColor Specify the color to be displayed when the read value fulfill the condition expression.
FalseColor Specify the color to be displayed when the read value does not fulfill the condition expression.
TrueImage Specify the image to be displayed when the read value fulfill the condition expression. Used
only in case that ViewType is Image type.
FalseImage Specify the image to be displayed when the read value does not fulfill the condition expression.
Used only in case that ViewType is Image type.
When … is clicked, it is possible to specify the property using the file dialog. See the following screen for
an example.
- 34 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Used to write the specified value to a Register, System, or KAREL Variable (except XYZWPR type) or
I/O whenever the button is pushed.
The image button is also available.
The monitor function for the written data is not supported.
Property
Property can be divided into the below groups:
Related data for read: DataType, DataIndex
Related display: ForeColor, BackColor, Caption, Font, Border, ViewType
Related specifying image: TrueImage, FalseImage
Related specifying written value: SetValue
- 35 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Property Description
Caption Specify the fixed String.
ForeColor Specify the background color.
BackColor Specify the font name, font style and size.
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
DataType Specify the type of the data to change. The following data types are supported:
- 36 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Used to change the value of a Register, System or KAREL Variable (except XYZWPR type) or I/O to the
specified value following the ON(Pushed)/OFF(Popped) status of the button.
The monitor function for the written data is also supported.
The image button is also available.
NOTE
1 The specified variable is rewritten with the specified value just after this button is
operated. However the function to hold the specified value is not supported.
2 In case of numeric type, the value set by On/Off of button is
TrueValue/FalseValue.
3 In case of logical type, the value set by On/OFF of button is fixed value
(TRUE/FALSE) and it is not possible to change this value except to Invert it.
4 In case of numeric type, if the value of the specified Register, System/KAREL
Variable and I/O is changed neither TrueValue nor FalseValue, the status of the
button will follow the setting of the OtherPhase.
Property
Property can be divided into the below groups:
Related data for read: DataType, DataIndex
Related display: ForeColor, BackColor, Caption, Font, Border, ViewType
Related specifying display color : TrueColor, FalseColor, TrueStrColor, FalseStrColor
Related specifying image: TrueImage, FalseImage
Related specifying standard value: Type, TrueValue, FalseValue
Property Description
Caption Specify the fixed String.
TrueCaption Specify the fixed String when the value is TRUE.
If not specified, Caption is used.
ForeColor Specify the color of characters.
BackColor Specify the background color.
- 37 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Property Description
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
DataType Specify the type of the data to change. The following data types are supported:
100 - Static
Not used usually.
101 - Numeric Register
Change the value of register specified in DataIndex.
102 - System Variable
Change the value of the System Variable specified in DataIndex.
103 - KAREL Variable
Change the value of the KAREL Variable specified in DataIndex.
I/O
Change the value of I/O specified in DataType and DataIndex.
DataIndex Specify the number or the variable name.
IOSim Used only for I/O types. When TRUE, the port simulation status is displayed and changed
instead of the actual point.
Momentary When TRUE, the button status is changed to ON when pressed and OFF when released. This
only works when the button is pressed with the Touch Panel or if the mouse is pressed in
Internet Explorer.
Interval Specify the interval time in ms.
Periodic Specify whether to monitor the data or send periodically.
Border Select the border design of the control.
ViewType Select the type of the button to display. Specify the image button.
0 - Normal Specify the normal button.
1 - CheckBox Specify the checkbox button.
2 - Image Specify the image button.
Type Select the data type to transact.
0 - Logical Data is transacted as Boolean type. The value of TrueValue and
FalseValue is ignored.
1 - Numerical Data is transacted as numerical type. The value of TrueValue and
FalseValue is applied.
Invert Specifies the value should be inverted. This value is effective when Type is Logical. When
button status is ON, value written is OFF (FALSE). When button status is OFF, value written is
ON (TRUE).
TrueValue Specify the value written when the button status is changed to ON (TRUE). This value is
effective when Type is numerical.
FalseValue Specify the value written when the button status is changed to OFF (FALSE). This value is
effective when Type is numerical.
OtherPhase Specify the status (TRUE/FALSE) in case that the value is equal to neither TrueValue nor
FalseValue. This value is effective when Type is numerical.
TrueColor Specify the color displayed when the read value is equal to TrueValue or not equal to
FalseValue.
FalseColor Specify the color displayed when the read value is equal to FalseValue or not equal to
TrueValue.
TrueStrColor Specify the color of characters displayed when the read value is equal to TrueValue or not
equal to FalseValue. Used when the ViewType is not the image type.
FalseStrColor Specify the color of characters displayed when the read value is equal to FalseValue or not
equal to TrueValue. Used when the ViewType is not the image type.
TrueImage Specify the image to be displayed when the button status is ON. Used only in case that
ViewType is Image type.
FalseImage Specify the image to be displayed when the button status is OFF. Used only in case that
ViewType is Image type.
Confirm Specify a confirmation popup should be displayed before setting the button status to ON. This
parameter must be typed into the HTML.
<param name="Confirm" value="-1">
- 38 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Used to change a maximum of 10 kinds of images or strings if the value of Register, System or KAREL
Variable (except XYZWPR type) and I/O is within specified range or not. It is the multi version of
ToggeLamp and can be used to create animations, such as progress bars.
For example:
If the read value is within ValueMin01 through ValueMax01, therefore ValueMin01 <= (read value)
<= ValueMax01 is fulfilled, the strings or image specified in Data01 is displayed.
NOTE
1 If the read value is within the multi specified range, the smallest number
condition is applied.
2 If the read value is out of all specified ranges, the default image or string
(specified in DataDefault) is displayed.
Property
Property can be divided into the groups below:
Related data for read: DataType, DataIndex
Related display: ForeColor, BackColor, Font, Border, Type
Related specifying standard value:
DataDefault, Data01 - Data10, ValueMin01 - ValueMin10, ValueMax01 - ValueMax10
Property Description
ForeColor Specify the color of characters. This is effective when ViewType is label.
BackColor Specify the background color.
Font Specify the font name, font style and size. This is effective when ViewType is label.
HAlign Specify the horizontal alignment of characters. This is effective when ViewType is label.
VAlign Specify the vertical alignment of characters. This is effective when ViewType is label.
- 39 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Property Description
DataType Specify the type of the data to display. The following data types are supported:
100 - Static
Not used usually.
If ViewType is label, the strings specified in DataDefault are displayed.
If ViewType is image, the image specified in DataDefault is displayed.
101 - Numeric Register
Compare the value of register specified in DataIndex is within ValueMinXX through
ValueMaxXX, and XX is 01 through 10 in order.
102 - System Variable
Compare the value of the System Variable specified in DataIndex is within ValueMinXX
through ValueMaxXX, and XX is 01 through 10 in order.
103 - KAREL Variable
Compare the value of the KAREL Variable specified in DataIndex is within ValueMinXX
through ValueMaxXX, and XX is 01 through 10 in order.
I/O
Compare the value of I/O specified in DataType and DataIndex is within ValueMinXX
through ValueMaxXX, and XX is 01 through 10 in order.
DataIndex Specify the number or the variable name.
IOSim Used only for I/O types. When TRUE, the port simulation status is displayed instead of the
actual point.
Interval Specify the interval time in ms.
Periodic Specify whether to monitor the data or send periodically.
Border Select the border design of the control.
ViewType Select the type of the button to display.
0 - Label
Display strings. DataDefault, Data01 - Data10 are treated as the strings for display.
1 - Image
Display image. DataDefault, Data01 - Data10 are treated as the image file name.
DataDefault Specify the strings or the image file name if the read value does not fulfill any condition.
Data01 - Data10 Specify the strings or the image file name if the read value fulfills the condition. These data
correspond to the same ordinal condition.
ValueMin01 - Specify the start value of the condition range. It is possible to set 10 conditions from 01 to 10.
ValueMin10
ValueMax01 - Specify the end value of the condition range. It is possible to set 10 conditions from 01 to 10.
ValueMax10
For example:
If the read value is within ValueMin01 through ValueMax01, therefore ValueMin01 <= (read value)
<= ValueMax01 is fulfilled, the web page specified in PageName01 is displayed.
NOTE
1 If the read value is within the multi specified range, the smallest number
condition is applied.
2 If the read value is out of all specified ranges, the change of web page is not
done.
3 The condition is ignored during screen initialization.
4 This control is invisible at run-time.
5 For logical variable set 0 for FALSE, and 1 for TRUE
- 40 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Property
Property can be divided into the below groups.
Related data for read: DataType, DataIndex
Related specifying standard value:
PageName01 - PageName10, ValueMin01 - ValueMin10, ValueMax01 - ValueMax10
Property Description
DataType Specify the type of the data to monitor. The following data types are supported:
100 - Static
Not used usually.
101 - Numeric Register
Compare the value of register specified in DataIndex is within ValueMinXX through
ValueMaxXX and XX is 01 through 10 in order.
102 - System Variable
Compare the value of the System Variable specified in DataIndex is within ValueMinXX
through ValueMaxXX, and XX is 01 through 10 in order.
103 - KAREL Variable
Compare the value of the KAREL Variable specified in DataIndex is within ValueMinXX
through ValueMaxXX, and XX is 01 through 10 in order.
I/O
Compare the value of I/O specified in DataType and DataIndex is within ValueMinXX
through ValueMaxXX, and XX is 01 through 10 in order.
DataIndex Specify the number or the variable name.
IOSim Used only for I/O types. When TRUE, the port simulation status is monitored instead of the
actual point.
Interval Specify the interval time in ms.
Periodic Specify whether to monitor the data or send periodically.
PageName01 - Specify the web page to display when the read value fulfills the condition. These data
PageName10 correspond to the same ordinal condition.
ValueMin01 - Specify the start value of the condition range. It is possible to set 10 conditions from 01 to 10.
ValueMin10
ValueMax01 - Specify the end value of the condition range. It is possible to set 10 conditions from 01 to 10.
ValueMax10
Used to select the web page from the popup menu. The menu is displayed when the MenuChange button
is clicked and can have a maximum of 10 items. The image button is also available.
- 41 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
NOTE
It is necessary to set menu item without a break. When there is a null data in
PageCaptionXX, the rest of data after the null data is not displayed, even if there
is effective data after the null data.
Property
Property can be divided into the following groups.
Related display: Caption, ForeColor, BackColor, Font, Border
Related changing content: PageCaption01 - PageCaption10, PageName01 - PageName10
Related specifying image: TrueImage, FalseImage
Property Description
Caption Specify the fixed String.
ForeColor Specify the color of characters.
BackColor Specify the background color.
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
Border Select the border design of the control.
ViewType Select the type of the button to display.
0 – Normal Specify the normal button.
1 – Image Specify the image button.
PageCaption01 - Specify the strings displayed on popup menu for selecting menus. These data correspond to the
PageCaption10 same ordinal PageNameXX.
PageName01 - Specify the page name displayed after popup menu is selected. These data correspond to the
PageName10 same ordinal PageCaptionXX.
TrueImage Specify the image to be displayed when the button is pushed. Used only in case that ViewType
is Image type.
FalseImage Specify the image to be displayed when the button is not pushed. Used only in case that
ViewType is Image type.
Used to display the specified web page. Can also be used to perform a command using a URL. (KCL and
KCLDO Commands). The image button is also available.
- 42 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Property
Property can be divided into the below groups.
Related display: Caption, ForeColor, BackColor, Font, Border
Related specifying image: TrueImage, FalseImage
Related changing content: PageName
Property Description
Caption Specify the fixed String.
ForeColor Specify the color of characters.
BackColor Specify the background color.
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
Border Select the border design of the control.
ViewType Select the type of the button to display.
0 - Normal Specify the normal button.
1 - Image Specify the image button.
PageName Specify the page name displayed after button is pushed or specify a command to perform using
a URL.
TrueImage Specify the image to be displayed when the button is pushed. Used only in case that ViewType
is Image type.
FalseImage Specify the image to be displayed when the button is not pushed. Used only in case that
ViewType is Image type.
The ComboBox Control allows the selection of an item from a popup menu. The control displays the
currently selected item. When the button is clicked (enter key), a popup list is displayed. When an
item is selected, the selected value and selected text is written to the specified data on the controller.
The selected value is monitored so can be dynamically changed.
- 43 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Property
Related display of button:
Property Description
Caption Specify the format string.
ForeColor Specify the color of characters.
BackColor Specify the background color.
Font Specify the font name, font style and size.
HAlign Specify the horizontal alignment of characters.
VAlign Specify the vertical alignment of characters.
Border Select the border design of the control.
ViewType Select the type of the button to display.
0 Normal Specify the normal button.
1-8 Specify the function key.
Related list:
Property Description
Type Specify the type of the ComboBox.
0 - ListType Not available in this release.
1 - ProgramType
Similar to %pk in the Form Manger. The list is populated by the loaded programs on the
robot. The ProgType property is used to further classify which types of programs are
included in the list. The list is updated every time the list is displayed. Upon selection of the
list, the program name is copied to the data specified by DataType/DataIndex.
2- VariableType
Similar to %v in the Form Manger. The list is populated by a KAREL string array. The
DataSource property is used to specify the KAREL string array. The list is updated every
time the list is displayed. Upon selection of the list, the value is copied to the data specified
by DataType/DataIndex. The string is copied to the data specified by TextType/TextIndex.
3 - DictionaryType
Similar to %w in the Form Manager. The list is populated by a dictionary element. The
DataSource property is used to specify the starting dictionary element. The list is updated
every time the list is displayed. Upon selection of the list, the value is copied to the data
specified by DataType/DataIndex. The string is copied to the data specified by
TextType/TextIndex.
4 - FileType
The list is populated by the file names. The DataSource property is used to specify the
directory. The list is updated every time the list is displayed. Upon selection of the list, the
file name is copied to the string specified by DataType/DataIndex.
- 44 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
Property Description
ProgType Specify the program type if the Type property is set to ProgramType.
1 - TP programs
The list is populated by only TP programs (default).
2 - KAREL programs
The list is populated by only KAREL programs.
6 - All
The list is populated by TP, KAREL, and VR programs.
16 - TP & KAREL
The list is populated by TP and KAREL programs.
DataSource Specify the source used to populate the list when the Type property is set to VariableType,
DictionaryType, or FileType.
- 45 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
Type Description
FileType DataSource should specify a File Specification. If no DataSource is specified, all files on the
default device of the robot are shown.
The Execution Control can be used to specify a KAREL program to run. The Execution Control will be
invisible on the page. It can reside anywhere on the visible portion of the web page. If it is not on the
visible portion then it may not be created. It is only operational if it has been created. Only one Execution
Control should be used per web page.
After the page is completely loaded, the KAREL program is run. If the KAREL program is not loaded, it
will not be run. The KAREL program will already be running if another pane has the same web page
loaded. A static variable, ref_cnt, is created and maintained. The KAREL program is aborted when no
panes are left to process. The KAREL program can increment the reference count if you wish it to remain
running: ref_cnt = ref_cnt + 1
Property
Property Description
Name Specify the name of the KAREL program.
Type Select the type of execution.
0 - KAREL Run a KAREL program.
Parameter1 – Specify the string parameter to set in $UI_PANEDATA[PANEID].$PARAMETER1 through
Parameter8 $UI_PANEDATA[PANEID].$PARAMETER8.
The error title contains the error. The object name and error content is displayed in the dialog box. See
Subsection “5.2.1 Object Tag” for details on changing the object name.
- 46 -
B-83114EN/01 5.MAKING A CUSTOM iPENDANT SCREEN
- 47 -
5.MAKING A CUSTOM iPENDANT SCREEN B-83114EN/01
- 48 -
B-83114EN/01 6.USING THE CHART CONTROL
The Chart control is configured through properties within the web page to control the display and
configure the data sources. A Chart has one or more channels or data sources. These sources are supplied
from the robot controller, and specified by name and monitor rate.
Properties of the control also determine the scaling, format, colorization and layout of many of the
Chart’s characteristics.
1) Bar chart:
2) Line chart
A maximum of 8 channels per Chart can be configured and active at one time.
- 49 -
6.USING THE CHART CONTROL B-83114EN/01
Conventions:
Usually axes are referred to as X-axis and Y-axis for 2-dimensional charting. This gets confusing when
horizontal or vertical orientation requires translation to the browser or plug-in native coordinate system.
Instead we will use the following nomenclature regardless of the orientation:
- SampleAxis or SampleScale
SampleAxis or SampleScale refer to the sample index.
For a Bar Chart this is the base axis of the bars.
For a Line Chart this is the common axis among multiple channels. It may be time, or just a running
sample increment but it is common and relates the individual channels.
- DataAxis or DataScale
DataAxis or DataScale refers to the data value of the channel.
For a Bar Chart this is common to all channels.
For a Line Chart this is independent among all channels since its scaling will dictate the visibility of
small or large changes in the channels data value.
The easiest way to create chart on the screen for the iPendant is by putting the Chart controls on the web
page and by setting its properties.
The characteristics controlling items such as chart layout, orientation, data source, labels, colors, etc. can
be controlled by the user setting the appropriate properties of the Chart control.
Initially when a chart control is first inserted on the web page, by Microsoft FrontPage, it is displayed
with the default light gray background in 200 by 160 pixel size. The two text items in the control reflect
the Caption and size (width and height). These are dynamically updated when the size or Caption is
changed.
As the chart is resized and channels are enabled, the display changes dynamically to give a general feel
for the overall layout.
- 50 -
B-83114EN/01 6.USING THE CHART CONTROL
4 Choose the FANUC iPendant Chart Control from the list of available FANUC iPendant controls,
and click OK. The Chart control is now inserted into your page.
- 51 -
6.USING THE CHART CONTROL B-83114EN/01
NOTE
If the FANUC iPendant Chart Control is not an option in the list, use the
Customize… button to enable it. If the option is not available under the
Customize… setup, then the proper software for the FANUC controls has not
been installed.
5 The particular properties can be configured from the ActiveX property pages. Either double click on
the control or right click and select ActiveX Control Properties.
6.2.2 Fonts
The font properties associated with the chart as the “defaults” are modified from the Fonts property page.
Text strings use these “default” settings when no other font attributes are specified.
Item Description
Font Font specifies the name of the font passed in the Font property.
Font Style Font Style can specify regular, bold, italic and italic bold. This affects whether the properties
FontBold and FontItalic are optionally passed.
- 52 -
B-83114EN/01 6.USING THE CHART CONTROL
Item Description
Size FontSize specifies the size of the font. It is passed in the FontSize property.
The iPendant has built-in fonts for 12, 14, 16, 18 and 24-point fonts. Valid ranges of font sizes
are 12 through 24. Use one of following values.
NOTE
1 Font, Strikeout and Underline has no effect on iPendant
2 For the iPendant only regular and bold have an effect, italic and bold italic are
ignored.
3 iPendant does not support font of 8point and smaller because it is hard to read
such font.
- 53 -
6.USING THE CHART CONTROL B-83114EN/01
6.2.3.3 Name
Name is a text string that specifies an association to a KAREL program on the controller.
Currently, when the Chart control is instantiated, the control checks for the existence of two program
variables on the controller. This variable can be used to pass text commands in the format and with the
content of other properties to dynamically affect the Chart control’s operation.
[name] cmdstr
If the variable exists and is of type STRING the control creates a monitor for this variable. Strings of
commands can be written (set) to this variable and are delivered to the Chart control to affect ‘dynamic’
actions such as data updates or changes in some chart properties.
[name]cmdack
If the variable exists and is of type BOOLEAN or INTEGER, the Chart control uses this variable to
acknowledge that commands have been accepted via the command variable and acted on. The cmdack
variable is set TRUE or 1 when that command is accepted by the plug-in.
NOTE
The Name parameter can utilize !PaneID. Please refer to subsection 5.2.15 for
Pane ID.
6.2.3.4 Border
Border select the border surrounding the Chart control. Allowable values are:
ForeColor Specify the “default” color of any entity that does not have an explicit color defined.
BackColor Specify the “default” background color.
NOTE
Colors are specified as a decimal value represent bbggrr (blue green red)
format, where as hexadecimal value preceded by the # sign are in rrggbb ( red
green blue) format. For example; ForeColor = 10531008 (decimal) is the same
as ForeColor = #C0B0A0 (hex).
6.2.3.6 Pipe
Pipe is a text string that specifies a named data file created on the controller and only associated with the
PIP: device.
- 54 -
B-83114EN/01 6.USING THE CHART CONTROL
This file is used to dynamically deliver data to the Chart control on the iPendant. The name can be any
8.3-formatted name, for example: chart1.dat.
The name of this file is sent to the controller when the chart control is instantiated on the iPendant. The
file name is concatenated to PIP: and the file opened. If the file does not exist then the file is created and
opened for read. If the file does exist prior to this, the file is opened for read access and a seek to the end
of file done to eliminate the possibility of stale data.
When the last chart control using this file is gone, the file is deleted.
NOTE
The Pipe parameter can utilize !PaneID. Please refer to subsection 5.2.15 for
Pane ID.
6.2.3.7 PipeMonRate
PipeMonRate specifies the time in milliseconds at which the Pipe file data is sampled.
NOTE
This value should be specified at a rate that give reasonable performance and
display update. The controller will enforce a minimum of 100ms.
- 55 -
6.USING THE CHART CONTROL B-83114EN/01
NOTE
The Data Scale and Sample Scale properties have different meanings between
the two types of charts (Bar or Line).
6.2.4.1 ChartType
ChartType specifies the type of chart as a numeric value. Allowable values are:
6.2.4.2 Orientation
Orientation specifies the chart’s orientation on the iPendant as a numeric value. Allowable values are:
6.2.4.3 LabelFontSize
LabelFontSize specifies the font size of the channels data labels.
The iPendant has built-in fonts for 12, 14, 16, 18 and 24-point fonts. Valid ranges of font sizes are 12
through 24. Use one of following values.
NOTE
iPendant does not support font of 8point and smaller because it is hard to read
such font.
- 56 -
B-83114EN/01 6.USING THE CHART CONTROL
6.2.4.4 LineScaleActive
LineScaleActive is set from the “Channel Scale Active:” box. It controls which data scale(s) are selected
for display on a line chart. When multiple channels are configured and active a chart may display in two
ways.
2 A single chart, with one channel selected for the data scale. In this case the data scale edge will be in
the color of the corresponding channel (in the following example it is channel 2, or lime). When
channels are overlaid in this manner the non-selected channels are still scaled to their own data scale.
6.2.4.5 DataFontSize
DataFontSize specifies the font size of the channels data value fields.
The iPendant has built-in fonts for 12, 14, 16, 18 and 24-point fonts. Valid ranges of font sizes are 12
through 24. Use one of following values.
- 57 -
6.USING THE CHART CONTROL B-83114EN/01
NOTE
iPendant does not support font of 8point and smaller because it is hard to read
such font.
6.2.4.6 DataFormat
DataFormat specifies the format in which the channel’s data value will be displayed. The display appears
in the legend, near the channel’s label, if DataShowValues = 1.
The format is in ‘C’ printf format for a single precision floating point number. For example; %9.3f
6.2.4.7 DataShowValues
DataShowValues specifies whether or not the value of each channel is displayed in a table near the
channels label and in the DataFormat.
6.2.4.8 SampleScaleAspect
The Aspect box sets SampleScaleAspect. It specifies a SAMPLE SCALE multiplier value. This is a
simple multiplier value applied to the sample scale after the SampleScale Minimum and Maximum values.
A Typical use might be to equate samples to time.
NOTE
There are no explicit checks on the bounds of this value. It is simply used as a
multiplier, so it could also be a value > 1.
6.2.4.9 SampleScale
SampleScale specifies the sample scale’s minimum and maximum extent, since all LINE CHART
channels have one common sample scale.
The extents can be specified as a pair of comma separated numbers (min,max), or a single value.
- 58 -
B-83114EN/01 6.USING THE CHART CONTROL
Following values are available.
SampleScale Description
min If value < 0, max is assumed 0.
min,max Min and max as specified.
max If value > 0, min is assumed 0.
For a horizontal Line chart; min is the left value and max is the right value.
For a vertical line chart; min is the bottom value and max is the top value.
NOTE
For a Bar Chart this property is ignored.
6.2.4.10 SampleScaleFormat
SampleScaleFormat specifies the format of the sample scale labels.
The format is in ‘C’ printf format for a single precision floating point number. For example; %3.1f
NOTE
Currently %f is the only allowed format.
6.2.4.11 SampleGrid
SampleGrid is controlled by the Grid Markers box. It specifies the interval of a grid to be displayed along
the SampleScale.
0 No grid is displayed.
>0 Display grid in increment of this along the axis.
The format is in ‘C’ printf format for a single precision floating point number. For example; %3.1f
NOTE
Currently %f is the only allowed format.
6.2.4.13 DataScale
DataScale specifies the data scale’s minimum and maximum extent, since all BAR CHART channels
have one common data scale.
- 59 -
6.USING THE CHART CONTROL B-83114EN/01
The extents can be specified as a pair of comma separated numbers (min,max), or a single value.
NOTE
For a Line Chart this property is ignored.
The format is in ‘C’ printf format for a single precision floating point number. For example; %3.1f
6.2.4.15 DataGrid
DataGrid is controlled by the Grid Markers box. It specifies the interval of a grid to be displayed along
the DataScale.
0 No grid is displayed.
>0 Display grid in increment of this along the axis.
6.2.4.16 GridColor
GridColor specifies the color for the Grid lines.
NOTE
There is only one color for both Sample and Data scale grids.
Default if not specified is the same color as the data and sample scales.
6.2.4.17 GridType
GridType is controlled by the Ticks checkbox. It specifies how the Grid lines are displayed.
- 60 -
B-83114EN/01 6.USING THE CHART CONTROL
Allowable values are:
0 Grid lines are displayed all the way across the chart.
1 Grid lines are displayed as “tick” marks along the axis scale(s).
The only significant difference is that for a Line Chart the Data Scale properties can be set on a per
channel basis.
The Channel number selects the channel number (N) that the remainder of the properties on this tab
affects.
- 61 -
6.USING THE CHART CONTROL B-83114EN/01
6.2.5.1 ChN_Name
ChN_Name specifies a text string to be used as name for the channel.
This is displayed on the chart as the Channel label in the channel’s color (specified by chN_Color).
Default if not specified is “chN_Name”, where the numeric channel number replaces N.
NOTE
If the name is specified with a leading $, it is interpreted as a system variable
which should be of type KSTRING. In this case, the contents of the string
variable will be used as the name.
6.2.5.2 ChN_Color
ChN_Color specifies the color for the channel.
The color value can be specified in the hexadecimal or decimal format that the ForeColor and BackColor
use.
6.2.5.3 ChN_Source
ChN_Source specifies the source of data monitored from the controller.
The source can specify any of the following. Note that where indexes are appropriate, they are specified
enclosed by [ ].
6.2.5.4 ChN_Data
ChN_Data specifies data for a single channel as a single or sequence of data points.
This can be used to create a ‘static’ chart where all data is supplied as web page content.
- 62 -
B-83114EN/01 6.USING THE CHART CONTROL
6.2.5.5 ChN_Digital
ChN_Digital specifies whether this channel should be represented as an analog or digital signal with
square transitions.
As a digital representation, the transition is made at the next sample that changes.
6.2.5.6 ChN_State
ChN_State specifies whether the specified channel is on or off from the Active: checkbox.
6.2.5.7 ChN_Rate
ChN_Rate specifies the rate in milliseconds that the channel source is monitored at from the Sample rate:
input.
NOTE
When multiple channels are active the fastest rate among all channels is used as
the monitor rate for all channels.
6.2.5.8 ChN_DataScale
ChN_DataScale specifies the data scale minimum and maximum extents for a Line Chart.
The extents can be specified as a pair of comma separated numbers (min,max), or a single value.
6.2.5.9 ChN_DataGrid
ChNDataGrid specifies the interval of a grid to be displayed along the DataScale.
- 63 -
6.USING THE CHART CONTROL B-83114EN/01
0 No grid is displayed.
>0 Display grid in increment of this along the axis.
6.2.5.10 ChN_AutoRange
ChN_AutoRange species that a channel can auto range or peak detect.
To avoid false peaks, the number of points that must exceed the min or max data scale can be specified.
The value is a comma-separated pair of numbers representing state and number of consecutive points
(state,npoints).
Item Description
state This is a numeric flag that turns auto range on or off. Following values are available.
0 Do not autorange
!=0 Auto range after n consecutive points fall outside the data scale.
npoints This specifies the number of consecutive points that must be outside the data scale, on either
extreme, before autoscale takes effect.
6.2.6 Miscellaneous
6.2.6.1 SampleMarkerN
SampleMarkerN specifies one of four markers that appear as lines parallel to the sample axis on a line
chart in the color specified by the SampleMarkerColor. (N = marker #)
6.2.6.2 SampleMarkerColor
SampleMarkerColor specifies the color of the sample markers.
This is in the decimal or hexadecimal format that the ForeColor and BackColor use.
6.2.6.3 ChN_DataMarkerN
ChN_DataMarkerN specifies one of four markers PER CHANNEL that appear as lines parallel to the data
axis on the chart in the channels color. (N = marker #)
- 64 -
B-83114EN/01 6.USING THE CHART CONTROL
6.2.6.4 Ch_Data_N
Ch_Data_N specifies data for ALL channels.
NOTE
This is not to be confused with ChN_Data.
This sequence may be a repeating sequence on data points that are distributed among N channels. For
example: Ch_Data_3=1,2,3,4,5,6,7,8,9,10 causes:
This can be used to create a ‘static’ chart where all data is supplied as web page content.
NOTE
No accounting is made to make sure that the number of data points is integral to
the number of channels (N) specified.
6.2.6.5 ChN_Clear
ChN_Clear specifies that channel N is to be cleared, that is all data is deleted.
6.2.6.6 ChartClear
ChartClear specifies that all channels on a chart are to be cleared, that is all data is deleted.
• A Bar Chart control presents data in the familiar format of 2-dimensional bars.
• Each bar represents a separate channel with specific characteristics to uniquely identify it.
- 65 -
6.USING THE CHART CONTROL B-83114EN/01
• A legend is supplied to identify the channel by name and optionally show the current value.
• DataScaleMarkers can be placed on the chart sample scale. These are independent, 4 for each
channel.
• Data types that can be monitored are specified by the channel source as native controller data type.
These are monitored at set intervals and converted internally from their native data type to floating
point.
Property
Property can be divided into the groups shown below.
This first group should be considered static and not changed once the control is created:
Property Description
id Specifies an ID string.
height Specifies the height in pixels or %.
width Specifies the width in pixels or %.
FastLoad used internally by property editor.
ChartType Specifies the chart type, Bar or Line
FontSize Specifies the default font size.
Name Specifies the name to relate to a KAREL program.
Pipe Specifies the name of the pipe file.
Orientation Specifies orientation as horizontal or vertical.
ForeColor Specifies the default foreground color.
BackColor Specifies the background color.
- 66 -
B-83114EN/01 6.USING THE CHART CONTROL
The following can occur 1 per channel N:
Property Description
chN_Name Specifies the text label for the channel legend.
chN_Color Specifies color of the channel.
chN_Source Specifies the source to start a monitor on the controller.
chN_Rate Specifies the monitor rate in milliseconds.
chN_State Specifies if the channel is active, on or not.
chN_Spread Not implemented.
chN_Data Specifies a comma separated data stream for the channel.
chN_AutoRange Specifies that the channel should auto range.
chN_DataMarkerN Specifies one of 4 markers along the data scale.
• A Line Chart control presents data in the familiar format that is similar to an oscilloscope trace.
• A chart can have independent graphs of each channel in a ‘stacked’ fashion, or can have all channels
overlaid on one graph. When the channels are overlaid one channel can be selected to have its
DataScale displayed, in this case the data scale is displayed in the color of the active channel.
Otherwise, the DataScale is displayed in the Chart control’s default ForeColor.
• When displayed in stacked mode, the channels are evenly sized and distributed over the display area
of the control.
• A legend is supplied to identify the channel by name and optionally show the current value.
• DataScaleMarkers can be placed on the chart sample scale. These are independent, 4 for each
channel.
• Up to 4 Sample Scale markers can be places on the Chart. These are common to all channels.
• Data types that can be monitored are specified by the channel source as native controller data type.
These are monitored at set intervals and converted internally from their native data type to floating
point.
Property
Property can be divided into the groups shown below.
- 67 -
6.USING THE CHART CONTROL B-83114EN/01
This first group should be considered static and not changed once the control is created:
Property Description
id Specifies an ID string.
height Specifies the height in pixels or %.
width Specifies the width in pixels or %.
FastLoad used internally by property editor.
ChartType Specifies the chart type, Bar or Line
FontSize Specifies the default font size.
Name Specifies the name to relate to a KAREL program.
Pipe Specifies the name of the pipe file.
Orientation Specifies orientation as horizontal or vertical.
ForeColor Specifies the default foreground color.
BackColor Specifies the background color.
Property Description
chN_State Specifies if the channel is active, on or not.
chN_Spread not implemented.
chN_Data Specifies a comma separated data stream for the channel.
chN_AutoRange Specifies that the channel should auto range.
chN_DataMarkerN Specifies one of 4 markers along the data scale.
• chN_DataMarkerN=”flag,value[,color]”
color is an optional parameter. It modifies only this one single marker.
• SampleMarkerN=”flag,value[,color]”
color is an optional parameter. It modifies only this one single marker.
- 69 -
7.USING THE DRAWING CONTROL B-83114EN/01
Properties of the control also determine the scaling, format, colorization and layout of many of the
Drawing’s characteristics.
Conventions:
The Drawing control is a ‘white board’ that line art entities are placed on. These entities have
characteristics (or properties that are unique to each).
Entities are:
• Text – as in an ASCII string
• Line – a single element drawn from point 1 to point 2
• Path – a sequence of lines
• Circle – a circle empty or filled
• Rectangle – a rectangle empty or filled, square cornered or rounded
• Diamond – a diamond (not filled)
• Image – a picture, source: .jpg, .gif or .png file
Each entity belongs to a layer. By default if not specified the entity belongs to layer 0.
• Layer 0 is always (ON) displayed.
• Other layers 1 through 9 can be turned on or off.
The normal coordinate system for the Drawing control on the iPendant (and IE) is:
• Upper left is 0, 0
- 70 -
B-83114EN/01 7.USING THE DRAWING CONTROL
To simplify things an ‘InvertY’ flag is defined to translate the coordinate system to:
• Upper left is + max Y
• Upper right is + max X
• Lower Left is 0, 0
The easiest way to create drawing on the screen for the iPendant is by putting the Drawing control on the
web page and by setting its properties.
Initially when Microsoft FrontPage inserts a drawing control on the web page, it is displayed with the
default light gray background in 200 by 160 pixel size. The two text items in the control reflect the
Caption and size (width and height). These are dynamically updated when the size or Caption is changed.
The characteristics controlling items such as orientation, fonts, colors, etc. can be controlled by the user
setting the appropriate properties of the Drawing control.
- 71 -
7.USING THE DRAWING CONTROL B-83114EN/01
3 Choose the FANUC iPendant Drawing 2D Control from the list of available FANUC iPendant
controls, and click OK. The Drawing control is now inserted into your page.
NOTE
If the FANUC iPendant Drawing 2D Control is not an option in the list, use the
Customize… button to enable it. If the option is not available under the
Customize… setup, then the proper software for the FANUC controls has not been
installed.
4 The particular properties can be configured from the ActiveX property pages. Either double click on
the control or right click and select ActiveX Control Properties.
- 72 -
B-83114EN/01 7.USING THE DRAWING CONTROL
7.2.2 Fonts
The font properties associated with the drawing as the “defaults” are modified from the Fonts property
page. These “default” settings are used by the Text string entities when no other font attributes are
specified.
Item Description
Font Font specifies the name of the font passed in the Font property.
Font Style Font Style can specify regular, bold, italic and italic bold. This affects whether the properties
FontBold and FontItalic are optionally passed.
Size Size specifies the size is the font. It is passed in the FontSize property.
The iPendant has built-in fonts for 12, 14, 16, 18 and 24-point fonts. Valid ranges of font sizes
are 12 through 24. Use one of following values.
- 73 -
7.USING THE DRAWING CONTROL B-83114EN/01
NOTE
1 Font, Strikeout and Underline has no effect on iPendant
2 For the iPendant only regular and bold have an effect, italic and bold italic are
ignored.
3 iPendant does not support font of 8point and smaller because it is hard to read
such font.
7.2.3.1 Caption
Caption is a text string that is passed as a property but not used. It is there as an aid to the developer since
it is displayed on the FrontPage design and preview views.
7.2.3.2 Name
Name is a text string that specifies an association to a KAREL program on the controller.
Currently, when the Drawing control is instantiated, the control checks for the existence of two program
variables on the controller. These variables can be used to pass text commands in the format and with the
content of other properties to dynamically affect the Drawing control’s operation.
[name]cmdstr
If the variable exists and is of type STRING the control creates a monitor for this variable. Strings of
commands can be written (set) to this variable and are delivered to the Drawing control to affect
‘dynamic’ actions such as data updates or changes in some properties.
[name]cmdack
If the variable exists and is of type BOOLEAN or INTEGER, the Drawing control uses this variable to
acknowledge that commands have been accepted via the command variable and acted on. The cmdack
variable is set TRUE or 1 when that command is accepted by the plug-in.
- 74 -
B-83114EN/01 7.USING THE DRAWING CONTROL
NOTE
The Name parameter can utilize !PaneID. Please refer to Subsection 5.2.15 for
Pane ID.
ForeColor Specify the “default” color of any entity that doesn’t have an explicit color defined.
BackColor Specify the background color.
NOTE
Colors are specified as a decimal value represent bbggrr (blue green red)
format, where as hexadecimal value preceded by the # sign are in rrggbb ( red
green blue) format. For example; ForeColor = 10531008 (decimal) is the same
as ForeColor = #C0B0A0 (hex).
7.2.3.4 Pipe
Pipe is a text string that specifies a named data file created on the controller and only associated with the
PIP: device.
This file is used to dynamically deliver data to the drawing control on the iPendant. The name can be any
8.3-formatted name, for example: drawing1.dat.
The name of this file is sent to the controller when the drawing control is instantiated on the iPendant.
The file name is concatenated to PIP: and the file opened. If the file does not exist then the file is created
and opened for read. If the file does exist prior to this, the file is opened for read access and a seek to the
end of file done to eliminate the possibility of stale data.
When the last drawing control using this file is gone, the file is deleted.
NOTE
The Pipe parameter can utilize !PaneID. Please refer to Subsection 5.2.15 for
Pane ID.
7.2.3.5 PipeMonRate
PipeMonRate specifies the time in milliseconds at which the Pipe file data is sampled.
NOTE
This value should be specified at a rate that give reasonable performance and
display update. The controller will enforce a minimum of 100ms.
7.2.3.6 Border
Border Selects the size of the border surrounding the Drawing control.
- 75 -
7.USING THE DRAWING CONTROL B-83114EN/01
7.2.3.7 FastLoad
FastLoad is selected by the checkbox.
Checked
Specifies that properties that are set to their corresponding “default” values are not included in the
web page. This effectively saves load time.
Unchecked
Specifies that all parameters are included in the web page, whether they have “default” values or not.
• Layer 0 is always displayed. By default if an entity does not have a layer attribute, it belongs to layer
0 and is always displayed.
• Other layers 1 through 9 can be turned on or off by the check boxes. These check boxes control the
value of two parameters LayerOn and LayerOff.
• Both parameters are can be a comma separated lists of layers to turn on or off.
- 76 -
B-83114EN/01 7.USING THE DRAWING CONTROL
Examples are:
7.2.4.2 Scale
Scale specifies a multiplier applied to both the X and Y scaling.
NOTE
This is used as a simple multiplier and can result in display peculiarities for each
display entity. The default for this setting should be left at 1.0.
7.2.4.3 InvertY
InvertY specifies that the Y scale is inverted.
• Normally the Y scale begins at the top and increases + to the bottom.
• When inverted the Y scale begins at the bottom and increases + to the top.
Checked
Y inverted. Y scale begins at the bottom and increases + to the top.
Unchecked
Y Not inverted. Y scale begins at the top and increases + to the bottom.
7.2.4.4 Data
Data Specifies a raw data string that the user can type in.
• Since the value is a string and should not contain double quotes, a single quote should be used in
place of double quotes. During processing all single quotes in the data value will be converted to
double quotes.
NOTE
This implies that single quotes cannot be handled or escaped. They should not
be used.
7.2.5.1 Text
Text specifies a text entity on the drawing.
Attributes as follows:
Attribute Description
text[=id] Text entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
font=f Specifies font size, +/- can be used to increment or decrement from the default font size
locate=x,y Specifies x, y origin relative to the white board
- 77 -
7.USING THE DRAWING CONTROL B-83114EN/01
Attribute Description
color=cvalue Specifies color as hex or decimal value
bold=b bold ( 1=bold, 0=nobold )
7.2.5.2 Line
Line specifies a line entity on the drawing.
Attributes as follows:
Attribute Description
line[=id] Line entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
points=x1,y1,x2,y2 Specifies the beginning point x1,y1 and ending point x2,y2
color=cvalue Specifies color as hex or decimal value
7.2.5.3 Path
Path specifies a path entity on the drawing. The path entity is a sequence of continuous lines along a
sequence of points.
Attributes as follows:
Attribute Description
path[=id] Path entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
points=x1,y1,x2,y2,…,xn,yn Specifies the beginning point that a sequence of lines are drawn along
color=cvalue Specifies color as hex or decimal value
7.2.5.4 Circ
Circ specifies a circle entity on the drawing.
Attributes as follows:
Attribute Description
circ[=id] Circle entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
locate=x,y Specifies x, y origin relative to the white board
color=cvalue Specifies color as hex or decimal value
radius=r Specifies the circles radius r in pixels.
weight=w Specifies a thickness w in pixels
fill=fcolor Optional fill color in hex or decimal
halign=align Horizontal alignment (left, center, right), Default = left
valign=align Vertical alignment (top, middle, bottom), Default = bottom
7.2.5.5 Rect
Rect specifies a rectangle entity on the drawing.
Attributes as follows:
Attribute Description
rect[=id] Rectangle entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
locate=x,y Specifies x, y origin relative to the white board
color=cvalue Specifies color as hex or decimal value
- 78 -
B-83114EN/01 7.USING THE DRAWING CONTROL
Attribute Description
height=h Specifies height as h pixels
width=w Specifies width as w pixels
fill=color Optional fill color in hex or decimal
halign=align Horizontal alignment (left, center, right), Default = left
valign=align Vertical alignment (top, middle, bottom), Default = bottom
radius=r Specifies the radius r in pixels of the corners.
7.2.5.6 Diam
Diam specifies a diamond entity on the drawing.
Attributes as follows:
Attribute Description
diam[=id] Diamond entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
locate=x,y Specifies x, y origin relative to the white board
color=cvalue Specifies color as hex or decimal value
height=h Specifies height as h pixels
width=w Specifies width as w pixels
halign=align Horizontal alignment (left, center, right), Default = left
valign=align Vertical alignment (top, middle, bottom), Default = bottom
7.2.5.7 Imag
Imag specifies an image entity on the drawing.
Attributes as follows:
Attribute Description
imag[=id] Image entity with optional id
layer=n Optionally specifies the layer it belongs to. Default is layer 0
locate=x,y Specifies x, y origin relative to the white board
height=h Specifies height as h pixels, default is file image height
width=w Specifies width as w pixels, default is file image width
halign=align Horizontal alignment (left, center, right), Default = left
valign=align Vertical alignment (top, middle, bottom), Default = bottom
imagename=path Specifies the source file name and path of the image
If a Name is designated for a Drawing control, then KAREL variables as described for the Name property
can be used to deliver dynamic commands to the drawing control. For example, a drawing with Name =
drawing1
- 79 -
7.USING THE DRAWING CONTROL B-83114EN/01
7.2.6.1 Clear
Clear specifies that the entire drawing be cleared, leaving only the blank white board displayed.
7.2.6.2 Delete
Delete=id specifies that an entity previously created with id be deleted. It is permanently removed from
the drawing.
7.2.6.3 LayerOn
LayerOn specifies a single layer or comma-separated list of layers that are turned ON. All entities that
belong to these layers are then displayed.
7.2.6.4 LayerOff
LayerOff specifies a single layer or comma-separated list of layers that are turned OFF. All entities that
belong to these layers are not displayed. These entities are not deleted they are simply not displayed.
Later, by using the ID, properties of those entities can be modified without deleting and redrawing the
whole entity:
- 80 -
B-83114EN/01 8.USING THE GRID CONTROL
The GRID control divides the display real estate into a 2 dimensional array of evenly spaced tiles.
SHAPES can then be aligned to the individual tiles for display. The SHAPES are generally located and
sized relative to the TILEs making it easy to resize the entire display.
The GRID control also makes use of inheritance. The control itself has basic characteristics such as color
and font information. The GRID is a child of the control, so characteristics not explicitly declared is
inherited from the control. This filters down to the TILE belonging to the GRID and SHAPEs belonging
to a TILE.
NOTE
Here tile outlines have been turned on to show where the tiles are located.
Normally the outlines would not be turned on.
The GRID control itself is specified by the user in html syntax within a .stm file, see Section 8.1
“INSERTING A GRID CONTROL ON A WEB PAGE”.
The content of the GRID, TILES and SHAPES are specified in XML (Extensible Markup Language) and
is furnished to the Grid control in one of 2 ways:
- 81 -
8.USING THE GRID CONTROL B-83114EN/01
• most often through a pipe file (This is specified in the control’s “pipe” property),
• through the “data” property of the web page itself.
4 Choose the FANUC iPendant Grid Control from the list of available FANUC iPendant controls, and
click OK. The Grid control is now inserted into your page.
- 82 -
B-83114EN/01 8.USING THE GRID CONTROL
NOTE
If the FANUC iPendant GRID Control is not an option in the list, use the
Customize… button to enable it. If the option is not available under the
Customize… setup, then the proper software for the FANUC controls has not
been installed.
5 Once the control is inserted into your web page you will see a blank control, with the size in pixels
as:
NOTE
You can grab the edges of the Grid control and stretch it to resize.
6 The particular properties can be configured from the ActiveX property pages. Either double click on
the control or right click and select ActiveX Control Properties.
From here on we’ll use the term of attributes, since these can be more closely equated to XML content.
- 83 -
8.USING THE GRID CONTROL B-83114EN/01
8.2.2 Fonts
The font properties associated with the GRID as the “defaults” are modified from the Fonts property page.
These “default” settings are used by the Text string entities when no other font attributes are specified.
Item Description
Font Font specifies the name of the font passed in the Font property.
Font Style Font Style can specify regular, bold, italic and italic bold. This affects whether the properties
FontBold and FontItalic are optionally passed.
- 84 -
B-83114EN/01 8.USING THE GRID CONTROL
Item Description
Size Size specifies the size of the font. It is passed in the FontSize property.
The iPendant has built-in fonts for 12, 14, 16, 18 and 24-point fonts. Valid ranges of font sizes
are 12 through 24. Use one of following values.
NOTE
1 Font, Strikeout and Underline has no effect on iPendant
2 For the iPendant only regular and bold have an effect, italic and bold italic are
ignored.
3 iPendant does not support font of 8point and smaller because it is hard to read
such font.
8.2.3.1 Caption
Caption is a text string that is passed as a property but not used. It is there as an aid to the developer since
it is displayed on the FrontPage design and preview views.
ForeColor Specify the “default” color of any entity that does not have an explicit color
defined.
BackColor Specify the background color.
NOTE
Colors are specified as a decimal value represent bbggrr (blue, green, red)
format, where if they are set as hexadecimal value preceded by the # sign, they
are in rrggbb (red, green, blue) format.
8.2.3.3 Pipe
Pipe is a text string that specifies a named data file created on the controller and only associated with the
PIP: device.
This file is used to dynamically deliver data to the Grid control on the iPendant. The name can be any
8.3-formatted name, for example: xgrid.dat.
The name of this file is sent to the controller when the Grid control is instantiated on the iPendant. The
file name is concatenated to PIP: and the file opened. If the file does not exist then the file is created and
opened for read. If the file does exist prior to this, the file is opened for read access and a seek to the end
of file done to eliminate the possibility of stale data.
When the last Grid control using this file is gone, the file is deleted.
NOTE
The Pipe parameter can utilize !PaneID. Please refer to Subsection 5.2.15 for
PaneID, which is recommended for proper functioning in a multi-pane
environment. So specifying xgrid!PaneID.dat will allow a unique pipe file to exist
on a per pane basis.
The controller will enforce a maximum rate (most likely 100ms) as the lower end of the range.
NOTE
When multiple controls specify the same pipe file the fastest monitoring rate will
take effect for all the controls monitoring this file.
8.2.3.5 Border
Border selects the size of the border surrounding the Grid control.
- 86 -
B-83114EN/01 8.USING THE GRID CONTROL
8.2.3.6 FastLoad
FastLoad is selected by the checkbox.
Checked
Specifies that properties that are set to their corresponding “default” values are not included in the
web page. This effectively saves load time.
Unchecked
Specifies that all parameters are included in the web page, whether they have “default” values or not.
8.3.1 Conventions
The grid is laid out and referenced as follows:
The user can specify separate and/or optional padding each of the 4 sides independently. This padding is
specified in # of pixels.
- 87 -
8.USING THE GRID CONTROL B-83114EN/01
NOTE
.png files should not be used for images
8.3.2 Alignment
SHAPES associated with a TILE are aligned relative to that TILE. The pixels are referenced relative to
the tile and the origin (1,1) within the tile is selected as:
• X: 1 at top left going positive to the right
• Y: 1 at the top left going positive down.
For instance consider the following example tile that is 10 pixels wide by 9 pixels high.
Alignment presents issues depending on the size of the tile in pixels, especially if the height and width is
an even number of pixels.
- 88 -
B-83114EN/01 8.USING THE GRID CONTROL
Consider the following; a grid is initially created as 4 tiles wide by 8 tiles high is in example (A).
- 89 -
8.USING THE GRID CONTROL B-83114EN/01
The GRID may be displayed in its entirety as in (A). Here the whole GIRD occupies most of the display
real estate.
But as the GRID tile count is increased, TILEs become smaller; the items in these TILEs shrink. At some
point there is too much information and the TILEs become too small to provide recognizable information.
So we need to display a part of the grid.
In (B) a part of the gird is selected for display. What parts and how much is determined by the
management software as part of the application on the robot controller.
NOTE
Example (B) also has a scroll bar indicator to aid the user in navigating.
8.3.5 Rendering
As previously described the GRID contains TILEs and each TILE contains SHAPEs.
When a TILE is created, it is put into the tail of a linear list. TILEs are processed in order in this list from
beginning to end. So it is important when architecting the display to consider the order in which TILEs
are placed in the XML.
Next, a TILE itself can be thought of as a linear list of SHAPEs. As each SHAPE is specified (created) on
the TILE it is placed at the end of this list.
When the rendering for the tile is done, the linear list of SHAPEs is processed. The SHAPES are
individually handled in the following order:
1 Button
2 Image
3 Circle
4 Rectangle
5 Text
6 Line
The Grid control understands a fairly strict XML syntax, a set of tags and attributes, as detailed in the
following sections. Although the Grid control ignores unknown attributes, the user should be cautioned
that, unknown attributes cause errors to be reported and can introduce delays in rendering or other
iPendant problems.
- 91 -
8.USING THE GRID CONTROL B-83114EN/01
(a) is XML header information. This is not required for by GRID but is included for completeness.
(b) is the opening XML tag for the GRID.
(c) is the opening TILE tag for the TILE located at 1,1
(d) is TEXT “(1,1)” with font +2 more than the Grid control defaults, and in red
(e) is a LINE in green from the right side of the TILE (loc=”100,50”) for 400%.
(f) is the end tag for the TILE at 1,1
(g) is the opening XML tag for the TILE at 5,1
(h) is TEXT “(5,1)” with font +2 more than the Grid control defaults, and in blue
(i) is the end tag for the TILE at 5,1
(j) is the opening XML tag for the TILE at 3,4
(k) specifies and IMAGE ipend.gif, with a size of 75% the width of the TILE and 150% of the height
(l) is the end tag for the TILE at 3,4
(m) is the opening XML tag for the TILE at 2,3
(n) specifies a rounded RECTANGLE (corner radius=”6”), aligned top and left, 200% of the TILE’S
height and width
(o) specifies a RECTANGLE, aligned top and left, 270% of the TILE’s height and width
(p) is the end tag for the TILE at 2,3
(q) is the opening XML tag for the TILE at 5,5
(r) Specifies a CIRCLE, in yellow, 90% of the TILE’S height
(s) Is the end tag for the TILE at 5,5
(t) Is the DISPLAY tag that causes the actual rendering of the TILES. This specifies that the TILE on
pos=”1,1” is the origin (upper left hand corner) and the display is 5 tile wide by 6 tiles high. Padding
around the borders is 6 pixels.
NOTE
Verbose is the flag that turns on the TILE outlining.
The typical hierarchy of XML syntax, which the Grid control expects, is:
<?xml version="1.0"?>
<GRID>
<TILE …>
<TEXT …>string</TEXT>
<LINE …/>
<RECTANGLE …/>
<CIRCLE …/>
<IMAGE…>file</IMAGE>
- 92 -
B-83114EN/01 8.USING THE GRID CONTROL
<BUTTON … />
</TILE>
<DISPLAY …/>
<DELTILE …/>
<MODTILE/>
<MODTEXT>string</MODTEXT>
<MODLINE …/>
<MODRECTANGLE …/>
<MODCIRCLE …/>
<MODIMAGE…>file</IMAGE>
<MODBUTTON … />
</GRID>
<?xml version="1.0"?>
Optional parameters:
Attribute Description
id="userid" Specifies an optional user supplied ASCII identifier.
bclr="backcolor" Specifies the background color. Supersedes the control’s background color. If not specified then
the control’s background color is inherited.
fclr="forecolor" Specifies the forefround color. Supersedes the control’s foreground color. If not specified then
the control’s foreground color is inherited. Inheritance to TILE is not supported. Specify fclr in
TILE and shapes on it as required.
font="size" Specifies the font size. If not present then the control’s font size is inherited.
pad="#pixels" Specifies general padding, for all sides of the display.
padl="#pixels" Specifies padding for the left side of the display. Optional, if specified it overrides the general
padding above.
padt="#pixels" Specifies padding for the top of the display. Optional, if specified it overrides the general
padding above.
padr ="#pixels" Specifies padding for the right side of the display. Optional, if specified it overrides the general
padding above.
padb="#pixels" Specifies padding for the bottom of the display. Optional, if specified it overrides the general
padding above.
touch="method" Specifies that the GRID is touchable. Method is a bit mask:
4 = event on BUTTON
verbose="#" Specifies debug level. This is internal.
99 will put a 1 pixel wide outline around TILES for ease of alignment.
- 93 -
8.USING THE GRID CONTROL B-83114EN/01
TILEs contain SHAPEs to be displayed. All SHAPEs placed on a tile are located relative to the tile’s
origin, which is the upper left hand corner pixel of the tile. Columns go positive right and rows go
positive down.
Required parameters:
Attribute Description
pos="col#,row#" Specifies the position as column and row in the grid. Both rows and cols must be > 0.
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
layeron="layerlist" Specifies a comma-separated list of layers that are ON for this tile
layeroff="layerlist" Specifies a comma-separated list of layers that are OFF for this tile.
Layerlist = “*” is a special case that turns off all layers. Except of course layer 0 which is
always displayed.
bclr="backcolor" Specifies the background color. Supersedes the GRID’s background color. If not specified
then the GRID’s background color is inherited.
fclr="forecolor" Specifies the foreground color. Supersedes the GRID’s foreground color. If not specified then
the GRID’s foreground color is inherited.
font="size" Specifies the font size. If not present then the control’s font size is inherited.
In general:
• The <TILE> tag must be enclosed within a <GRID> tag.
• A <TILE> tag can only encapsulate SHAPEs as outlined in the following sections.
• A <TILE> can encapsulate multiple SHAPEs.
• TILEs can be deleted using the <DELTILE> tag.
• TILEs can be modified using the <MODTILE> tag.
• The TILE origin pixel (1,1) is at the upper left hand corner.
• The TEXT string origin, which the user can specify by the alignment argument. This argument
specifies the vertical origin of the string as top, center or bottom and the horizontal origin as left,
middle or right.
After that the string is offset by the % of the tile dimensions specified in the offset.
- 94 -
B-83114EN/01 8.USING THE GRID CONTROL
Text string
loc=”%x,%y”
Text origin
Tile
Tile origin 1,1
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
clr="color" Specifies text color. If not specified then the TILE’s foreground color is inherited.
align="vert,horiz" Specifies the vertical and horizontal alignment of the text string.
NOTE
In the case of multi-line text, the general horizontal and vertical alignment is
extended on to each line.
After that the LINE is offset by the % of the tile dimensions specified in the offset.
loc="%x,%y" Line origin
eloc= "%x,%
Required parameters:
Attribute Description
loc="%x,%y" Specifies the offset relative to the TILE’s origin. If not specified then (50,50) is used. These
values are % relative to the TILE’s height and width.
eloc="%x,%y" Specifies the end of the LINE relative to the TILE’s origin. These values are % relative to the
TILE’s height and width.
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
layer="layer#" Specifies the layer that the LINE belongs to relative to the TILE. Values can be 0 to 16, if not
specified then layer 0 is used.
clr="color" Specifies line color. If not specified then the TILE’s foreground color is inherited.
After that the rectangle is offset by the % of the tile dimensions specified in the offset.
Rectangle
loc="%x,%y"
Rectangle origin
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
clr="color" Specifies line color. If not specified then the TILE’s foreground color is inherited.
align="vert,horiz" Specifies the vertical and horizontal position of origin of rectangle.
Vertical values can be:
• Top
• Middle (default if not specified)
• Bottom
Horizontal values can be:
• Left
• Center (default if not specified)
• Right
loc="%x,%y" Specifies the offset relative to the TILE’s origin. If not specified then (50,50) is
used. These values are % relative to the TILE’s height and width.
layer="layer#" Specifies the layer that the RECTANGLE belongs to relative to the TILE.
Values can be 0 to 9; if not specified then layer 0 is used.
size="%width,%height[,radius]" Specifies the width and height as a % of the tile.
And optional radius of the rectangle. Width and height are % relative to
the tile’s width and height. Optional radius makes this a rounded rectangle with
corner radius of #pixels.
wt="#pixels" Specifies the line weight in #pixels. If not present the default is 1.
fill="color" Specifies the fill color for the RECTANGLE, also serves as a flag.
If not present then the rectangle is not filled.
radius="#pixels" Specifies a corner rounding radius in # of pixels. If not present then corners
are not rounded.
NOTE
Fill and radius cannot be specified together.
The polygon is defined by three or four vertices, each located as a % of the tile dimensions relative to the
tile’s origin (upper left hand corner). A straight line is drawn between each successive vertex and from
the last vertex to the first.
vrtx1="%x,%y"
vrtx4="%x,%y"
vrtx2="%x,%y"
Tile
Tile origin 0,0 vrtx3="%x,%y"
- 97 -
8.USING THE GRID CONTROL B-83114EN/01
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
clr="color" Specifies line color. If not specified then the TILE’s foreground color is inherited.
vrtx1="%x,%y" Specifies the offset to the first vertex relative to the TILE’s origin.
vrtx2="%x,%y" Specifies the offset to the second vertex relative to the TILE’s origin.
vrtx3="%x,%y" Specifies the offset to the third vertex relative to the TILE’s origin.
vrtx4="%x,%y" Specifies the offset to the fourth vertex relative to the TILE’s origin.
This is optional and if not present, a triangle is drawn.
layer="layer#" Specifies the layer that the POLYGON belongs to relative to the TILE.
Values can be 0 to 9; if not specified then layer 0 is used.
fill="color" Specifies the fill color for the POLYGON.
If not present then the rectangle is not filled.
After that the circle is offset by the % of the tile dimensions specified in the offset.
loc="%x,%y"
Circle origin
Tile
Tile origin 0,0
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
clr="color" Specifies line color. If not specified then the TILE’s foreground color is inherited.
align="vert,horiz" Specifies the vertical and horizontal alignment of origin of circle
Vertical values can be:
• Top
• Middle (default if not specified)
• Bottom
Horizontal values can be:
• Left
• Center (default if not specified)
• Right
loc="%x,%y" Specifies the offset relative to the TILE’s origin. If not specified then (50,50) is
used. These values are % relative to the TILE’s height and width.
- 98 -
B-83114EN/01 8.USING THE GRID CONTROL
Attribute Description
layer=" layer#" Specifies the layer that the CIRCLE belongs to relative to the TILE.
Values can be 0 to 9, if not specified then layer 0 is used.
wt="#pixels" Specifies the line weight in #pixels. If not present the default is 1.
diameter="%diameter" Specifies the CIRCLE’s diameter as a % of the TILE it is
contained in. If not present then 100% is assumed.
After that IMAGE is offset by the % of the tile dimensions specified in the offset.
The size of the IMAGE relative to the tile can be specified as percentages of the size of the TILE. If not
specified the IMAGE is sized to 100% of the TILE.
IMAGE origin
loc="%x,%y"
Tile origin 0,0
Tile
Required parameters:
Attribute Description
image.gif Specifies the file name of the image. This can be absolute or relative URL.
Allowable file types are .gif and .jpg
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
bclr="color" Specifies the color show if there is transparency in the image.
align="vert,horiz" Specifies the vertical and horizontal alignment of Image origin.
Vertical values can be:
• Top
• Middle (default if not specified)
• Bottom
Horizontal values can be:
• Left
• Center (default if not specified)
• Right
- 99 -
8.USING THE GRID CONTROL B-83114EN/01
Attribute Description
loc="%x,%y" Specifies the offset relative to the TILE’s origin. If not specified then (50,50) is
used. These values are % relative to the TILE’s height and width.
layer="layer#" Specifies the layer that the IMAGE belongs to relative to the TILE.
Values can be 0 to 16, if not specified then layer 0 is used.
size="%width,%height" Specifies the width and height as a % of the tile.
Width and height are % relative to the tile’s width and height.
If the size is not specified then the 100% is assumed.
NOTE
.png files should not be used for images
NOTE
For proper color rendering image files should be created with a Standard
Windows Color Pallet.
NOTE
For a .gif file specifying a transparency color, the transparent color can be
specified by the clr parameter, or inherited from TILE’s bclr parameter.
The information or state is pretty much under the programmer’s control. The BUTTON tag defines the
basic framing around the button shape. The content can be other SHAPES placed on the BUTTON. These
include TEXT, RECTANGLES, CIRCLES, IMAGES, etc. The programmer then has control of these
SHAPES as well as colors.
NOTE
Use BUTTON tag only when iPendant with touch panel is used.
If the iPendant is capable of touch then touch sense is maintained by the iPendant control itself.
• Release or mouse up is sensed and can be sent back to the controller in a manner specified by any or
all of the 2 parameters: kcod or url.
• Press or mouse down is sensed and can be sent back to the controller in a manner specified by any or
all of the 2 parameters: kcod2 or url2.
- 100 -
B-83114EN/01 8.USING THE GRID CONTROL
Optional parameters:
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
bclr="color" Specifies the background color.
align="vert,horiz" Specifies the vertical and horizontal alignment of origin of button.
Vertical values can be:
• Top
• Middle (default if not specified)
• Bottom
Horizontal values can be:
• Left
• Center (default if not specified)
• Right
loc="%x,%y" Specifies the offset relative to the TILE’s origin. If not specified then
the TILE’s origin (50,50) is used. These values are % relative to the TILE’s
height and width.
layer="layer#" Specifies the layer that the TEXT belongs to relative to the TILE.
Values can be 0 to 9, if not specified then layer 0 is used.
size="%width,%height" Specifies the width and height as a % of the tile.
Width and height are % relative to the tile’s width and height.
look="style" or “style,x" Specifies the button style:
“0” = not a button
“1” = user defined border
“2.x” = 2D border with x pixels thickness
“3.x” = 2D border with x pixels thickness
latch="state" Specifies that the button is latchable, or controlled by the user.
State is one of:
0 = button is not currently pressed
1 = button is currently pressed
nolatch="state" Specifies that the button is not latchable. State is meaningless but must be
supplied for XML completeness.
kcod="#" Specifies a 1 byte key code value that is sent back to the controller
on the release or mouse up event.
- 101 -
8.USING THE GRID CONTROL B-83114EN/01
Attribute Description
url="urlstring" Specifies a URL string to be sent back to controller’s the web server on the
release or mouse up event.
Some examples are:
url=”/KCL/show%20var%20$version”
url="/KCLDO/reset”
url="/KCLDO/set%20port%20tpout[1]=1">KCLDO set port tpout[1]=1</a>
url="/KCLDO/set%20var%[program]somevar%20”
kcod2="#" Specifies a 1 byte key code value that is sent back to the controller
on the press or mouse down event.
url2="urlstring" Specifies a URL string to be sent back to controller’s the web server on the
press or mouse down event. Examples can be found under the description of
url, above.
For example, a GRID may have been defined as 100 by 200 and its tiles populated. This is too large to
display any amount of detail that the user might make sense of.
The DISPLAY tag defines the origin tile and an X, Y extent, as a dimension, to display. The origin tile
will be the top left TILE actually displayed. And the ending extent TILE will be in the lower right.
Additionally the DISPLAY tag can supersede the default font, pad, foreground and background colors,
and specify display of scroll bars to aid the user in visualizing where they are within the whole grid.
Required parameters:
Attribute Description
pos="col#,row#" Specifies the position as column and row in the grid that is the origin to be
displayed.
Optional parameters:
Attribute Description
dims="#cols,#rows" Specifies the dimensions, # columns and # rows to be displayed.
bclr="color" Specifies the tile’s background color for all tiles in the range of pos by dims.
It supersedes the TILE’s background color. If not specified then the TILE’s
background color is not affected.
font="size" Specifies the font size. If not present then the TILE’s font size is inherited.
pad="#pixels" Specifies general padding, for all sides of the display.
padl="#pixels" Specifies padding for the left side of the display.
padt="#pixels" Specifies padding for the top of the display.
padr ="#pixels" Specifies padding for the right side of the display.
padb="#pixels" Specifies padding for the bottom of the display.
scrollbar="style,bgcolor,fgcolor" Specifies the style 1, through 10. 0 = No scrollbar.
hscroll="thick,offset,amount" Specifies the horizontal scroll bar characteristics.
Refer to Subsection 8.4.12 “Scroll Bars with The DISPLAY Tag”.
vscroll="thick,offset,amount" Specifies the vertical scroll bar characteristics.
Refer to Subsection 8.4.12 “Scroll Bars with The DISPLAY Tag”.
- 102 -
B-83114EN/01 8.USING THE GRID CONTROL
So we might want to only display a 10 by 12 area within the grid. The DISPLAY tag does that.
This starts at the tile located at 1,4 within the GRID and displays TILEs 10 columns wide by 12 rows
high.
Scroll bars are normally used to represent where the current offset is within the total possible display.
The horizontal scrollbar and vertical scrollbar are completely independent and under the control of the
user, as XML content.
Scroll bars are specified as part of the <DISPLAY> tag because at the time the DISPLAY command is
issued the user should have a good handle of what portion and offset within the total they are showing.
offset
(origin ) thickness
X0 or Y0 amount
- 103 -
8.USING THE GRID CONTROL B-83114EN/01
The DELTILE tag is implemented to delete unneeded TILEs. This also frees up internal memory that the
plug-in is holding onto.
Required parameters:
Either
Attribute Description
id="userid" Specifies a user supplied ASCII identifier.
or
Attribute Description
pos="col#,row#" Specifies the position as column and row in the grid that is the
origin to be deleted.
dims="#cols,#rows" Specifies the dimensions, # columns and # rows to be deleted.
or both.
As with the previous example the GRID control may have been sent hundreds of TILEs, for example a
display of 100 by 200.
- 104 -
B-83114EN/01 8.USING THE GRID CONTROL
• If we want to clear all tiles from column 20 & row 10 through column 90 & row 190:
One way to accomplish this would be to delete the TILE that the SHAPE is associated with and recreate
the necessary TILE and SHAPE. But remember the TILE may have many associated SHAPES and it is
most likely a waste of time and processor since we would have to recreate many SHAPES. And of course
there are more complication when rendering order is important.
Recall that all the SHAPE tags have a user specifiable identifier, id=”userid”. This userid string is:
a non-case sensitive string that should uniquely identify a shape.
it can contain space characters.
Each SHAPE tag has a corresponding <MODxxxx….. > tag that will accept the same parameters as the
definition tag.
Can be modified by :
<MODTEXT id="string 1" clr="#ff0000">Alarm</MODTEXT>
The following is the correlation of the definition tag to the modifier tag.
Definition tag Modification tag
<TEXT … <MODTEXT …>
<LINE … <MODLINE …>
<RECTANGLE … <MODRECTANGLE …>
<RECT … <MODRECT …>
<CIRCLE … <MODCIRCLE …>
<IMAGE … <MODIMAGE …>
<BUTTON … <MODBUTTON …>
Please consult the corresponding section of the definition tag to verify the proper parameters.
In the modification tag if a parameter is not specified, then the original parameter setting is left
unchanged.
- 105 -
8.USING THE GRID CONTROL B-83114EN/01
The TILE definition tag has two ways of identifying the TILE. Using the id=”userid” and the
combination pos=”col#,row#” and dims=”#cols,#rows” parameters.
Like the SHAPE tag, the userid string is a non-case sensitive string that should uniquely identify a TILE.
The id parameter is optional. The pos parameter is not.
Will modify the TILE with the id of “tile #12” to turn off all layers, and turn on layer 1.
Will modify the TILE at position 1,12 to turn off all layers, and turn on layer 1.
Will modify all the TILES starting at position 2,2 in a rectangular array down to the TILE at position
3,4 modifying their background color to RED.
This will turn on layer 2 for all tiles with the id “panel” in the TILES starting at position 1,1 through
position 2,5.
- 106 -
B-83114EN/01 8.USING THE GRID CONTROL
Additionally the entire content of the data value parameter could be a separate file that is included with
server side includes:
Here, the file data.xml is included in the data stream to the Grid control.
- 107 -
APPENDIX
B-83114EN/01 APPENDIX A.COMMANDING LINKS FROM KAREL
iPendant can display multiple screens by dividing whole screen. Each display area is called “pane”.
pane_id Description
tp_panel = 1 The first iPendant pane
tp2_panel = 2 The second iPendant pane
tp3_panel = 3 The third iPendant pane
tp3_panel is available only when system software version is 7DA5/06 or later.
url can be any valid URL location. Following table shows some examples.
FORCE_LINK Description
FORCE_LINK(TP_PANEL, '/mc/ipctrl.htm') Force MC: \ipctrl.htm into 1st pane of iPendant.
FORCE_LINK(TP2_PANEL, '/mc/ipctrl.htm') Force MC: \ipctrl.htm into the 2nd pane of
iPendant.
FORCE_LINK(tp_panel, 'refresh=prim') Force the page in the primary pane to be
refreshed.
FORCE_LINK (tp_panel, 'refresh=dual') Force the page in the 2nd pane to be refreshed.
FORCE_LINK (tp_panel, 'refresh=third') Force the page in the 3rd pane to be refreshed.
FORCE_LINK (TP_PANEL, 'current=/mc/ipctrl.htm') Force MC:\ipctrl.htm into the currently focused
frame of iPendant.
FORCE_LINK (TP_PANEL, Move focus to the 1st pane of iPendant.
'/SOFTPART/GENLINK?focus=prim')
FORCE_LINK (TP_PANEL, Set screen configuration to dual mode, display
'/SOFTPART/GENLINK?config=double&prim=editpage,HOME_ HOME_IO in the 1st pane and move focus to the
IO&focus=dual') 2nd pane.
By bringing our menus in as URL’s we can now specify links in a generic way that can either be Web
pages in the traditional sense or our legacy menus.
- 111 -
A.COMMANDING LINKS FROM KAREL APPENDIX B-83114EN/01
href="/SOFTPART/GENLINK?parameter=value&etcetera"
There can be as many parameter=value pairs as are required to specify the link. In this case there are a
fixed number of potential parameters with a fixed number of potential values. The order of the parameter
value pairs is not relevant.
• PRIM – Put the URL in the parameter in the primary (1st , left) pane.
• DUAL– Put the URL in the parameter in the dual (2nd, right) pane.
• TRIPLE – Put the URL in the parameter in the triple (3rd, lower right) pane.
• CURRENT-Put the URL in the parameter in the pane, which currently has focus.
• OTHER - Put the URL in the parameter in the primary pane when linked from dual or triple; put it in
the dual pane when linked from the primary pane.
• FOCUS – Set the focus pane
• CONFIG – Set the screen configuration
The operations are case insensitive. In the case of the MENUPAGE links, the softpart ID and screen ID of
the target menu is also specified. In the case of an EDITPAGE the name of the program to launch in the
editor is also supplied.
- 112 -
B-83114EN/01 APPENDIX A.COMMANDING LINKS FROM KAREL
- 113 -
B.DISCTRL_DIAG BUILT-IN APPENDIX B-83114EN/01
B DISCTRL_DIAG BUILT-IN
The KAREL built-in DISCTRL_DIAG can be used to display and control a dialog box on the iPendant
screen. The legacies teach pendant is not supported. The built-in will return status 9147, "TP firmware
version is too old".
Input/Output Parameters:
Details:
• file_spec specifies the device and filename of the XML file defining the dialog box. If no device
name is specified, the default device is used.
• term_mask is a bit-wise mask indicating conditions that will terminate the dialog box. This should
be an OR of the constants defined in the include file klevkmsk.kl.
0 is also a valid term_mask if one or more of the controls on the dialog box are used to dismiss it.
• term_char receives a code indicating the character or other condition that terminated the dialog box.
The codes for key terminating conditions are defined in the include file klevkeys.kl. Keys normally
returned are pre-defined constants as follows:
• DISCTRL_DIAG will display the dialog box on the teach pendant device over top of the menu
being displayed.
• status explains the status of the attempted operation. If status returns a value other than 0, an error
has occurred.
• If the KAREL program is aborted, the dialog box is automatically dismissed.
A Dialog Box can contain a single item like a string entry or it can be a collection of several items such as
string entry and buttons. The following are some of the items that may be included in a Dialog Box.
- 114 -
B-83114EN/01 APPENDIX B.DISCTRL_DIAG BUILT-IN
The Dialog Box uses standard iPendant Controls on an independent window to provide these items.
The size and location of the Dialog Box are configurable and it can be displayed across multiple panes.
Tags and attributes are used to define these items. The typical layout of a dialog box XML file is:
<DIALOG [DIALOG attributes] > - One of these required in the file
</DLGTILE>
- 115 -
B.DISCTRL_DIAG BUILT-IN APPENDIX B-83114EN/01
<DIALOG> </DIALOG>
<DLGTILE> </DLGTILE>
<object> </object>
Prototype is as follows.
<DIALOG posx="col#" posy="row#" width="#cols" height="#rows" bgcolor=”color#”>
........
</DIALOG>
Attribute Description
posx="col#" Specifies the column position of the dialog box.
posy="row#" Specifies the row position of the dialog box.
width="#cols" Specifies the width of the dialog box in pixels.
height="#rows" Specifies the height of the dialog box in pixels.
bgcolor="color#" Specifies the background color in RGB values.
- 116 -
B-83114EN/01 APPENDIX B.DISCTRL_DIAG BUILT-IN
Attribute Description
clr="color#" Specifies the foreground color in RGB values.
font="font#" Specifies the font size.
align="horiz,vert" Specifies the horizontal (left,center,right) and vertical (top,middle,bottom) alignment within
the text area.
loc="x,y" Specifies the column and row within the dialog box.
dims="#cols,#rows" Specifies the width and height in pixels of the text area.
Prototype is as follows.
<DLGTILE posx="col#" posy="row#" width="#cols " height="#rows" type=”dismiss”>
........
</DLGTILE>
Attribute Description
posx="col#" Specifies the column position of the entity within the dialog box.
posy="row#" Specifies the row position of the entity within the dialog box.
width="#cols" Specifies the width of the entity in pixels.
height="#rows" Specifies the height of the entity in pixels.
Specifies whether the dialog box will be dismissed when this entity is selected.
type="dismiss" 1 = dismiss, 0 or not specified = not dismissed.
Note the parameters that start with _, such as “_Version”, are not required and can be omitted. In addition,
the width and height on the object tag is not used. The width and height on the DLGTILE is used instead.
Below is an example of an XML file that defines the following dialog box.
This box contains three iPendant Controls, a Label (“Continue program?”) and two Toggle Buttons
(“YES” and “NO”). When a Toggle Button is pressed, the KAREL variable is set and the dialog box is
dismissed.
- 118 -
B-83114EN/01 APPENDIX B.DISCTRL_DIAG BUILT-IN
<param name="BackColor" value="16777215">
</object>
</DLGTILE>
<!-- No -->
<DLGTILE posx="120" posy="70" width="60" height="50" type="1">
<object classid="clsid:7106066C-0E45-11D3-81B6-0000E206D650" id="TGBTN2">
<param name="Caption" value="NO">
<param name="DataType" value="103">
<param name="DataIndex" value="[runyesno]no">
<param name="FontSize" value="16">
<param name="TrueColor" value="12632256">
<param name="FalseColor" value="12632256">
<param name="BackColor" value="16777215">
</object>
</DLGTILE>
</DIALOG>
%NOLOCKGROUP
%ENVIRONMENT uif
%INCLUDE klevkmsk
%INCLUDE klevccdf
VAR
term_char: INTEGER
status: INTEGER
yes: BOOLEAN
no: BOOLEAN
BEGIN
yes = FALSE
no = FALSE
DISCTRL_DIAG('MC:\DLGYESNO.XML', kc_prev_key, term_char, status)
IF term_char = ky_prev THEN
no = TRUE
ENDIF
IF yes = TRUE THEN
WRITE TPERROR (CHR(cc_home) + CHR(cc_clear_win) + 'Continue program')
ELSE
WRITE TPERROR (CHR(cc_home) + CHR(cc_clear_win) + 'Do not continue program')
ENDIF
END runyesno
- 119 -
C.FLOW OF CREATION OF CUSTOM SCREEN APPENDIX B-83114EN/01
- 120 -
B-83114EN/01 APPENDIX C.FLOW OF CREATION OF CUSTOM SCREEN
6 In [Open Site] dialog box, specify MC directory whose path is checked at step 3
7 If the directory has never been opened as site, [Add FrontPage Information to the Folder] dialog box
is displayed. Select Yes.
- 121 -
C.FLOW OF CREATION OF CUSTOM SCREEN APPENDIX B-83114EN/01
10 [New] task page is displayed. Select [Blank page] under [New page].
- 122 -
B-83114EN/01 APPENDIX C.FLOW OF CREATION OF CUSTOM SCREEN
13 Select [Insert | Web Component] from menu bar. It displays [Insert Web Component] dialog box.
14 Select [Advanced Controls] in [Component type] list and select [ActiveX control] in [Choose a
control] list. Then Press Next. Dialog box like following is displayed.
15 Select FANUC iPendant EditBox Control and press Finish.
- 123 -
C.FLOW OF CREATION OF CUSTOM SCREEN APPENDIX B-83114EN/01
18 Double click the EditBox to display [ActiveX Control Properties] dialog box
- 124 -
B-83114EN/01 APPENDIX C.FLOW OF CREATION OF CUSTOM SCREEN
19 Confirm [Edit Box] tab is selected. Set [DataType] to [101-Numeric Register] and set [DataIndex] to
1. Press OK.
20 Select [File | Save as…] from menu bar. Save the web page as test_01.stm under MC directory.
Please note that extension is stm.
21 Display iPendant by ROBOGUIDE
22 Select MENU->next page->BROWSER to display BROWSER screen.
23 Display Browser Favorite screen by F1 [ TYPE ]-> Browser.
If Web Server is displayed, press next key and F5 Favorite.
- 125 -
C.FLOW OF CREATION OF CUSTOM SCREEN APPENDIX B-83114EN/01
25 Screen like following is displayed. Input “EditBox test” to “Enter a Name” and “/mc/test_01.stm” to
“Enter an Address”. Press Continue.
- 126 -
B-83114EN/01 APPENDIX C.FLOW OF CREATION OF CUSTOM SCREEN
Button on left upper corner shows value of numeric register 1 (R[1]). You can change value of R[1]
by dialog box that is displayed by click on the button.
- 127 -
D.USE OF TABLE TO ARRANGE CONTROLS APPENDIX B-83114EN/01
- 128 -
B-83114EN/01 APPENDIX D.USE OF TABLE TO ARRANGE CONTROLS
Figure D (a) and D (b) show difference between FrontPage and ROBOGUIDE. In addition, display can
be different between ROBOGUIDE and real iPendant. Placing more than 2 controls in a cell can cause
this difference.
If you place only one control in one cell, it sometimes makes adjustment of display easier. If you insert
table in a cell, place one control in an innermost cell.
Speaking about Figure D (a), insert table 3 by 5 to a table 1 by 1. Placing one Label control to each cell of
inside table (3 by 5). Figure D (c) shows the result of the change. Figure D (d) shows improved display on
ROBOGUIDE.
Inside table
(3 rows and 5 columns)
Outside Table (1 row and 1 column)
Label control
Figure D (c): Placing one control in one cell of inner table
- 129 -
B-83114EN/01 INDEX
INDEX
DataFontSize..................................................................57
<A> DataFormat ....................................................................58
Alignment..................................................................21,88 DataGrid.........................................................................60
Annotation & AnnotateFontSize ....................................54 DataScale .......................................................................59
AutoChange Control ......................................................40 DataScaleFormat (Bar Chart).........................................60
DataScaleFormat(Line Chart) ........................................59
<B> DataShowValues............................................................58
Bar Chart Control...........................................................65 DataType and DataIndex ...............................................18
Border .............................................................20,54,75,86 Delete .............................................................................80
BROWSER MENUS........................................................3 DELTILE Tag..............................................................104
BUTTON Tag ..............................................................100 <DIALOG> </DIALOG> ............................................116
ButtonChange Control ...................................................42 DIALOG BOX XML FILE..........................................115
Diam...............................................................................79
<C> DISCTRL_DIAG BUILT-IN.......................................114
Caption.................................................................22,74,85 DISPLAY CONCEPTS .................................................87
Caption & CaptionFontSize ...........................................53 DISPLAY Tag .............................................................102
CAUTIONS .....................................................................2 Display, Pan and Zoom..................................................89
Ch_Data_N.....................................................................65 <DLGTILE> </DLGTILE>.........................................117
Channel config Tab ........................................................61 Draw Tab .......................................................................74
Chart config Tab ............................................................55 Draw2 Tab .....................................................................76
CHART CONTROL DESCRIPTION............................65 Dynamic Data ..............................................................106
ChartClear ......................................................................65 Dynamic Display ...........................................................90
ChartType ......................................................................56 Dynamic Entity Modifications.......................................80
ChN_AutoRange ............................................................64
ChN_Clear .....................................................................65 <E>
ChN_Color .....................................................................62 EditBox Control .............................................................31
ChN_Data.......................................................................62 Error Code Dialog..........................................................46
ChN_DataGrid ...............................................................63 Error Code Messages .....................................................47
ChN_DataMarkerN ........................................................64 Execution Control ..........................................................46
ChN_DataScale ..............................................................63
ChN_Digital ...................................................................63 <F>
ChN_Name.....................................................................62 FastLoad....................................................................76,87
ChN_Rate.......................................................................63 File Names .....................................................................10
ChN_Source ...................................................................62 FLOW OF CREATION OF CUSTOM SCREEN........120
ChN_State ......................................................................63 Fonts........................................................... 13,21,52,73,84
Circ.................................................................................78 FORCE_LINK BUILT-IN ROUTINE.........................111
CIRCLE Tag ..................................................................98 Foreground & Background Colors ....................... 54,75,85
Clear...............................................................................80 Frames............................................................................14
ClickMe..........................................................................29 FRONTPAGE ..................................................................9
Colors.............................................................................20 Function Key ViewType................................................22
ComboBox Control ........................................................43
CommandButton Control ...............................................35 <G>
COMMANDING LINKS FROM KAREL ..................111 General Chart Properties ................................................53
COMMON CHART CONTROL PROPERTIES ...........52 GENERIC LINKING DETAILED INFORMATION..112
COMMON CONTROL PROPERTIES .........................18 GENERIC LINKING FUNCTIONALITY ..................111
COMMON DRAWING CONTROL PROPERTIES .....72 Grid Tab.........................................................................85
COMMON GRDI CONTROL PROPERTIES...............83 GRID Tag ......................................................................93
CONTROL ARRANGEMENT............................17,51,71 GridColor .......................................................................60
Control Description........................................................29 GridType........................................................................60
CONTROL DESIGN ADVICE .....................................46
Control Features Summary...............................................7 <H>
Conventions ...................................................................87 HARDWARE REQUIREMENTS ...................................1
HTML Editing ...............................................................13
<D>
Data ................................................................................77
i-1
INDEX B-83114EN/01
i-2
Revision Record
01 Feb.,2010
* B - 8 3 1 1 4 E N / 0 1 *