C4G Controller Manual
C4G Controller Manual
Comau Robotics
Instruction Handbook
C4G
Access to system (power-on, shutdown, login, logout), user interfaces, use of Teach Pendant,
system controls, WinC4G, Fieldbus and I/O configuration, use of PLC software.
CR00757557_en-00/0708
The information contained in this manual is the property of COMAU S.p.A.
Reproduction of text and illustrations is not permitted without prior written approval by COMAU S.p.A.
COMAU S.p.A. reserves the right to alter product specifications at any time without notice or obligation.
SUMMARY
PREFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .XV
Symbols used in the manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XV
Reference documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVI
Modification History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVI
lb-rc-c4e-usoTOC.fm
I
Summary
lb-rc-c4e-usoTOC.fm
II
Summary
lb-rc-c4e-usoTOC.fm
III
Summary
View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.68
Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.69
Variables (MVV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.69
Callchain (PV/C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.70
Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.71
POS SHIFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.71
IDE Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.75
Opening the IDE page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.75
Description of the video screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.76
IDE status lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.76
Editor area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.77
Description of the available functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.80
Prog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.80
Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.82
PDL2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.84
Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.91
REC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.95
MOD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.95
REC key setting, nodal with $PAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.95
Numeric keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.99
I/O Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.101
Set (SI and SO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.102
On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.103
Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.103
Forcing (SIF... SOF...) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.103
On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.103
Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.104
Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.104
Unforce (SIU... SOU...). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.104
Simulate (SIS... SOS...) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.104
On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.105
Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.105
Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.105
Total . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.105
Not simulated (SIN... SON...) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.105
View (SIV... SOV...) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.105
Zoom in. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.106
Zoom out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.106
Vertical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.107
Horizontal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.107
Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.108
Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.108
Open. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.109
Close . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.109
Maximize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.109
Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.109
Next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.109
Appl Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.111
Files Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.113
File (F1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.113
Open. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.114
lb-rc-c4e-usoTOC.fm
IV
Summary
lb-rc-c4e-usoTOC.fm
V
Summary
C4G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.155
TP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.156
Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.159
Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.159
Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.160
Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.161
Controller (CCS). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.161
FB_TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.162
Install (FUI). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.162
IO_TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.162
Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.163
User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.163
Startup (CCLS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.163
Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.164
ToolFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.166
Service Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.169
Execute (E). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.169
Sysinfo (SCV). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.170
Arm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.171
Multiarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.172
Battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.172
TP-INT Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.175
Navigation among commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.175
Virtual Keyboard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.176
Additional User Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.179
lb-rc-c4e-usoTOC.fm
VI
Summary
lb-rc-c4e-usoTOC.fm
VII
Summary
lb-rc-c4e-usoTOC.fm
VIII
Summary
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1
Diagram of steps to develop a program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2
Programming in IDE (on TP) for a motion program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.4
Access to programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.4
Program Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.4
Selecting one or more text lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5
Deleting/restoring one or more lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5
Move the Edit cursor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5
Inserting a new instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.6
Commenting/Uncommenting a program line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.6
Changing an existing instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.6
Inserting/viewing /deleting variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.7
Importing from other programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.7
Viewing a program in pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.7
Teaching positions (insertion of a move instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.8
Setup the REC key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.8
Teaching new positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.8
Changing existing positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.8
Program execution test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.9
Activating/deactivating a program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.9
Aborting the execution of an instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.9
Setting step mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.10
Move the execution cursor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.10
Inserting/removing a break point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.10
Bypassing an instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.11
Execute a temporary instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.11
Saving the program and closing IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.11
Executing the program in automatic mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.12
Programming in WinC4G (on PC) of NON motion programs. . . . . . . . . . . . . . . . . . . . . . . . . . 9.12
Program Edit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.13
Data Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.14
Code Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.14
How to write Program Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.14
Memory Debug. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.15
Screen page structure and function keys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.16
Screen page structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.16
Function Keys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.17
Teaching the positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.20
Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.22
Programs Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.23
Commands Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.23
Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.23
Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.26
Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.29
New . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.29
Quit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.29
Save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.30
Save_as . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.30
Suspend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.30
Memory Teach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.31
Memory Teach screen layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.31
lb-rc-c4e-usoTOC.fm
IX
Summary
lb-rc-c4e-usoTOC.fm
X
Summary
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.8
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.9
Completion of the operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.28
Save (F5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.28
Close (F6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.29
lb-rc-c4e-usoTOC.fm
XI
Summary
lb-rc-c4e-usoTOC.fm
XII
Summary
lb-rc-c4e-usoTOC.fm
XIII
Summary
lb-rc-c4e-usoTOC.fm
XIV
Preface
PREFACE
HS-RC-C4E-0_01.fm
00/0708 XV
Preface
Reference documents
This document refers to the C4G Control Unit.
The complete set of manuals for the C4G consists of:
Modification History
– In version 3.0 a new section has been added, entitled IO_TOOL Program - I/O
Configuration in VP2 to describe the use of the I/O configuration software,
implemented in Visual PDL2 language.
– In version 3.1x, the contents of section IO_TOOL Program - I/O Configuration in
VP2 have been separated into the following two sections:
• FB_TOOL program for configuration of Fieldbus (program to manage fieldbus
configuration)
• IO_TOOL Program - I/O Configuration in VP2 (program to manage I/O ports
configuration)
– The following paragraphs have been added in version 3.2x:
• par. 5.3.1 Automatic Timed Logout on page 5-5
• Tab. 6.2 - Restart events with WiTP wireless
• Connection between PC and Control Unit: par. 8.4.3 Remote connection via
Internet on page 8-5 added
HS-RC-C4E-0_01.fm
XVI 00/0708
General Safety Precautions
1. GENERAL SAFETY
PRECAUTIONS
1.1 Responsibilities
– The system integrator is responsible for ensuring that the Robot and Control
System are installed and handled in accordance with the Safety Standards in force
in the country where the installation takes place. The application and use of the
protection and safety devices necessary, the issuing of declarations of conformity
and any CE markings of the system are the responsibility of the Integrator.
– COMAU Robotics & Service shall in no way be held liable for any accidents caused
by incorrect or improper use of the Robot and Control System, by tampering with
circuits, components or software, or the use of spare parts that are not originals or
that have not been defined as equivalent by COMAU Robotics & Service
ge-0-0-0_01.FM
07/1007 1-1
General Safety Precautions
1.2.1 Purpose
These safety precautions are aimed to define the behaviour and rules to be observed
when performing the activities listed in the Applicability section.
1.2.2 Definitions
Robot and Control System
The Robot and Control System consists of all the functions that cover: Control Unit,
robot, hand held programming unit and any options.
Protected Area
The protected area is the zone confined by the safety barriers and to be used for the
installation and operation of the robot
Authorised Personnel
Authorised personnel defines the group of persons who have been trained and assigned
to carry out the activities listed in the Applicability section.
Assigned Personnel
The persons assigned to direct or supervise the activities of the workers referred to in
the paragraph above.
Programming Mode
Operating mode under the control of the operator, that excludes automatic operation
and allows the following activities: manual handling of robot axes and programming of
work cycles at low speed, programmed cycle testing at low speed and, when allowed,
at the working speed.
ge-0-0-0_01.FM
1-2 07/1007
General Safety Precautions
Integrator
The integrator is the professional expert responsible for the installation and putting into
service of the Robot and Control System.
Incorrect Use
Incorrect use is when the system is used in a manner other than that specified in the
Technical Documentation.
Range of Action
The robot range of action is the enveloping volume of the area occupied by the robot
and its fixtures during movement in space.
1.2.3 Applicability
These Specifications are to be applied when executing the following activities:
– Installation and Putting into Service;
– Programming Mode;
– Auto / Remote Automatic Mode;
– Robot axes release;
– Stop distances (threshold values)
– Maintenance and Repairs;
– Putting Out of Service and Dismantling
ge-0-0-0_01.FM
07/1007 1-3
General Safety Precautions
– Connection between the Control Unit and the three-phase supply mains at the
works, is to be with a four-pole (3 phases + earth) armoured cable dimensioned
appropriately for the power installed on the Control Unit. See the product
Technical Documentation.
– The power supply cable is to enter the Control Unit through the specific fairlead and
be properly clamped.
– Connect the earth conductor (PE) then connect the power conductors to the main
switch.
ge-0-0-0_01.FM
1-4 07/1007
General Safety Precautions
– Connect the power supply cable, first connecting the earth conductor to the circuit
breaker on the mains line, after checking with a tester that the circuit breaker
terminals are not powered. Connect the cable armouring to the earth.
– Connect the signals and power cables between the Control Unit and the robot.
– Connect the robot to earth or to the Control Unit or to a nearby earth socket.
– Check that the Control Unit door (or doors) is/are locked with the key.
– A wrong connection of the connectors could cause permanent damage to the
Control Unit components.
– The C4G Control Unit manages internally the main safety interlocks (gates,
enabling pushbuttons, etc.). Connect the C4G Control Unit safety interlocks to the
line safety circuits, taking care to connect them as required by the Safety
standards. The safety of the interlock signals coming from the transfer line
(emrgency stop, gates safey devices etc) i.e. the realisation of correct and safe
circuits, is the responsibility of the Robot and Control System integrator.
In the cell/line emergency stop circuit the contacts must be included of the control
unit emergency stop buttons, which are on X30. The push buttons are not
interlocked in the emergency stop circuit of the Control Unit.
– The safety of the system cannot be guaranteed if these interlocks are wrongly
executed, incomplete or missing.
– The safety circuit executes a controlled stop (IEC 60204-1 , class 1 stop) for the
safety inputs Auto Stop/ General Stop and Emergency Stop. The controlled stop is
only active in Automatic states; in Programming the power is cut out (power
contactors open) immediately. The procedure for the selection of the controlled
stop time (that can be set on ESK board) is contained in the Installation manual .
– When preparing protection barriers, especially light barriers and access doors,
bear in mind that the robot stop times and distances are according to the stop
category (0 or 1) and the weight of the robot..
Check that the controlled stop time is consistent with the type of Robot connected
to the Control Unit. The stop time is selected using selector switches SW1 and
SW2 on the ESK board.
– Check that the environment and working conditions are within the range specified
in the specific product Technical Documentation.
– The calibration operations are to be carried out with great care, as indicated in the
Technical Documentation of the specific product, and are to be concluded
checking the correct position of the machine.
– To load or update the system software (for example after replacing boards), use
only the original software handed over by COMAU Robotics & Service.
Scrupulously follow the system software uploading procedure described in the
Technical Documentation supplied with the specific product. After uploading,
always make some tests moving the robot at slow speed and remaining outside the
protected area.
– Check that the barriers of the protected area are correctly positioned.
ge-0-0-0_01.FM
07/1007 1-5
General Safety Precautions
Programming Mode
– The robot is only to be programmed by the authorised personnel.
– Before starting to program, the operator must check the Robot and Control System
to make sure that there are no potentially hazardous irregular conditions, and that
there is nobody inside the protected area.
– When possible the programming should be controlled from outside the protected
area.
– Before operating inside the Protected Area, the operator must make sure from
outside that all the necessary protections and safety devices are present and in
working order, and especially that the hand-held programming unit functions
correctly (slow speed, emergency stop, enabling device, etc.).
– During the programming session, only the operator with the hand-held terminal is
allowed inside the Protected Area.
– If the presence of a second operator in the working area is necessary when
checking the program, this person must have an enabling device interlocked with
the safety devices.
– Activation of the motors (Drive On) is always to be controlled from a position
outside the range of the robot, after checking that there is nobody in the area
involved. The Drive On operation is concluded when the relevant machine status
indication is shown.
– When programming, the operator is to keep at a distance from the robot to be able
to avoid any irregular machine movements, and in any case in a position to avoid
the risk of being trapped between the robot and structural parts (columns, barriers,
etc.), or between movable parts of the actual robot.
– When programming, the operator is to avoid remaining in a position where parts of
the robot, pulled by gravity, could execute downward movements, or move
upwards or sideways (when installed on a sloped plane).
– Testing a programmed cycle at working speed with the operator inside the
protected area, in some situations where a close visual check is necessary, is only
to be carried out after a complete test cycle at slow speed has been executed. The
test is to be controlled from a safe distance.
– Special attention is to be paid when programming using the hand-held terminal: in
this situation, although all the hardware and software safety devices are active, the
robot movement depends on the operator.
– During the first running of a new program, the robot may move along a path that is
not the one expected.
– The modification of program steps (such as moving by a step from one point to
another of the flow, wrong recording of a step, modification of the robot position out
of the path that links two steps of the program), could give rise to movements not
envisaged by the operator when testing the program.
– In both cases operate cautiously, always remaining out of the robot’s range of
action and test the cycle at slow speed.
ge-0-0-0_01.FM
1-6 07/1007
General Safety Precautions
Before using the manual release devices, it is strongly recommended to sling the
robot, or hook to an overhead travelling crane.
ge-0-0-0_01.FM
07/1007 1-7
General Safety Precautions
After replacement of the ESK module, check on the new module that the setting
of the stop time on selector switches SW1 and SW2 is consistent with the type of
Robot connected to the Control Unit.
ge-0-0-0_01.FM
1-8 07/1007
General Safety Precautions
ge-0-0-0_01.FM
07/1007 1-9
General Safety Precautions
ge-0-0-0_01.FM
1-10 07/1007
Operator Panel
2. OPERATOR PANEL
The push buttons, selector switches and communication interfaces used in normal use
of the Control Unit are located on the OPM panel. Moreover, as an option, there is a
service socket inside the electric cabinet.
illustrates the layout of the devices.
The function is described in detail in the following section Functions of Operator Panel
devices.
HS-RC-C4E-USO_01.fm
00/0708 2-1
Operator Panel
If the control panel door is opened and closed again, make sure that the control lever
and/or the extension shaft of the main switch Q100 are in the same position (ON /OFF)
to avoid causing damage to the control lever.
HS-RC-C4E-USO_01.fm
2-2 00/0708
Operator Panel
– T2 (optional) - The programmer can check the program and robot functioning at
working speed. The 250 mm/s limit is not enabled. The operator can work inside
the cell.
Warning! The program ALWAYS starts at low speed, and the user, if wished, CAN
increase it to the working speed. If jogkeys are used, the system will
AUTOMATICALLY reduce the speed to below the limit of 250 mm/s at flange
centre.
When using with the status selector switch in position T2 programming control
mode the operator is to be very careful, since the risks due to the faster speed of
the robot cannot be solved with the normal procedures and precautions.
– AUTO - The operator can check the program functioning at working speed,
activating the start command from the teach pendant. The operator cannot work
inside the cell.
– REMOTE - The program running is controlled by external equipment (for example,
line PLC or local control panels). The operator cannot work inside the cell.
The selector switch key can be removed in all positions.
Modal selector switch with position T2 (optional) Modal selector switch, standard
HS-RC-C4E-USO_01.fm
00/0708 2-3
Operator Panel
HS-RC-C4E-USO_01.fm
2-4 00/0708
User Interface
3. USER INTERFACE
3.1 Introduction
The C4G Robot Control Unit, for robot manual handling, to create, modify and run
programs, to modify step-by-step moves, to supply system control and monitoring
functions, requires the use of the following user interfaces:
– TP4i/WiTP Teach Pendant
– Interface on Personal Computer (WinC4G)
The Teach Pendant can be chosen from the following two versions:
– TP4i - connected by cable to the C4G Control Unit
– WiTP
• wired - connected by cable to the C4G Control Unit
• wireless - connection without wires (wireless) to C4G Control Unit, with
WindowsCE operating system.
For more detailed information regarding the Teach Pendant (TP4i and/or WiTP),
see the following manuals:
– C4G Control Unit- Technical Specifications - par.4.7.2 Teach Pendant;
– C4G Control Unit - Transport and Installation - chap.6 Start-up procedure;
– C4G Control Unit - Maintenance - par.3.9 WiTP emergency unpairing procedure;
– Chap.6. - Use of the Teach Pendant.
The following Fig. 3.1, Fig. 3.2 Fig. 3.5, Fig. 3.6 and Fig. 3.7 illustrate the components
of TP4i Teach Pendant and, by means of user-friendly hypertext connections, give
access to detailed descriptions of keys, pushbuttons, LEDs, display and communication
port, available in the following Chap.6. - Use of the Teach Pendant.
HS-0-C4E-USO_31bis.fm
00/0708 3-1
User Interface
HS-0-C4E-USO_31bis.fm
3-2 00/0708
User Interface
HS-0-C4E-USO_31bis.fm
00/0708 3-3
User Interface
HS-0-C4E-USO_31bis.fm
3-4 00/0708
User Interface
For the use of the TP see the Chap. Use of the Teach Pendant
HS-0-C4E-USO_31bis.fm
00/0708 3-5
User Interface
HS-0-C4E-USO_31bis.fm
3-6 00/0708
System power on and shut down
4.1 Foreword
This chapter describes the most frequently used procedures:
– System power-on
– System shut down
Wait at least 20 seconds after a power-off before re-powering the control unit.
c. Turn on the electric power supply by turning the main switch to ON (see Main
switch in Chap. Operator Panel)
Upon Control Unit activation, power is supplied to all the modules
d. If it is wished to use the Teach Pendant, the steps to be followed depend on the
type of Teach Pendant installed on the system:
d.1 if it is TP4i (connected by cable), no further operations are necessary: the system
activates the display, runs the initialising procedure, displays the Home Page and
makes the pendant ready for use. Step e. is then carried out immediately.
d.2 If the Teach Pendant is the WiTP wireless, these steps have to be followed:
d.2.1 power-on the Teach Pendant (if it is off), pressing keys AUX B- and AUX B+
simultaneously (see Keys to switch on the WiTP wireless)
d.2.2 place the WiTP on the docking station (if not already there) and wait for the
information "system ready for pairing"
d.2.3 carry out the pairing with the Control Unit (see par. 6.4.1 Pairing procedure
between WiTP wireless Teach Pendant and C4G Control Unit on page 6-17).
HS-0-C4E-USO_43.fm
00/0708 4-1
System power on and shut down
Lastly, the system shows the Home Page and the pendant is ready for use.
a. set the system in DRIVE OFF (see DRIVE OFF function description in par. 6.5.1.4
Right Menu on page 6-30)
b. Move the main switch to OFF (see par. 2.1.1 Main switch on page 2-2 in
Chap. Operator Panel).
The software shutdown is requested when the user wishes to carry out the shutdown of
the Control Unit and the Teach Pendant.
Before introducing the relevant command, set the DRIVEs OFF (see description of the
DRIVE OFF function in par. 6.5.1.4 Right Menu on page 6-30).
The command to activate the software shutdown is
ConfigureControllerRestartShutdown (CCRS) and can be requested from either :
– Teach Pendant (TP4i or WiTP), or
– Personal Computer (through WinC4G program), or
– PDL2 program (through SYS_CALL).
According to whether the system is provided with TP wired or wireless, the shutdown
procedure is the one described in the following paragraphs:
– Shutdown - system with Teach Pendant connected by cable (TP4i or WiTP wired)
– Shutdown - system with wireless Teach Pendant (WiTP wireless).
a. after approx 5 seconds the Teach Pendant display is cleared. Wait at least 10
seconds
b. move the main switch to OFF (see par. 2.1.1 Main switch on page 2-2 in
Chap. Operator Panel).
HS-0-C4E-USO_43.fm
4-2 00/0708
System power on and shut down
Following the software shutdown request, if the WiTP is paired, before authorising the
Control Unit shutdown, the system asks the user to run the unpairing.
The user should proceed as follows:
b.1 if all proceeds correctly, the system shuts down the WiTP; therefore the user can
use the main switch to shut down the C4G Control Unit;
b.2 the system detects a fault BEFORE the pairing/unpairing pushbutton has been
pressed - the C4G Control Unit does NOT prepare for shutdown and the WiTP is
HS-0-C4E-USO_43.fm
00/0708 4-3
System power on and shut down
NOT shutdown. The shutdown command is aborted and the user is notified by a
specific message. The situation is the same as it was before the shutdown request;
b.3 the system detects a fault AFTER the pairing/unpairing pushbutton has been
pressed - the C4G Control Unit shutdown is suspended, but the WiTP is unpaired
and off. It is, in any case a consistent situation. The user can act on the main switch
to shut down the C4G Control Unit.
Note that if the unpairing is NOT performed correctly, the shutdown command is
ALWAYS aborted.
During the software shutdown procedure the system waits for the unpairing request and
for its completion, for a pre-set timeout. If this timeout expires, it means that one of the
following situations may have occurred:
– WiTP does not communicate (not on docking station, too far away, there are
interposed obstacles, battery low, off, etc.) - in this case, the user has to remove
the cause: the pendant resumes normal communication
– after requesting the shutdown procedure, the user has not pressed the
pairing/unpairing key; in this case, the user has to ask for the shutdown again
and PRESS the pairing/unpairing pushbutton when requested by the system
– the unpairing procedure has not terminated correctly; the user has to find the
cause and remove it.
To manage these situations, see also the C4G Control Unit Maintenance Manual,
chap.4 - Help to solve problems.
WARNING!
– If the command comes from the program (via SYS_CALL), it is a good rule to
always test the final status of the SYS_CALL to manage any anomalous situations.
– The system asks for unpairing ONLY if the WiTP wireless is paired!
HS-0-C4E-USO_43.fm
4-4 00/0708
Access to the Control (LOGIN/LOGOUT)
5.1 Introduction
To access the Control Unit, regardless of the device from which dialogue with the
controller is desired (Teach Pendant or WinC4G program from PC), a Login is
necessary, otherwise the only commands available are for viewing.
To terminate access to the Control Unit, so that unauthorised personnel cannot enter, it
is necessary to execute a Logout.
If working with the Teach Pendant, the Login can be performed in one of these ways:
– like Login command (Softkey (F2) of the Central Menu on the TP4i Home Page, or
– from TP-INT Page as SetLogin command.
If working through WinC4G, the operator is asked to Login to the connection toward the
Controller; the SetLogin command is in the commands menu.
HS-0-C4E-USO_49.fm
00/0708 5-1
Access to the Control (LOGIN/LOGOUT)
– the Add command, using the Users softkey (F1) from Setup page, Login sub-page,
on the TP4i.
Next, it is necessary to execute
– the ConfigureSaveAll command, from TP-INT Page, or
– the Save command, by means of the Config. softkey (F1) in the Setup page, on
TP4i
The C4G Control Unit is delivered to the customer with the following predefined users:
– programmer user
Username: pu
Password: pu
– maintenance engineer user
Username: mu
Password: mu
– administrator user
Username: admin
Password: admin
The programmer login is the default login that is held after a Restart Cold, since it is
saved as Startup Login (SetControllerLoginStartup command).
If the predefined users (programmer or maintenance engineer) are not those required
by the end customer, others can be defined.
To do so, from the administrator user, send the ConfigureControllerLoginAdd
command from TP-INT or use the Login section on the Teach Pendant Setup page.
5.2.1 Administrator
The only task of this user is to enter and/or delete the users in the data base (file .UDB)
that gives access to the system; therefore many other commands are not enabled for
the Administrator.
Each time it is wished to add (or remove) a user level, it is necessary to perform the
following steps:
– Enter the system as administrator user (SetLogin from TP-INT Page, or Login
softkey (F2) from the Teach Pendant Home Page). If a new profile for the
administrator has not been already defined, the Username admin and the
Password admin are predefined in the system;
– to add the new user, proceed in one of these ways:
• from TP-INT Page, enter ConfigureControllerLoginAdd with the user profile,
the Username and the Password;
• from the Teach Pendant, using the Add command, through the Users softkey
(F1), in the Login sub-page of the Setup page, enter the user profile, the
Username and the Password.
– to check that the insertion has taken place, proceed with one of these methods:
• from TP-INT Page, enter ConfigureControllerLoginView;
• from the Teach Pendant, select the Login sub-page on the Setup page
– perform the Logout to exit from the system as administrator:
• from TP-INT Page enter the SetLogin/Logout command, or
• from the Teach Pendant Home Page, with a long pressure on the Login
softkey (F2) select the Logout option
HS-0-C4E-USO_49.fm
5-2 00/0708
Access to the Control (LOGIN/LOGOUT)
– Login again entering the newly defined Username and Password, to check it has
been entered correctly;
– Save the settings using one of these methods:
• from TP-INT Page, enter ConfigureSave;
• from the Teach Pendant, enter the Save command through the Config.
softkey (F1) on the Setup page.
5.2.2 Default
The type of user to be identified is the operator running a production line. The main
operations that he/she requires are to start and stop the programs, to delete alarms,
manual movements, override modification, restart and shut down of the Controller.
5.2.3 Programmer
The programmer user is enabled, mainly, to execute the operations associated to the
development, the verification and the setting up of the programs.
5.2.4 Maintenance
The type of user to be identified is the integrator. This user has more potential than the
programmer.
5.2.5 Service
He/she also performs servicing and is a user enabled to execute operations connected
to system updating, using commands for software loading and machine calibration.
Access to the Control Unit with this profile, is exclusive: if a user connects to the system
as Service, it will be possible to connect to the Control Unit, from other devices, only
specifying the same Username and the same Password.
5.2.6 Technology
With the technology user access is allowed to some functions of the installed
application, typical of that application. See the specific application manual for further
information.
HS-0-C4E-USO_49.fm
00/0708 5-3
Access to the Control (LOGIN/LOGOUT)
Delete(FD), rename (FR), translate (FT) a file A,P,M,S P,M,S P,M,S P,M,S
Creation (FUDM), deletion (FUDD) of a directory A,P,M,S P,M,S P,M,S P,M,S
Compressed files management (FUC.) A,P,M,S P,M,S P,M,S P,M,S
Applications installation (FUI) P,M,S P,M,S P,M,S P,M,S
Copy file from external device (FUR) P,M,S P,M,S P,M,S P,M,S
Change attributes of a file (FUA) M,S M,S M,S M,S
Access to Memory Debug environment (MD) P,M,S P,M,S P,M,S
Program Edit and IDE environment P,M,S P,M,S P,M,S P,M,S
Load programs in memory (ML). Save in UD: (MS) A,P,M,S A,P,M,S P,M,S P,M,S
Delete programs (MEP), variables (MEV), both (MEA)
A,P,M,S A,P,M,S P,M,S M,S
from memory
Program activation (PA), deactivation (PD), loading and
A,D,P,M,S D,P,M,S D,P,M,S M,S
activation (PG)
HS-0-C4E-USO_49.fm
5-4 00/0708
Access to the Control (LOGIN/LOGOUT)
It is also possible to store a startup login used by the Controller at each restart
(ConfigureControllerLoginStartup command or Setup page on the Teach Pendant).
5.3 Logout
If working with the Teach Pendant, apply prolonged pressure to softkey F2 of the Central
Menu on Home Page (see par. 6.7.2.2 Logout on page 6-45).
If working with WinC4G, press the disconnection key, or use SetLogin/L from the
control menu.
As from system software version 3.20, there is also a special Automatic Timed
Logout function, described in the next paragraph.
HS-0-C4E-USO_49.fm
00/0708 5-5
Access to the Control (LOGIN/LOGOUT)
Pendant screen after a period of keyboard inactivity (see par. 6.5 Display on page 6-25).
From that instant the time count starts, after which the system executes the automatic
Logout.
When a user wishes to use the Teach Pendant after an automatic Logout, it is
necessary to first access again (Login).
When an automatic Logout takes place, some environments carry out special
operations. In particular:
– Files Page - the system resets the current directory to UD:
– Data Page - any open tables are "frozen": any modifications remain where they are
at that moment (in TP memory or in Controller memory). The system informs the
user with an "Insufficient Rights" message. At the next Login the message is no
longer present and the table is displayed again
– IDE Page - the system closes the current editing session. If this operation requires
viewing of the dialogue with user window (for example relating to the cursor
position and modifications that have not been saved), the automatic Logout
procedure is suspended until the user answers these questions.
For information on this operating configuration by the user, see Startup (CCLS)
in Setup page.
HS-0-C4E-USO_49.fm
5-6 00/0708
Use of the Teach Pendant
6.1 Introduction
This chapter gives detailed information on how to use the Teach Pendant, both for the
TP4i model (connected by cable to the C4G Control Unit) and for the WiTP model (both
cable connection and wireless type).
1 - Pushbuttons 2 - Display
3 - Blue keys 4 - Other colours keys
5 - JPAD for TP4i and JPAD for WiTP 6 - JOG keys for TP4i and JOG keys for WiTP
7 - Alphanumeric keypad 8 - LEDs
HS-0-C4E-USO_52.fm
00/0708 6-1
Use of the Teach Pendant
NOTE -Unless specified otherwise, the descriptions that follow are valid for both
Teach Pendant models (TP4i and WiTP wired, WiTP wireless).
6.2.1 Keys
The Teach Pendant keyboard (see Fig. 3.1 and Fig. 3.2 in par. 3.2 TP4i/WiTP Teach
Pendant on page 3-1) is basically arranged in the following manner:
– Blue keys
– Black keys
– Other colours keys
– Alphanumeric keypad
– Keys to switch on the WiTP wireless
– Keys to restart the Teach Pendant
HS-0-C4E-USO_52.fm
6-2 00/0708
Use of the Teach Pendant
HS-0-C4E-USO_52.fm
00/0708 6-3
Use of the Teach Pendant
• SHIFT
still in combination with other keys; the use changes according to the
environment and the function of the key it is associated to
NOTE
Note that, according to the type of Teach Pendant (TP4i/WiTP), the position of the
SHIFT keys changes (see Fig. 6.3 keys highlighted in red).
TP4i WiTP
• MORE
when the softkeys of the Left Menu and/or Right Menu are more than 6, the
associated MORE key allows the scrolling of them all
• HELP
while using TP-INT Page, when this key is pressed the corresponding help
screen pages are activated; in any case, for future versions the use of the
HELP key will be available for other User Pages too. In some situations the
simultaneous pressing of the SHIFT + HELP keys will display a pop-up
window with suggestions.
– Navigation keys
• Cursor keys (up arrow, down arrow, right arrow, left arrow): to move inside the
screen page fields.
TP4i
• SHIFT keys (left and right): can be used in combination with other navigation
keys.
See NOTE about WiTP.
WiTP
HS-0-C4E-USO_52.fm
6-4 00/0708
Use of the Teach Pendant
For the correct use of these keys, read carefully the Navigation Mode in par. 6.6
User Interface Pages on page 6-35
For the DRIVE ON and DRIVE OFF functions, see Enabling Device and Right Menu
According to whether the Teach Pendant is TP4i or WiTP, the black keys may differ.
Therefore the two situations are described separately:
– TP4i
– WiTP
6.2.1.2.1 TP4i
• STEP key- Sets continuous running mode (STEP DISABLED) on the active current
arm move program.
• BACK key - Causes the movement backward, to the start position of the current
movement, during step-by-step checking of a program.
HS-0-C4E-USO_52.fm
00/0708 6-5
Use of the Teach Pendant
• JOG keys
Such keys can be used to move the robot axes. AUX keys can be
configured for axes 7, 8, 9, 10, two at a time
HS-0-C4E-USO_52.fm
6-6 00/0708
Use of the Teach Pendant
– JPAD
WARNING - For configuration with integrated Gantry with 3 linear axes, the JPAD
is managed differently to normal operation.
• The two arrow keys on the left refer to movements of the gantry auxiliary
axis configured as Z
• The four keys on the right refer respectively to movements of gantry
auxiliary axis configured as X (up arrow and down arrow) and to
movements of auxiliary axis configured as Y (LH arrow and RH arrow).
The position of the user does NOT have influence on the JPAD functioning, and
therefore the controls in Advanced sub-page of Motion Page DO NOT effect
handling with JPAD.
Gantry movement with JPAD is the same as with JOG keys AUX A - AUX B.
The position of the user can be configured in the Advanced sub-page of the Motion
Page.
It is to be borne in mind that any move executed using JPAD is always according
to user reference ($UFRAME), except for movement of Gantry with 3 linear axes,
which is always a joint move.
6.2.1.2.2 WiTP
HS-0-C4E-USO_52.fm
00/0708 6-7
Use of the Teach Pendant
For the DRIVE ON and DRIVE OFF functions, see Enabling Device and Right
Menu.
The functions previously activated by the STEP and REC keys, on the Teach
Pendant connected via cable (TP4i), are available in IDE environment (see
par. 6.11 IDE Page on page 6-75). To access the related descriptions, see:
– STEP function - par. – Step on page 6-82
– REC function - it is softkey F5 on IDE Page and the first softkey at the top left
on the Virtual Keyboard of TP-INT Page.
• BACK key - for the backward movement, to the starting position of the current
movement, during the step-by-step verification of program.
See par. – Step on page 6-82, in IDE Page.
• COORD key - reference system selection :
JOINT - joints mode. The keys are associated to each of the selected arm axes;
any auxiliary axes present follow this arm. Pressing one of the keys moves the
corresponding axis in the plus or minus direction according to the directions
indicated by the plates on the arm.
UFRAME - linear move mode according to the user x, y, z reference frame (for
example the frame that describes the part under process). The first three keys are
for linear movement in the direction of the three axes of the user reference system
(defined by the $UFRAME variable); the next three keys are for rotation of the
fixture around the same axes keeping the TCP position unchanged.
BASE - linear displacement mode according to the x, y, z reference frame (the
workshop reference frame). The first three keys are for linear moves in the direction
of the three axes of the contour reference system; the next three keys are to rotate
the fixture around the same axes keeping the TCP position unchanged. It is to be
remembered that the contour frame is not defined directly by system variables, in
fact it is the robot base that is represented in relation to the frame through the
$BASE variable.
TOOL - linear movement mode according to the tool x, y, z reference frame (or TCP
frame). The first three keys are for linear moves in the direction of the three tool
reference system axes (defined by the $TOOL variable); the next three keys are for
fixture rotation around the same axes keeping the TCP position unchanged (tool
work point).
WR-BASE, WR-TOOL, WR-UFRAME: if pressed together with the SHIFT key, the
COORD key allows passage between Cartesian move modes (BASE, TOOL,
USER) and Wrist JNT (X,Y,Z and joints axes 4,5,6). For further information see the
chapter ROBOT MOTION IN PROGRAMMING MODE of the Motion
Programming Manual.
HS-0-C4E-USO_52.fm
6-8 00/0708
Use of the Teach Pendant
• AUX key - pressing this key increases (in circular mode) the AUX-A index, the key
that moves auxiliary axis A. When pressed together with the SHIFT key
(SHIFT+AUX) it increases (in circular mode) index AUX-B, the key that moves
auxiliary axis B. The values of AUX-A and AUX-B are displayed on the Motion
page, sub-page Coop.
See par. 6.8.2 Coop (optional feature) on page 6-49.
The same information is displayed in the Status bar, in the Arm field (fourth field).
• ARM key - corresponds to the Arm softkey of the TP4i Right Menu (see ARM (R1)).
In Multiarm systems, it is used to manage the index of the main Arm and the
synchronised Arm, displaying in the Status bar, in exactly the same way as by
entering in the Motion Page, sub-page Basic and modifying the Arm field.
The functioning is as follows:
In DRIVE-OFF - pressing ARM increases in circular mode the index of the main
Arm, but never altering the Arm quantity in the Status bar (if there is only one Arm,
it remains one, if there are two Arms, two remain). The new value is the first valid
Arm index after an increment.
Pressing SHIFT+ARM increases in circular mode the index of the synchronised
Arm.
It is the only combination of keys able to change the quantity of Arms in the Status
bar. It always passes to two Arms when there is only one Arm in the Status bar. It
returns to one Arm when the index of the second Arm becomes equal to the first
Arm.
In DRIVE-ON - pressing ARM has two effects:
- if DRIVE-ON has taken place with only 1 Arm selected ($TP_SYNC_ARM[2]=0),
the Arm index is incremented, as for DRIVE-OFF;
- if DRIVE-ON has taken place with 2 Arms selected, the selection is inverted for
the Arm that will be moved with jog keys.
For example, if there are 3 Arms and the current situation is Arm: 2<1, where Arm
2 is that moved by jog keys, pressing ARM, the index is NOT incremented (it does
NOT change to 3), but the situation becomes Arm: 1<2 , i.e., the Arm moved by
jog keys is now number 1. The first number displayed is always the Arm moved
by jog keys. SHIFT+ARM cannot be pressed.
HS-0-C4E-USO_52.fm
00/0708 6-9
Use of the Teach Pendant
– JPAD
The JPAD group enables jog referred to the USER POSITION. More precisely:
• The two cursor keys on the left are for moves along axis z - upward and
downward moves.
• The four keys on the right are for moves along axis x (up arrow and down
arrow) and along axis y (LH arrow and RH arrow) respectively.
Movements along axis x move away and approach in relation to the
user; moves along axis y are moves to the left and to the right, always
in relation to the user.
WARNING - For configuration with integrated Gantry with 3 linear axes, the JPAD
is managed differently to normal operation.
• The two arrow keys on the left refer to movements of the gantry auxiliary
axis configured as Z
• The four keys on the right refer respectively to movements of gantry
auxiliary axis configured as X (up arrow and down arrow) and to
movements of auxiliary axis configured as Y (LH arrow and RH arrow).
The position of the user does NOT have influence on the JPAD functioning, and
therefore the controls in Advanced sub-page of Motion Page DO NOT effect
handling with JPAD.
Gantry movement with JPAD is the same as with JOG keys AUX A - AUX B.
The position of the user can be configured on sub-page Advanced of the Motion Page.
It is to be borne in mind that any move executed using JPAD is always according
to user reference ($UFRAME), except for movement of Gantry with 3 linear axes,
which is always a joint move.
TP4i WiTP
– RESET (white)
press to reset the ALARM state; if the cause that generated the alarm concerns
safety devices (e.g.: TP mushroom button, external mushroom button, automatic
line barrier, etc.), the alarm is not deleted until the cause has been removed.
– START (green)
in PROGR mode it is used to execute movements (from editing/debug environment
or Execute command) for all the time it is kept pressed. In LOCAL status it starts
the motion program that is in READY state, waiting for this key.
HS-0-C4E-USO_52.fm
6-10 00/0708
Use of the Teach Pendant
– HOLD (yellow)
pressing this key stops all HOLDable programs and the motion for all Arms. The
next time it is pressed the HOLD status is removed.
TP4i WiTP
The alphanumeric keypad operates in the same way as the most widely used standard
keypads for mobile phones. Furthermore:
– The bottom right key (on the right of '0' key) is used to set the keypad mode. Each
time this key is pressed the mode changes, in sequence, between
• alphabetic low case (‘abc’)
• alphabetic high case (‘ABC’)
• numerical (‘123’)
• fixed number ('123*'); contextual information: if the context requires it, the
alphanumeric keypad is set in numeric mode and it is not possible to pass
over to the another mode.
The current mode is displayed on the Status bar.
– Special characters are activated by pressing '1' key; the only special characters
that can be directly entered are '-' symbol (bottom left key) and '.' symbol (bottom
right key). When in “high case alphabet” or “low case alphabet” mode, pressing
key “1” activates a virtual keyboard for facilitated entry of characters and symbols.
For WiTP, key '1' (see key highlighted in red in the figure) shows a serigraph that
informs the user that the special characters table can be activated.
Fig. 6.6 is an example of a screen page for the use of the special characters in the
IDE Page environment.
HS-0-C4E-USO_52.fm
00/0708 6-11
Use of the Teach Pendant
Window 1
Window 2
Window 3
To choose the symbol to be entered, move inside the group with the cursor keys
(see Navigation keys) and confirm the choice by pressing ENTER.
HS-0-C4E-USO_52.fm
6-12 00/0708
Use of the Teach Pendant
To enter the ‘space’ character, select any empty soft key (i.e. that does not
correspond to a symbol): the last 6 in Window 1, the last 4 in both Window 2 and
in Window 3.
To pass from one window to the next or to the previous one, use the Page Up and
Page Down keys (see Navigation keys).
To exit, act in one of the following ways:
– press ESC
– press key ‘1’ again.
However, if the WiTP wireless is switched on out of the docking station, after
switching on, it is necessary to
– place it in its housing (docking station)
– run the Pairing procedure between WiTP wireless Teach Pendant and C4G
Control Unit procedure.
HS-0-C4E-USO_52.fm
00/0708 6-13
Use of the Teach Pendant
WARNING - For TP wireless, see par. 6.4.4 Restart with WiTP wireless on
page 6-23. In this case, at restart the user has to carry out the emergency
unpairing procedure (see par. 6.4.3 Emergency Unpairing on page 6-22), followed
by the pairing procedure of the teach pendant with the Control Unit (see par. 6.4.1
Pairing procedure between WiTP wireless Teach Pendant and C4G Control Unit
on page 6-17).
TP4i WiTP
Pushbuttons
The pushbuttons are divided into:
– Front pushbuttons
See Fig. 6.8 that shows both versions: TP4i and WiTP.
On the front face of the Teach Pendant, at the top, there is the Stop pushbutton;
the operating modes are as follows:
• activate by pressing
• release by screwing (clockwise)
– Enabling Device
On the rear of the Teach Pendant there are two pushbuttons for the Enabling
Device.
See Fig. 6.9.
HS-0-C4E-USO_52.fm
6-14 00/0708
Use of the Teach Pendant
The right pushbutton and the left pushbutton operate in exactly the same way. The
purpose is to have an Enabling Device pushbutton for both right-hand and
left-hand operators.
Each of these is a three-position safety device that is to be kept pressed in the
intermediate position, to allow movement in automatic or in manual mode, when
the system is in Programming mode. When this pushbutton is pressed the motors
are activated automatically (DRIVE ON)
The type of operation for each of them is as follows:
• released - Drive OFF
• intermediate pressure - Drive ON
• fully pressed - Drive OFF (anti-panic)
• pressing both these pushbuttons at the same time is interpreted as an error
by the system, therefore only one at a time is to be used.
A schematic diagram of the functioning is shown in Fig. 6.10.
1. intermediate pressure
2. pressed fully down
3. pressure
4. pressure
5. release
6. release
HS-0-C4E-USO_52.fm
00/0708 6-15
Use of the Teach Pendant
LEDs
There are 4 LEDs on the Teach Pendant, located on the upper part of the device.
See Fig. 6.8.
Their meaning (from left to right) is the following:
– Yellow LED - reserved
– Yellow LED - lit means that no NON-HOLDABLE program is active
– Green LED - when on it means Drive ON. During the DRIVES ON procedure, this
LED flashes. The light becomes fixed when the procedure has finished
– Flashing Red LED - Any type of alarm (except Warning type indications).
When the charge drops below 8%, the system asks the user to place the WiTP in
the docking station, otherwise it is no longer possible to use it.
To be used, the WiTP wireless pendant must be ON (see par. 6.2.1.5 Keys to switch on
the WiTP wireless on page 6-13) and PAIRED with the Control Unit.
The Control Unit can be changed by means of a procedure for Unpairing between WiTP
Teach Pendant and Control Unit from the current Control Unit , followed by a further
procedure for Pairing procedure between WiTP wireless Teach Pendant and C4G
Control Unit to the new Control Unit.
HS-0-C4E-USO_52.fm
6-16 00/0708
Use of the Teach Pendant
For safety reasons, the WiTP wireless software carries out severe checks on the
pairing and requires certain rules to be followed by the user when using it:
– the WiTP teach pendant can be paired to ONLY ONE Control Unit at a time;
– if there are several Control Units with only one WiTP wireless, it is necessary
to first unpair the C4G Controller in use, then pair the pendant to another;
– when the WiTP wireless is paired to a Controller, it is not possible to place it
in a housing (docking station) that is not the docking station of that
Controller: if this happens, the pendant is automatically unpaired and the
C4G to which it was paired goes into emergency state. This situation can be
reset by a procedure of Emergency Unpairing, of the Control Unit to which
the WiTP wireless was paired.
– However, when the system is working in AUTO mode, the Teach Pendant can
be unpaired, if, for example, it is wished to use it on another Controller.
– Use the WiTP wireless supplied with the Control Un it, or in any case
a teach pendant that is not paired with another C4G Control Unit.
– The Pairing procedure can also be carried out with the system in
automatic mode.
– Always carry out the complete procedure. Do not leave a WiTP
wireless without completing the pairing procedure.
– For further information regarding this procedure, see also the C4G
Control Unit - Transport and Installation manual- par.6.2.
a. Check that the antenna (indicated with letter A in Fig. 6.11) of the docking station
is correctly screwed in its seat
HS-0-C4E-USO_52.fm
00/0708 6-17
Use of the Teach Pendant
b. Place the WiTP wireless in its housing (docking station) on the Control Unit
c. Make sure that the STOP pushbutton (B) is released, rotating it clockwise
f. The teach pendant will show the screen page of Fig. 6.12
g. Press the “Pairing Request” pushbutton (indicated with letter D in Fig. 6.13) pin the
lower section of the housing
HS-0-C4E-USO_52.fm
6-18 00/0708
Use of the Teach Pendant
h. Wait for the messages and instructions on the WiTP wireless display and make the
tests indicated; the message “Pairing in progress” appears and the LEDs are
updated at the end of each connection (WiFi, System, etc.) that has been executed
successfully (see Fig. 6.14).
i. The procedure asks the user to press the Teach Pendant STOP pushbutton, then
to reset it by rotating it clockwise (see Fig. 6.15)
If the user has allowed the timeout to expire before pressing the STOP
pushbutton, or releasing it, the pairing procedure is interrupted.
To execute it again, start from step a.
HS-0-C4E-USO_52.fm
00/0708 6-19
Use of the Teach Pendant
j. If the result is correct, a message is shown informing that the connection has taken
place. At the end of the data acquisition by the Controller, the pairing page closes
automatically. The pairing has been completed.
k. The green LED alight on the docking station (indicated with the letter E in Fig. 6.17)
indicates that pairing has taken place.
HS-0-C4E-USO_52.fm
6-20 00/0708
Use of the Teach Pendant
For further details regarding the ID, see C4G Control Unit - Transport and installation
manual, chap. Activation procedure, par. Control Unit, Robot and teach pendant
pairing check.
NOTE
– Use the WiTP wireless currently paired with the Control Unit.
– The UnPairing procedure can also be carried out with the system in
automatic mode.
b. Press the “Unpairing request” pushbutton (indicated with the letter D in Fig. 6.13),
in the lower section of the docking station
c. A screen page is shown that updates the user on the current state of the unpairing
procedure (see Fig. 6.18). Wait until the procedure is completed
HS-0-C4E-USO_52.fm
00/0708 6-21
Use of the Teach Pendant
d. The LEDs are updated at the end of every disconnection (WiFi, System, etc.) that
has been executed successfully (see Fig. 6.18)
e. When the pairing procedure page is shown again (Fig. 6.12), the unpairing has
been completed
g. If it is NOT wished to use the teach pendant on another Control Unit, it should be
shut down using softkey Shutdown TP (F3) (Fig. 6.12).
WARNING! Do not leave the WiTP wireless near any other Control Unit: the STOP
pushbutton is not active, but could confuse an operator who does not know about
this limitation.
This procedure is not necessary if the distance of the WiTP wireless is only
temporary: when it returns into the range of action, the connection with the
Control Unit reactivates automatically.
Obviously it is not necessary to run the emergency unpairing procedure when the
green LED is OFF: this means there is no pairing.
The Control Unit has to remain on, during the entire procedure.
HS-0-C4E-USO_52.fm
6-22 00/0708
Use of the Teach Pendant
b. Set the system in programming mode (status selector switch set on T1)
d. Momentarily remove connector X111 (indicated with the letter A in Fig. 6.19) from
board FIA3 (located on the left wall inside the cabinet).
e. Press the pairing pushbutton (indicated with the letter D in Fig. 6.13)
f. Wait for the procedure to finish, indicated by the green LED switching off (indicated
with the letter E in Fig. 6.17) on the docking station
g. Refit connector X111 (indicated with the letter A in Fig. 6.19) on board FIA3.
The following information is valid as from version 3.12 of the System Software
and version 2.12 of the Teach Pendant Software.
HS-0-C4E-USO_52.fm
00/0708 6-23
Use of the Teach Pendant
(*) When the charge drops below 8%, the system asks the user to place the WiTP
in the docking station, otherwise it is no longer possible to use it.
6.4.5 Practical hints for the use of the WiTP wireless Teach
Pendant
– To use the WiTP teach pendant paired to the C4G Control Unit, check the Control
Unit ID. displayed on the teach pendant Home Page.
– Do not move with the WiTP out of the range of action, to avoid interrupting the
communication and the consequent emergency stop of the cell, or system error. In
any case, communication is automatically resumed when the teach pendant
returns inside the range of action.
– When in use, check the battery charge that remains (eighth field of the Status bar);
if the indicator is red, recharge, placing the teach pendant in its docking station. To
have 6 hours operation autonomy, it has to be left to recharge in its housing for at
least 2 hours, with the Control Unit on.
– when not in use, it is strongly recommended to leave the Teach Pendant in the
docking station of the Controller it is paired with.
– If it is necessary to replace it or use it for a different Control Unit, FIRST OF ALL
carry out the Unpairing between WiTP Teach Pendant and Control Unit.
– If the WiTP is placed on the docking station of another C4G Control Unit, or the
battery is allowed to run down completely, the pairing is automatically removed. To
recover it, after removing the cause, it is necessary to run the procedure for
Emergency Unpairing
HS-0-C4E-USO_52.fm
6-24 00/0708
Use of the Teach Pendant
– If communication between Control Unit and WiTP fails, and the robot has the
motors running, the system generates an alarm
28936 – 10 Emergency stop: WiTP disconnected
and the motors shut down.
6.5 Display
Fig. 6.20 - TP4i Teach Pendant Display
The display of TP4i Teach Pendant is a graphic 6.4" TFT colour display; resolution
640x480 pixel.
After a few minutes that it is not used, the display switches off; to switch it on again just
press any key.
HS-0-C4E-USO_52.fm
00/0708 6-25
Use of the Teach Pendant
The status bar gives information about the system state; there are 7 alphanumeric fields
on a single line that have the following meanings:
– The First Field indicates the system state:
– The Second Field gives further information about the system state, Holdable
programs and movement while programming.
• With the state selector switch in AUTO, REMOTE and T2 (optional) positions,
that is, in the Automatic positions, its meaning is as follows:
• With the state selector on T1, that is in programming state, the meaning is as
follows:
• The meaning of HOLD and ALARM does not depend on the state of the
selector switch:
– The Third Field indicates the current value of the override percentage; if this field
displays the character 'I' (e.g.: '80%(I)'), it means that the system is in incremental
movement mode.
– The Fourth Field displays the number of the current Arm. In a Multiarm system
with synchronised motion enabled, this field contains first the number of the main
Arm, and then that of the SyncArm; example:
A:2<1 means that Arm 2 is the main Arm and Arm 1 is the synchronised Arm).
For information regarding modification of the Arm indexes (main and synchronised)
see par. – Motion keys on page 6-8 (ARM key for WiTP) and par. ARM (R1) on
page 6-31 (for TP4i).
HS-0-C4E-USO_52.fm
6-26 00/0708
Use of the Teach Pendant
If there are Auxiliary axes, these refer to the first (or only) Arm indicated in the
field; the sub-field marked with J indicates which auxiliary axis is assigned for jog
movement, to key Aux-A and to key Aux-B respectively. If no axis is associated, a
dash ('-') is displayed.
In the example of the following figure (field highlighted in red) the main Arm is Arm
1 ('A:1'); keys Aux-A and Aux-B are not associated to any axis.
With a prolonged pressing of the ARM key (for WiTP) or softkey ARM-R1 (for
TP4i), the index is shown in brackets. When the final choice is made, the brackets
disappear.
– The Fifth Field displays the current management mode of the coordinates
• TPM Jog mode:
• Base
• Tool
• Joint
• Uframe
• WRIST mode:
• Wr-Base
• Wr-Tool
• Wr-Uframe
– The Sixth Field contains three sub-fields with the following information:
• arm status:
• ‘-’ arm correctly configured and ready for moving
• ‘turn’ arm requires the turn-set operation
• ‘no cal’ arm not calibrated
• ‘simu’ simulated arm
• ‘dis’ arm disabled
• coop’ arm-arm cooperation (‘An, Am’) or axis-arm (‘Ji, An’)
• state of both Enabling Device and Drives
• 'E-' Enabling device not pressed
• 'ED' with green background - Enabling Device pressed
• 'ED' with red background - Error (e.g. both Enabling Devices pressed)
• ‘ON’ - indicates the state of the drives (Drive ON)
• presence of Latched alarms:
• 'A' indicates that a latched alarm is present
The background of this field may be:
• green - arm properly configured and ready to move, and Enabling Device ok
• yellow - Enabling Device ok and arm simulated or disabled
• red - error on Enabling device or arm not calibrated or requires turn set
operation
– The Seventh Field contains two sub-fields:
• Alphanumeric keypad operating mode:
• abc -->low case alphabetical
• ABC --> high case alphabetical
• 123 --> numerical
• 123* --> fixed number; this is a contextual information: if the context
requires it, the alphanumeric keypad is set in numeric mode and it is not
possible to change to other modes.
• State of SHIFT key:
HS-0-C4E-USO_52.fm
00/0708 6-27
Use of the Teach Pendant
When the charge drops below 8%, the system asks the user to place the WiTP in
the docking station, otherwise it is no longer possible to use it.
HS-0-C4E-USO_52.fm
6-28 00/0708
Use of the Teach Pendant
– grey: the wording is black. This is a Latched message and requires an explicit
consent from the user. To do so, use the "down arrow" from Alarm Page, sub-page
Latched, to select the message, if necessary, remove the cause of the alarm, then
press Confirm (F1).
For any further details regarding the messages management, see the related
par. 6.9 Alarm Page on page 6-59
It is a group of softkeys that allows access to the User Interface Pages (the figures on the left
show the pre-defined softkey icons).The corresponding keys are indicated with the names
L1..L6, in sequence.
General criteria for use of the Left Menu:
– if the corresponding User Page is not yet active, when the key is pressed it will be
immediately displayed;
– if the corresponding User page is already active, when the key is pressed it will close, and
the Home page will be shown on the display.
The softkey corresponding to the active page is highlighted by a blue background. If there is no
softkey highlighted, this means that the page currently displayed is the Home Page.
If the softkey background is yellow, this means that a command associated to this softkey is
being run. It will remain yellow until the operation has been completed.
For information regarding navigation in the User pages, see par. 6.6 User Interface Pages on
page 6-35.
HS-0-C4E-USO_52.fm
00/0708 6-29
Use of the Teach Pendant
If the system is Multiarm and the Teach Pendant is TP4i, one of the possible
configurations of the Right Menu (accessible by pressing the right MORE key) is shown
in the next figure:
HS-0-C4E-USO_52.fm
6-30 00/0708
Use of the Teach Pendant
ARM (R1)
to change the current Arm.
It is equivalent to entering in the Basic sub-page of the Motion Page and modify the Arm field.
In the same way as occurs for the ARM key of the WiTP (see par. – Motion keys on page 6-5), the
functioning of this softkey foresees:
– In DRIVE-OFF - pressing ARM (R1) increments in circular mode the index of the main Arm without
changing the quantity of Arms in the Status bar (if there is only one Arm, one remains; if there are
two Arms, two remain). The new value is the first valid Arm index after an increment.
Pressing SHIFT+ARM (R1) increases in circular mode the index of the synchronised Arm. It is the
only combination of keys that can alter the quantity of Arms in the Status bar. It always passes to
two Arms when there is only one Arm in the Status bar. It returns to only one Arm when the index
of the second Arm becomes equal to the first Arm.
– In DRIVE-ON - Pressing ARM (R1) has two effects:
- if the DRIVE-ON has taken place with only 1 Arm selected ($TP_SYNC_ARM[2]=0), the Arm
index is incremented, as in DRIVE-OFF;
- if the DRIVE-ON has taken place with 2 Arms selected, it inverts the selection of which Arm will
be moved by the jog keys. For example: if there are 3 Arms and the current situation is Arm: 2<1,
where Arm 2 is that which is moved by the jog keys, pressing ARM, the index is NOT increased (it
does NOT become 3), but the situation becomes Arm: 1<2, that is to say, the Arm that is moved
by the jog keys is now number 1. The first number displayed is always that of the Arm moved by
the jog keys.
SHIFT+ARM (R1) cannot be pressed.
A LONG PRESS on ARM key (R1) cyclically displays the possible indexes of the
main Arm: when the required index is reached, releasing the key makes this choice definite. While
the key is pressed, the index is displayed in brackets. When the final choice is made, the brackets disappear.
For the use of this key for SYNCMOVE, see the NOTES TO RECORD POINTS IN MOVE..SYNCMOVE on the
IDE Page.
To view all the soft keys available in the Left or the Right Menu it is necessary to
use:
– SHIFT+MORE (left keys for the Left Menu, right keys for the Right Menu), to
view the PREVIOUS soft keys
– MORE (left key for the Left Menu, right key for the Right Menu) to view the
NEXT soft keys.
This menu is a group of 6 function keys, F1..F6, contextual to the selected item (current
state and page, selected field, etc.). The shown functions correspond to the possible
actions on the selected item.
Usually when one of the keys F1..F6 is pressed the associated function is activated
directly. If the softkey background is yellow, this means that the associated command is
in progress. It remains yellow until the execution has been completed.
However there are some softkeys that are associated to a pop-up sub-menu: this is
indicated by a small triangle on the top left corner of the icon. For example, this is the
HS-0-C4E-USO_52.fm
00/0708 6-31
Use of the Teach Pendant
For a detailed description of the available pages and for any information related
to their use, as well as the general internal navigation rules, see User Interface
Pages section.
HS-0-C4E-USO_52.fm
6-32 00/0708
Use of the Teach Pendant
is finished.
While running, the ‘Abort’ Softkey is available to be able to permanently interrupt the
command.
In most cases the execution is so fast that the blue window isn't even seen by the user.
According to the execution status of the command, the following situations may occur:
– the command has been run successfully.
• the system does not display any message of correct completion because this
status is already obvious;
• the system displays a message (blue background) indicating that the
command has been completed; the ‘Close’ Softkey (F6) is available to exit
from the command;
• the system displays a message (yellow background - see Fig. 6.28) indicating
the completion of the command and the number of operations that have been
skipped (with the ‘Continue’ Softkey (F3)); the Close softkey (F6) is available
to exit from the command.
HS-0-C4E-USO_52.fm
00/0708 6-33
Use of the Teach Pendant
– It has not been possible to execute the command - the system displays a message
with a yellow background, to explain to the user the problems found. The following
softkeys are available:
• Login (F1) - if the error message is “Insufficient Rights”, this means that the
Login has not yet been performed. The user has to press the 'Login' Softkey
(F1) to do so. After the login the system will re-execute the command that was
previously requested.
HS-0-C4E-USO_52.fm
6-34 00/0708
Use of the Teach Pendant
• Retry (F4) - if the system stops the execution of the command for any reason,
the user can remove the problem then press this softkey (see Fig. 6.30): the
command will be run again.
• Close (F6) - exits from the current command (see Fig. 6.30). In the case of a
sequence of operations, it does not run the commands that follow and quits.
HS-0-C4E-USO_52.fm
00/0708 6-35
Use of the Teach Pendant
Note that during the description of the User pages, the codes that are shown in
brackets in the titles of the commands that can be activated from the Central
Menu correspond to the first parameter of the SYS_CALL that runs this command,
or to a similar command that can be activated from TP-INT.
Examples:
CCRC, shown in the title of the Complete (CCRC) command.
or CAC/L shown in the title of the Learn (CAC/L) command.
6.6.1 General rules to navigate within the user interface and the
field change
The navigation within the user interface is made easier by the following keys:
– Cursor keys
– Page keys
– ENTER key
– ESC key
On the Teach Pendant, the following keys are so arranged as to be operated with the
thumb of both hands: the cursor keys are controlled with the left hand, while ENTER and
ESC are operated with the right hand. For further details, see par. – Navigation keys on
page 6-4.
Within the Pages, two operating modes are available:
– Navigation Mode
– Field Editing Mode
Changing over from one mode to another is very simple (with the ENTER or ESC key).
When windows have one field only available for activation by the user, the automatically
activated mode is Editing.
For further details about both Modes, carefully read the paragraphs Navigation Mode
and Field Editing Mode.
To select any item in the pop-up menus, please refer to the Bottom Menu
paragraph.
HS-0-C4E-USO_52.fm
6-36 00/0708
Use of the Teach Pendant
Note that:
– SHIFT+ left arrow (moves the cursor to the first cell on the left)
– SHIFT+ right arrow (moves the cursor to the last cell on the right)
HS-0-C4E-USO_52.fm
00/0708 6-37
Use of the Teach Pendant
The value may be directly entered through the Alphanumeric keypad. The field
value may be optionally incremented or decrements by means of the following
keys:
• Up arrow (increments the value by one step, depending on the type of value
to be modified
• Down arrow (decrements the value by one step, depending on the type of
value to be modified)
• Page Up (increments by one step - not that the incrementing step depends on
the context)
• Page Down (decrements by one step - not that the incrementing step
depends on the context)
• SHIFT+Page Up (enters the maximum permissible value)
• SHIFT+Page Down (enters the minimum permissible value)
The management of this field is circular: if the maximum value is exceeded it
returns to minimum, and vice-versa.
– Textbox
It is possible to type in a string through the Alphanumeric keypad; the input mode
is automatically set to TEXT, therefore the Alphanumeric keypad may be used as
when an SMS message is written on a normal mobile phone.
Note that:
– SHIFT+ left arrow (moves the cursor before the first character on the left)
– SHIFT+ right arrow (moves the cursor after the last character on the right)
– Combobox
HS-0-C4E-USO_52.fm
6-38 00/0708
Use of the Teach Pendant
choice and confirm with ENTER; if it is preferred not to enter the choice by typing
it, press the “down” arrow, the list will be opened and the item can be chosen from
it.
When a list opens, it can be scrolled using the cursor keys (next item or previous item),
or the Page keys (for quicker scrolling), or SHIFT+Page (first and last item of the list).
After choosing, confirm the choice by pressing ENTER
– Checkbox
This type of field is not associated with a specific editing mode (in fact, the mode
has not to be changed and the navigation mode is kept on); to change over its
value, simply move with the cursor keys and acknowledge by pressing the ENTER
key. Of course, in a set of checkbox, it is possible to select more than one box at a
time.
– Checkgroup
This type of field is equal to the previous one (Checkbox); the only difference is that
here only one push-button at a time is activated: when the selection of a
push-button is acknowledged, the push-button which was previously active is
automatically de-selected. The cursor up and down keys and the subsequent
confirmation through the ENTER key move the selection dot to the wanted item.
– Button
Even if, as a rule, the softkeys of the Bottom Menu, are used, in some cases
Push-buttons are entered to the Page. To activate the corresponding function,
simply press the ENTER key when the focus rectangle results to be placed on that
Push-button.
– Label
It may be modified only through the softkeys of the Bottom Menu, when the focus
is on that field. The background is WHITE when at least one command is
associated with it in the Bottom Menu; if the background is GREY, it means that no
command is associated with it in the Bottom Menu. When the background is GREY
the field cannot be changed.
– List
There are 3 different ways to view the lists (as illustrated in the examples that
HS-0-C4E-USO_52.fm
00/0708 6-39
Use of the Teach Pendant
follow):
• small icons - displays the information with a small icon
• large icons - displays the information with a large icon
• details - besides the name and the icon of each item in the list, further
information is given (for example the size of the files and the date of the last
change are listed).
To select the required element, move with the cursor keys. For a multiple selection
(where allowed) use SHIFT+ENTER.
– Cell of a table
When allowed, the contents can be changed by pressing ENTER then using the
editing function of the box (see Fig. 6.31).
Note that, if the cell can be edited in text mode, after pressing ENTER it is possible
to use:
– SHIFT+ left arrow (moves the cursor before the first character on the left, in
the cell)
– SHIFT+ right arrow (moves the cursor after the last character on the right, in
the cell).
The following description of the User Pages concerns the various types of field:
hypertext connections allow returning to this paragraph for further details about
how to edit the field in question.
HS-0-C4E-USO_52.fm
6-40 00/0708
Use of the Teach Pendant
If the user does not wish to respond to the system request, press the ESC key.
HS-0-C4E-USO_52.fm
00/0708 6-41
Use of the Teach Pendant
HS-0-C4E-USO_52.fm
6-42 00/0708
TP4i - Home page
When no User Page is active, a default screen is displayed by the Teach Pendant; this
screen is called Home Page. It is associated with no key of the Left Menu, however it
turns visible whenever a User Page is closed.
This Page displays some information of general nature as:
– model of the robot corresponding to the current arm
– address of the Control Unit in the local network
– Control Unit ID
– current date and time
– Teach Pendant software version
– Control Unit software version
The available functions in the Bottom Menu are:
– Select language
– Login (SL) and Logout (SL/L)
– Restart
A detailed description of each function is given below.
HS-0-C4E-USO_53.fm
6-43 00/0708
TP4i - Home page
The green background indicates the language that is about to be chosen. Once the
choice has been made using the up and down arrows, confirm with ENTER, or type ESC
to exit, cancelling the operation.
The difference between British English and American English is in the format
used for the date and the time.
6.7.2.1 Login
Brief pressure on softkey F2, allows access of authorised persons to the system; the
system asks the user name and password, necessary for the login (see Fig. 6.34
- Login).
HS-0-C4E-USO_53.fm
00/0708 6-44
TP4i - Home page
For further details concerning the LOGIN function, please refer to the
Chap. Access to the Control (LOGIN/LOGOUT).
For settings by the user, see Login on Setup page.
6.7.2.2 Logout
Prolonged pressure on softkey F2, activates the Logout procedure.
As from system software version 3.20, there is also a special Automatic Logout
function available (see par. 5.3.1 Automatic Timed Logout on page 5-5).
6.7.3 Restart
A pop-up submenu opens, as shown in Fig. 6.36 - Restart.
HS-0-C4E-USO_53.fm
6-45 00/0708
TP4i - Home page
Confirm with 'Ok' or exit with 'Cancel'. The acknowledgement of the command starts a
count down which (see Fig. 6.38 - Restart - count down) in case of Restart, ends when
both Controller and Teach Pendant restart. In case of Shutdown, once the reverse
counting is complete, a message is displayed which informs the user of the possibility
to power down the system.
For further information concerning the Restart function, please refer to the
Chap. System Commands.
HS-0-C4E-USO_53.fm
00/0708 6-46
TP4i - Motion Page
6.8.1 Basic
Fig. 6.39 - Basic sub-page
6.8.1.1 Arm
Indicates which is the current arm and allows it to be changed (in the case of multiarm
system).
If the system is NOT multiarm, this field is read only.
If the system includes the option related to synchronised moves among several arms,
the page displayed is that shown in Fig. 6.40. Therefore the user can specify which is
the arm synchronised (that is displayed in the SyncArm field) with the current arm
(displayed in the Arm field).
If the symbol ‘-’ is specified in the SyncArm field, this means that there is no
synchronised arm.
HS-0-C4E-USO_54.fm
6-47 01/0208
TP4i - Motion Page
6.8.1.2 COORD
This field indicates the current coordinates system according to which the arm moves
will be made, in manual movement and in programming. The user can choose a
coordinates system that is different to the current one, selecting from the following (as
shown in Fig. 6.41):
– for TPM JOG mode:
• JOINT
• BASE
• TOOL
• UFRAME
– for the WRIST mode (movement carried out to the robot wrist):
• WR-BASE
• WR-TOOL
• WR-UFRAME
To make the choice, the user has to open the pop-up menu, select the required item and
press ENTER.
HS-0-C4E-USO_54.fm
01/0208 6-48
TP4i - Motion Page
When choosing Uframe, or Tool or Base, for each of these reference systems the
following information is displayed (in read only fields):
– Cartesian coordinates X, Y and Z, expressed in millimetres
– orienting angles A, E and R, expressed in degrees
If the axis is NOT calibrated, or has lost the number of revolutions, these values
are NOT available (and the '--' string is displayed).
HS-0-C4E-USO_54.fm
6-49 01/0208
TP4i - Motion Page
The four function keys of the central menu are just short-cuts to enter cooperative
motion enable/disable commands (between Arm and Auxiliary Axes, or between
two Arms respectively), without the need to enter into one of the two sections and
select the buttons (highlighted in green in Fig. 6.45).
In this section (highlighted by the red frame) the user can handle the cooperative motion
between a worker (called Arm) and a positioner (called Auxiliary Axes Unit).
In detail it is possible to:
HS-0-C4E-USO_54.fm
01/0208 6-50
TP4i - Motion Page
– enable or disable the cooperative motion (ON and OFF buttons or function keys
Aux ON (F1) and Aux OFF (F2) highlighted in blue),
– specify which is the auxiliary axis (Aux Axis field),
For positioners with several axes, it is necessary to specify one of the axes of the
group (for example, if the positioner axes are 7 and 8, in the Aux Axes field either
7 or 8 must be specified).
In this section (highlighted by the red frame) the user can manage combined motion
between two Arms.
– enable or disable the cooperative motion (ON and OFF buttons or function keys
Arm ON (F1) and Arm OFF (F2) highlighted in blue),
– specify which are the two cooperative Arms (Arm fields),
HS-0-C4E-USO_54.fm
6-51 01/0208
TP4i - Motion Page
This section is read only and displays information about the state of active cooperations,
for each existing Arm.
For example, if the information is
AUX_COOP J7,A1
it means that Arm 1 cooperates with auxiliary axis J7;
if instead it is
ARM_COOP A1,A2
it means that Arm 1 cooperates with Arm 2;
For further information see par. 5.12 Integrated Motion in the Motion Programming
Manual.
In this section the user can set the Jog keys for the Axes that have an index higher than
6, regardless of whether they are Auxiliary Axes or are part of an Arm.
In this section the user can change the settings of the Arm and any SyncArm, in the
same way as on sub-page Basic (see par. 6.8.1.1 Arm on page 6-47).
HS-0-C4E-USO_54.fm
01/0208 6-52
TP4i - Motion Page
6.8.2.6 ARM_LINKED
In this section the user can activate or deactivate the pairs of Arms mechanically linked
(Integrated Arms). To activate a certain chain of Arms, it is necessary to select the
corresponding Checkbox. Conversely, it is necessary to de-select it if it is wished to
deactivate the chain.
To do so, move the focus on the checkbox field and confirm with ENTER. Softkey F5 is
simply a "short cut" to select/deselect the said checkbox more quickly.
6.8.3 Advanced
Fig. 6.47 - Advanced sub-page
HS-0-C4E-USO_54.fm
6-53 01/0208
TP4i - Motion Page
6.8.3.2 J-Pad
This section is divided into two parts, as can be seen in the yellow section of Fig. 6.47:
– Linear/Angular
These fields indicate whether, using JPAD for TP4i or JPAD for WiTP, the robot
makes a linear move (Linear) or a rotation (Angular).
– Angle
For further information see also the description of the keypad of JPAD for TP4i or
JPAD for WiTP.
This field indicates the user position in relation to the robot; such position is pointed
out by an icon on the Teach Pendant, which moves to the requested angular
position, around the tale robot. When focusing on Angle, confirmed by ENTER, the
Bottom Menu displays some softkeys, which help specifying the new User's
position. However, the value may be modified in the Angle field directly.
The Status sub-page relates to the state of the arm (red) and the axes (yellow).
For the state of the arm (red) the foreseen values are:
– Need for Unlock, Not in LOCK, Need to Resume
HS-0-C4E-USO_54.fm
01/0208 6-54
TP4i - Motion Page
– Simulated, Unsimulated
– Mov. enabled, Mov. disabled
– DRIVE ON, DRIVE OFF - state of drives
– Stroke end enabled, Stroke end disabled.
– NOT in cooperative - Working or Positioner (plus the indication of the arm with
which there is to be the cooperation). This is only present if the system contains
cooperative arms
– On trajectory, NOT on trajectory
– Absolute Accuracy enabled/disabled - the machine is/is NOT kinetically offset
When navigating on these fields, in the Bottom Menu there are softkeys available, that
correspond to the state selected, and allow it to be changed. For example:
For the status of the axes (yellow in Fig. 6.49), the values provided are:
– axis calibrated
– axis NOT calibrated
– axis NOT in Turn-set
– axis NOT connected, for example in the case of electric gripper change
– axis NOT Present
Also for the state of the axes, moving the focus on the different fields, in the Bottom
Menu softkeys are shown that correspond to the state selected, and that allow changes
to be made.
For both the state of the arm and of the axes, under normal operating conditions, all the
strings of the different fields are BLACK; otherwise in the case of an anomalous arm
condition or if the calibration or Turn-set data is missing, the colour is RED.
HS-0-C4E-USO_54.fm
6-55 01/0208
TP4i - Motion Page
6.8.5 Override
Fig. 6.51 - Override sub-page
The Override sub-page contains the overall pre-defined values (red) and single joints
(yellow) relating to the current arm. All the information can be changed by the user.
For further details concerning the above mentioned preset variables, please look at the
Manual PDL2 Programming Language, chapter PREDEFINED VARIABLES.
6.8.6 Laser
The Laser sub-page (see Fig. 6.52) shows a graphic and numeric display of the
following data:
– SMART LASER optical bank axes position in relation to their stroke-end (joint 3
(highlighted in red), joints 4 and 5 (highlighted in yellow) )
– position of arm 1
– active focal ( Power / Pointer ),
HS-0-C4E-USO_54.fm
01/0208 6-56
TP4i - Motion Page
– nominal position that joint 3 should have to reach the current point, with focal
currently inactive
– indication of 'cam not enabled' (see Fig. 6.54) or 'system not calibrated' states.
Moreover, in the central Menu, the following commands are available:
– focal change-over (commands Power (F1) and Pointer (F2)) (see example
modified from Pointer to Power, using the Power key (F1), Fig. 6.53 )
If the system is not calibrated or the cam is not enabled (see Fig. 6.54) the displays and
commands for joint 3 and the active focal are inhibited (values, graph displays, focus
change pushbuttons); this informs the user that the SmartLaser current status is NOT
adjusted for operation.
If the system is in AUTO or REMOTE mode, the only possible focal is the Power: In this
case the active focal change pushbuttons are inhibited. Also the Calibration commands
(F3) and Linked arm modification commands (F5) are not available, as they are
potentially hazardous.
HS-0-C4E-USO_54.fm
6-57 01/0208
TP4i - Motion Page
HS-0-C4E-USO_54.fm
01/0208 6-58
Tp4i - Alarm Page
6.9.1 Alarms
Fig. 6.55 - Alarms sub-page
This sub-page displays the active alarms, i.e. that require confirmation from the user,
and gives the following information:
– number of the arm order
– error code and severity
– message text
– date and time
The alarm code, severity and message text are displayed on the Messages bar, as long
as the alarm is active. In case the message text is too long, it runs lengthwise in the
Messages bar.
To confirm an alarm (ULLA) it has to be selected (see Fig. 6.56): press the down arrow
to move the focus on the list of alarms, then choose the alarm with the cursor keys. At
this point softkeys are available in the Bottom Menu to be able to perform some
operations (e.g.: Confirm, Skip, etc.). The presence of one or several softkeys, or not,
depends on the selected alarm type.
In particular, when the EXCL softkey is enabled, the pressure on this key enables the
exclusion, for a limited time interval, of the effect of alarms such as those connected to
an electrical limit switch. For further details, look ad the description of the softkey Excl,
belonging to the Virtual Keyboard.
HS-0-C4E-USO_55.fm
00/0708 6-59
Tp4i - Alarm Page
The errors that are stored in the errors LOG file are only those that change the
system state
Press on the arrow down key and confirm with ENTER to scroll throughout the entire list
of errors (see Fig. 6.57).
HS-0-C4E-USO_55.fm
6-60 00/0708
Tp4i - Alarm Page
6.9.3 Latched
The alarms that enter into this category are described in the PDL2 Programming
Language manual, in the predefined variable $LATCH_CNFG.
The user shall use this sub-page to confirm the alarms set as latched, and to clear them
from such status.
The following information are given:
– alarm order number
– error code and severity
– message text
– date and time
To act on a specific alarm, move the focus on the list, using the down arrow, confirm with
ENTER and select the required alarm, as shown in Fig. 6.58.
In the Bottom Menu is now available the softkey 'Reset' that, once the cause for the
alarm is removed, can reset it.
HS-0-C4E-USO_55.fm
00/0708 6-61
Tp4i - Alarm Page
HS-0-C4E-USO_55.fm
6-62 00/0708
Tp4i - Prog Page
HS-0-C4E-USO_56.fm
00/0708 6-63
Tp4i - Prog Page
6.10.1 Prog
Fig. 6.60 - Prog commands
6.10.1.2 Create
Allows to create a new program to be edited in IDE environment. The following situations
might occur:
– the requested program already exists in execution memory
– the requested program only exists as a file in UD:. The command loads it in the
execution memory (ML).
– the requested program does not exist. The command creates a .COD file and loads
it in the memory.
To open the created program, use the previously described command Open (IDE) or
select the wanted program and press ENTER.
HS-0-C4E-USO_56.fm
6-64 00/0708
Tp4i - Prog Page
See NOTE regarding the entry number in the UD: root directory.
6.10.2 Execution
Contains the commands to change a program status.
HS-0-C4E-USO_56.fm
00/0708 6-65
Tp4i - Prog Page
– Activate (PA)
– Deactivate (PD)
– Pause (PSP)
– Unpause (PSU)
– Step
A detailed list of each one of them is given below.
6.10.2.5 Step
This menu allows to define the program execution step. It is mainly used upon the
program debug. Normally, the program execution is continuous, i.e. without breaks. The
execution step allows to define the moment when the program execution shall be
interrupted. A new execution step is started each time the START key is pressed for
holdable programs, or the RUN softkey (F1 in the central menus of the TP-INT Page)
with non-holdable programs. The available commands are:
– Statement (PTSS) - The execution is interrupted in connection with each
instruction. The protected Routines (whose body is not displayed) are run as they
are a single statement; the execution of non protected Routines (whose body may
be displayed) is interrupted in connection with each instruction.
– Disable (PTSD) - Stops the step-by step execution and from thereon the program
is run in continuous mode.
HS-0-C4E-USO_56.fm
6-66 00/0708
Tp4i - Prog Page
6.10.3 Load...
HS-0-C4E-USO_56.fm
00/0708 6-67
Tp4i - Prog Page
6.10.3.6 Dependencies
As well as the requested program, it automatically loads the code and the variables of
any programs that are called up by it. If these files are in different directories to the one
of the loaded program, it is necessary to set the pre-defined variable $DEPEND_DIRS
that contains the path for the Load command during the search.
6.10.4 View
For a full view of very long file names, using Expanded, as opposed to Compact.
HS-0-C4E-USO_56.fm
6-68 00/0708
Tp4i - Prog Page
6.10.5 Details
Allows the user to display some data related the selected program.
HS-0-C4E-USO_56.fm
00/0708 6-69
Tp4i - Prog Page
HS-0-C4E-USO_56.fm
6-70 00/0708
Tp4i - Prog Page
6.10.5.3 Filter
The following options are available (see Fig. 6.64):
– View all (DP/F) - to view all the programs
– View not protected - to view only programs that are not protected
– View EZ - to view only programs with EZ attribute
b. press POS SHIFT (F5) - the list of the position variables is displayed (type POS
and XTNDPOS) that belong to the selected program.
HS-0-C4E-USO_56.fm
00/0708 6-71
Tp4i - Prog Page
c. select the positions that are to be shifted (to select more than one position variable,
activate the marking with SHIFT+ENTER and move with the cursor). If no position
is to be shifted, press Close (F6) to exit (see Fig. 6.71).
e. a window is shown in which the user has to specify the offsets on X, Y and Z (the
entered values indicate how much to shift (in millimetres) along the three directions
of the Cartesian coordinates system), as well as the required reference system; if
only one variable has been selected, the system displays its name and the
modifications are related only to such a variable (see area highlighted in red, in
Fig. 6.69). Otherwise the system displays the text “multiple selection” and the
transfer refers to all the selected position variables.
g. The system displays the final status of the operation: if the command has correctly
terminated, the message “Command executed” is displayed; otherwise an error
message is shown.
h. when terminated, press Close (F6) to return to the positions modification window
(step e.) and carry out other modifications
HS-0-C4E-USO_56.fm
6-72 00/0708
Tp4i - Prog Page
i. if no other positions are to be shifted, press the Close key (F6) twice: If necessary,
save the program (see NOTE and Fig. 6.71).
See NOTE regarding the entry number in the UD: root directory.
NOTE
The program is modified ONLY in the execution memory (Fig. 6.71, area
highlighted in red)! If it is wished to make the modification permanent, the
variables have to be saved (Save data (MS) command).
HS-0-C4E-USO_56.fm
00/0708 6-73
Tp4i - Prog Page
HS-0-C4E-USO_56.fm
6-74 00/0708
TP4i - IDE Page
If the program to be opened in IDE is not the one that is active, or if there is no program
active, use this procedure:
b. select the program to be opened. If the program is not in the loadable memory,
upload it with the Load...function (F3)
c. press ENTER to confirm (or use the Open (IDE) function). The selected program
is automatically activated. If another program is active, this will be deactivated and
the program asked for will be activated.
At the end of this procedure the system is in IDE environment.
HS-0-C4E-USO_57.fm
00/0708 6-75
TP4i - IDE Page
HS-0-C4E-USO_57.fm
6-76 00/0708
TP4i - IDE Page
program and the number of the line that contains the move instruction in
progress;
– low status window, containing the current settings of the REC key (F5 or hardkey
for TP4i).
1. comment
2. number
3. key word
4. reserved word
5. name of variable
– Cursors
Three types of cursor may be displayed:
• EDIT CURSOR
corresponds to the instruction that may be modified by the user. The complete
instruction line is highlighted with background
• light green - editable line. Press ENTER to enter in editing mode on the
selected line
• yellow - line in editing mode (for further information see PDL2 function)
HS-0-C4E-USO_57.fm
00/0708 6-77
TP4i - IDE Page
During the editing session, the user can carry out one of these operations:
• change an existing program line - just position the edit cursor on the line
involved and press ENTER. In this way the editing mode is deceased
and it is then possible to use the Alphanumeric keypad and the Bottom
Menu, commands, as described for the completion of the Statement
command.
• insert a new program line or a line with complex instructions - use the
PDL2 command. This function makes available the templates regarding
the selected instruction, and considerably facilitates the insertion into the
program.
• delete an existing program line or instructions - use the Delete command
that is part of the Selection function.
• EXECUTION CURSOR
it is represented by an arrow and the instruction background that is a different
colour according to the status of the actual instruction:
• if the line background is dark green, the pointed instruction is the one
running;
• if the background is light green, the pointed instruction is the next
instruction to be executed;
• if the background is yellow, the system is in AUTO mode and the
program is in HOLD;
• if the system is running a protected routine, instead of the arrow that
points to the instruction there will be an icon with EXT written.
HS-0-C4E-USO_57.fm
6-78 00/0708
TP4i - IDE Page
• MOTION CURSOR
the move instruction that the Arm is executing; if there is no move in progress,
it points to the last move instruction executed. The associated icon is that of
a robot, plus integrating symbols that indicate the move status:
• the robot is on the trajectory but the move has not terminated
If the opened program is running, IDE displays the instructions which are
currently being executed, by focusing them with the EXECUTION CURSOR. The
execution may be followed by the user by looking at the cursors moving through
the program instructions.
HS-0-C4E-USO_57.fm
00/0708 6-79
TP4i - IDE Page
When a program is opened under IDE, if the program is not running, the
EXECUTION CURSOR is placed on the BEGIN statement of the 'ROUTINE
call_...'.
6.11.3.1 Prog
Allows to act on the actually open program.
As can be seen in the previous Fig. 6.76, the following functions are available:
– Close
– Save (cod,var)
– Save all mod progs(cod,var)
– Save as (cod,var)
– Variables
– Import
A detailed description of each one follows.
– Close
Close IDE: the program remains in the state it was in before the closure. If there
has been a misalignment between the EDIT CURSOR and the EXECUTION
CURSOR, the user is asked if the execution is to be continued from the edit cursor.
It is only possible to exit from the environment if the reply is affirmative. Otherwise
it is necessary to realign the cursors by hand before closing.
HS-0-C4E-USO_57.fm
6-80 00/0708
TP4i - IDE Page
See NOTE regarding the entry number in the UD: root directory.
– Save (cod,var)
Saves both the .COD and the .VAR for the program that is currently open, in the
directory from which it was downloaded; the program remains open.
– Save all mod progs(cod,var)
Saves all the changed programs in IDE environment.
– Save as (cod,var)
Saves the currently open program in the specified directory (that can also be
different to that where the program was loaded), changing the name; the program
remains open.
– Variables
To manage the insertion/viewing of the variables. There are three sub-functions
(see Fig. 6.77):
• View line - Displays all the variables that are on the line indicated by the EDIT
CURSOR.
• Delete unused - Deletes the declaration of variables not used by the program,
after asking for confirmation from the user.
• Insert - Adds the declaration of a new variable. A dialogue window is opened,
in the lower part of the screen page, where the user is asked to send the name
and type of variable required, choosing from those in the list displayed.
– Import
To import the declarations from another program that have the EXPORTED FROM
clause and to insert them in the declarable part of the variables of the program
currently open in IDE.
The classes of importable declarations area:
• Routine
• Type
• Variable
HS-0-C4E-USO_57.fm
00/0708 6-81
TP4i - IDE Page
6.11.3.2 Execution
As already mentioned, IDE is an integrated program editing and development
environment. It is most important that all the programs are carefully checked before
being run in automatic mode.
The Execution menu, in fact, contains commands that influence the execution of the
program currently open in IDE, so as to be able to debug the program, identify any errors
and make the improvements.
HS-0-C4E-USO_57.fm
6-82 00/0708
TP4i - IDE Page
The execution stops after each instruction. The protected Routines (the
content of which is not displayed) are executed as a single statement; the
execution of non-protected Routines (where the content is visible) stops at the
end of each instruction.
• Disable
Stops the program execution in steps.
• Move
The execution stops after each single move. It cannot be executed on
non-holdable programs.
• Fly
To execute two or more motions in fly before suspending the program
execution. It is similar to the Move, but the execution does not stop after the
MOVEFLY instruction. It cannot be executed on non-holdable programs.
• Cycle
Defines a single program cycle, that has to include the CYCLE or BEGIN
CYCLE instruction, as a step.
– Set execution cursor
Allows to move the program execution to a line different from the one actually
pointed by the EXECUTION CURSOR. Move the EDIT CURSOR and send this
command.
– Abort
Aborts the execution of the current instruction.
– Break point
Enters or removes a break point within the program (see Fig. 6.80).
The break point is positioned in connection with the EDIT CURSOR. The program
execution will be broken before the line identified by the same break point.
To remove a break point, simply go to the line where such point is, and use this
same command.
– Bypass
Allows the program execution to go on, in case it is waiting for the completion of a
suspending instruction as WAIT FOR <condition>, DELAY <time>, etc.
– Immediate
To run an instruction that will not be included in the body of the current program
(but will have effect on the execution: for example if an assignment to a program
variable is executed, the value of that variable will be actually changed).
HS-0-C4E-USO_57.fm
00/0708 6-83
TP4i - IDE Page
In the Bottom Menu there is the Statement function that opens a Dialogue window
that contains the groups of instructions for the user to choose from. After the type
of instruction has been selected, it has to be confirmed ('OK' or ENTER) so that it
becomes effective.
After the instruction to be executed has been chosen, press 'OK' to start the
execution.
With the IDE environment, as already mentioned, it is possible to see, in the Editor
area, the execution of the program that is currently open (see Displaying the
currently being executed instruction).
6.11.3.3 PDL2
To insert a new line of PDL2 instructions in the open program.
When this soft key is pressed a pop-up menu is shown (see Fig. 6.82) that enables the
following functions:
– Empty line (1)
for the rapid insertion of an empty program line.
– Bookmarks (2)
this command inserts an empty line and opens the “_PREF_” (bookmark) folder
that contains the frequently used instructions, previously inserted by the user (see
HS-0-C4E-USO_57.fm
6-84 00/0708
TP4i - IDE Page
Add). In the “_PREF_” (bookmark) folder the user can select the required
instruction.
The commands that allow action on the Bookmark folder are the following:
• Add
when the user is choosing an instruction in the Groups of instructions, the
“Add” function (F1) is enabled in the Central Menu (see Fig. 6.83).
Selecting the required instruction and pressing “Add” (F1), the instruction is
added to the “_PREF_” (bookmark) folder.
• Remove
to cancel an instruction from the “_PREF_” folder: entering into the folder and
selecting the instruction to be cancelled, the “Remove” function (F1) is
enabled in the Central Menu (see Fig. 6.84).
When Remove (F1) is pressed, the instruction is removed from the “_PREF_”
folder.
– List of last instructions (from 3 to 10)
the list of the last eight instructions used.
When the user chooses an instruction (from the Bookmarks or from the last used)
it is inserted in the position following that where the EDIT CURSOR is currently
positioned.
HS-0-C4E-USO_57.fm
00/0708 6-85
TP4i - IDE Page
When this softkey is pressed the last nine instructions used are displayed, plus 'empty
line', for quicker insertion. When the user chooses the instruction, it is inserted in the
position following that pointed by the EDIT CURSOR.
If, among the instructions listed the one required is not there, choose 'empty line'. A new
program line will be opened in the position following that pointed by the EDIT CURSOR.
Note that the IDE environment allows to enter instructions in either modes:
– guided insertion using a Template
– input by means of the Alphanumeric keypad
Before describing in detail the functions available, it is necessary to introduce the
concept of TEMPLATE, as well as all the information concerning its use.
Template
A template is a sort of “mask” to help the user when inserting and/or changing an
instruction.
It is composed of key words (inserted by the system) and variable fields (that have to
be completed by the user). The key words are written in bold high case characters on a
light blue background. A variable field is confined by the characters '<' and '>'; when on
it, the background becomes blue.
See example in Fig. 6.85.
To move among the different variable fields it is highly recommended to use the
Next function.
HS-0-C4E-USO_57.fm
6-86 00/0708
TP4i - IDE Page
Moving among the variable fields with the Next, key, IDE automatically updates
the use mode of the Alphanumeric keypad (seventh field of the Status bar).
The functions shown in the Bottom Menu of the PDL2 function are the following
– Statement
– Variables
– Next
In certain situations also the following function may appear
– <value>
6.11.3.3.1 Statement
This instruction allows the insertion of PDL2 language instructions.
A short pressure on the key corresponding to this soft key (F1), opens a dialogue
window that displays the Groups of instructions from which the user can choose.
A long pressure displays a pop-up menu (see Fig. 6.86) the same as that for the PDL2
function:
– Empty line (1)
– Bookmarks (2)
– List of last instructions (from 3 to 10)
Before listing the Groups of instructions available in the IDE environment, the mode to
operate is described for the guided insertion of a generic instruction.
HS-0-C4E-USO_57.fm
00/0708 6-87
TP4i - IDE Page
instruction).
When all the variable fields have been completed (see the FOR template in Fig. 6.85),
pressing OK or ENTER will confirm the insertion of the instruction. The system checks
that the syntax is correct; if the inserted instruction is not correct, an error message is
displayed. After the error has been corrected, the instruction has to be confirmed again
with OK or ENTER.
If the instruction is correct and complete, the insertion is terminated.
Otherwise, when necessary, the system completes the instruction with further program
lines.
See example in Fig. 6.87, in which the system has completed the FOR instruction,
adding the line ENDFOR.
The instruction (or set of instructions) now has to be inserted between the FOR line and
the ENDFOR line
When OK or ENTER is pressed, if the instruction is correct and complete, the insertion
is terminated.
Groups of instructions
At highest level, the groups available in the dialogue window are the following:
– Call
– Commons
– CondExpr
– Flow
– Hand
– IOPort
– SysVar
– Other applications
Coop-Motion
Contains templates for
– calls the enable/disable routines for cooperative motion between Arms and
between Axes and Arm
HS-0-C4E-USO_57.fm
6-88 00/0708
TP4i - IDE Page
Call
Contains templates for
– Calls to the tool, frame and base calculation routines
– Call_prog (call to an external program routine)
– sub_rout (to create a new subroutine inside the program; by default the new
subroutine is created exportable).
Insert the import of the corresponding routine directly: therefore it is not necessary to
declare the import.
Commons
– Contains the template for Assignment instructions
CondExpr
Contains the templates of usable conditions in the MOVE instructions
– elements that represent the condition value ($BIT and $DIN)
– elements introduced by the WITH clause
Flow
Contains the templates of instructions needed to control the program execution flow:
– FOR
– GOTO
– IF
– LABEL
– SELECT
– REPEAT
– WHILE
State
Contains the templates of instructions needed to control the program state:
– HOLD
– PAUSE
– UNPAUSE
– LOCK
– UNLOCK
– RESUME
– DEACTIVATE
– CYCLE
– DELAY
– RETURN
Hand
Contains the templates of the instructions that manage the pick-up devices (grippers):
HS-0-C4E-USO_57.fm
00/0708 6-89
TP4i - IDE Page
– CloseHand
– OpenHand
– RelaxHand
IOPort
Contains the templates of instructions concerning I/O ports:
– Waitfor
– assignment of values to I/O ports (AOUT, BIT, DOUT, GOUT, TIMER, WORD)
– built-in regarding I/O ports (BIT_CLEAR, BIT_SET)
SysVar
Contains groups of templates with predefined groups of variables and constants, for
motion control:
– ArmOvr - for the arm Override values
– Fly - for moves in Fly
– OrnType - for the tool orientation
– Speed - for the speed
– TermType - for position accuracy in the move stop
Other applications
Contains any other templates for technological instructions of the applications installed
in the system.
Fig. 6.88 gives an example of the SmartSearch application.
6.11.3.3.2 Variables
To select an already existing variable to insert in the currently open program line: if the
Template of an instruction is active, the selected variable is inserted into the Template,
in the currently active variable field.
6.11.3.3.3 <value>
When this key is pressed, a window is activated that contains the predefined constants
HS-0-C4E-USO_57.fm
6-90 00/0708
TP4i - IDE Page
that are available for the selected <value> field. The user has to choose the required
predefined constant and confirm with ENTER.
6.11.3.3.4 Next
Move the cursor to the next variable field of the currently active template. If the field
currently pointed is the last of the line, this function moves the cursor to the first field.
6.11.3.4 Selection
The commands available for this function are:
– REC setup
To set the move instruction characteristics that are inserted in the program, each
time the REC key is pressed.
For further details see the par. 6.2.1.3 Other colours keys on page 6-10. When this
function is activated, the system displays the screen page shown in Fig. 6.90.
At the opening of IDE, the REC key is set in joints modal mode, if it has not been
set previously. To change this setting, either use the current REC Setup function,
or activate the function directly by simultaneously pressing SHIFT+REC.
HS-0-C4E-USO_57.fm
00/0708 6-91
TP4i - IDE Page
The user has to define the position variable type to be entered (position, jointpos,
xtndpos), the trajectory (linear, circular and joints), and fly enable or disable.
To do so, there are two different ways of operating:
– select the field to be changed and open the corresponding pop-up menu by
pressing the ENTER key (see Fig. 6.91); or
– use the Central Menu keys, to modify the Type of Move (F1), the Trajectory
(F2) and the type of Variable (see Fig. 6.90, keys highlighted in red). Each
time the required key is pressed, the system inserts a different setting (in
circular manner). These keys act separately from the field where the focus is
positioned.
Also the following functions can be set:
– the REC key for Synchronised Motion (software option - Motion
Programming manual). To set the use of the SyncMove clause, select the
related checkbox (see Fig. 6.92 - field highlighted in red);
– the possibility to write the move instruction on more than one line, i.e. included
between the key words MOVe and ENDMOVE. To enable/disable this
function, select or deselect the Multiline checkbox (see Fig. 6.92 - field
highlighted in yellow).
and specify the trajectory and variable to associate to the SyncMove (opening the
corresponding pop-up menus, as shown in Fig. 6.93).
HS-0-C4E-USO_57.fm
6-92 00/0708
TP4i - IDE Page
At the end, press the key OK (F5) to confirm the changes made.
It is to be noted that the new settings of the REC key are NOT maintained after a
system restart. To make it permanent the configurations have to be saved (using
the system command 'ConfigureSaveCategoryController /Shared').
The 'Nodal..' function is provided, that can be activated with key F4, to modify the
nodal configuration with $PAR of the REC key. For further information see
par. 6.11.3.7 REC key setting, nodal with $PAR on page 6-95.
– Enable Marking
Enables the marking of the lines where the EDIT CURSOR. In the central menu the
following functions are shown:
• Cut - cuts the selected lines
• Copy - copies the selected lines
• Deselect - deactivates the marking
HS-0-C4E-USO_57.fm
00/0708 6-93
TP4i - IDE Page
– Paste
To paste the lines previously cut or copied, under the line that is currently pointed
by the EDIT CURSOR.
– Undelete
Enters again the program with the latest cancelled instruction, to the position where
the EDIT CURSOR is placed. This operation can also be executed by pressing
SHIFT+C on the alphanumeric keypad.
– Delete
Cancels the instruction, where the l EDIT CURSOR is placed.
This operation can also be executed by pressing the C key on the alphanumeric
keypad.
If the selected statement is a structured instruction (for example IF, FOR, etc.),
this command will delete the whole structure, and NOT just the highlighted line.
(from IF to ENDIF, from FOR to ENDFOR, from WHILE to ENDWHILE).
– Goto
Allows to move the EDIT CURSOR to the specified position:
• Begin - moves the cursor to the BEGINning of the current context
• End - moves the cursor to the END of the current context
• Line - moves the cursor to the specified program line (within the current
context). A Dialog window is opened to ask the user to enter the wanted line
number.
– Comment/Uncomment
To make the current instruction line a "comment" or to make it a loadable
instruction by putting or removing the comment symbol ('--'). As already mentioned,
the commented line is displayed in green.
In the example in Fig. 6.94, line n.36 has become a comment and therefore it will
not be executed.
HS-0-C4E-USO_57.fm
6-94 00/0708
TP4i - IDE Page
6.11.3.5 REC
Pressing the softkey inserts:
– a move instruction and
– the declaration of the corresponding positional variable that is assigned the
current arm position.
The current setting is displayed in the status line at the bottom of the IDE page, as
highlighted in red in the example of Fig. 6.94.
For further information regarding the setting modes of this softkey, see the
following paragraphs: par. – REC setup on page 6-91 and par. 6.11.3.7 REC key
setting, nodal with $PAR on page 6-95.
Only for the Teach Pendant connected by cable (TP4i), the function of this softkey is
exactly the same as for the REC key available as hardkey (see par. – Motion keys on
page 6-5).
6.11.3.6 MOD
To change the coordinates value of an existing position. For this, after the softkey has
been pressed, the system displays a dialogue window where the user can confirm the
name of the selected variable.
If the tool and frame set for the current MOVE are not those set REC setup, the
system will refuse the change.
Read the GLOSSARY carefully regarding the terms "nodal" and "modal".
HS-0-C4E-USO_57.fm
00/0708 6-95
TP4i - IDE Page
Regarding the nodal method having a WITH clause, there are substantial
differences. It is to be remembered that, in general, through the nodal method the
variables are assigned temporary values that only have effect during the move
executed by the Move instruction.
After the move the system returns to the values assigned with the modal method.
Using nodal management with $PAR, the values of the variables set by the
technological routine do not have a temporary effect, but are assigned in permanent
mode.
BEGIN……
$ARM_SPD_OVR := 100
-- Arm_spd_ovr is 100
MOVE JOINT TO pnt0001p WITH $PAR=MP(TF(1,1),V(50),Z(COARSE))
-- the Move is performed with Arm_spd_ovr at 50% (set by routine V)
-- Arm_spd_ovr is 50
…….END
Any “modal” assignment of a variable is ignored because the technological routines
used with the Moves reassign them.
It is a good programming rule not to use the modal method to assign values to
variables that are also set by technological routines.
HS-0-C4E-USO_57.fm
6-96 00/0708
TP4i - IDE Page
It can be noted that the technological routines Mp, Gp, Ap call up special functions:
– TF (x, y): sets tool x and frame y
– RTF (x, y): set the remote tool x and remote frame y
– V (vel): used by the Mp routine, sets the Move speed making the following
assignments:
$ARM_SPD_OVR:= vel
$ARM_ACC_OVR:= $ARM_DEC_OVR:= vel2 DIV 100
$SPD_OPT:=SPD_CONST
– VL (vel): used by the Gp routine, sets the linear Move speed making the following
assignments:
$LIN_SPD:= vel
$ARM_SPD_OVR:= $ARM_ACC_OVR:= $ARM_DEC_OVR:= 100
$SPD_OPT:=SPD_LIN
– Z (zone): used by the Mp and Gp routines, sets the positioning accuracy making
the following assignments:
$TERM_TYPE:= zone (where zone is equal to COARSE, FINE, NOSETTLE) in the
case of Move no Fly
$FLY_PER:= zone (where zone is an integer from 1 to 100) in the case of Move
Fly if $FLY_TYPE<>FLY_CART
$FLY_DIST:= zone (where zone is an integer from 1 to 100) in the case of Move
Fly if $FLY_TYPE=FLY_CART
– ORN (type): used by the Ap and Gp routines, sets the type of orientation making
the following assignments:
$ORNT_TYPE:= type (where type is equal to RS_TRAJ, RS_WORLD,
EUL_WORLD).
HS-0-C4E-USO_57.fm
00/0708 6-97
TP4i - IDE Page
If the $PAR field contains Mp (to set the MP routine), the screen page asks for the
insertion of:
– speed (from 0 to 100)
– zone value (Z) (Coarse, Fine, Nosettle)
If the $PAR field contains Gp (to set the GP routine), that can only be used if the REC
key is set with Linear type Move, the screen page asks for the insertion of:
– linear speed (from 0 to 100)
– zone value:
• if the Move is no Fly: Coarse, Fine, Nosettle
• if the Move is Fly an integer from 0 to 100
– value of the $Ornt_Type (Rs_traj, Rs_world, Eul_world)
HS-0-C4E-USO_57.fm
6-98 00/0708
TP4i - IDE Page
If the $PAR field contains Ap (to set the AP routine), the screen page requires the
insertion of:
– Value of the $Ornt_Type (Rs_traj, Rs_world, Eul_world
The parameters displayed in the nodal REC Setup with $PAR, regarding the TF or RTF
function, are the active tool and frame at that instant (that can be seen in the IDE status
lines: last and last-but-one field respectively). The set tool and frame are always
automatically activated.
If a Move is changed from no Fly to Fly, IDE asks that the Zone parameter (for an
MP or GP routine) passes from Coarse, Fine, Nosettle to an integer number from
0 to 100.
In the same way, if changing from a Fly to a no Fly Move, IDE asks whether the
positioning accuracy is to be Coarse, Fine, Nosettle.
If a Gp routine is set, the “Linear” field is disabled.
HS-0-C4E-USO_57.fm
00/0708 6-99
TP4i - IDE Page
association between the numeric keys and the technological instructions (see Fig. 6.98).
Pressing any numeric key associated to an instruction inserts that instruction in the
program.
Instructions can be inserted even more quickly in IDE environment, without opening the
numeric keypad, press simultaneously SHIFT + the numeric key associated to the
required instruction, the system will insert this instruction in the program.
For example (with reference to Fig. 6.98) if, without opening the numeric keypad the
user presses simultaneously SHIFT and 2, the technological instruction Spot_init is
inserted in the program.
Summing up, the keys used to manage the numeric Keypad are the following:
– SHIFT + '1' - opens the numeric Keypad
– 'n' - when the numeric Keypad is open, it inserts the instruction associated to key
'n'.
– SHIFT + 'n' - when the numeric Keypad is NOT open, it inserts the instruction
associated to key 'n'.
– PAGE UP / PAGE DOWN - to change the numeric Keypad page .
– up/down/RH/LH arrows (cursor) - for circular navigation in the numeric Keypad.
– ESC - closes the numeric Keypad without inserting any instruction in the program.
– ENTER - inserts the current instruction selected in the numeric Keypad in the
program, and closes the numeric Keypad.
HS-0-C4E-USO_57.fm
6-100 00/0708
TP4i - I/O Page
By confirming with ENTER, a sub-page is opened, where the user is asked to enter the
range of the selected input or output
Enter the wanted range and acknowledge with the softkey 'OK' or the ENTER key.
A range can be specified, simultaneously, with this syntax:
<start port 1>..<end port 1>-<start port 2>..<end port 2 > etc.
Example:
1..5-9..14 select the interval from 1 to 5 and that from 9 to14
When the screen page concerning the chosen I/Os is displayed, they can be scrolled
using the cursor keys.
HS-0-C4E-USO_58.fm
6-101 00/0708
TP4i - I/O Page
The following information are displayed for each one of the Inputs or Outputs requested
by the user:
– name
– value
– status
– description.
For further details, see the description of the function View (SIV... SOV...).
In the Bottom Menu, according to the type of I/O selected, softkeys are available to
operate on them and on the display windows (see List of required I/Os):
– Set (SI and SO)
– Forcing (SIF... SOF...)
– Simulate (SIS... SOS...)
– View (SIV... SOV...)
For controls Set (SI and SO), Forcing (SIF... SOF...) and Simulate (SIS... SOS...), it
is possible to act either on the individual I/O or on groups, selecting the first I/O
and pressing the SHIFT+ENTER keys on the last I/O of the group.
Other general functions are available, which may be actuated through the key F6
– Window
A detailed list of all the above mentioned softkeys is given below.
HS-0-C4E-USO_58.fm
00/0708 6-102
TP4i - I/O Page
6.12.1.1 On
Sets the specified I/O to the TRUE value.
From SYS_CALL this operation corresponds to
SYS_CALL (‘E’,’<port_name>[<port_index>]:= ON’)
6.12.1.2 Off
Sets the specified I/O to the FALSE value.
From SYS_CALL this operation corresponds to
SYS_CALL (‘E’,’<port_name>[<port_index>]:= OFF
6.12.2.1 On
Forces the specified I/O to the TRUE value
HS-0-C4E-USO_58.fm
6-103 00/0708
TP4i - I/O Page
6.12.2.2 Off
Forces the specified I/O to the FALSE value
6.12.2.3 Current
Forces the specified I/O to its actual value
HS-0-C4E-USO_58.fm
00/0708 6-104
TP4i - I/O Page
6.12.3.1 On
Simulates the TRUE value for the selected input
6.12.3.2 Off
Simulates the FALSE value for the selected input
6.12.3.3 Current
Simulates the current value for the selected I/O
6.12.3.4 Total
Simulates the current value for all the I/O of the selected type.
The commands that may be actuated through the View function (F5) allow displaying
the wanted I/O. They are:
HS-0-C4E-USO_58.fm
6-105 00/0708
TP4i - I/O Page
– Zoom in
– Zoom out
– Vertical
– Horizontal
– Format
6.12.4.1 Zoom in
Displays the wanted I/O, one per display line (seFig. 6.103). The following information
is given:
– name ($BIT, $DIN, $DOUT, $GIN, $GOUT, $SDIN, $SDOUT, $WORD)
– value (ON / OFF)
– description
– status (physical, logical, virtual, forced, simulated, configured/not configured,
linked (connected))
HS-0-C4E-USO_58.fm
00/0708 6-106
TP4i - I/O Page
6.12.4.3 Vertical
If there are several windows open, they are displayed alongside each other in a vertical
arrangement.
To pass from one window to another, press ESC and move with the rh arrow or
the lh arrow, according to which window is to be selected, to the right or to the left
of the current window.
6.12.4.4 Horizontal
If there are several windows open, they are displayed next to each other in a horizontal
arrangement.
To pass from one window to another, press ESC and move with the up arrow or
the down arrow according to the window to be selected, either upward or
downward from the current window.
HS-0-C4E-USO_58.fm
6-107 00/0708
TP4i - I/O Page
6.12.4.5 Format
It can only be used when the I/Os are displayed in groups of 166 (see command Zoom
out). and allows to display them in the following notations (see Fig. 6.107):
– Binary
– Octal
– Hexadecimal
– Decimal
6.12.5 Window
This softkey controls several functions that manage the I/O ports display windows (see
Fig. 6.108):
– Open
– Close
– Maximize
– Restore
HS-0-C4E-USO_58.fm
00/0708 6-108
TP4i - I/O Page
– Next
6.12.5.1 Open
Opens a new display window in addition to the one or ones already active (if any). To
move the focusing from a window to another, use the cursor keys.
6.12.5.2 Close
Closes the current display window.
6.12.5.3 Maximize
Displays only the I/O in the current window, using the entire space available on the
display screen.
6.12.5.4 Restore
Restores the previously displayed windows.
6.12.5.5 Next
When a window is displayed in Expanded mode, sending this command allows the
viewing of the next window (still keeping this mode active).
HS-0-C4E-USO_58.fm
6-109 00/0708
TP4i - I/O Page
HS-0-C4E-USO_58.fm
00/0708 6-110
TP4i - Appl Page
HS-0-C4E-USO_59.fm
00/0708 6-111
TP4i - Appl Page
HS-0-C4E-USO_59.fm
6-112 00/0708
TP4i - File Page
HS-0-C4E-USO_60.fm
00/0708 6-113
TP4i - File Page
– New
– Delete (FD)
– Delete permanent (FD/P)
– Rename (FR)
– Attribute (FUA)
– Recycle bin
– Properties
A detailed description of each one of them is given below.
6.14.1.1 Open
This command opens the file in ASCII editing mode (see Fig. 6.112)
Under this environment, the softkeys available in the Bottom Menu are:
– File
This function activates the following operations:
• Save - Saves the current file with the same name, keeping it open for editing.
• Save As - Saves the current file with a different name and/or destination,
keeping it open for editing.
• Exit - Exits and saves the current file
• Quit - Exits without saving the current file.
To save the file, see NOTE regarding the entry number in the UD: root directory.
– Edit
Allows to move the cursor to the wanted line: select 'goto', (ENTER or 1 - see
Fig. 6.113).
HS-0-C4E-USO_60.fm
6-114 00/0708
TP4i - File Page
A prompt screen page is displayed (see Fig. 6.114) where the user has to
insert the required line number and confirm with 'Ok' (F5).
6.14.1.4 New
Creates a new file, directory or compressed file (.ZIP).
HS-0-C4E-USO_60.fm
00/0708 6-115
TP4i - File Page
6.14.1.10 Properties
Displays information relating to the current storage unit (UD:) (as shown in Fig. 6.116):
– graphic illustration of free space and occupied space
– unit name
– available space
– used space
– unit sizes
HS-0-C4E-USO_60.fm
6-116 00/0708
TP4i - File Page
6.14.2.1 Undo
Cancels the latest operation done.
HS-0-C4E-USO_60.fm
00/0708 6-117
TP4i - File Page
6.14.2.2 Cut
Cuts the selected files.
6.14.2.3 Copy
Copies the selected files.
6.14.2.4 Paste
Copies the previously cut or copied files to the current folder
HS-0-C4E-USO_60.fm
6-118 00/0708
TP4i - File Page
6.14.3.3 Details
To view the list of files adapting or not adapting the size of the columns to the length of
the information to be viewed. The choices available are:
– Compress - adapts the column dimension to the actual space requirement
– Expand - sets one fixed dimension for all columns
At times the difference between the two modes is scarcely noticeable.
6.14.3.4 Refresh
Updates the information included in the list of files.
6.14.3.5 Sort by
To view the list of files according to different criteria:
– Name - list of files displayed in alphabetical order
– Date - list of files displayed according to their date of modification (from top
downwards, first the oldest files are displayed, followed by the most recent ones)
– Type - display according to type of extension.
HS-0-C4E-USO_60.fm
00/0708 6-119
TP4i - File Page
– Backup (FUB)
– Restore (FUR)
– Device Change
See NOTE regarding the entry number in the UD: root directory.
HS-0-C4E-USO_60.fm
6-120 00/0708
TP4i - Data Page
When the Data Page is opened, the list is shown of all the existing tables on the Teach
Pendant display (the example in Fig. 6.119 shows only the System tables).
The columns of the tables displayed in the Data Page, automatically dimension
according to the information they contain.
To open the required page, select with the arrow up and down keys and confirm with
'Ok' (F5).
It is now possible to move inside the table using the cursor keys and to modify the boxes
in the required fields with the editing mode (press the ENTER key).
During the navigation /editing within a table, the commands available in the Bottom
Menu are:
– Table
– Modify
– Selection
– AutoApply
6.15.1.1 Table
These commands are used to open and close a table, save the contents, reload the
previous contents, etc. (see Fig. 6.120).
HS-0-C4E-USO_61.fm
00/0708 6-121
TP4i - Data Page
6.15.1.1.1 Open
Displays a list including all of the tables. When the ENTER key is pressed, the selected
table opens.
6.15.1.1.2 Close
Closes the current table. If changes have been made, the user is asked to confirm the
application and the saving of the changes in the .VAR file and in the execution memory.
'Ok' (F5) to confirm and save, Cancel (F6) to close without saving.
For WiTP wireless, if the TP is unpaired from the Control Unit, any open tables in
Data Page will be closed by forcing.
6.15.1.1.3 Apply
Saves the applied changes in the execution memory. The table keeps open, but the
changes are NOT stored in the file.
6.15.1.1.4 Save
Saves the changes in the execution memory and on file. The Table remains open.
HS-0-C4E-USO_61.fm
6-122 00/0708
TP4i - Data Page
See NOTE regarding the entry number in the UD: root directory.
6.15.1.1.5 Reload
Reloads the value of the variables from the file.
6.15.1.1.6 History
Lists the last 6 tables open.
6.15.1.2 Modify
Allows to modify the table contents. The following options are available:
– Insert
– Copy
– CellCopy
– Paste
– Undo All
– Set Active
6.15.1.2.1 Insert
Inserts a new line on the table bottom
The system displays a prompt window to ask the user to enter the name of the new item.
6.15.1.2.2 Copy
Copies the previous selection according to the selection mode currently set (Selection
command (F3).
HS-0-C4E-USO_61.fm
00/0708 6-123
TP4i - Data Page
6.15.1.2.3 CellCopy
Copies the currently selected cell.
6.15.1.2.4 Paste
Overwrites the selected line or cell, according to the last content copied (using the Copy
or the Copy cell command).
6.15.1.3 Selection
To set the selection mode. The following options are available:
– Line
– Invert
– Select all
– Deselect all
6.15.1.3.1 Line
Selects the current line without changing the position of the cursor.
6.15.1.3.2 Invert
Inverts the selection of the lines (the selected lines become de-selected and vice-versa).
HS-0-C4E-USO_61.fm
6-124 00/0708
TP4i - Data Page
6.15.1.4 AutoApply
Edit in Auto Apply modes means to make the changes applied to the table cells (i.e.
copied in execution memory) get automatically operating.
This function corresponds to the softkey F4. If a table may be edited in Auto Apply mode,
the function AutoApply (AutoAppli..) is enabled when the table opens (blue background
on softkey F4).
This mode can be disabled by pressing the key F4; the background of the corresponding
softkey turn grey (see Fig. 6.123).
If the key F4 is pressed again, the above-mentioned mode is enabled again (blue
background).
HS-0-C4E-USO_61.fm
00/0708 6-125
TP4i - Data Page
As already explained in the previous paragraphs, once the table is opened, it is possible
to move inside it using the cursor keys and to modify the cells entering in editing mode
(pressing the ENTER key),in the required fields.
The significance of the different system table columns is briefly described in the line with
a blue background above the Bottom Menu.
See Fig. 6.125, Fig. 6.126 and Fig. 6.127, which are given as examples.
HS-0-C4E-USO_61.fm
6-126 00/0708
TP4i - Data Page
HS-0-C4E-USO_61.fm
00/0708 6-127
TP4i - Data Page
To select the required table, use the up and down arrow keys and press ENTER or ‘Ok’
(F5).
As already explained in the previous paragraphs, after the table has been opened, it is
possible to move inside it using the cursor keys, and to modify the cells entering in
editing mode (pressing the ENTER key), in the required fields.
The procedure to create them and add them to the Data Page is described in the
PDL2 Programming Language Manual, Appendix B, par. User table creation from
DATA environment.
Once created and added to the Data Page, these tables are managed in exactly the
same way as the System tables and Application tables.
This means that, to select the required table, use the up and down arrow keys, then
press ENTER or Ok (F5).
Furthermore, as already explained in the previous paragraphs, once the table is opened,
it is possible to move inside with the cursor keys and modify the cells entering in editing
mode (pressing the ENTER key), in the required fields.
HS-0-C4E-USO_61.fm
6-128 00/0708
TP4i - Setup Page
The Bottom Menu contains the Config. Function (F1) to operate on the Configuration
files.
In the Pages Area, moving on the icons with the cursor keys, the user can select the
required sub-page. Eight sub-pages are available, each one corresponding to a definite
setup environment, namely:
– Arm
– AUX_AXES
– ReloadSw
– Backup
– Controller (CCS)
– FB_TOOL
– Install (FUI)
– IO_TOOL
– Login
– Network
– ToolFrame
While operating in a sub-page, the name of that sub-page is always displayed at the top
right angle of the User Page window.
HS-0-C4E-USO_62.fm
6-129 00/0708
TP4i - Setup Page
By pressing the Config. key (F1), the user can activate certain functions related to the
configuration files (see Fig. 6.130):
– Save the configuration file (CSA)
to save the changes made on the various sub-pages, regarding values of
predefined configuration variables; it creates a new configuration file
<$BOARD_DATA[1].SYS_ID>.C4G.
For further information about this function, see the System Commands chapter,
paragraph CONFIGURE SAVE ALL (CSA).
For further information about this function, see the System Commands chapter,
paragraph CONFIGURE LOAD ALL (CLA).
HS-0-C4E-USO_62.fm
00/0708 6-130
TP4i - Setup Page
The user has to select the required category (Save or Load Category), opening the
pop-up menu (press ENTER key) for the “Category” field, selecting and confirming
the choice (see Fig. 6.132),
and any sub-categories (Minor Category) for which the configuration is to be saved,
selecting or not selecting the relevant checkbox (see Fig. 6.131).
Option ‘Rules’ specifies the rules that the save/load command has to use, to know
which objects to save/load. For further details, see PDL2 Programming
Language manual - chap.Predefined Variables List - par.$C4G_RULES: C4G
Save & Load rules.
The user can indicate whether it is wished to save the selected variables in the
default file (and in this case only the section relating to the specified categories and
minor categories will be updated), selecting item “Update Configuration File” action
button (as shown in Fig. 6.133, highlighted in red),
HS-0-C4E-USO_62.fm
6-131 00/0708
TP4i - Setup Page
or if it is wished to create a partial file, containing ONLY the values of the indicated
category and sub-category variables. This file will then be used for partial loading
of the values in memory or copied on several Controls to uniform certain
initialisations.
In this case the user has to select “Create partial file” field and specify the name of
the file, confirming with ENTER. There is also the Browse … key (F1) to use
names of existing files and /or folders (see Fig. 6.134 - highlighted in red).
For further information about this function, see the System Commands chapter,
paragraph CONFIGURE SAVE CATEGORY.
HS-0-C4E-USO_62.fm
00/0708 6-132
TP4i - Setup Page
As for the Save configuration of some categories (CSCx), the user can specify the
required category and the minor categories of the configuration variables, as well
as the “Rules” and the file where the values related to these variables are to be
loaded (configuration file or partial file).
Therefore see the Save configuration of some categories (CSCx) for the detailed
description on how to proceed.
For further information about this function, see the System Commands chapter,
paragraph CONFIGURE LOAD CATEGORY.
6.16.2 Arm
HS-0-C4E-USO_62.fm
6-133 00/0708
TP4i - Setup Page
After making the required changes, to save the configuration set, press Save (F5).
6.16.2.1 Calib
Involves the availability of a set of commands allowing configuring the current arm
according to the user's requirements.
To optionally change the current arm, go to the Motion Page, Basic sub-page.
The system has to be in PROGR status (status selector switch on position T1) and
the drives must be on and kept so during the entire turn-set operation.
The data is saved automatically in NVRAM memory, in the configuration file
(<$BOARD_DATA[1].SYS_ID>.C4G) and in the calibration ASCII file
(<$BOARD_DATA[1].SYS_ID>_CAL<num_arm>.PDL).
To activate the Turn Set procedure, press the key corresponding to the softkey Turn Set
(F1).
There is a 'User' option (CAT/U) to use the previously obtained User calibration position
(see Fig. 6.136).
HS-0-C4E-USO_62.fm
00/0708 6-134
TP4i - Setup Page
Through a prompt screen page, the system asks for confirmation from the user before
executing the Turn Set operation.
The system has to be in PROGR status and the drives must be on and kept so for
the entire calibration operation.
The calibration data are automatically saved in the NVRAM memory; in the
configuration file (<$BOARD_DATA[1].SYS_ID>.C4G) and in the ASCII calibration
file <$BOARD_DATA[1].SYS_ID>_CAL<num_arm>.PDL.
The available options, which may be actuated by holding down for long the key
corresponding to softkey 'Calib' (see Fig. 6.137), are the following:
– Learn (CAC/L)
Learns the actual position as the user calibration position ($CAL_USER). The
learning procedure is executed on all the selected axes.
– NoSave (CAC/N)
No automatic saving is performed of the file .C4G, ASCII calibration file
<$BOARD_DATA[1].SYS_ID>_CAL<num_arm>.PDL and calibration data in the
NVRAM memory.
– User (CAC/U)
For the calibration position it uses that of the user obtained or assigned beforehand
($CAL_USER).
– Learn NoSave (CAC/LN)
This is a combination of the previous options Learn (CAC/L) and NoSave (CAC/N).
– User NoSave (CAC/UN)
This is a combination of the previous options User (CAC/U) and NoSave (CAC/N).
HS-0-C4E-USO_62.fm
6-135 00/0708
TP4i - Setup Page
After the wanted option has been selected, acknowledge with ENTER: a user's
acknowledgement prompt message is displayed. Answer 'OK' (F5) to start the
Calibration procedure; 'Cancel' (F6), to cancel.
6.16.2.1.4 Change
Allows to modify the $CAL_DATA value for the current arm. Proceed as follows:
HS-0-C4E-USO_62.fm
00/0708 6-136
TP4i - Setup Page
6.16.2.2 Ieak
By selecting the IEAK icon (Interlock External Axes Kit), the user can manage the I/O
configuration for the positioners.
For further information regarding the IEAK devices, see the Guide to integration,
Safeties, I/O, Communications manual.
Before configuring the related I/O signals the leak device has to be enabled on the
required Arm (see Fig. 6.138). To do so, move the focus on the corresponding
checkbox and press ENTER.
The commands available in the SETUP environment, to manage the IEAK devices, are:
– Cnfg (F3)
– View (F4)
– Clr (F2)
– Save (F5)
– Close (F6)
HS-0-C4E-USO_62.fm
6-137 00/0708
TP4i - Setup Page
a. select the fieldbus concerned - move the focus on the Fieldbus menu and press
ENTER to open it. Choose the required Fieldbus and press ENTER (see
Fig. 6.139).
a.1 If the Fieldbus is not CANBus, it is also necessary to select the board relating to
the selected Fieldbus. To do so, place the focus on the second menu, press
ENTER to open it, choose the required board and press ENTER again.
b. Press Ok (F3) to start the configuration - the system will automatically configure the
I/Os related to the IEAK device, on CanBus module number 3, at physical
address 25; at the end of the configuration mapped ports $SDIN/$SDOUT and the
signals associated to them are displayed (see Fig. 6.140):
HS-0-C4E-USO_62.fm
00/0708 6-138
TP4i - Setup Page
• SIK ON (input - status of SIK device associated to the axis of the arm
corresponding to positioner - 1 = SIK closed, 0 = SIK open). It is an internal
signal, therefore it is to be configured on CANBus.
• MOTOR ON/OFF STS (output - status of positioner - 1 = motors on, 0 =
motors off). It is a signal available externally.
• RESTORE (output - used by the system to reset the PILZ safety relay). It is
an internal signal, therefore it is to be configured on CAN.
– positioner the port is assigned to (e.g.: T.R. 1). Note that it is not the number
of the arm, but the order number of the positioner (e.g. Rotating Table)
associated to a certain arm.
By pressing the Next (F6) softkey, the configuration viewing is completed with return to
the main screen page of the IEAK Sub-page (Fig. 6.138).
WARNING! To make the configuration permanent, the Save (F5) command has to
be executed (see Fig. 6.138).
HS-0-C4E-USO_62.fm
6-139 00/0708
TP4i - Setup Page
WARNING - pressing this softkey will reset ALL the configurations present,
related to IEAK devices.
HS-0-C4E-USO_62.fm
00/0708 6-140
TP4i - Setup Page
6.16.2.3 Mounting
When the Mounting icon is selected, the screen page of Fig. 6.143 is displayed; here it
can be declared to the system how the robot is mounted:
– on ceiling,
– on floor,
– on a sloped plane as to the floor,
– on a sloped plane as to the ceiling.
The mounting on a sloped plane is only foreseen for type NS, NM and SIX robots.
To declare the type of robot Mounting, proceed as follows (see reference to screen
page of Fig. 6.143):
a. select the required item in the checkgroup highlighted in red (see Fig. 6.143) -
move the focus on to the checkbox to be selected and press ENTER to confirm; if
the Mounting is SLOPED PLANE type, pass to step b.
HS-0-C4E-USO_62.fm
6-141 00/0708
TP4i - Setup Page
a.1 if the mounting is SLOPED PLANE TYPE, indicate the slope angle - move the
focus on the spindial highlighted in green (see Fig. 6.143), change the value and
confirm with ENTER; if the slope is in relation to the floor, pass to step b.;
a.2 if the slope is in relation to the ceiling, select the FROM CEILING checkbox
(highlighted in yellow in Fig. 6.143);
b. save the configuration with the Save (F5) softkey and exit from the Mounting
screen page (Close (F6) softkey).
6.16.2.4 Presse
With the selection of the PRESSES icon, the user can configure the parameters of the
robots for the automation of the presses (Interpress).
These parameters (see Fig. 6.144) are:
– weight of part to be worked on (kg)
– distance of part centre of gravity from the flange centre (mm).
6.16.2.5 Sik
For further details regarding the Sik devices, see the Guide to integration Safeties,
I/O, Communications manual.
Selecting the SIK icon, the user can manage the $SDIN/$SDOUT signals for these
devices.
The main screen page of this function is shown in Fig. 6.145.
If an Auxiliary Axis or an Arm is displayed with a green background, this means that a
Sik device associated to it can be configured.
For example, in Fig. 6.145, the Sik on Axis 8 of Arm 1 (highlighted in light blue) can be
configured. Conversely, for Arm 2 (highlighted in yellow), the only Sik that can be
configured is that of the Robot.
HS-0-C4E-USO_62.fm
00/0708 6-142
TP4i - Setup Page
A Sik device can be activated on auxiliary axes or on robot axes: to each Arm or
Auxiliary Axis, 2 $SDIN and 2 $SDOUT are associated, reserved for the corresponding
Sik.
The $SDIN and $SDOUT signals for the ARMS (Robot), are included between 25 and
32, as indicated in Fig. 6.146.
The $SDIN and $SDOUT signals for AUXILIARY AXES, are included between 65 and
96, as indicated in Fig. 6.147.
HS-0-C4E-USO_62.fm
6-143 00/0708
TP4i - Setup Page
The controls available to manage the Sik devices in the SETUP environment are:
– Cnfg (F1)
– View (F2)
– Map (F3)
– Save (F5)
– Quit (F6)
WARNING
For any operation it is wished to carry out (mapping of I/O signals, current
configuration display or reset), FIRST OF ALL:
In brief, the complete configuration procedure for the Sik is the following:
b. press Cnfg (F1) to confirm the settings for the required command. If it is wished to
configure more than one Sik device, return to step a. and carry out the other
settings;
c. check that the situation is consistent (View (F2)) and if necessary execute a Reset
of previous setup,
d. define the I/O signals that pilot the selected Sik devices (Map (F3)),
The display of the new configuration (View (F2)) always refers to the LAST
SAVING.
To view the configuration that has just been executed, FIRST it has to be saved
(Save (F5)).
HS-0-C4E-USO_62.fm
00/0708 6-144
TP4i - Setup Page
It is to be remembered that the display (View (F2)) is always referred to the LAST
CONFIGURATION SAVED (Save (F5)) !
b. choose the required interface board - the system gives the following information
(with reference to the example in Fig. 6.149):
• number of Arm (A)
• number of any Auxiliary Axis (B)
• number of current operation (C) in relation to the total number of operations
required (D)
• number of Sik (E).
To select the interface, use the menu highlighted in yellow in Fig. 6.149;
HS-0-C4E-USO_62.fm
6-145 00/0708
TP4i - Setup Page
c. press softkey Next (F6) to access the next screen page (Fig. 6.150);
d. Choose the index of the first $SDIN and the first $SDOUT to be associated to the
selected Sik - to modify these indexes, move the focus on the spindial concerned,
press ENTER to pass to editing mode (as indicated in Fig. 6.150), change the
value and press ENTER again to confirm;
Always make sure that the same I/O indexes are not chosen for different Sik!
e. press softkey ok (F3) to make the choice of indexes final. If there are more than
one mapping operation, the system will show further screen page for choice (see
Fig. 6.151); the user has to execute step b. again; if the mapping that has just been
executed was the last (or only) request, go to step f.;
HS-0-C4E-USO_62.fm
00/0708 6-146
TP4i - Setup Page
g. If it is wished to view the configuration that has just been executed, read carefully
the description for the View (F2) command.
It is to be remembered that to make the configuration final (even if only to view it!)
it MUST be saved (Save (F5) command ).
Press OK (F5) to return to the main page for the Sik devices.
HS-0-C4E-USO_62.fm
6-147 00/0708
TP4i - Setup Page
a. from the SIK Setup main screen page, select the Clear command. To do so, move
the focus on the central bottom softkey combobox (highlighted in yellow in
Fig. 6.153), press ENTER to open it, select the Clear function and press ENTER
again to confirm.
Having reset the previous configuration the start is certainly from a consistent situation.
6.16.2.6 StrokeEnd
By selecting the StrokeEnd icon, the ends of strokes of all the current arm axes can be
changed (set on the Motion Page, Basic sub-page).
6.16.3 AUX_AXES
Selecting the AUX_AXES icon, the user can choose to configure a positioner, an
integrated slide or a gantry.
HS-0-C4E-USO_62.fm
00/0708 6-148
TP4i - Setup Page
After making the required changes, to save the configuration set, press Save (F5).
6.16.3.1 Positioners
When the Positioners environment is selected, the screen page of Fig. 6.156 is
displayed, where the following data has to be selected:
– Positioner - the positioner index; the C4G system can manage up to 4 positioners
– Type - the type of positioner to be configured. The choice is between:
• rotary axes
• perpendicular axes
• non perpendicular axes
• “L” axes
– Arm - the arm associated to the positioner to be configured.
HS-0-C4E-USO_62.fm
6-149 00/0708
TP4i - Setup Page
Having made the choice, press ENTER. The system displays the screen page relating
to the type of positioner selected (see Fig. 6.157, Fig. 6.158, Fig. 6.159 and Fig. 6.160).
On this screen page the user has to specify the maximum radius of the part overall
dimensions [mm].
HS-0-C4E-USO_62.fm
00/0708 6-150
TP4i - Setup Page
HS-0-C4E-USO_62.fm
6-151 00/0708
TP4i - Setup Page
6.16.3.2 SLIDE
To configure the integrated slide, the following parameters have to be inserted (see
Fig. 6.160).
– Height (mm) - the distance between the floor and the robot base (installed on the
slide)
– Slide axis calibration position (mm)
– Positive Stroke-end and negative stroke-end (mm)
– Angle - the mounting angle of the robot on the slide, measured anticlockwise from
the slide axis to the robot axis Xbase.
– Integrated - if selected, this checkbox indicates that the slide is managed by the
system in integrated mode
– TX_RATE value - the baud rate value
– TX_RATE sign - the baud rate sign (Plus / Minus)
The user has to enter the required values and confirm with OK (F5). To cancel the
changes made, press Close (F6) or ESC.
6.16.3.3 iPortal
In this environment the parameters can be set for the configuration of:
– Gantry with 3 linear axes
– Gantry with 2 linear axes
– Trans-rotary column
HS-0-C4E-USO_62.fm
00/0708 6-152
TP4i - Setup Page
HS-0-C4E-USO_62.fm
6-153 00/0708
TP4i - Setup Page
On this screen page the user has to specify the positive, negative stroke-ends and the
calibration position.
Also the following parameters are to be specified:
– robot mounting angle on column overhanging beam;
– robot mounting position on column (low/high);
– height of column [mm];
– radius (from column centre to centre of robot base) [mm];
– column mounting angle on slide [°];
– column mounting offset on slide [mm].
6.16.4 ReloadSw
To load the software related to:
– Control Unit (C4G)
– Teach Pendant (TP)
As shown in Fig. 6.165, the required icon has to be pressed to have access to the
related sub-page.
HS-0-C4E-USO_62.fm
00/0708 6-154
TP4i - Setup Page
6.16.4.1 C4G
On this sub-page it is possible to reload the system software and restart the system (see
Fig. 6.166). This operation is especially useful to update system software to a new
version.
The user is allowed to load the system software from the following devices: either
– From Disk-On-Key (XD:) or
– From PC (COMP:).
b. connect the Disk-On-Key in the USB port on the cabinet door or in port X3 of the
SMP board. On the TP the following message is displayed “---- 30888-02 device
XD: active”;
e.1 Full - which loads the system software and the mechanical Data File; copy the
appropriate files and run an automatic Restart to make the newly installed basic
software operational. Press OK (F5).
e.1.1 After the Restart, select: loading device, robot family, presence of any auxiliary
axes, type of robot to be installed and related serial number;
e.1.3 select the motion programming mode (modal, nodal) which should be modal
except for a particular user customization wich means, in this context, reserved
(the word ’nodal’ used here, is in no way related to mode WITH $PAR).
HS-0-C4E-USO_62.fm
6-155 00/0708
TP4i - Setup Page
e.1.4 Press the Save key. The system saves in the .C4G file.
e.1.5 Upon termination, press the End key to execute the automatic Restart.
e.2 Upgrade - which loads the new software without changing the system
configuration. Press OK (F5).
e.3 Data File - to change the system configuration without updating the operating
system. Press OK (F5).
f. Reset the Latched alarm if necessary (see par. 6.9.3 Latched on page 6-61).
WARNING: selecting the 'FULL' and 'DATA FILE' items, the .C4G file is deleted,
and, after Restart, the system is put to minimum configuration.
If it is intended to recover some data in the .C4G file (for example I/O
configuration), before pressing OK (F5), execute a CONFIGURE SAVE
CATEGORY of the required category, specifying a file name as the destination for
the saving (for example IO_CONF.C4G).
After loading the new software version, execute a CONFIGURE LOAD CATEGORY
of the previously saved file (IO_CONF.C4G in the previous example).
For further information regarding these two functions, see chapter System
Commands, paragraphs CONFIGURE LOAD CATEGORY and CONFIGURE SAVE
CATEGORY.
a. Run the WinC4G program on PC; WinC4G has to be connected and the transfer
folder has to be correctly set to search for the files to be updated. To do this,
proceed with the following steps:
c. set the Control address (for example 172.22.178.41) in the TCP-IP box. This
address can be read from the Teach Pendant Home Page;
d. connect to the Controller with Maintenance Login profile, from the File Connect
menu (or icon);
e. to complete the procedure, use the Teach Pendant as described in the previous
par. 6.16.4.1.1 From Disk-On-Key (XD:) on page 6-155, selecting the loading
device COMP: instead of XD:.
6.16.4.2 TP
On this sub-page it is possible to reload the Teach Pendant software, basic software
(BSP) and/or User Interface software (see Fig. 6.167).
HS-0-C4E-USO_62.fm
00/0708 6-156
TP4i - Setup Page
A special case is the loading of versions prior to the TP4i software (see
par. 6.16.4.2.3 Loading of TP4i software versions prior to the currently installed
on page 6-158).
First of all, check the Teach Pendant BSP version on the Service Page - Sysinfo
(SCV), selecting the line BSP of TP Version. If the version is different from either
2.0/18 (for TP4i) or 1.5 (for WiTP), execute the following procedure for Teach
Pendant BSP loading; otherwise directly go to the User Interface software loading
(SW TP) procedure.
c. select the Reload button of the TP BSP, and press ENTER to confirm;
d. answer OK to the question asking if the user wishes to reload the BSP of the TP.
After loading, a message is displayed to inform the user that the BSP has been
successfully copied;
HS-0-C4E-USO_62.fm
6-157 00/0708
TP4i - Setup Page
c. select the Reload button of the TP software and press ENTER to confirm;
d. answer OK (F5) to the question asking if the user wishes to reload the TP software.
After loading, a message is displayed to inform the user that the TP software has
been successfully copied;
e.1.3 shut down the C4G by means of the Controller Main Switch (this is only needed
when BSP has been reloaded).
e.2.1 if the BSP has been previously reloaded, shut down the C4G by means of the
Controller Main Switch, otherwise answer affirmatively to the question about
restarting the Teach Pendant.
e.3.1 answer affirmatively to the question about restarting the Teach Pendant;
f. check, in the Service Page - Sysinfo (SCV), that the version of the TP SW, the TP
BSP and the C4G software have been properly updated.
a. Make sure that in the LD:\TP4i folder there is the libtp4i.so file (otherwise copy it
from the Files Page or WinC4G, taking it from the delivered software version);
b. select C4G (LD:/TP4i) as the device from which the software is to be loaded (see
Fig. 6.168)
HS-0-C4E-USO_62.fm
00/0708 6-158
TP4i - Setup Page
c. select the Reload button of the Teach Pendant SW (see Fig. 6.167) and press
ENTER to confirm.
e. After loading, a message informs the user that the procedure has been
successfully completed.
f. Restart the Teach Pendant (see par. 6.2.1.6 Keys to restart the Teach Pendant on
page 6-14).
For the WiTP (both Wired or Wireless versions) use procedures Teach Pendant
BSP loading and User Interface software loading (SW TP) procedures.
6.16.5 Backup
This environment is used to set the SaveSet and the Device for the Backup /
Restore operations.
DO NOT EXECUTE THESE OPERATIONS: to do so it is necessary to access Files
Page, command Utility (F4), Backup (FUB).
6.16.5.1 Backup
Displays the Savesets actually defined in the system in order to carry out the backup
operation (see Fig. 6.169).
If the user wishes to change one or more fields of the sub-pages, the procedure is as
follows:
HS-0-C4E-USO_62.fm
6-159 00/0708
TP4i - Setup Page
a. press the down arrow to move the focus on the first field
6.16.5.2 Restore
Displays the Savesets actually defined in the system in order to carry out the restore
operations (see Fig. 6.170).
See NOTE regarding the entry number in the UD: root directory.
HS-0-C4E-USO_62.fm
00/0708 6-160
TP4i - Setup Page
6.16.5.3 Device
Allows to set the default device required for the backup/restore operations.
HS-0-C4E-USO_62.fm
6-161 00/0708
TP4i - Setup Page
– In this sub-page it is also possible to change the date and time of the Control Unit
(Hour:, Min: and Sec: fields for TIME and Day:, Month: and Year: fields for DATE
in Fig. 6.171).
6.16.7 FB_TOOL
Open the configuration environment of the Fieldbuses, written in VP2 language. For
further information see Chap.12. - FB_TOOL program for configuration of Fieldbus.
6.16.9 IO_TOOL
Open the configuration environment of the I/Os, written in VP2 language. For further
information see Chap.13.1 - IO_TOOL Program - I/O Configuration in VP2.
HS-0-C4E-USO_62.fm
00/0708 6-162
TP4i - Setup Page
6.16.10 Login
Displays the logins actually defined in the system.
6.16.10.1 User
Allows to add / cancel the configured users. To run these commands, the user must be
logged with Administrator profile.
The available commands are:
– Add (CCLA)
Adds a User (Login). The operator is asked to specify Username, Password and
User Identifier (User ID). Besides, the user profile has to be defined. In case the
user does not give the requested information, the default privileges are used.
– Delete (CCLD)
Cancels the selected user from the system database.
HS-0-C4E-USO_62.fm
6-163 00/0708
TP4i - Setup Page
To get this change active, the command Save the configuration file (CSA) must be
given. Only one startup Login at a time is possible.
6.16.11 Network
Relates to the network settings active on the Control Unit. The following data is
displayed:
– network address (IP) for the SMP board
– mask for local network (subnet mask), for the SMP board
– gateway on SMP
– MAC address of the Ethernet ports on the system
– network address (IP) on SMP backplane
– network address (IP) on MCP backplane
– gateway inlet on MCP board
The user is allows to modify only the two first fields. The other fields are read-only. To
make any changes effective, run the Save the configuration file (CSA) command.
Through the checkbox (highlighted in red in Fig. 6.176), the user can specify whether
the DHCP function is to be used to automatically receive the IP address, the subnet
HS-0-C4E-USO_62.fm
00/0708 6-164
TP4i - Setup Page
Warning: changes made on the DHCP selection are only executed at the next
restart
To use this function, the user has to move the focus on the checkbox and confirm with
ENTER (see Fig. 6.177).
In this case all the fields become read-only, therefore the network settings are managed
by the system only.
HS-0-C4E-USO_62.fm
6-165 00/0708
TP4i - Setup Page
The checkbox for the activation of the DHCP function is shown in Fig. 6.179 (highlighted
in red); the use is the same as described previously in Fig. 6.176 and Fig. 6.177.
Warning: changes made on the DHCP selection are only executed at the next
restart.
6.16.12 ToolFrame
Activates the TO_SET program to manage the tools.
TO_SET is an environment to calculate the $TOOL, $UFRAME, $AUX_BASE values of
the positioners and to configure the Conveyor, in a guided and automatic mode. It also
offers the user the possibility to run the payload identification procedure (optional feature
- please refer to Motion Programming manual) for a correct definition of the load
parameters used.
HS-0-C4E-USO_62.fm
00/0708 6-166
TP4i - Setup Page
Not already installed, use the Install (FUI) sub-page, selecting the TO_SET application
and confirm with Install (F5).
After installation the system informs the user that the TO_SET program is correctly
installed and can be used.
For further details concerning the use of this program, please refer to Motion
Programming manual, Chapter TO-SET PROGRAM- TOOL MANAGEMENT.
HS-0-C4E-USO_62.fm
6-167 00/0708
TP4i - Setup Page
HS-0-C4E-USO_62.fm
00/0708 6-168
TP4i - Service Page
This sub-page is used to execute an instruction without the need to have it in the body
of the PDL2 program. The following fields can be edited:
– Execute
is a Combobox to contain the instruction to be executed. Usually this instruction is
to have a brief duration, however it is possible to insert more than one instruction
in this field, separating them by ';' (semi colon).
To use the Execute command, proceed as follows:
a. first of all, move the focus onto this field and confirm with ENTER
b. press the down arrow key: a list of predefined choices is displayed, to facilitate the
insertion of the instructions
d. to activate the proper execution, press (briefly) the Exec softkey (F1) in the Bottom
Menu (see Fig. 6.181).
HS-0-C4E-USO_63.fm
6-169 00/0708
TP4i - Service Page
During execution the '^C' softkey (F2) is available in the Bottom Menu that
interrupts the execution if necessary.
– Context Program
an option that can be activated by the Exec key (F1) (press for a long time).
HS-0-C4E-USO_63.fm
00/0708 6-170
TP4i - Service Page
6.17.3 Arm
Fig. 6.183 - Arm sub-page
Includes some information much more specialized than those included in the Basic
sub-page of Motion Page, as far as the various axes are concerned (see Fig. 6.183).
The read-only data in question are:
– Currents - indicates the current of the axis motor (expressed in ampere)
– Follow - indicates the error between the current position of the axis and the wanted
one, expressed in motor revolutions
– Revolution - indicates the current position of the axis, expressed in motor
revolutions
– Temperat. - indicates the temperature of the motor relating to that axis, as a
percentage of the ratio between the mean value absorbed and the motor
characteristics. More precisely, the formula used to calculate this datum uses the
square of the motor mean current draw and the square of the characteristic of the
motor itself.
HS-0-C4E-USO_63.fm
6-171 00/0708
TP4i - Service Page
– Joints Pos. - indicates the current joints position of each axis of the current arm
The Controller mean drawn power is also displayed in KVA.
6.17.4 Multiarm
Fig. 6.184 - Multiarm sub-page
Displays the current position (in joints and in Cartesian mode) of all the axes of all the
arms on the system.
The maximum number of axes that can be displayed is 40.
6.17.5 Battery
This sub-page is only present if the Teach Pendant is WiTP wireless type.
HS-0-C4E-USO_63.fm
00/0708 6-172
TP4i - Service Page
If there is a battery malfunction the text "Status not valid" may be displayed.
When the charge drops below 8%, the system asks the user to place the WiTP in
the docking station, otherwise it is no longer possible to use it.
HS-0-C4E-USO_63.fm
6-173 00/0708
TP4i - Service Page
HS-0-C4E-USO_63.fm
00/0708 6-174
TP4i - TP-INT Page
Exiting the TP-INT page is obtained by pressing the TP-INT softkey again.
This paragraph describes the following topics in details:
– Navigation among commands
– Virtual Keyboard
a. by using the cursor keys to select the wanted command, then pressing ENTER to
confirm or ESC to return back (without execution of the selected command); or
b. by pressing the function key 'F1-F8' (displayed in the Bottom Menu) and then using
the cursor keys to select the wanted key Fx, and finally confirming with ENTER;
ESC closes the menu F1-F8.
The F1-F8 menu indispensable to navigate from the TP4i in the EDITOR
environments (Filer Edit, Program Edit and Memory Debug), however advised to
use only from WinC4G environment.
To navigate in the system menus, the use of the method described at item a. is
recommended.
For the meaning and use of commands, please refer to the Chap. System
Commands.
HS-0-C4E-USO_64.fm
6-175 00/0708
TP4i - TP-INT Page
The keys pertaining to the VK are vertically displayed on the right hand of the page, and
horizontally above the Bottom Menu
To navigate on the Virtual Keyboard, use the cursor keys and acknowledge with
ENTER.
As for any other sub-environment, when the Virtual Keyboard is active, the cursor
is placed over it. To act in other fields, not pertaining to the VK (as for selecting a
command, writing a text, etc.), has to be closed before pressing VK OFF.
Rec
in editing environment, it inserts a move instruction, the declaration of the corresponding
position variable that is assigned the current arm position.
Opt
to view and use the options of the selected command, where foreseen.
EZ
pressing this softkey activates/deactivates the EZ program.
Mode
switches over between CODE and DATE modes of the Edit Program.
Sel
the cursor is moved onto the window where a program is waiting for an input from the
keyboard (e.g. READ instruction).
Del
calls the Delete Line command of the program editor .
Cut
deletes the program lines that have been selected with the Mark key.
HS-0-C4E-USO_64.fm
00/0708 6-176
TP4i - TP-INT Page
Copy
in editor, the program lines previously selected with the Mark key are stored in a buffer.
Undel
calls the Undelete Line command of the program editor.
Mark
used in editor to select program lines.
Paste
in editing environment, inserts the program lines selected with Mark and Copy keys in the
current cursor position.
Srch
searches for the first insertion of a string in the program text.
S.Nxt
searches for the next insertion of the string searched for, previously set by the Srch software
key.
Scrl
interrupts/resumes the scrolling of information on the display.
Char
displays the characters menu. The characters menu has two levels: the first level is to select
a series of characters, whereas the second level is used to select a specific character. The
characters menu is active when data is being entered into the selected field.
A1 and A2
keys available for the applications.
Excl
only active in programming mode. If the axis is taken over the electric stroke-end, an error
message is displayed and the robot is set in DRIVE OFF. To exit from this situation, press
the Excl key, set the system in DRIVE ON and move the axis in the opposite direction to the
stroke-end.
These keys provide for an additional visual information, indicating whether the
corresponding function is active or not: green “light” = function active,
grey “light” = function not active.
There are 8 keys, namely:
– Fly - in the programs editing environment, enables and disables the association of
the FLY to MOVE clause picked up with the REC key
– Xtnd, Jntp, Pos - allow to modify the input variable type by pressing the REC key
in program editing environments. According to the pressed key, variables of the
following types may be selected: XTNDPOS, JNTPOS or POSITION.
– Circ, Lin, Jnt - allow to modify the path type in program editing and debugging
environments, for the setting of the REC key. On the following pressure on the REC
key, a CIRCULAR, LINEAR or JOINT clause is put in the MOVE instruction.
– Sync - to enable or disable the use of the SYNCMOVE, in the REC key setup
(corresponds to the MemoryDebugSetupSyncEnable or
MemoryDebugSetupSyncDisable command).
HS-0-C4E-USO_64.fm
6-177 00/0708
TP4i - TP-INT Page
Any other operation regarding the REC key setup for the SYNCMOVE, is to be
executed by means of the MemoryDebugSetupSync command.
The pressure on any VK key causes the VK immediate closing. To use any VK key
again, first open the VK environment (VK-ON key).
Note that also pressing 'F1-F8' function key causes the immediate closing of the VK and
the cursor moving to the F1 key.
HS-0-C4E-USO_64.fm
00/0708 6-178
TP4i - Aggiunta di Pagine Utente
Note that:
– the <config>...</config> block (lines 2 to 11) may contain more than one
<page>...</page> identification block and corresponding icon definition of a new
User Page.
– <name>...</name> (line 4) to indicate the name of the new User Page
– <program-name>...</program-name> (line 6) to indicate the name of the PDL2
program within which the screens have been created.
– <screen-id>...</screen-id> (line 7) to indicate the ID of the screen referred to:
• scrn_user (default User Screen)
• or other screen defined by the user; in this case it is necessary to insert the
name of a variable that contains the ID of the screen returned by the built-in
SCRN_CREATE. This variable is to be declared in the program specified as
<program-name>
– <icon>...</icon> to specify the name of the file that contains the icon to be
associated to the new User Page. The default icon is userscreen.gif. If the user
wishes to have a personalised icon, the name and search path have to be
specified.
HS-0-C4E-USO_66.fm
6-179 00/0105
TP4i - Aggiunta di Pagine Utente
If PDL2 applications have to be used that were created for the previous C3G
Controller, also the Bottom Menu softkeys have to be reduced from 8 to 6. For
further information see the PDL2 Programming Language Manual, Chap.
TRANSITON FROM C3G TO C4G CONTROLLER.
Before using the icon of the personalised User Page, it is necessary that the
program referring to the Page is already active. It is a good practice to insert its
activation in the Startup.
HS-0-C4E-USO_66.fm
00/0105 6-180
System Commands
7. SYSTEM COMMANDS
7.1 Introduction
This chapter describes the system commands available for the C4G Control Unit. The
commands described can be entered from the following interfaces:
– PDL2 program - using the pre-defined SYS_CALL routine
– From PC - WinC4G program, Terminal window menu
– From TP - menu of commands from TPINT
The items of the commands are shown here in the most extended form, as they are seen
on the WinC4G screen page. On the other hand, on the TPINT page of the Teach
Pendant, they are shown in a short form: 4 characters for each command.
Fig. 7.1, shows the WinC4G Terminal windows and the TPINT page of the Teach
Pendant.
HS-0-C4E-USO_38.fm
00/0708 7-1
System Commands
HS-0-C4E-USO_38.fm
7-2 00/0708
System Commands
pressed; to scroll the list use the cursor keys and the ENTER key Besides which, for
some commands, if the HELP key is pressed following the introduction of one or more
characters after the prompt, only the parameters with the initials of the characters
introduced will be displayed.
To exit from the HELP window without selecting any parameters, press ESC.
To return to the command prompt, press SHIFT ESC to return to the main menu.
For files, there is also the possibility to select the name of the device to be specified
together with the file name by pressing ENTER at <device> that is displayed as the first
item on the list of the possible files.
The answer to a parameter prompt is to be typed before pressing ENTER. To move the
cursor on the answer line, the arrow keys can be used to the left or to the right. The
delete key removes the character situated immediately before the cursor, whereas the
arrow keys to the left and to the right if pressed together with SHIFT move the cursor to
the start and to the end of the answer.
HS-0-C4E-USO_38.fm
00/0708 7-3
System Commands
For further details regarding the syntax of this instruction, see the PDL2
Programming Language manual.
HS-0-C4E-USO_38.fm
7-4 00/0708
System Commands
7.8 Directories
The directories (up to 8 depth levels) are managed on the C4G Controller. The
specification of the directory and the associated device follow the MS-DOS syntax:
<name of device>:\<directory> For example: UD:\directory\filename
The directory and the default device used by the commands are set in a field of the
$DFT_DV variable.
The default directory can be changed using the command Filer Utility Directory Change
that only has effect on the device that the command is sent from (teach pendant or
Personal Computer with WinC4G active).
Therefore it could happen that on the teach pendant a certain default directory is set,
and on the PC it is another, and so the Help shows two different directory contents (on
the two different devices).
HS-0-C4E-USO_38.fm
00/0708 7-5
System Commands
The following table lists all the commands available, in alphabetical order. The string of
characters that, in most cases, is shown in brackets, is the code of the first parameter
to be used if the corresponding command is to be sent from SYS_CALL .
If the code is not displayed, the command cannot be called from SYS_CALL.
HS-0-C4E-USO_38.fm
7-6 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-7
System Commands
MEMORY DEBUG
HS-0-C4E-USO_38.fm
7-8 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-9
System Commands
HS-0-C4E-USO_38.fm
7-10 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-11
System Commands
HS-0-C4E-USO_38.fm
7-12 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-13
System Commands
HS-0-C4E-USO_38.fm
7-14 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-15
System Commands
HS-0-C4E-USO_38.fm
7-16 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-17
System Commands
HS-0-C4E-USO_38.fm
7-18 00/0708
System Commands
MINOR CATEGORY
Besides the Load Category, available as COMMAND, there is a Minor Category,
available as OPTION for each of the predefined variables.
In the paragraphs that follow, for each ConfigureLoadCategory and
ConfigureSaveCategory command, the Minor Categories provided are listed.
For further information, and above all, to know whether a certain variable will be
loaded or saved sending a ConfigureLoadCategory or ConfigureSaveCategory
command, see the PDL2 Programming Language manual, chapter Predefined
Variables List, item Minor Category (minor category of Load Category) in the table
regarding the variable involved.
For example:
$SENSOR_ENBL belongs to the Arm Load Category) and to the Sensor Minor
Category. Therefore reference will be made to the ConfigureSaveCategoryArm
and ConfigureSaveCategoryArm/Sensor commands (or
ConfigureLoadCategoryArm and ConfigureLoadCategoryArm/Sensor).
HS-0-C4E-USO_38.fm
00/0708 7-19
System Commands
HS-0-C4E-USO_38.fm
7-20 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-21
System Commands
/Conveyor
/Environ
/Flow
/Parameter
/Rules - $C4G_RULES, manual PDL2 Programming
Language, chap. Predefined Variables List -
/Shared
/Unique
/Vars
Syntax: CSCC <file_name>
HS-0-C4E-USO_38.fm
7-22 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-23
System Commands
HS-0-C4E-USO_38.fm
7-24 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-25
System Commands
HS-0-C4E-USO_38.fm
7-26 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-27
System Commands
The information shown is the same as for the PROGRAM VIEW (PV) command.
Options: /Full will display also all the programs with protected code, that
are not usually displayed.
Syntax: DP <program_name>
HS-0-C4E-USO_38.fm
7-28 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-29
System Commands
HS-0-C4E-USO_38.fm
7-30 00/0708
System Commands
(_). However, if the file is to contain a program name, the maximum size for the name is
32 characters.
The extension starts with a dot (.) and consists of three characters that can be letters,
digits and subscripts (_).
For a complete list of foreseen system software extensions, see par. 7.11 Types
of files available in the System on page 7-74.
Some commands are only operative on certain devices. For details, see the individual
commands.
NOTE
In the UD root directory : there is a limitation to the maximum number of entries
(512). This is due to the FAT-16 formatting of the compact flash.
A file name longer than 8 characters occupies more than one entry in the FAT (File
Allocation Table).
The problem does NOT exist in subdirectories, where the maximum entry limit is
higher (more than 65000).
If there is an excessive occupation of the root directory, it is advised to use file
names with a maximum of 8 characters, or to work in subdirectory.
Furthermore, it is advised to periodically delete the .BK* files in a permanent
manner.
See NOTE regarding the entry number in the UD: root directory.
It is advised to use FILER UTILITY BACKUP and FILER UTILITY RESTORE (instead
of FILER COPY) if all the files from the default backup device ($DFT_DV[3], usually XD:
or COMP:) are to be copied to the commands default device ($DFT_DV[2], usually UD:)
and vice-versa.
Options: /Confirm requires confirmation before the copying of each file.
/Overwrite rewrites the existing files without displaying the
confirm prompt.
Syntax: FC <source_file> <dest_file>
HS-0-C4E-USO_38.fm
00/0708 7-31
System Commands
See NOTE regarding the entry number in the UD: root directory.
A parameter is required for the filename. The wildcard cannot be used. Only the user
disk UD: can be used as device. If no extension is specified, the extension .PDL is used.
The command cannot be used if the IDE page on TP4i, the MEMORY DEBUG and
PROGRAM EDIT functions or the EZ environment are active.
This command is not allowed from SYS_CALL.
Syntax: FE <file_name>
HS-0-C4E-USO_38.fm
7-32 00/0708
System Commands
.PDL, a back-up file is created with extension .BKL and .BKP respectively for that .LSV
file. If no destination device is specified, the file is printed on the video.
If a .COD file contains checksum errors or other damaged data and it is not possible to
recover a backup copy of the same file, with FILER PRINT the program can be
converted to an ASCII file to save in the user disk (UD:).
See NOTE regarding the entry number in the UD: root directory.
The ASCII file can then be edited to correct the instructions and corrupted identifiers that
are distinguished by three question-marks (“???”). At the end, use FILER TRANSLATE
to convert the file again to a file with .COD extension.
As from system software version 3.20, further information can be printed, using the
option /Property. Standard attributes (Property) associated to the files are the following:
– drawn up by
– file creation date
– version
– host where file was created.
Options: /Full prints a variables file without shortening the names of the
identifiers contained (variables, programs, routines and data
classes).
/List generates a listing file (.LIS) from a .COD or .BKC file. The
listing file gives the name of the program and the line number at
the side of each PDL2 instruction.
/Overwrite Overwrite rewrites the old copy of the corresponding
file without asking for confirmation of the user.
/Nopage
/Range to print the lines of a file between the serial and final line
specified as additional parameters.
/Property to print the file properties (drawn up by, date of
creation, version, device where it was created).
Syntax: FP <file_name> <dest_device>
FP/L <file_name> <dest_device>
FP/N <file_name> <dest_device>
FP/R <file_name> <dest_device> <start_line><end_line>
FP/P <file_name> <dest_device>
HS-0-C4E-USO_38.fm
00/0708 7-33
System Commands
identifier inside the file. This type of error is only detected when the program is loaded.
Options: /Confirm displays a confirm prompt before each file is renamed.
/Overwrite rewrites the existing files without displaying any
confirm prompt.
Syntax: FR <source_file> <dest_file>
See NOTE regarding the entry number in the UD: root directory.
HS-0-C4E-USO_38.fm
7-34 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-35
System Commands
required, the specified user has to be already defined and logged on the Controller.
The NET_C checkbox indicates that the parameters associated to it will be used to
automatically configure the different $NET_C system variables (see PDL2
Programming Language manual - chap.Predefined Variables List). Therefore it is
not necessary that the user sets them.
HS-0-C4E-USO_38.fm
7-36 00/0708
System Commands
Example:
##################################################
# Backup created 05-MAY-08 16:17:00
# Backup appended 05-MAY-08 16:44:40
# Backup appended 05-MAY-08 16:48:57
# Backup appended 05-MAY-08 16:49:55
UD:\box.pdl@02-04-07 11:24:08
UD:\brac_7ax1.cod@14-03-07 14:32:48
UD:\brac_7ax1.pdl@14-03-07 14:32:44
UD:\brev_002_r2.cod@13-11-07 10:18:16
UD:\brev_002_r2.lsv@19-11-07 13:34:44
UD:\brev_002_r2.pdl@12-11-07 18:54:44
UD:\brev_002_r2.var@16-11-07 11:30:20
HS-0-C4E-USO_38.fm
00/0708 7-37
System Commands
In this way, using a single command it is possible to execute the backup of files from
different devices or directories, files with a certain name, include the subdirectories,
exclude some files.
The following switches are also provided to set the value of $BACKUP_SET:
/A (=After) to execute the backup of created/modified files
AFTER a certain date
/U (=Unset) not to set attribute 'a' for a certain file
/I (=Incremental) to execute the backup of files that have not been
previously saved only (without 'a' attribute)
/S (=Subdirectories) to include subdirectories
/X (=eXclude) to exclude files from the backup
At present the following predefined Savesets are available:
$BACKUP_SET[1] : "All|"TTS_USER_DEV"\\*.*/s"
$BACKUP_SET[7] : "Today|"TTS_USER_DEV"*.*/s/a0"
$BACKUP_SET[8] : "Inc|"TTS_USER_DEV"*.*/s/i"
Syntax: FUB <file_name>
FUB/S <saveset_name>
Examples: FUB * XD:r026 copies in subdirectory r026 of device XD:
FUB/A0 executes backup of today's files
FUB/A-1 executes backup of files from yesterday
FUB/I * executes backup of files not yet saved in a previous
backup
FUB/T * NET8: executes backup on another device
HS-0-C4E-USO_38.fm
7-38 00/0708
System Commands
See NOTE regarding the entry number in the UD: root directory.
Options: /Configure allows the recovery of the old configuration file that,
after being copied with the extension .C4O, is loaded on the
control. This is followed by Configure Save All.
/Saveset to specify a predefined saveset that indicates where the
files are to be taken from to be copied. The saveset is to be set
beforehand in an element of the predefined $RESTORE_SET.
For example, if it is required to refer to the contents of the
$RESTORE_SET[2]variable, set to value ‘set1|UD:\dir1\*.*’, the
command is to be sent specifying the parameter as ‘set1’.
/After copies files that are more recent than a certain date. It is
useful for the restore of files from a certain date, for example,
today.
To specify date or count of days a sign can be indicated that has
the meaning of "before" or "after" the date or count of days
indicated below.
Examples:
0 signifies files as from today
-1 means all files before 00 of today;
-18/06/08 means files before 18/06/08;
18/06/08 signifies files OF THAT DATE and AFTER IT.
/From copies files that are on a device different to the default
($DFT_DV[3]). The source directory can be specified on this
device.
/Newer executes the restore of the files that are more recent than
the previous backup.
A saveset name can be indicated instead of a file name.
The following switches are also provided to set the value of $RESTORE_SET:
/A (=After) to execute restore of files that are more recent than
the date stored in LST file
/N (=Newer) to execute restore of files that are more recent than
those of.LST file
/S (=Subdirectories) to include subdirectories
/X (=eXclude) to exclude files from restore
Syntax: FUR <file_name>
FUR/S <saveset_name>
Examples: FUR executes restore of all files, from backup, and leaves the
HS-0-C4E-USO_38.fm
00/0708 7-39
System Commands
HS-0-C4E-USO_38.fm
7-40 00/0708
System Commands
information.
/Property displays file properties (drawn up by, date of creation,
version, device where it was created)
Syntax: FUCV <archive_name> <file_name>
FUCV/B <archive_name> <file_name>
FUCV/P <archive_name> <file_name>
HS-0-C4E-USO_38.fm
00/0708 7-41
System Commands
HS-0-C4E-USO_38.fm
7-42 00/0708
System Commands
If the program has been loaded with the /FULL option, the text can also be
changed.
Programs loaded with the /PERMANENT option, only available from SYS_CALL,
cannot be used in MEMORY DEBUG.
The command requires the parameter with the name of the program.
To use this command the control must not be in FATAL state.DEBUG cannot be used if
the commands FILER EDIT, PROGRAM EDIT or MEMORY TEACH are active, or if the
IDE environment is active.
This command is not allowed from SYS_CALL.
Syntax: MD <program_name>
HS-0-C4E-USO_38.fm
00/0708 7-43
System Commands
If it is not possible to load the program due to damage to the data contained in the
.COD file, recover a backup copy of the same file (.BKC) or translate the program
into ASCII format using the FILER TRANSLATE command. Next, edit the ASCII file
obtained and correct the damaged instructions and identifiers, that are
distinguished by three question marks ("???"). Once the corrections have been
made, reconvert the file to a .COD file using the FILER TRANSLATE command.
Options: /As, to load programs with a different data file (.VAR), specified
as a parameter. Asterisks cannot be used with this option.
/Convert converts, where possible, conflicts between data file
and the program
/Depend automatically loads the code and the variables of the
programs referred in the program code specified as parameter to
MEMORY LOAD. If the referred files are in different directories
the predefined variable $DEPEND_DIRS has to be set, that
contains the path that the Load command will use in the search.
/Full loads the entire program with the related comments and
empty lines. If a program has been loaded with the /FULL, option
it can be edited in the MEMORY DEBUG environment and
saved. The programs that have the EZ attribute in the heading
are automatically loaded with the /FULL option.
/Nosavevars disables the saving of the variables (or VAR)
when MEMORY SAVE is executed on this program. This
option is only available if used together with the internal
SYS_CALL routine.
/Variables loads only the data file of the specified program.
/Permanent loads the program code in the memory in permanent
HS-0-C4E-USO_38.fm
7-44 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-45
System Commands
HS-0-C4E-USO_38.fm
7-46 00/0708
System Commands
– drawn up by
– file creation date
– version
– host where file was created.
Options: /Full displays all the information referring to the program.
/Nopage
/4 Useful from SYS_CALL to TP-INT Page (see Option /4 to view
in the 40 columns)
/Property displays program properties (drawn up by, date of
creation, version, host where it was created).
Syntax: MVP <program_name>
MVP/F <program_name>
MVP/N <program_name>
MVP/4 <program_name>
MVP/P <program_name>
HS-0-C4E-USO_38.fm
00/0708 7-47
System Commands
The data class variables type STRING or ARRAY, where an asterisk was used in the
declaration and for which the real size has not been declared, are displayed with size 0.
Options: /Nopage
/Full displays the complete names of the variables, without
shortening because of their length.
Syntax: MVV <program_name> <variable>
HS-0-C4E-USO_38.fm
7-48 00/0708
System Commands
For further information see Chap. Basic procedures for Program development.
The program editor uses the files containing the codes of the PDL2 programs (.COD)
stored in the user disk (UD:). The name of the program is used as parameter and it is
not possible to use a wildcard.
When it is called, the editor tries to enter by default in DATA mode. The programs can
be edited in DATA mode only when the status selector switch is set to T1 and the
program is not active.
If it is not possible to enter in DATA mode, the program is opened in CODE mode, that
allows the programmer to change the program instructions, but not to execute the
verification or the learning of variables. The CODE mode has to be used to make
changes in the declarations section of a program. In CODE mode any program can be
edited, whether activated or loaded.
If it is not possible to load the program due to damage to the data contained in the
file, recover a backup copy of the same file or convert it to an ASCII file using the
FILER PRINT command.
The EDIT command cannot be used when the control is in FATAL state; the same
applies in cases where the FILER EDIT, MEMORY DEBUG or PROGRAM EDIT
(DATA or CODE mode) commands are active or when the IDE environment is
enabled. The use of the PROGRAM EDIT command with the MEMORY TEACH
command active is possible in CODE mode, but not in DATA mode.
HS-0-C4E-USO_38.fm
00/0708 7-49
System Commands
If it is not possible to load the program due to damage to the data contained in the
file, recover a backup copy of the same file or convert it to an ASCII file using the
FILER PRINT command. For further information regarding this procedure see the
section relating to the FILER PRINT command.
The following options, except for the Update and Argument, can be used to activate the
program with a step that is not the default step. See the description of the PROGRAM
TEST STEP command.
UPDATE option disables the question to the user, if the program to be activated is
already loaded and/or active in memory and in the user disk there is a more recent
version.
The ARGUMENT option is used to specify a parameter to pass to the program, when it
is activated. This parameter is automatically saved in the predefined variable
$PROG_ARG, and can be used at will within the program.
Options: /Argument - to pass a parameter to a program when it is
activated
/Cycle
/Disable
/Fly
/Move
HS-0-C4E-USO_38.fm
7-50 00/0708
System Commands
/Routine
/Statement
/Update: replaces the program in the memory, even if active,
loading the new copy from the user disk and activating it.
Syntax: PG <program_name>
HS-0-C4E-USO_38.fm
00/0708 7-51
System Commands
HS-0-C4E-USO_38.fm
7-52 00/0708
System Commands
being inside an editor environment. TEST cannot be used when the control is in FATAL
state.
A description of these subjects follows:
– Break menu
– PROFILE menu
– STEP menu
Both the /LABEL and /ROUTINE options are to be used to specify a label inside a
routine.
HS-0-C4E-USO_38.fm
00/0708 7-53
System Commands
HS-0-C4E-USO_38.fm
7-54 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-55
System Commands
HS-0-C4E-USO_38.fm
7-56 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-57
System Commands
HS-0-C4E-USO_38.fm
7-58 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-59
System Commands
HS-0-C4E-USO_38.fm
7-60 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-61
System Commands
HS-0-C4E-USO_38.fm
7-62 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-63
System Commands
With regard to Logout, as from System Software version 3.20, there is also a
function available called "Automatic Logout". For further details see par. 5.3.1
Automatic Timed Logout on page 5-5.
Syntax: SL <username><password>
HS-0-C4E-USO_38.fm
7-64 00/0708
System Commands
assigned to the physical output. Any assignment to the forced outputs will not change
the physical outputs or the program execution. It is not possible to change the value of
the forced outputs until the forced state is removed by UNFORCE. The operator can
choose whether to force the analog (AOUT), digital (DOUT), privileged digital (OUT),
flexible multiples (FMO) or group (GOUT) outputs.
To indicate the output to be forced, the index has to be specified.
The asterisk cannot be used.
As value to be forced it is possible to indicate:
– T: TRUE (ON)
– F: FALSE (OFF)
– C: the output will be forced to its current physical state.
Select the appropriate value and press ENTER.
A digital output that is part of a group has to be forced as group and not as a single digital
output.
HS-0-C4E-USO_38.fm
00/0708 7-65
System Commands
HS-0-C4E-USO_38.fm
7-66 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-67
System Commands
HS-0-C4E-USO_38.fm
7-68 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-69
System Commands
– Ahd Size: size of readahead buffer) 0 −4096 with steps of 128 (e.g: 0-128-256-...).
Only present when the buffer is present.
– Protocol: none, XON/XOFF
– Character management: none, ASCII, passall, ASCII + passall
The command displays a window containing the current settings. The right-hand and
left-hand arrow keys can be used to select the different characteristics. To pass to the
next characteristic, press the ENTER key, or the right, left arrow keys. With the upward
and downward arrow keys values can be selected for the selected characteristic. After
setting the required values for the characteristics, press PREV/TOP.
The CTRL C (^C) key interrupts the UtilityCommunicnPort_char command. If changes
have been made, the user is asked if the parameters are to be saved.
This command is not allowed from SYS_CALL.
Syntax: UCP <port_name>
HS-0-C4E-USO_38.fm
7-70 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-71
System Commands
To make the strings effective after each start of the Controller, the activation has to be
inserted in the STARTUP program, bearing in mind that also the HELPIO2 have to be
present in the UD: user disk.
-- This example program illustrates how the HELP strings have to
-- be compiled to display in the DISPLAY INPUT / OUTPUT commands.
HS-0-C4E-USO_38.fm
7-72 00/0708
System Commands
HS-0-C4E-USO_38.fm
00/0708 7-73
System Commands
Backup
extension
Extension Description
(where
applicable)
Single file containing list of actions executed on Controller (ASCII format of
.ACT .BKA
.LBA files)
.LBA Binary file containing list of actions executed on Controller .BKB
PDL2 program code, in binary format. It can be edited in IDE environments,
.COD .BKC
Program Edit, Memory Debug
.LBE Binary file containing list of errors detected on Controller .BKE
.LOG FileLOG file, for example ACTION.LOG and ERROR.LOG .BKG
.LSV ASCII version of .VAR file .BKL
eXtensible Markup Language type file, used to define additional syntaxes on
.XML .BKM
Controller
.PDL ASCII version of a PDL2 program .BKP
.UDB User Data Base type file that contains all permitted User Profiles .BKU
.VAR Binary file containing variables of a program .BKV
.VPS Source file for VP2.Builder .BKW
.LVP ASCII version of VP2 file .BKX
.ZIP Compressed file not foreseen
Binary file containing system configuration. It can be loaded or saved in the
system memory using Config. Function, from Setup page (and the
.C4G corresponding ConfigureLoad and ConfigureSave commands from WinC4G .BK4
and TP-INT; for further information, see CONFIGURE branch, Load menu and
Save menu).
HS-0-C4E-USO_38.fm
7-74 00/0708
WinC4G Program - interface to C4G on Personal Computer
8.1 Foreword
This chapter contains the information concerning the WinC4G program that represents
the interface on Personal Computer, to Robot Control Unit C4G.
In detail, it describes:
– WinC4G Activation
– Connection to the Robot Control Unit
– User interface
– WinC4G operating parameters set-up
– Commands Menu
– Most common problems
8.2 Overview
The Winc4g program is a Windows style interface on PC to C4G Control Unit. It contains
several functions:
– display of files installed on the robot;
– possibility to translate in executable form (.COD) and edit them;
– errors search and display;
– possibility to open a Terminal window to directly forward commands onto the
Control Unit;
– conversion of already existing programs as a function to new reference points.
WinC4G is contained in the system software CD-ROM. It can run on Microsoft®
Windows® 2000, NT and XP operating systems.
It is to be installed on the PC invoking setup.exe program that is in the directory of such
a program.
There are two types of licences for the WINC4G program:
– basic licence
– full licence:
also enables the handling operations of the file (mirror and linear/rotational shift
functions, verification of axes, tool and frame updating), that can be selected from
the Handling menu, access from Remote by Proxy and Compact Flash
management (copy from and to Compact Flash control including the partitions),
HS-0-C4E-USO_37.fm
00/0708 8-1
WinC4G Program - interface to C4G on Personal Computer
WinC4G can also be started from the commands prompt. Choose the directory that contains WinC4G program
and enter “WinC4G” characters. The program will start the application using the default Properties file (.WCI).
To start the application using a specific .wci file, add the access path (associated or complete) to the .wci file
(for example “WinC4G c:\line\model1”)
HS-0-C4E-USO_37.fm
8-2 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-3
WinC4G Program - interface to C4G on Personal Computer
Start the WinC4G program (par. 8.3 WinC4G Activation on page 8-2) and open the
Properties window to set the field related to the type of connection (see Fig. 8.2):
b. in the address field specify that of the Control Unit for the connection. If this
address is not known, read the IP address from the Home Page of the TP4i Teach
Pendant (or from the TP-INT page, through the SetControllerView command).
HS-0-C4E-USO_37.fm
8-4 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-5
WinC4G Program - interface to C4G on Personal Computer
Note that in the configuration of Fig. 8.4, the Internet infrastructure is not aware of the
sub-network existing between Local PC and Controller (192.168.1.0), therefore the
Remote PC is not able to send/receive packages on address 192.168.1.2.
For this reason a direct connection is necessary between Remote PC and Local PC.
This direct connection can be obtained connecting the two PCs via Virtual Private
Network (VPN=Virtual Private Network).
With VPN, the Remote PC and Local PC are connected as if on the same network
(hence the term VPN).
The above description is illustrated in Fig. 8.5:
Note that now Local PC and Remote PC have addresses on the same sub-network.
HS-0-C4E-USO_37.fm
8-6 00/0708
WinC4G Program - interface to C4G on Personal Computer
To complete the installation, the Remote PC has to "know" how to reach the Controller
and vice-versa. This is feasible by just executing a direct "route add" on the two
machines.
On Remote PC: "routeAdd 192.168.1.2 90.1.1.2"
On Controller: DV4_CNTRL #5 equivalent to "routeAdd 90.1.1.1 192.168.1.1
Note: during the description of the procedures that follow, it is assumed that the
PC has Windows XP operating system installed and that the user has
Administrator privileges.
e. In the next dialogue window, select “Set up an advanced connection” and press
“Next” (see Fig. 8.7)
HS-0-C4E-USO_37.fm
00/0708 8-7
WinC4G Program - interface to C4G on Personal Computer
f. In the new dialogue window select “Accept incoming connections” and press “Next”
(see Fig. 8.8).
g. In the next window, deselect all items present on the screen page and press “Next”.
h. In the next window select item “Allow virtual private connections” and press “Next”
(see Fig. 8.9).
HS-0-C4E-USO_37.fm
8-8 00/0708
WinC4G Program - interface to C4G on Personal Computer
i. In the next window, select (and/or if necessary add) Windows users who have
permission to connect to the machine using VPN. This login information must also
be known to the Local PC users, when wishing to connect. Press “Next”. (see
Fig. 8.10).
j. In the next dialogue window, select “Internet Protocol (TCP/IP)” and click on
“Properties”;
k. on the screen page of Fig. 8.11, select items “Allow callers to access my local area
network” and “Specify TCP/IP addresses”
HS-0-C4E-USO_37.fm
00/0708 8-9
WinC4G Program - interface to C4G on Personal Computer
l. Deselect item “Allow callers to access my local area network” and insert a range of
TCP/IP addresses that are not in conflict with its own IP address. Press "OK" then
press “Next”.
m. On the next screen page (see Fig. 8.12) press “Finish” to complete the
configuration.
Note: only one server instance at a time can be active on the machine.
HS-0-C4E-USO_37.fm
8-10 00/0708
WinC4G Program - interface to C4G on Personal Computer
IP forwarding enable
WARNING! wrong use of the system register editor can cause serious problems that could
require reinstallation of the operating system. The use of the system register editor is at the
risk and peril of the user.
e. In the next dialogue window, select “Connect to the network at my workplace” and
press “Next” (see Fig. 8.13)
f. In the new dialogue window select “Virtual Private Network connection” and press
“Next” (see Fig. 8.14).
HS-0-C4E-USO_37.fm
00/0708 8-11
WinC4G Program - interface to C4G on Personal Computer
g. The next window asks for the Connection Name: type in a name at will and press
“Next”.
h. The next window asks for the internet or intranet address of the VPN server for the
connection. Insert this information and press “Next” (see Fig. 8.16).
HS-0-C4E-USO_37.fm
8-12 00/0708
WinC4G Program - interface to C4G on Personal Computer
i. In the next screen page select the required item, according to whether the
connection may be used by all or has been created for user personal use only.
Press “Next”.
j. On the next screen page (see Fig. 8.17) press “Finish” to complete the
configuration.
The connection is ready to be activated. When connected (see par. 8.4.3.3 Connection
procedure on page 8-13), the system displays the following screen page (Fig. 8.18):
HS-0-C4E-USO_37.fm
00/0708 8-13
WinC4G Program - interface to C4G on Personal Computer
c. When the Local PC is connected, add a route to the Controller, via VPN server,
with the command DOS "route add 192.168.1.2 90.1.1.2".
d. Insert the Controller IP address (in this example 192.168.1.2), Username and
Password.
Connection should be active. WinC4G, Ping, FTP can be used for local connection.
c. A route to the Remote PC has to be added on the Controller. In our example the
command will be: DV4_CNTRL(5, '90.1.1.1', '192.168.1.1').
d. Connect to Internet
e. ask Remote PC manager for IP address of the PC address on Internet and launch
client VPN
f. give the Remote PC manager the Controller IP address (in our example
192.168.9.2), Username, and Password.
After connection, delete the route previously added using command DV4_CNTRL(6,
'90.1.1.1', '192.168.1.1').
HS-0-C4E-USO_37.fm
8-14 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-15
WinC4G Program - interface to C4G on Personal Computer
WinC4G Proxy mode can be selected providing no other terminal connection is active.
It is configured by the "Remote Access" command from the Tools menu (or through the
corresponding key on the Toolbar). The following dialogue window is shown:
HS-0-C4E-USO_37.fm
8-16 00/0708
WinC4G Program - interface to C4G on Personal Computer
NOTE
Local PC is to be connected and communicating with Controller, when
connection with Remote PC is requested.
HS-0-C4E-USO_37.fm
00/0708 8-17
WinC4G Program - interface to C4G on Personal Computer
When the terminal connection is activated, the Remote WinC4G is connected to the
Proxy WinC4G.
HS-0-C4E-USO_37.fm
8-18 00/0708
WinC4G Program - interface to C4G on Personal Computer
The "Chat message" area displays the messages sent by the two users. Each line
indicates the time and the sender of the messages.
The "Input text" area is used to type the message to be sent.
The "Invia" key is used to send the message written in the "Input text" area. The
message can also be sent by pressing ENTER on the keyboard.
HS-0-C4E-USO_37.fm
00/0708 8-19
WinC4G Program - interface to C4G on Personal Computer
1. Directories Panel
2. Files Panel
3. Tools panel
4. Output Panel
HS-0-C4E-USO_37.fm
8-20 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-21
WinC4G Program - interface to C4G on Personal Computer
This viewing also functions on a multiple selection of files, as shown in Fig. 8.24.
If a binary file is opened (.COD, .VAR or .C4G), this is converted to ASCII, a format that
can be read by the user. If errors are found during the translation, these are displayed
to the user and the operation is interrupted. In such cases it is best to check that the file
is not corrupt, and that it has been generated using a translator software version that is
compatible with that used by the application (i.e. lower or same version).
The .C4G files can be displayed, edited but not reconverted to binary format (.C4G).
The files can be translated from Binary to ASCII, selecting the required .COD file and
entering the Translate command from the Edit menu. In this way a .PDL file is created
that the user can open in the Translations Window. With the same command (Translate
HS-0-C4E-USO_37.fm
8-22 00/0708
WinC4G Program - interface to C4G on Personal Computer
from the Edit menu) it is possible to ask for the translation from ASCII to binary: in this
way the system creates a new .COD file and saves the previous version in a .BKC file.
See NOTE regarding the entry number in the UD: root directory.
8.5.1.3 Cause/Remedy
The Cause/Remedy Window (Fig. 8.26 - Cause/Remedy Window) is used to find
information on the cause of a certain error and how to solve the problem.
The user has to specify the number of the error and enter Find.
The application looks for the error in file with the extension .CRD indicated in the
Properties Window at the Select .CRD key. The files containing all the errors and their
causes and solutions are divided by language and are called:
– ROBMSGI.CRD - Italian
– ROBMSGE.CRD - English
– ROBMSGF.CRD - French
– ROBMSGD.CRD - German
– ROBMSGP.CRD - Portuguese
– ROBMSGS.CRD - Spanish
To these, those of the applications can be added if they are distributed. Through this
dialogue box a .CRD file can be added or removed (for example one that is connected
to a specific application) to the error list. The maximum number of CRD files that can be
selected is 10.
The user can customize the comments associated to a certain error through the Add
Comment key on the Cause/Remedy page. A dialogue box is opened to enter a text that
will be displayed with that error.
This text will be saved in the specified .ZIP file that has been entered in the Properties
Window, in the User Texts Archive box.
The display of the User Text can be enabled or disabled through the checkbox.
HS-0-C4E-USO_37.fm
00/0708 8-23
WinC4G Program - interface to C4G on Personal Computer
From Winc4G all the C4G errors contained in the selected ROB*.CRD file can be saved
in a file or printed as a list .This operation requires a few minutes.
The related commands are ‘File Print All’ and ‘File Save All as’.
It is indispensable that these commands be sent when the Cause/Remedy page in the
Properties Window Properties Window, is active.
HS-0-C4E-USO_37.fm
8-24 00/0708
WinC4G Program - interface to C4G on Personal Computer
The Manipulation menu contains features that check and convert the values stored in
a .VAR file.
The functions are:
– check that the positional values stored in a .VAR are included in the range of the
stroke end limits (Axis check).
– modification to positional values stored in a .VAR, based on new values of $TOOL
and $UFRAME predefined variables (Tool and Frame update)
– linear shift of positional values stored in a .VAR. (Linear Shift).
– linear shift and shift in the orientation of positional values stored in a .VAR (Linear
Rotation).
– mirror referred to a plane (Mirror).
– modification to positional values stored in a .VAR basing on changes to calibration
data (Calibration).
– modification to positional values stored in a .VAR after modifications to the robot
kinematics (Sysdata adjust).
– modification of positional values stored in a .VAR after a wrong Turn Set operation
(Turn difference).
In the Manipulation menu the ‘Settings’ page allows to define the properties which are
common to the pages shown in the Manipulation menu (see Fig. 8.31 - File Manipulation
settings).
HS-0-C4E-USO_37.fm
00/0708 8-25
WinC4G Program - interface to C4G on Personal Computer
The parameters which the user must insert before executing one of the listed above
functions are grouped in different areas (as an example, see Fig. 8.28 - File
Manipulation Window):
– Original files area: the user must select (via the PC or Rob text box), either on the
PC or on UD: controller device, the files that are needed as input to the execution
of the selected function. The files must be binary and not ASCII because the
manipulation functions do not work on ASCII format. The files of interest are: the
configuration file (.C4G), the (.VAR) file containing the values of the Tools and of
the Frames, the user program files (.COD and .VAR).
– Output files area: the user must select the name of the .VAR file to create as result
of the operation.
– New files area: the user must specify if needed, the new files to use in the operation
as an alternative to the files specified in the Original files area. This window is only
active for the ‘Tool and Frame update’, ‘Calibration’, ‘Sysdata adjust’ pages.
– Modal - Nodal with $PAR - these flags indicate which types of motion instructions
are executed or not by the system:
an instruction in which $PAR is used, as for example
MOVE TO p1 $PAR=tf(1,2)
it is taken into consideration by the system if the “Nodal with $PAR” flag is selected;
and instruction of the type
MOVE TO p1
preceded by
atool(1)
aframe(2)
it is only handled if the “Modal” flag is selected.
– Data related to the Base: the user must specify in these text boxes the values
which define the cartesian coordinates of the position to be used as $BASE if the
conversion must consider a $BASE that is different from the one defined in the
.C4G configuration file.
It is possibile to perform the conversion operation considering the whole .COD file or a
section of it; in this case the starting (Lines from: ) and ending (to: ) lines must be
specified. Otherwise the whole file will be computed.
HS-0-C4E-USO_37.fm
8-26 00/0708
WinC4G Program - interface to C4G on Personal Computer
WARNING! The application does not carry out the operation until all the required
parameters are specified.
HS-0-C4E-USO_37.fm
00/0708 8-27
WinC4G Program - interface to C4G on Personal Computer
In case some limits are overcome, in formational messages are displayed in the output
window of WInC4G.
New files: name of the files containing the new values of the tool and the frame to be
used in the conversion of the user program. Both parameters must be specified; if the
conversion only concernes the tool, the frame file specification must be the same
inputted in the Originale Files area (and viceversa).
Output file: the user must define the name of the .VAR file to create, containing the
positional data modified basing on new tool and frame values.
P1 - starting position
Q1 - end position
Start and end positions: the user must specify the X,Y,Z coordinates of the two points
which define the distance to use in the translation.
HS-0-C4E-USO_37.fm
8-28 00/0708
WinC4G Program - interface to C4G on Personal Computer
Output file: the user must define the name of the .VAR file to create after the conversion
applied by the translation.
Px - starting positions
Qx - end positions
Start and end positions: the user must provide three starting positions and three ending
positions which define 2 planes. A linear translation from the first final position is
performed first; then the orientation relative to the final plane is considered.
HS-0-C4E-USO_37.fm
00/0708 8-29
WinC4G Program - interface to C4G on Personal Computer
Output file: the user must define the name of the .VAR file to create, containing the
positional data modified accordingly to the roto-transation defined by the shift operation.
8.5.1.5.5 Mirror
Mirror functions are similar to the Shift operations, but include a simmetric
transformation related to a plane. The X-Z plane of the robot is the default plane. If the
operation has to consider a different plane, it should be defined in the Edit boxes
identified with ‘Mirror Plane’.
1 - Mirror Plane
Orientation: this box must be checked when the orientation has to be considered during
the symmetric transformation. Otherwise the transformation will only be related to X, Y,
Z values.
Mirror Plane: the X-Z plane of the robot is defined by default. For using another plane,
please define the coordinates in these edit boxes.
Joint Position: mirror is applied by default to positional variables of POSITION and
XTNDPOS data type. If also JOINTPOS should be involved, this check box should be
marked. In case of JOINTPOS, Mirror function is only applied to the values of axis 4
and 6 of the robot.
Output file: the user must define the name of the .VAR file to create, containing the
positional data modified accordingly to the simmetric transformation required.
Note: multiturn flags, if any, will be automatically inverted by the mirror function. For
example, ‘WS T2:-2’ becomes ‘WS T2:+2’.
8.5.1.5.6 Calibration
This operation is used for correcting a program in case the variable which stores the
calibration constant changes.
New files: the user must specify the name of the .C4G configuration file, which contains
the calibration values ($CAL_DATA[axis]) to use in the conversion of the .VAR.
Output file: the user should define the name of the .VAR file to create after the
conversion of the positional data basing on the new calibration constant.
HS-0-C4E-USO_37.fm
8-30 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-31
WinC4G Program - interface to C4G on Personal Computer
The following information available for the user to choose from to see in the log file:
– Wrong movement lines.
This option displays in the log file the movement lines on which the data conversion
generates an error.
– Correct movement lines.
This option displays in the log file the movement lines that have been converted
correctly.
– Line number display.
This option allows the application to add the line number next to each movement
instruction that is written in the log file.
– Variable Name.
With this option the application adds the name of the variable to the log message
to inform the user which variable has been manipulated.
– Variable Value.
With this option the application adds the value of the manipulated variable to the
log message.
– Joints position.
This option adds the position of the joints in the message generated for the
manipulation of a movement instruction.
– Tool and Frame Value.
With this option the Tool and Frame values can be viewed in the log file where an
instruction has been manipulated.
– Error message.
HS-0-C4E-USO_37.fm
8-32 00/0708
WinC4G Program - interface to C4G on Personal Computer
This option enables the display of error messages that have been generated during
the manipulation of an instruction.
– Tool and Frame value.
The data referring to the Tool and the Frame is added in the log file.
– Statistics.
The summarized data on the operation executed (for example, the number of
changed instructions) is added to the log file.
If WinC4G Full is installed, it is also possible to create a new user profile to be stored in
the UDB, sending the New command from the right-hand key.
First a window is shown that, as first screen page, displays the default profile with the
operations enabled for the profile, corresponding to the different states of the system
(see Fig. 8.33).
If it is wished to modify the characteristics of the new user profile to be created, in
relation to the default, this can be done by selecting one of the standard profiles provided
by the system (Administ, Service, Maintain, Programmr, Technology) or one which has
been completely customised.
It is possible to act on the checkboxes shown in Fig. 8.33, enabling/disabling the various
operations available.
HS-0-C4E-USO_37.fm
00/0708 8-33
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
8-34 00/0708
WinC4G Program - interface to C4G on Personal Computer
The list of the devices is read once only, during connection. If devices are added
or removed during the connection (for example Disk-on-Key on the Control Unit
or Windows network drives on PC), the Directories Panel will not be updated with
these devices. To run the list of devices refresh, close the current session and
reconnect.
HS-0-C4E-USO_37.fm
00/0708 8-35
WinC4G Program - interface to C4G on Personal Computer
The same operation can also be carried out from the Tools menu ("Protect" and
"Unprotect").
HS-0-C4E-USO_37.fm
8-36 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-37
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
8-38 00/0708
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
00/0708 8-39
WinC4G Program - interface to C4G on Personal Computer
– Compact Flash
Contains the sub-menu to manage the Compact Flash. See par. 8.7.7
CompactFlash Management on page 8-42
– Quit
Closes the application.
HS-0-C4E-USO_37.fm
8-40 00/0708
WinC4G Program - interface to C4G on Personal Computer
– Add Comment
To add a comment to an error displayed in the cause and remedy window.
The options of this menu are described in detail in par. 8.5.1.5 Files Manipulation on
page 8-25.
– Axes verification
– Tool / Frame Updating
– Linear shift
– Linear rotation
– Mirror
– Calibration
– Adjustment to system data
– Difference in turns
– Settings
HS-0-C4E-USO_37.fm
00/0708 8-41
WinC4G Program - interface to C4G on Personal Computer
8.7.6 Tools
– Protect: to protect the file selected in the Files panel. A Password has to be
specified.
– Unprotect: to unprotect (remove the protection) of the file selected in the Files
Panel. The user has to enter the Password that was specified when the request
was made to protect the file
– Accept remote: allows the WinC4G configuration in Proxy mode
– Disable Remote: disables the WinC4G configuration in Proxy mode.
b. The computer will detect the presence of the device and will display a
corrensponding message (the first time it acknowledges a CompactFlash device)
or it will just display "Removable disk" in Windows Explorer.
c. When this item is selected, the contents of the LD partition will be displayed. This
is because Windows does not foresee partitions in CompactFlash devices,
therefore it displays only one.
HS-0-C4E-USO_37.fm
8-42 00/0708
WinC4G Program - interface to C4G on Personal Computer
d. The files that the user most probably wants to select are however those that
contain the PDL2 programs and the associated data; therefore, to have access to
the contents of other CompactFlash partitions, it is necessary to create a back-up
disk. This new peripheral, called RamDisk, will be a volatile memory and will be
deleted each time the PC is switched off or re-started. It is therefore advisable to
complete the operations described here below, before switching off/restarting the
Controller.
e. In the CD that contains the system software, there is a file named c4grd.sys.
Check the exact directory where it is installed, because it will be used during the
following procedure.
f. To install the new peripheral, select Add/Remove Hardware Wizard from Start
Settings Menu Control Panel.
i. As soon as such a device has been found, select "Add a new device".
HS-0-C4E-USO_37.fm
00/0708 8-43
WinC4G Program - interface to C4G on Personal Computer
j. Answer “No, I want to select the hardware from a list” when asked "Do you want
Windows to search for your New Hardware?".
HS-0-C4E-USO_37.fm
8-44 00/0708
WinC4G Program - interface to C4G on Personal Computer
l. Select "Disk Driver" and, with "Browse", identify the c4grd.inf file, (distributed with
the Software CD). By clicking on such a file, a COMAU Ramdisk is identified as
the hardware device model.
HS-0-C4E-USO_37.fm
00/0708 8-45
WinC4G Program - interface to C4G on Personal Computer
o. From My Computer, the new item is identified by the term Ramdisk (B:).
p. Once the back-up Ramdisk device has been created, it is possible to interface with
the CompactFlash.
r. Connect the CompactFlash entering the name of the device associated to it (for
example B:). This name can be read from My Computer under the term Ramdisk.
HS-0-C4E-USO_37.fm
8-46 00/0708
WinC4G Program - interface to C4G on Personal Computer
s. Close My Computer or in any case check that the cursor is not focussed on the
floppy disk or the Ramdisk.
Every copy operation to the Ramdisk overwrites the whole content of the
Ramdisk. Therefore, before executing a copy, it is recommended to transfer the
data contained in the Ramdisk onto a hard disk of the PC (for example in a C:
directory).
Once the interfacing operations with the CompactFlash have been completed, the
Hardware peripheral has to be disconnected by selecting “Unplug or Eject Hardware”)
from the corresponding icon on the PC Applications bar.
a. from WinC4G, select the Help Menu and 'Insert the log-in code’. If this box does
not contain any number, open a commands prompt window, from the Windows
start-up window and send ipconfig/all;
read the number of the physical address.
c. COMAU will send an ASCII file containing the access word to the function. Open
the file with any Editor,
e. copy it,
g. confirm by pressing Record and check that the files Handling menu and Compact
Flash management menu are enabled.
HS-0-C4E-USO_37.fm
00/0708 8-47
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
8-48 00/0708
WinC4G Program - interface to C4G on Personal Computer
robot but only one Terminal can be active. To open the Terminal it is therefore
necessary that the user who is already connected closes that Terminal session.
When attempting to connect to the Control Unit the application replies with the
message "Impossible to connect with the server"
Should it be impossible to connect to the server, there could be a conflict problem
between DHCP and proxy Server. To check this, try connecting to the Control Unit
with the ftp command from the Controls Prompt and from Internet Explorer. If the
first command functions and the second one fails, it is necessary to disable the use
of a server proxy in the settings of the local network (LAN).
Furthermore before starting Winc4g, check that the settings for the Server Proxy
are correct for the network it is connected to.
Upon connection the error "Authorisations not available for the password"
This happens when the user has made a Login with a Password that is not
compatible with the users database defined in the system. That is to say, the
combination of Login and Password is not foreseen by the Controller that the user
is connecting to.
Upon connection or the Set Login command sent from the terminal, the error
"Exclusive Login" is returned
This error occurs when a user is working on the Controller with a right to exclusive
access, i.e. that does not permit the use of the system by other devices. It is
necessary to Logout from other devices that are not the one required for
connection and, if necessary, to also delete the Startup Login.
Upon connection, or when a file is selected from the Files Panel, a message is
displayed that indicates "Conflict between Controller and Translator versions”
To solve this problem, it is necessary that the translator DLL, indicated in the C4G
box Library version in the Properties Window is greater than or equal to the
Controller version.
Attempting to connect to the Control Unit, the application replies with the
message "The computer is not connected to the network"
To solve this problem, open the Internet Explorer, go to the Files menu and
deselect "Not in line".
HS-0-C4E-USO_37.fm
00/0708 8-49
WinC4G Program - interface to C4G on Personal Computer
HS-0-C4E-USO_37.fm
8-50 00/0708
Basic procedures for Program development
9.1 Introduction
Programs used on the C4G Controller are written in PDL2 programming language.
There are several methods to create such programs, depending on the programmer and
the required application.
Basically, there are two environments for creating a PDL2 program:
– IDE environment - this is a development environment used to develop motion
programs on the Teach Pendant.
For any further details, see the Chap. Use of the Teach Pendant, par. 6.11 IDE
Page on page 6-75.
In IDE environment the position teaching functionality is integrated.
– editor environment - this is a development environment used to develop
programs from WinC4G, typically for programs that are NOT motion programs, it
is composed, in its turn of two environments:
• PROGRAM EDIT, used to write the program instructions and to teach the
variables;
• MEMORY DEBUG, used to check and set-up the program. It can also be
used to write a program directly in the execution memory.
The third environment MEMORY TEACH, is only available on the Teach Pendant and,
at present, it is the only environment that allows the teaching of position data for a PATH
type variable.
A detailed description follows for:
– Diagram of steps to develop a program
– Programming in IDE (on TP) for a motion program
– Programming in WinC4G (on PC) of NON motion programs
– Memory Teach
– Memory management from TP4i
– File management from TP4i.
HS-0-C4E-USO_65.fm
00/0708 9-1
Basic procedures for Program development
PROGRAM main
HS-0-C4E-USO_65.fm
9-2 00/0708
Basic procedures for Program development
a. write the program (using IDE or Program Edit), i.e. write code, define new routines,
define variables and teach motion position values;
HS-0-C4E-USO_65.fm
00/0708 9-3
Basic procedures for Program development
c. execute the program and check that it is correct, using the Debug commands
(present in both IDE and Program Edit). With these commands, you can modify
execution mode (one instruction at a time, continuously, etc.), examine the values
of the variables, modify the code of the program (including the declaration part of
the variables). You can also tests movements at low speed;
d. once you are satisfied with program functioning, you can try and run this in a mode
that increasingly resembles effective functioning in production (IDE OR Memory
Debug environment). When the status selector switch is set on T2 (AUTO-T) or
AUTO, the move instructions are executed at real speed (in PROGR state, they are
executed at low speed for safety reasons);
e. at this point, the program is ready to be run in automatic mode. To start the
program, use Program Go system command and press START (green) key.
f. To complete the operations, save the variables and the code of the developed
program.
See NOTE regarding the entry number in the UD: root directory.
Before operating in IDE environment, read with attention the contents of the
paragraph Description of the video screen, Chap. Use of the Teach Pendant.
– Access to programs
– Program Editing
– Teaching positions (insertion of a move instruction)
– Program execution test
– Saving the program and closing IDE
– Executing the program in automatic mode.
HS-0-C4E-USO_65.fm
9-4 00/0708
Basic procedures for Program development
b. in the pop-up menu that is opened by the system, choose the Enable Marking
function and move in the editing area with the cursor keys, to execute marking
c.1 to cut the selected part of the text, use the Cut - cuts the selected lines command
(F1)
c.2 to copy the selected part of the text, use the Copy - copies the selected lines
command (F2)
c.3 to cancel the marking, choose Deselect - deactivates the marking (F3)
d. to insert (paste) the previously cut or copied part of the text, use the Paste function
in the pop-up menu.
a. press the Selection function key (F4) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Delete function;
Restoring what has been deleted:
b. in the pop-up menu that is opened by the system, choose the Undelete function;
the text is inserted underneath the current position of the EDIT CURSOR.
a. press the Selection function key (F4) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Goto function
HS-0-C4E-USO_65.fm
00/0708 9-5
Basic procedures for Program development
b.1 choose either the BEGIN instruction, or the END instruction or indicate a precise
line number.
If it has been decided to indicate a line number, the system opens a dialogue
window; check that the Alphanumeric keypad is in '123' mode and insert the
required number, confirming with 'OK' (F5) or ENTER
b. the system shows the last 9 instructions used, plus the “Empty Line” option
b.1 if the required instruction is in the list, select it and confirm with ENTER: it will be
inserted under the line currently pointed by the EDIT CURSOR.
Continue with step b.3
b.2 if it is not in the list, choose 'Empty Line' to open a new program line under that
where the EDIT CURSOR is pointing. Insert the new instruction using one of these
two methods:
b.3 guided insertion, with the aid of a (Template): press the Statement function key
(F1).
Templates are not available for all types of instructions
(see par. Groups of instructions on page 6-88).
For a detailed explanation of this mode, see par. Guided insertion of a generic
instruction on page 6-87; continue with step c.
c. Regardless of the chosen method, confirm with ENTER. The system will check the
inserted program line and indicate any errors.
b. use the Alphanumeric keypad pad or the commands of the Bottom Menu, in the
same way as described to complete the Statement command.
HS-0-C4E-USO_65.fm
9-6 00/0708
Basic procedures for Program development
a. press the Prog softkey (F1) from the main menu of the IDE Page
c. The system opens a dialogue window for the user to enter the name and type of
variable required, choosing from the list displayed, or typing it in directly from the
Alphanumeric keypad.
b. press the Prog softkey (F1) from the main menu of the IDE Page
c. select the Variables, function from the main menu of the IDE Page
d. in the pop-up menu that is opened by the system, choose View line. A dialogue
window is opened with a list of all the variables used in that line.
It is also possible to delete the declaration of the unused variables:
a. press the Prog softkey (F1) from the main menu of the IDE Page
b. select the Variables function from the main menu of the IDE Page
c. in the pop-up menu that is opened by the system, choose Delete unused.
a. press the Prog softkey (F1) from the main menu of the IDE Page
c. according to the item to be imported, one or two dialogue windows are displayed.
To import Variables and Routines there are two dialogue windows; for Types
there is only one. The user has to answer the questions then press ENTER to
confirm.
HS-0-C4E-USO_65.fm
00/0708 9-7
Basic procedures for Program development
a. press the Selection function key (F4) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the REC setup function
and follow the instructions of the system. The user can choose
– the type of position variable
– the trajectory
– fly or non fly
It is also possible to change the configuration of the nodal REC key with $PAR,
pressing the Nodal (F1) softkey. For further details, see the par. 6.11.3.7 REC key
setting, nodal with $PAR on page 6-95.
a. position the EDIT CURSOR on the program line under which the new MOVE
instruction is to be inserted
b. move the robot with the Jog keys to the position to be recorded
c. press the REC key. This operation inserts a MOVE instruction and the declaration
of the positional variable used by the MOVE into the program.
For MOVE with $PAR, all the nodal parameters are also inserted.
a. move the EDIT CURSOR onto the MOVE instruction where the positional variable
is to be changed
b. move the robot to the new position, by means of the Jog keys
c. press the MOD function key (F6) from the main menu of the IDE Page
d. the system shows a dialogue window in which a list of line positional variables is
displayed
HS-0-C4E-USO_65.fm
9-8 00/0708
Basic procedures for Program development
e. the user has to select the variable involved and confirm the change with ENTER or
cancel it with ESC.
If, for the current MOVE, tool and frame settings are different than those currently
set for the REC setup, the system displays an alarm message. It is up to the user
to make the suitable changes.
In IDE environment, with Step Disabled, the execution of the program that is
currently open can be observed in the Editor area.
For further information, see Displaying the currently being executed instruction.
a. press the Execution function key (F2) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Reset function
(item 1).
In this way the program is deactivated, then reactivated.
To deactivate the program only, proceed as follows:
a. press the Execution function key (F2) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Deactivate function
(item 2)
a. press the Execution function key (F2) from the main menu of the IDE Page
HS-0-C4E-USO_65.fm
00/0708 9-9
Basic procedures for Program development
b. in the pop-up menu that is opened by the system, choose the Abort function
(item 5).
To continue to run the program from the instruction following that which has been
aborted, press START.
a. press the Execution function key (F2) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, move to the Step function
(item 3)
c. from the new list opened by the system, choose the mode. The following modes
are possible:
– Statement (Single step)
– Disable
– Move
– Fly
– Cycle
b. press the Execution function key (F2) from the main menu of the IDE Page
c. in the pop-up menu that is opened by the system, choose the Set execution cursor
function (item 4).
a. position the EDIT CURSOR on the line before the one where the break point is to
be inserted
b. press the Execution function key (F2) from the main menu of the IDE Page
c. in the pop-up menu that is opened by the system, choose the Break point function.
To remove a breakpoint, perform the same operations used for the insertion.
HS-0-C4E-USO_65.fm
9-10 00/0708
Basic procedures for Program development
a. press the Execution function key (F2) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Bypass function
(item 7).
a. press the Execution function key (F2) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Immediate function
c. in the central menu there is the Statement function that opens a dialogue window
to insert the instruction required.
c.1 Select the instruction and press ENTER to confirm the choice
c.2 the instruction can also be typed in, using the Alphanumeric keypad
See NOTE regarding the entry number in the UD: root directory.
a. press the Prog function key (F1) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Save (cod,var)
function (item 2). The saved program remains open in IDE.
To save all the modified programs in IDE environment:
a. press the Prog function key (F1) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Save all mod
progs(cod,var) function (item 3).
To close the IDE environment:
a. press the Prog function key (F1) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Close function
(item 1).
HS-0-C4E-USO_65.fm
00/0708 9-11
Basic procedures for Program development
It is advised to only run programs that after thorough checking (debugging), are
considered able to operate correctly.
If the program has not been debugged before execution, it could cause personal
injury and damage to the equipment.
a.1 the program is to have been thoroughly checked (debugged) and deemed able to
operate correctly
a.2 there must be no-one in the working area, and this is to be without obstructions
a.3 all the safety protections are to be installed and in perfect working order
a.4 all other specific conditions relating to the application and the installation are to be
thoroughly checked and deemed able to operate correctly
d. set the required speed override and step mode, enter any useful break points;
using the commands described in the par. 9.3.4 Program execution test on
page 9-9.
e. press the START (green) key to run the program (in the step mode set).
In IDE environment, the execution of the program that is currently open can be
observed in the Editor area.
For further information see Displaying the currently being executed instruction.
HS-0-C4E-USO_65.fm
9-12 00/0708
Basic procedures for Program development
See NOTE regarding the entry number in the UD: root directory.
Note that, if the answer given is no, the variables remain in the memory with their
value at that moment and can still be restored using the MEMORY SAVE system
command.
PROGRAM EDIT features two functioning modes: DATA or CODE. The active mode is
shown on the status line at the bottom of the screen.
HS-0-C4E-USO_65.fm
00/0708 9-13
Basic procedures for Program development
HS-0-C4E-USO_65.fm
9-14 00/0708
Basic procedures for Program development
HS-0-C4E-USO_65.fm
00/0708 9-15
Basic procedures for Program development
interrupted and the cursor to be moved to the next statement. Pressing RUN key,
execution is restarted from the statement which the cursor currently points to.
To exit MEMORY DEBUG environment without interrupting execution, press
SHIFT+ESC keys. If the program is running, the command menu must be used to exit
the environment.
When exiting MEMORY DEBUG environment, if some variables have been modified,
the user is asked whether or not they are to be saved,. If so, a new .VAR file is created
containing the values currently in memory. Otherwise, such values remain in memory
until the related variables are erased from memory.
See NOTE regarding the entry number in the UD: root directory.
Furthermore, when exiting MEMORY DEBUG environment, any breakpoint and the
currently set step type remain in the program. To remove them, it is necessary to use
the commands of the Program Test submenu in system commands.
HS-0-C4E-USO_65.fm
9-16 00/0708
Basic procedures for Program development
a certain command, press the corresponding function keys. Note that unlike the system
menu commands, entering the first letter of the command does not cause its execution.
Information messages and prompts are displayed in a window that is overlapped with
the editor window, in the screen top.
When entering the editor, the cursor is placed at the end of BEGIN instruction in the
main scroll window.
From WinC4G open “Guide”, then select “Meaning of Terminal keys” to find the
correspondence with the description of the keys.
From TP4i it is necessary to activate the Virtual Keyboard to find the
correspondence of these keys.
In any case it is not advised to activate Program Edit from the Teach Pendant. The
ideal device to activate Program Edit is the PC, using the WinC4G program.
On the other hand, if a motion program is to be developed from the Teach
Pendant, it is strongly recommended to use the IDE environment (see par. 6.11
IDE Page on page 6-75).
String searching
SRCH software key is used to find the first occurrence of a string in the program text in
the direction which is currently set and displayed in the status window (upward or
downward).
S.NXT software key moves the cursor to the next occurrence of the required string
(previously set by SRCH software key) using the current direction set by the cursor key
(up or down) as the direction for the search.
Selecting a text
MARK software key activates marking feature which is used to highlight a program
section to be copied to another area or deleted, starting from the current cursor position
HS-0-C4E-USO_65.fm
00/0708 9-17
Basic procedures for Program development
and selected by means of the cursor key. If marking is activated when the cursor is
inside a multi-line statement, it will be restricted to inside such a statement. This means
that the cursor cannot be moved before the beginning and after the end of the multi-line
statement. If marking starts from the beginning of a multi-line statement, pressing down
arrow key causes the whole multi-line statement to be selected.
The same applies if marking starts from the ending statement of a multi-line instruction
(for example ENDMOVE, ENDWHILE, etc.), when up arrow key is pressed. Marking a
WHEN or ANDMOVE clause, pressing down arrow key, causes the entire clause to be
selected.
COPY software key copies the program section selected by MARK software key in a
temporary memory area. The selected program section is not modified. The selected
lines remain saved in the temporary memory until the next COPY or CUT command
(software key). They can therefore be inserted in the text of the program several times
by means of the PASTE software key.
CUT software key removes the selected part of the program from the text, although it
remains in memory until next CUT or COPY software key is pressed.
PASTE software key inserts the contents which have previously been saved by means
of CUT or COPY software keys, after current line. The only exception is if the cursor is
on column 0 or 1. In such a situation, they are inserted before current line.
Deleting a line
DEL software key deletes the line on which the cursor is currently positioned. The
deleted lines remain internally stored until the next delete operation.
Deletion of the first line of a multiple instruction deletes the entire instruction, Any
instruction ending a multiple instruction (for example ENDMOVE, ENDWHILE, etc.)
cannot be deleted. Deletion of a WHEN, ELSE, or ANDMOVE clause causes the entire
clause to be deleted. Deletion of a ROUTINE instruction, if not used in the rest of the
program, causes the entire routine to be deleted. Declaration instructions (VAR,
CONST, ROUTINE, etc.) cannot be deleted if the element is used in the program.
UNDEL key inserts the last deleted line (with DEL key) after current instruction. The only
exception is when the cursor is on column 0. In this case, the line is inserted before
current line.
Page by page displaying
Using PAGE key, it is possible to scroll the whole program body. A program section of
a size equal to the scrolling window is then displayed each time PAGE key is pressed.
The program is scrolled in the currently set direction indicated on the editor status line.
The blue PageUp and PageDown keys are available on the Teach Pendant, to the left
of function keys F1..F6, as shown in the following figure.
HS-0-C4E-USO_65.fm
9-18 00/0708
Basic procedures for Program development
execution memory. For example, if in the program a TYPE declaration exists with the
same name of a type loaded in the execution memory but with different fields, it is not
possible to switch from Code to Data and an error message is then displayed. Moreover,
before switching from Code to data, all requirements, indicated in the Data mode section
of current chapter on DATA, must be complied with.
Selecting a Screen
Using SCRN software key, it is possible to switch between editor, system and user
screens. This is useful when checking the program output towards a certain screen.
Accessing help
HELP key displays information about the meaning of function keys of the current menu
level.
Executing a Program
RUN software key activates the program execution, starting from the line on which the
cursor is positioned. It is active in DATA or DBUG mode only. Refer to par. 9.4.5
Execution on page 9-22 for further details.
Cursor keys
Up, down, left and right arrow keys can be used to move the cursor anywhere along the
text of the program.
If one of such keys is pressed together with SHIFT key, the cursor moves to the
beginning of the program (up arrow), to the end of the program (down arrow), to the
current line start (left arrow) or to the current line end (right arrow).
The up and down arrows also determine the direction of the Search command (SRCH
and S.NEXT software keys) and the scrolling of the pages.
Up and Down arrow keys are used to call parameters specified by the user in previously
invoked commands.
Function keys associated to the Commands menu
F1...F8 keys (on the Teach Pendant TP-INT page they are present as softkeys) can also
be used to issue the corresponding command in the currently displayed editor menu.
Such commands are fully explained in par. 9.4.7 Commands Menu on page 9-23.
Commands that cannot be used in current editor mode are displayed in lower case; the
enabled ones always start with a capital letter.
Teach keys
Teach Pendant REC and MOD software keys allow to teach positional variables in
DATA or DBUG mode. They can be used when editing the program both from the Teach
Pendant and from the Terminal Function of WinC4G program.
Refer to par. 9.4.4 Teaching the positions on page 9-20 for further information.
Motion keys
Teach Pendant START and BACK keys are used to perform program movements, while
working in DATA or DBUG mode both from the Teach Pendant and from the Terminal
Function of WinC4G tool.
During execution of a MOVE instruction, START key must be held pressed until the
movement is accomplished. BACK key is used to move the arm back along the same
trajectory. The movement is interrupted as soon as START or BACK keys are released.
On reaching the final point of the movement, START key must be released and then
pressed again to complete the execution of the MOVE instruction. BACK key can be
HS-0-C4E-USO_65.fm
00/0708 9-19
Basic procedures for Program development
HS-0-C4E-USO_65.fm
9-20 00/0708
Basic procedures for Program development
The saved variable type and the inserted move instruction type depend on the REC key
current setting. This is obtained through the branch of DEBUG SETUP (STUP on TP4i)
commands of the editor menu.
The declaration of the variable saved using REC key is implicitly inserted in the
declaration section of the program (between PROGRAM and BEGIN statements). The
name of the inserted variable is pnt000xt, where 000x is the variable identification
number, t is a letter that is used to identify the data type and may be: 'p' for POSITION,
'j' for JOINTPOS and 'x' for XTNDPOS variables (such as pnt0001j, pnt0002p, pnt0003x,
…, etc.). 'pnt' prefix can be modified using the editor menu (DEBUG SETUP VARIABLE
NAME).
If the variable type is JOINTPOS or XTNDPOS, for which an arm number must be
specified, the currently selected arm number on the Teach Pendant is inserted in the
variable declaration.
If REC key setting is not modified, the inserted MOVE instruction will be:
MOVE TO pnt0001j
Fly type movement can be associated to a MOVE instruction, possibly together with an
indication of the trajectory. For example:
MOVEFLY JOINT TO pnt0002j ADVANCE
Note that, in the case of circular movement, for example:
MOVE CIRCULAR TO pnt0003j VIA pnt0002j
the current arm position is then assigned to the VIA point (pnt0002j), while the
destination of the movement is declared but not set to any value yet. Now, the arm can
be jogged to reach the required final position, answering yes to the displayed prompt: in
such a way the current position of the arm is assigned to the destination variable of the
MOVE statement.
To read the value of the positional variable, move the cursor to any instruction referring
to it and activate the Debug Variable View command from the editor commands menu.
It is important to consider how each position is used by the program and to choose the
best method to teach it. If the program uses different values from the default values for
$BASE or $TOOL, make sure that such values are set before teaching. Otherwise, when
the program is running, the positions are different (shifted) from the point at which they
were taught.
MOD software key is used to assign the current arm position to an already existing
positional variable in the program. Move the editor cursor to an instruction that refers to
such a variable before pressing MOD software key. If several positional variables are
displayed on the line, the user is asked to specify which one is to be modified.
For modification of JOINTPOS or XTNDPOS variables, the selected arm on the Teach
Pendant must match the one previously associated to the variable; otherwise, an error
is detected.
MOD software key can also be used to dynamically modify the destination of the current
movement of the program. To do this, MOD key must be pressed while executing a
movement from the program opened in editor mode. This will cause the value
associated to the destination of the movement to be modified and the trajectory to be
changed. To check the movement along the new trajectory, use BACK and START keys
for back and forward movements along a new trajectory.
If the current movement is circular (CIRCULAR), both VIA point and end point can be
modified. In this case, both the destination and the VIA point must be saved.
HS-0-C4E-USO_65.fm
00/0708 9-21
Basic procedures for Program development
Note that any adjustment of VIA point orientation will result in a short movement
to bring the tool orientation back into the correct position, according to the new
trajectory the next time the BACK or START keys are pressed.
Note that REC and MOD software keys are disabled when the system is in AUTO state.
9.4.5 Execution
In Date or Debug mode, the program can be edited and also run. RUN key is used to
activate execution starting from the instruction on which the cursor is positioned when
the key is pressed. Execution can then be interrupted pressing ^C (TP4i) or Ctrl C
(WinC4g) keys. In this case, any movements in progress are deleted.
The programmer can move the cursor to the point in which starting the execution, thus
bypassing those instructions that are not to be performed.
This is possible provided that the restrictions tied to the context of the current instruction
are complied with, i.e.:
– the context cannot be changed. For example, if the program execution is
interrupted inside a routine, the cursor cannot be positioned outside the routine;
– the cursor cannot be positioned on the declaration section of the program;
– the context for executing CONDITION, MOVE, and OPEN FILE statements,
cannot be changed. If, for example, the program execution is interrupted at a
WHEN clause, the cursor must remain inside the CONDITION statement;
– the cursor cannot be directly moved in the middle of a CONDITION, MOVE or
OPEN FILE statement without first of all performing such statements;
– RETURN or END statement must be performed before exiting a ROUTINE.
The DEBUG PROGRAM CONTINUE command can be used to continue execution from
the point in which this was interrupted regardless the cursor current position.
During execution of the program, a red window, called execution window (shown in
Fig. 9.2), is overlapped on the editor window showing execution data such as the current
line, the name of the program to which it belongs to, program status.
When this window is active, the normal program writing and modification process is not
enabled. It is not possible therefore to move the cursor and modify instructions as long
as the execution is in progress.
When the execution window is displayed in the lower part of the screen, at the editor
status window, this indicates that movements have been forwarded but not yet
performed. This may happen, for example, after interpretation of a movement with the
ADVANCE clause to which pressing of the key has not yet been applied.
While the execution window is displayed, the destination and trajectory of the current
movement can be modified pressing MOD key, as described in the previous section.
When a MOVE statement is performed, START key must be held down in order to
perform the movement. BACK key can be used to move the arm back along the same
trajectory. The movement is interrupted when START or BACK key is released.
HS-0-C4E-USO_65.fm
9-22 00/0708
Basic procedures for Program development
9.4.7.1 Command
COMMAND displays a set of editor commands such as those for scrolling the program,
automatic inserting of instructions, deleting unused variables, etc.
9.4.7.1.1 Goto
GOTO displays a menu of commands to move the cursor to the specified place in the
program. This provides a quick way to move through large programs. The current
direction used for this command (up or down) is displayed on the status line. The
direction can be changed by pressing up or down key.
HS-0-C4E-USO_65.fm
00/0708 9-23
Basic procedures for Program development
9.4.7.1.2 Import
IMPORT displays a menu of commands to automatically insert declaration statements
from other programs loaded in the execution memory. This allows the program to share
data and routines from other programs. This command is available in DATA mode of
Program Edit, or DBUG mode of Memory Debug; in this case the program has to be
loaded with the /FULL option.
When importing variables or routines, the owning program name is requested. Asterisk
('*') can be used for routine, type, and variable name prompts, however, wildcards
cannot be used for program name prompts.
– All inserts declarations for all exported (EXPORTED clause) variables and
routines from the specified program. Any user-defined data types (TYPE) in any
programs loaded in execution memory will also be imported, when the command
is issued.
– Routine inserts declarations for the specified exported (EXPORTED clause)
routines from the specified program. Any data types (TYPE) for these routines will
also be imported.
– Type inserts in the program declarations for any user-defined data types (TYPE)
and already loaded in memory when the command is issued. Notice that it is not
prompted to specify the name for a program, because data types are not related to
a program, even if their declaration has to be contained in the name of the program
that uses them. To view data types loaded in the system, issue the Memory View
Type from system commands menu.
– Variable inserts declarations for the specified exported (EXPORTED clause)
variables from the specified program. Any user-defined data types (TYPE) for that
program will also be imported.
9.4.7.1.3 Rename
RENAME changes an identifier throughout a program. The editor checks that a reserved
word of the language has not been specified, and in such a case, returns the error. The
cursor must be in the correct context, meaning it must be in the main program to change
global identifiers, in a routine to change identifiers local to that routine.
RENAME command is available in DATA mode but will only be permitted if no other
programs currently loaded in memory are linked to the item being renamed. The
Rename command is not available from the MEMORY DEBUG environment.
HS-0-C4E-USO_65.fm
9-24 00/0708
Basic procedures for Program development
9.4.7.1.4 Retrans
This command retranslates all error lines in a program and is useful when the program
is modified in order to solve the error cases. Those lines still containing errors will remain
marked with the ~ERROR~ notation. This command can be used in the MEMORY
DEBUG environment only if the program was loaded with the /FULL option.
9.4.7.1.5 Statement
STATEMENT displays a menu of commands to automatically insert PDL2 statements
and reserved words into the program; it is not allowed in the MEMORY DEBUG
environment unless the program was loaded with the /FULL option.
The user selects the type of statement from the command menu keys. Once the
statement has been selected the user will be prompted for the appropriate data. For
example, if the user selects a MOVE statement the editor will prompt for the destination.
The new statement is inserted in the program based on the column of the current cursor
position. If the cursor is in column 0 the new statement is inserted before the current line.
Otherwise, it is inserted after the current line.
Reserved words are added at the current cursor position. A space is included before and
after the reserved word.
– Arm displays a menu of arm control statements. This menu includes the CANCEL,
HOLD, LOCK, UNLOCK, and RESUME statements;
– Flow displays a menu of flow control statements. This menu includes the DELAY,
FOR, GOTO, IF, REPEAT, and WHILE statements as well as menu choices to
insert a statement to increment or decrement a variable;
– I/O displays a menu of input and output statements. This menu includes menu
choices to add statements that:
• test value of $AIN[n],
• assign a value to $AOUT[n],
• test value or WAIT FOR for a $DIN[n],
• PULSE, test, turn ON, turn OFF, or invert $DOUT[n],
• OPEN, CLOSE or RELAX a hand,
• set $TIMER[n],
• WRITE data to the screen;
– Move Move displays a menu of basic motion statements. Each menu choice
inserts a MOVE TO statement with the corresponding options indicated by the
menu labels;
– Program displays a menu of statements for the control of program status
containing the ACTIVATE, DEACTIVATE, EXIT CYCLE, PAUSE, UNPAUSE,
RETURN, SEMAPHORE SIGNAL and SEMAPHORE WAIT statements;
– Sys_arm displays a menu of arm predefined variable assignment statements. This
menu includes options to assign $ARM_SPD_OVR, $BASE, $LIN_SPD,
$JNT_OVR, $ROT_SPD, $TOL_FINE, $TOL_COARSE and $TOOL;
– Sys_prog displays a menu of program predefined variable assignment
statements. This menu includes options to assign $MOVE_TYPE, $ORNT_TYPE,
HS-0-C4E-USO_65.fm
00/0708 9-25
Basic procedures for Program development
9.4.7.1.6 Unused
UNUSED removes variable declarations that are no longer referenced by the program.
The user will be prompted for verification before each variable declaration is removed.
This command is only available in the MEMORY DEBUG environment if the program
was loaded with the /FULL option. From the PROGRAM EDIT, this command is
available in both DATA and CODE mode.
If this command is issued in DATA or DBUG mode, an attempt will be made to delete
the variable from memory. If the variable is referenced by other programs currently
loaded in memory, the variable will not be deleted. If this command is issued in CODE
mode, the variables in memory are not removed. Therefore, issuing a MEMORY SAVE
command later will cause the variables to be saved in the variable file by UNUSED
command. When this variable file is reloaded, the removed variables will be loaded into
memory, but the variable declarations will not exist in the program code.
To remove the variables from memory and the variable file (.VAR), remove all the
programs from memory that reference to the variables using MEMORY ERASE
PROGRAM command. Then erase all the unreferenced variables from memory using
the MEMORY ERASE VARIABLES command. When such operations are complete, the
only variables left in memory will be the ones required by the program. To remove the
variables from the variable file, save them from memory to the file using MEMORY
SAVE command.
See NOTE regarding the entry number in the UD: root directory.
9.4.7.2 Debug
DEBUG displays a menu of commands to debug the program being edited. This
command is only available in DATA or DBUG modes.
9.4.7.2.1 Break
BREAK displays a menu of commands to set up and use break points in a program. A
break point is a point in the program at which its execution will stop. When a break point
is reached, execution stops and the execution window is removed. Now is possible to
perform operations on the program text such as editing or modifying execution step or
display of the value of a variable.
HS-0-C4E-USO_65.fm
9-26 00/0708
Basic procedures for Program development
– Insert inserts a break point on the line where the cursor is positioned. Break points
are displayed in the program as follows, where 'n' indicates the break point number:
~BP n~
Break points cannot be inserted in a declaration section, on a BEGIN statement, or
after the END of the program. Only one break point can be inserted on a line;
– Purge removes a break point from the program. If the line containing the cursor
has a break point, that break point is purged. Otherwise the editor prompts for a
break point number. The asterisk character (*) can be used to specify all break
points. If a line containing a break point is deleted, the point is automatically
removed;
– View displays a list of the break points in the program.
9.4.7.2.2 Follow
FOLLOW is used to highlight the line that is currently in execution. This functionality, that
helps the user to follow the sequence of the steps executed by the program, causes the
execution to slow down in comparison with normal running in automatic mode, so that
the instruction can be read. The time lapsing between one display and the next can be
configured by changing the value of the predefined variable $TUNE[20].
9.4.7.2.3 Program
PROGRAM displays a commands menu to control program execution during
debugging.
– Continue continues program execution from the point at which it stopped, unlike
RUN key which executes the program from the current cursor position;
– Deactiv deactivates the program;
– Restart deactivates the program if it is active and then activates it from the
beginning of the program;
– Set_exec changes the next statement to be executed without executing the
statement. The scoping rules mentioned for the key apply to this command also;
– View displays the program current status.
9.4.7.2.4 Step
STEP displays a menu of commands to select a step type for step execution of the
program. The current step type is displayed on the status line in DATA or DBUG mode.
After each step, program execution stops (similar to a break point).
– Cycle selects the cycle step type. Execution is interrupted each time a cycle runs.
Cycle means all the statements contained between the CYCLE and END
statements of the program. This type of execution requires the CYCLE statement
in the program;
HS-0-C4E-USO_65.fm
00/0708 9-27
Basic procedures for Program development
– Disable disables the current step mode setup (for example Statement) and
restores the continuous execution mode in which the program runs unless an END
statement or a breakpoint is encountered or because of an operation by the user
(for example pressing ^C key). For the move instructions, with Disable mode, it is
not necessary to press the START key and the messages are not displayed that
inform the user when the end point is reached;
– Fly selects fly type step mode. Execution of the program is interrupted at the end
of each movement unless the movement is a MOVEFLY statement in which case
it is interrupted at the end of the next movement so that it is possible to check
correctness of the continuous movement. Application of this mode to programs not
containing move statements (i.e. with the NOHOLD attribute) is not permitted;
– Move selects the move step type. Execution stops after each MOVE statement.
Application of this mode to programs not containing move statements (i.e. with the
NOHOLD attribute) is not permitted;
– Routine selects the routine step type. Execution stops after each statement, but
routines are executed as a single statement;
– Statement selects the statement step type. Execution stops after each statement.
Statements of local routines are executed one-by-one. External routines are
executed as if they were single statements. This is the default step type.
9.4.7.2.5 Setup
SETUP displays a menu of commands to set up the MOVE statement and variable
declaration to be inserted by the Teach Pendant REC key This setup information will be
remembered between edit sessions. This means that, exiting the editor environment,
the information is not lost and is used the next time the editor environment is enabled.
HS-0-C4E-USO_65.fm
9-28 00/0708
Basic procedures for Program development
XTNDPOS variables is that currently selected by the system. In the case of NODE;
the user is asked to specify the name of the type to which the node belongs;
– View displays the current setup of the MOVE statement and variable to be inserted
in the program by pressing REC key.
9.4.7.2.6 Variable
VARIABLE displays information about a specified variable including its data type, the
number of programs that reference it, and its current value. A series of asterisks (***)
indicates the variable is uninitialized. If the line containing the cursor references any
variables, those variables are automatically displayed. If instead there is no variable at
the position of the cursor, the editor asks the user to specify the name of the variable
that is to be displayed.
9.4.7.3 Exit
EXIT saves the edited program in a file and exits the editor. The file is saved with the
name of the program and with the .COD extension.
See NOTE regarding the entry number in the UD: root directory.
If the Memory Debug environment was being used, an additional prompt will be
displayed for all programs modified during this editing session. If a previous copy of the
file exists, it is renamed using a .BKC extension, creating a backup copy of the program.
If positional variables have been taught using Teach Pendant REC and MOD keys,
positional variables, the editor will prompt the user to save these changes to the variable
file. Variables are saved to a .VAR file. If a previous copy of the file exists, it is renamed
using a .BKV extension, thus creating a backup copy of the data. If variable data for
other programs has been modified, a prompt will be displayed for each one.
If any programs or variables remain unsaved after the editing environment has been
exited, a warning message will be displayed. Use the MEMORY SAVE command to
save any remaining modified programs or variables.
9.4.7.4 New
NEW command can be used to open a new program in the editor environment and to
quit the program being worked on so far. This command is useful in that the user can
select program sections using CUT and COPY software keys, and then insert them in
another program simply pressing PASTE software key.
If the old program being abandoned has been modified but not saved, the user will be
alerted and always asked whether to proceed. In this case the modifications will be lost.
Also, if the new program does not exist yet, the user is prompted to specify whether a
new program is to be created.
9.4.7.5 Quit
QUIT exits the editor without saving the edited program or variables. If any programs or
variables have been changed, the editor will prompt for confirmation before quitting.
HS-0-C4E-USO_65.fm
00/0708 9-29
Basic procedures for Program development
Note that, as far as the variables, the prompt is displayed only if they have been modified
using REC or MOD keys of the Teach Pendant. If the variable values have been
modified using assignment instructions with the RUN key, the user is not asked to
confirm the saving.
The message indicates that a save has not been performed; however the situation can
still be restored using the commands of the system menu under the MEMORY SAVE
item. Exiting the PROGRAM EDIT environment, it will be possible to restore only the
variables by sending the MEMORY SAVE command. Exiting the MEMORY DEBUG
environment, if the program has been loaded with the /FULL option, it will also be
possible to save the code with the MEMORY SAVE/CODE command.
See NOTE regarding the entry number in the UD: root directory.
9.4.7.6 Save
See NOTE regarding the entry number in the UD: root directory.
SAVE saves the edited program in a file without exiting the editor. The program name
displayed on the status line and a .COD extension are used. If a previous copy of the
file exists, it is renamed using a .BKC extension, creating a backup copy of the program.
This command is typically used to periodically save changes to the program as it is being
edited. The Save command is only allowed in the MEMORY DEBUG environment if the
program was loaded with the /FULL option.
9.4.7.7 Save_as
See NOTE regarding the entry number in the UD: root directory.
SAVE_AS saves the edited program in a file without exiting the editor using a program
name specified by the programmer. If a previous copy of the file exists with that name,
the programmer is prompted to confirm the save. If the programmer responds with a yes,
the original file is renamed using a .BKC extension, creating a backup copy, and the
edited program is saved using the specified name and a .COD extension.
This command is typically used to save a new version of a program without changing
the name of the original program. The SAVE_AS command is not allowed in the
MEMORY DEBUG environment unless the program was loaded with the /FULL option.
9.4.7.8 Suspend
SUSPEND temporarily interrupts the editor to return to the system command menu.
After one system command has been executed, control returns to the editor.
HS-0-C4E-USO_65.fm
9-30 00/0708
Basic procedures for Program development
This environment is only available from the Teach Pendant (TP-INT Page).
The MEMORY TEACH environment assigns the current arm position to positional
variables (POSITION, XTNDPOS, JOINTPOS, arrays of this type or PATH nodes).
It is also useful to add nodes to a PATH. To do this, it is necessary that the program is
provided with such variables or the declarations of them.
– Memory Teach screen layout
– Accessing Teach Environment
– Teaching Positional Data
– Teaching a PATH
– Special Keys
– Exiting Memory Teach Environment
The MEMORY TEACH environment is used to teach positional variables of the
POSITION, JOINTPOS, XTNDPOS (also ARRAY of this type) and PATH type.
.VAR file such variables belong to, is automatically loaded in memory when MEMORY
TEACH command is issued from the Teach Pendant; a .VAR file is created when exiting
MEMORY DEBUG environment.
It is also possible to operate on the .VAR file in the case in which a program (.COD file)
associated to it does not exist. This may be useful, for example, in case in which the
same sequence of move statements is to be used to perform operations on different
objects. In this case, a single program (.CODE file) can be used that will be loaded with
different files of variables (.VAR) using MEMORY LOAD/AS command according to the
points to be reached.
Possible actions of MEMORY TEACH environment are as follows:
– assignment of the physical position of the arm to a positional variable;
– modification of the current value of a positional variable;
– creation, deletion and modification of the standard fields of the node for PATH type
variables. Note that this possibility is present only in the MEMORY TEACH
environment. The editor environments do not manage teaching of the PATH.
From this environment, it is not possible to create, delete or rename positional variables.
HS-0-C4E-USO_65.fm
00/0708 9-31
Basic procedures for Program development
– a scroll window which displays different information case by case according to the
level of the environment being used. Initially, it will contain a list of the positional
variables and then the value of the variable selected;
– a window of the commands menu from which it is possible to send commands
and/or select values to be assigned to the variables;
– a window, which is displayed when necessary to show user messages or prompts.
The variable name is shown in the left-most column, while its type is shown in the middle
column. To the far right is the attribute of each variable. The variable type can be one of
many (JOINTPOS, POSITION, XTNDPOS, ARRAY OF, PATH OF). The asterisk (*) in
the attribute column means that the variable is uninitialized. An “M” denotes that the
variable has been modified, and if the variable has a NOSAVE attribute, an “N” will
appear in that column.
If the variable is a PATH, the type (NODEDEF) specified in the declaration section of
HS-0-C4E-USO_65.fm
9-32 00/0708
Basic procedures for Program development
this PATH in the program to which it belongs will be displayed to the right of the name.
In the example given in Fig. 9.3 - Main Page of the Teach Environment, the NODEDEF
types are weld1 and weld2. The number of nodes currently in each path is denoted in
the brackets after each variable type. The notation [0] indicates that, at the moment, the
variable does not have any node.
The highlighted variable shows the current location of the cursor of Memory Teach. The
example shown in Fig. 9.3 - Main Page of the Teach Environment pos1.
Note that if the variable name is longer than twelve characters, the Memory Teach
environment displays only the first twelve characters on the screen.
Teaching can also be carried out from this screen page using MOD software key.
It is also possible to move to the previous or next variable using up and down keys.
To return to the initial screen page for teaching, press ESC key.
HS-0-C4E-USO_65.fm
00/0708 9-33
Basic procedures for Program development
Once the first node of the PATH has been set, the related screen page will also show
the current values of the other standard fields for that node, as shown in Fig. 9.6
- Displaying a PATH node.
To continue teaching the path, jog the robot to the next position and press REC key. This
will insert a new node after the first. Repeat such an operation until PATH nodes
teaching is completed.
Associated data fields can be set from the Teach Pendant (see later sections).
If at any time the user wants to re-teach a node, use the cursor keys to highlight the
required node, jog the robot to the desired position and press MOD software key.
At the end of all teaching nodes and setting nodes fields operations, press ESC key to
go back to the MEMORY TEACH Main Page.
HS-0-C4E-USO_65.fm
9-34 00/0708
Basic procedures for Program development
The user-defined fields may be of any type and are to be located in the declaration of
the node immediately after the standard fields. The fields defined by the user cannot be
modified from MEMORY TEACH environment.
Standard fields values are displayed on the Teach Pendant beside each node.
Assuming, for example, that we have a NODEDEF declaration containing $MAIN_POS,
$MOVE_TYPE, $SPD_OPT and $SEG_TERM TYPE standard fields, the matching
values for each PATH node will be displayed beside the node as shown in Fig. 9.7
- Node fields screen.
The cursor keys will allow to move through the node fields. The highlighted field is the
cursor current position. The name of the highlighted field is displayed on the bottom line
of the Teach Pendant.
In Fig. 9.7 - Node fields screen, JNT (JOINT) value is highlighted for the first PATH node
$MOVE_TYPE field. If there are several standard fields, that don't all fit in the screen,
simply press right arrow key to reveal the others.
To modify the value of a node data field, highlight the desired field and press ENTER
key. This will switch the bottom line to display the optional values or a prompt for the new
value. As far as previous example, pressing ENTER key while highlighting JNT value,
HS-0-C4E-USO_65.fm
00/0708 9-35
Basic procedures for Program development
causes the Pendant to display all $MOVE_TYPE options. Any of the options can be
selected by pressing the corresponding function key. This will change the value for that
particular node.
Note that the node fields of a new node are set to the values of the previous node. This
is the default behaviour.
Selects the previous variable in the list (unless already at the top of the list) and
UP ARROW
sets the page direction flag to up.
Selects the next variable in the list (unless already at the bottom of the list) and
DOWN ARROW
sets the page direction flag to down.
SHIFT + UP ARROW Selects the first variable in the list.
Here follows the keys description when the PATH node Teach Screen is active (Fig. 9.8
- Node Teach Page).
Selects the previous variable in the list (unless already at the first element of
UP ARROW
the list) and sets the page direction flag to up.
HS-0-C4E-USO_65.fm
9-36 00/0708
Basic procedures for Program development
Selects the next variable in the list (unless already at the last element of the
DOWN ARROW
list) and sets the page direction flag to down.
Selects the standard field of the current node. If the current selected field is
the first one, then the node number is selected.
LEFT ARROW
The node number corresponds to the main destination field ($MAIN_POS,
$MAIN_JNTP or $MAIN_XTND).
RIGHT ARROW Selects the standard field of the current node.
SHIFT + UP ARROW Selects the first node in the list (number 1).
PageUp and PageDown The PAGE key scrolls the page cursor upward or downward.
HS-0-C4E-USO_65.fm
00/0708 9-37
Basic procedures for Program development
Modifies the variable value, node field or ARRAY element using current robot
MOD software key
arm position.
ESC Goes back to the previous screen (PATH teach or main menu teach).
See NOTE regarding the entry number in the UD: root directory.
EXIT command to quit teach environment saving taught data; QUIT command to exit
without saving. As data remain in execution memory until first delete operation, it is
possible to perform a save operation also after a QUIT, by means of a MEMORY SAVE.
b. in the pop-up menu that is opened by the system, choose the Variables (MVV)
function.
To remove a variable during the display of the selected program variables (just
described) there is the Remove softkey (F1). This operation is only possible if the
HS-0-C4E-USO_65.fm
9-38 00/0708
Basic procedures for Program development
See NOTE regarding the entry number in the UD: root directory.
From IDE Page, the variables can only be saved simultaneously with the code. The
following steps are necessary:
a. press the Prog softkey (F1) from the main menu of the IDE Page
b. in the pop-up menu that is opened by the system, choose the Save (cod,var)
function. The system saves the .COD and the .VAR for the program that is
currently open.
Instead, from Prog Page, it is possible to act in this way:
a. press the softkey Prog softkey (F1) from the main menu of the Prog Page
b. in the pop-up menu that is opened by the system, choose one of these functions:
– Save (MS + MS/C) to save both .COD and .VAR
– Save data (MS) to save the variables only
– Save variable as (MS/A) to save the variables with a file name that is different
to that of the program. The user is asked to insert the name of the .VAR file.
Confirm with 'OK' or ENTER.
b. press the Files Page softkey (L1). Entering the Files Page, all the files of the
current directory are displayed. The way of viewing the files can be changed using
the View (F3) (FV) softkey (F3).
b. in the pop-up menu that is opened by the system, choose the Send to (FC) function
HS-0-C4E-USO_65.fm
00/0708 9-39
Basic procedures for Program development
a. press the Utility (F4) softkey (F4) in the main menu of the Files Page
b. in the pop-up menu that is opened by the system, choose the Restore (FUR)
function.
c. a list of Saveset names is shown, previously set in the Setup page Restore
sub-page, that identify the group of files to be restored. Select the required Saveset
and press ENTER
d. The system displays a confirmation prompt message before starting the restore.
The user has to confirm with OK (F5) or cancel the operation with Cancel (F6).
HS-0-C4E-USO_65.fm
9-40 00/0708
File management between PC and Control Unit
This chapter describes the procedures to delete, view and transfer files through the PC.
To operate it is necessary to use the WINC4G program, that has to be installed on the
PC.
After installing the program, activate the terminal connection to WINC4G and from the
system/keyboard menu type the commands indicated in the procedures.
The following procedures are described here:
– View files on PC
– Delete files on PC
– File transfer from PC to Controller
– File transfer from Controller to PC
– Automatic file transfer from Controller to PC
– Automatic file transfer from PC to Controller
b. Type FV (Filer, View): <COMP:(FILE_NAME)> and press the ENTER key on the
PC. The selected file will be displayed.
b. Type FD (Filer, Delete): <COMP:(FILE_NAME)> and press the ENTER key on the
PC.
b. Type FC (Filer, Copy): <COMP:(FILE_NAME)> and press the ENTER key on the
PC; this message will be displayed:
Name of destination file
HS-0-C4E-USO_34.fm
01/0208 10-1
File management between PC and Control Unit
c. Enter the name of the destination file, <UD:(FILE_NAME)> and press the ENTER
key on the PC; after the operation this text will be displayed:
Done
The contents between round brackets can be omitted.
See NOTE regarding the entry number in the UD: root directory.
b. Type FC (Filer, Copy): <UD:(FILE_NAME)> and press the ENTER key on the PC;
this message will be displayed:
Name of destination file
c. Enter the name of the destination file, <COMP:(FILE_NAME)> and press the
ENTER key on the PC; after the operation this text will be displayed:
Done
The contents between round brackets can be omitted.
See NOTE regarding the entry number in the UD: root directory.
HS-0-C4E-USO_34.fm
10-2 01/0208
System operating modes and states
11.1 Foreword
This chapter describes the following:
– System operating modes
– System states
– Stand-by function
– programming (T1),
HS-0-C4E-USO_32.fm
00/0708 11-1
System operating modes and states
the START key on the Teach Pendant. The status selector switch must be set on AUTO.
Active TOOL, BASE and FRAME cannot be changed when working in AUTO.
The Automatic remote mode (REMOTE) is the same as Automatic local mode
(AUTO), but the commands (for example the start) are sent from a remote device (for
example a PLC).
The state selector switch must be set to the REMOTE position. Active TOOL, BASE and
FRAME cannot be changed when working in REMOTE.
The Programming mode (T1) is used to create and verify programs The robot moves,
for safety reasons, are run at a lower speed than in automatic mode (maximum robot
speed allowed in programming is 250 mm/s on the flange centre).
In Auto T mode (T2 - optional feature) the system runs as in Programming mode (T1),
except that the program testing can be executed at working speed.
If, in T2, the jog keys are used, the system will automatically reduce the speed to less
than 250 mm/s.
Note
When the status selector switch is set to T2, the system generates a latched alarm
that prevents the entry to the actual T2 status, even if allowing to switch the drives
on. No movements are allowed (nor the manual one) until the latched alarm is not
acknowledged.
To enable this optional mode, the user has then to confirm the message.
The latched alarm described above is automatically reset if the selector switch is
moved to another state, but it resumes as soon as there is a return to T2.
T2 status is only enabled when the user confirms the latched alarm.
At this point the user is free to run motion programs keeping either the START key
or the enabling device pressed. The speed can be increased at will up to 100%,
hence bringing the robot to its maximum speed (the same speed that can be
reached in automatic mode).
When the status selector switch is set on position T1 (or T2 - optional service), the
programs can be developed using editor environment and the spots can be taken from
the Teach Pendant moving the robot manually with the motion keys; the programs can
be set up using the debug tools of the system. In programming mode, the execution of
a move instruction requires that the operator presses the START key and the enable
device on the Teach Pendant.
When the status selector switch has been set on T1, or T2 or AUTO, the system is under
the control of the operator. When the selector is set on REMOTE, the system is under
remote control (for example from PLC).
Active TOOL, BASE and FRAME cannot be changed when working in REMOTE.
Before any operation can be executed that requires movement, the drives must be
powered:
– if the state selector switch is in either T1 or T2 (optional) position, press in the
intermediate position the Teach Pendant Enabling Device, to power ON the drives;
tho switch them OFF and activate brakes on all axes controlled by the Control Unit,
just release the Teach Pendant Enabling Device,
– if the state selector switch is in AUTO position, press the R5 softkey (Teach
Pendant right menu - it means DRIVE ON when in AUTO state), to power ON the
drives; to switch them OFF and activate brakes on all axes controlled by the
Control Unit, press the R5 softkey again (Teach Pendant right menu - now it means
DRIVE OFF).
HS-0-C4E-USO_32.fm
11-2 00/0708
System operating modes and states
Active TOOL, BASE and FRAME cannot be changed when working in AUTO.
– if the state selector switch is in REMOTE position, DRIVEs ON and OFF are
remote controlled.
A detailed description follows of all the possible system states.
HS-0-C4E-USO_32.fm
00/0708 11-3
System operating modes and states
HS-0-C4E-USO_32.fm
11-4 00/0708
System operating modes and states
In AUTO status, to start programs ready for execution, press the START key on the
Teach Pendant or activate the START input from remote device.
Conditions that change the system status from AUTO to HOLD are:
– status selector switch changed to another position;
– DRIVE OFF or HOLD pressed;
– system alarm.
To return to AUTO, bring the selector switch back to the required position, and press
again the previous buttons (DRIVE OFF and/or HOLD). To continue the movement
program execution, press START after making sure that the drives are powered (DRIVE
HS-0-C4E-USO_32.fm
00/0708 11-5
System operating modes and states
HS-0-C4E-USO_32.fm
11-6 00/0708
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
00/0708 12-1
FB_TOOL program for configuration of Fieldbus
As can be seen in Fig. 12.2, on the Home Page of the FB_TOOL program, the following
functions are available:
– Fieldbus (F1)
– Save (F5)
– Close (F6)
c. Action:
c.1 Viewing
c.2 Reset
c.3 Configuration
HS-0-C4E-USO_67bis.fm
12-2 00/0708
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
00/0708 12-3
FB_TOOL program for configuration of Fieldbus
Fig. 12.5).
Move the focus on ‘Channel’ field, press ENTER to open the menu, select the required
item and confirm with ENTER.
12.2.3 Action
After establishing which boards have been chosen and (where applicable) the type and
channel, the required action can be carried out.
The following actions are possible:
d.1 Viewing
d.2 Reset
HS-0-C4E-USO_67bis.fm
12-4 00/0708
FB_TOOL program for configuration of Fieldbus
d.3 Configuration
12.2.3.1 Viewing
By pressing Show (F2) softkey, the current configuration of the Board and the selected
channel can be viewed (in Fig. 12.7 the screen page is shown relating to a CanBUS
module).
For the Master Channel, the following information is supplied by the program:
– Master enabled/disabled - indicates whether the Master functions, related to that
fieldbus, are enabled or not.
– Device address - the physical address of the selected fieldbus, on the associated
network. This data is not foreseen for InterBUS and CanBUS
– Status $WORD, Command $WORD - are addresses chosen by the user.
– Enable alarms after reset - indicates whether this function is active; if it is,
resetting an alarm generated by a network problem, this alarm is generated again
by the system itself
– Baud Rate - the network baud rate, related to the selected fieldbus (data not
foreseen for InterBUS)
– Current Nodes - indicates how many Nodes, belonging to the selected fieldbus
network, have been configured.
For further information regarding the displayed data for Master, see par. 12.2.3.3.1
Master on page 12-10
HS-0-C4E-USO_67bis.fm
00/0708 12-5
FB_TOOL program for configuration of Fieldbus
For the Slave Channel, the following information is common to all fieldbuses:
– Slave enabled/disabled - indicates the Slave enable/disable (see further details
in par. 12.2.3.3.2 Slave on page 12-23)
– Remote controlled - indicates whether the C4G is configured as Slave or has to
be "remote controlled"
– User bytes number - total of user input bytes (those in output are the same
number)
– Total Input bytes, Total Output bytes - total of user bytes (+ 2 bytes for system
signals if C4G is configured as primary)
– Signal mapping - I/O transfer by $DIN/$DOUT or by $WORD
– System/user $WORD index - if the Slave has signals mapped on $WORD, they
are the indexes of the system $WORD in Input and in Output, as well as user
$WORD in Input and in Output
– Byte swap - indicates whether the user wishes to invert high bytes with low bytes
or not.
Also the following specific information is displayed for:
HS-0-C4E-USO_67bis.fm
12-6 00/0708
FB_TOOL program for configuration of Fieldbus
– DeviceNET Slave
HS-0-C4E-USO_67bis.fm
00/0708 12-7
FB_TOOL program for configuration of Fieldbus
– InterBUS Slave
– Network type - Indicates whether the Interbus board cable is in copper or optic
fibre.
• Baud Rate - the baud rate on the network associated to the Slave
For further information regarding the displayed data for Slave, see par. 12.2.3.3.2
Slave on page 12-23.
12.2.3.2 Reset
HS-0-C4E-USO_67bis.fm
12-8 00/0708
FB_TOOL program for configuration of Fieldbus
possible to reset everything or keep a part (in the example in Fig. 12.11, pressing Reset
FB (F4) only the Profibus Master is reset, whereas pressing Reset Board (F1) also the
Slave is reset).
When the user asks for a reset, the program asks for confirmation, as shown in the
example in Fig. 12.12.
For CanBUS there is a single reset command: Reset FB (F4) that resets the entire
CAN module (highlighted in red in Fig. 12.13).
12.2.3.3 Configuration
Before starting to Configure a fieldbus, read with attention the NOTE FOR USER at the
beginning of this chapter.
To configure the board and Channel required, press Configure (F5) softkey (highlighted
in red in Fig. 12.14).
HS-0-C4E-USO_67bis.fm
00/0708 12-9
FB_TOOL program for configuration of Fieldbus
12.2.3.3.1 Master
To configure a Master fieldbus, proceed as follows:
The system shows a screen page regarding the current configuration of the selected
Master (example in Fig. 12.15).
In any fieldbus selected, the user can change the following fields:
HS-0-C4E-USO_67bis.fm
12-10 00/0708
FB_TOOL program for configuration of Fieldbus
– Master enabled - by means of this field it is possible to define whether the network
of the selected Master is enabled at the start. Press ENTER to open the menu,
select the required item and confirm with ENTER.
– Command $WORD - it is the $WORD index that contains the Master network
management commands. The user has to supply the start index of a block
containing 5 $WORD (4 used and one free) to reserve for this function. Press
ENTER, insert the value and confirm with ENTER. For further information see
par. 14.4.1 Command Words on page 14-21.
– Status $WORD - it is the $WORD index that contains the information regarding the
state of the Master network. The user has to supply the start index of a block
containing 5 $WORD (4 used and one free) to reserve for this function. The
program suggests an address that follows immediately after the control $WORD
(for example, if the control $WORDs start at address 30, for the status $WORDs
the program suggests 35 as starting address (30+5)). Press ENTER, insert the
value and confirm with ENTER. For further information see par. 14.4.2 Status
Words on page 14-22.
– Enable alarms after reset - the user can ask that, following the reset of an alarm
generated by a network problem, this alarm is generated again by the system.
However this function is automatically disabled when the system is in Progr mode
(position T1 of the status selector switch), allowing the motors to start with a
partially functioning network.
It is also possible to set the following data, only for the Masters DeviceNET and
ProfiBUS:
– Device address - to define the physical address of the Master on its associated
network. Permitted addresses depend on type of network. To change this field,
move the focus onto it, press ENTER, insert the new value and confirm again with
ENTER.
– Baud Rate - To set the baud rate on the network associated to the Master. Move
the focus on this field and press ENTER to open a menu that shows the possible
values from which the user can choose. Position on a value and press ENTER, to
confirm the choice.
HS-0-C4E-USO_67bis.fm
00/0708 12-11
FB_TOOL program for configuration of Fieldbus
Let us now see how to configure a new Node or modify the configuration of an existing
Node.
First press Nodes (F2) softkey in the main screen page of the chosen Master (this
softkey is highlighted in red in Fig. 12.15).
On the screen page presented by the program, (see example in Fig. 12.16), select the
Logic address of the Node to be associated to the Master (press ENTER, insert the
appropriate index and confirm with ENTER).
The Logic Address is the index used in the PDL2 programs to access the data
concerning this Node.
Example: if the Logic Address is18,the data of the corresponding device can be found in
$FBP_TBL[<board_no>].FB_MA_SLVS[18,<xxx>]
To select the required Logic Address, press ENTER, modify the Logic ID field and press
ENTER again to confirm.
Press SET (F1) softkey (highlighted in red in Fig. 12.16) to continue the configuration of
the selected Node.
HS-0-C4E-USO_67bis.fm
12-12 00/0708
FB_TOOL program for configuration of Fieldbus
Since there are many differences in the Node setting, according to the type of fieldbus
a separate description follows of the data to be inserted/modified for each of them:
– Data regarding DeviceNET nodes
– Data regarding ProfiBUS nodes
– Data regarding InterBUS nodes
– Data regarding CanBUS nodes
The method for navigation inside the screen pages that guide the user when setting the
Nodes is not influenced by the type of fieldbus chosen. With regard to this, read the
following note with attention before continuing.
• EDS - the configuration data is contained in a file with extension .eds, already
present in UD:\. When “EDS”, is chosen, the program displays field EDS file
name, to insert the name of the file that contains the configuration data. Move
the focus on the field, press ENTER, insert the name and conform with
HS-0-C4E-USO_67bis.fm
00/0708 12-13
FB_TOOL program for configuration of Fieldbus
ENTER (see es. in Fig. 12.18). If the file specified is not found, the system
indicates an error.
Also when the .eds file is used for the Node configuration, it is still necessary to
continue in the screen pages, to set some data manually: Device enabled at
startup, I/O mapping on, Byte swap, COMAU application device. With regard to
this, see the Manual configuration description below.
• Manual - the configuration values are entered manually by the user, guided
by FB_TOOL program screen pages; the following data has to be inserted:
• Device enabled at startup - to define the Node status at the start: the
Master only connects the Nodes that are declared enabled at the start.
If one or more of them are not present, an error is generated. The Nodes
that are not enabled are NOT searched for on the network. However, it
is always possible to enable and disable them later. To enable/disable a
NODE, press ENTER to open the menu, select the required choice
(TRUE=enabled, FALSE=disabled) and confirm with ENTER.
• I/O mapping on - to choose whether to configure the I/O with
$DIN/$DOUT or using the $WORD variables. To modify the current field,
press ENTER to open the menu, select $DIN/$DOUT or $WORD and
confirm with ENTER.
HS-0-C4E-USO_67bis.fm
12-14 00/0708
FB_TOOL program for configuration of Fieldbus
• Vendor ID, Device Type, Product Code - They are ID codes of the
module associated to the current Node, the ID number, the type of
device and the product code respectively. To insert each of these 3 data
manually, move the focus on the field involved, press ENTER, insert the
HS-0-C4E-USO_67bis.fm
00/0708 12-15
FB_TOOL program for configuration of Fieldbus
POLLING NOTE
Generally, on DeviceNET, the I/O modules only transfer data when there are
variations; this mode is called Change Of State (COS). The analog modules have
to be updated in continuation and therefore transfer data in cycles (polling). The
management of the polling time is therefore NECESSARY for the analog modules!
• Polling cycle - the duration of the polling cycle (see POLLING NOTE).
To change it, when it is enabled, move the focus, press ENTER, insert
the required time and confirm with ENTER.
• Quick Connect management - allows the user to access the Quick
Connect function (see QUICK CONNECT NOTE). To enable the
management, move the focus on this field (highlighted in yellow in
Fig. 12.21) press ENTER to open the menu, choose TRUE and confirm
with ENTER. The Quick Connect attribute field can be modified.
• Quick Connect attribute - the user has to enter the service code to
enable the Quick Connect function (see QUICK CONNECT NOTE). To
do so, press ENTER, insert the required code and confirm with ENTER.
HS-0-C4E-USO_67bis.fm
12-16 00/0708
FB_TOOL program for configuration of Fieldbus
• GSD - the configuration data is contained in a file with extension .gsd, already
present in UD:\. When “GSD”, is chosen, the program displays field GSD file
name, to insert the name of the file that contains the configuration data. Move
the focus on the field, press ENTER, insert the name and conform with
ENTER (see Fig. 12.23). If the file specified is not found, the system indicates
an error. Press Next>>, the program shows a screen page (see Fig. 12.24)
that lists the possible configurations.
HS-0-C4E-USO_67bis.fm
00/0708 12-17
FB_TOOL program for configuration of Fieldbus
The user has to associate one of the available types of configuration to the
required module. To do so, using Fig. 12.24 for reference, move the focus on
the field highlighted in red, press ENTER, insert the required value, confirm
with ENTER; then move the focus on the field highlighted in yellow, press
ENTER, insert the Logic ID of the Node being configured and confirm with
ENTER.
Press Insert (F2) softkey to make the choice operational.
Also when the .gsd file is used, some data has to be entered manually: Device
enabled at startup, I/O mapping on, Byte swap, COMAU application device. With
regard to this, see the Manual configuration description below.
• Manual - the configuration values are entered manually by the user, guided
by FB_TOOL program screen pages; the following data has to be inserted:
• ID module - it is a number that univocally identifies the module on the
selected Node. Press ENTER, insert the required value and press
ENTER to confirm.
• Device enabled at startup - the significance and the use of this field are
absolutely identical to the description for par. Data regarding
DeviceNET nodes on page 12-13, therefore, see this section.
• I/O mapping on - the significance and the use of this field are absolutely
identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section.
• $WORD index - the significance and the use of this field are absolutely
identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section.
• Input/Output Byte number - the significance and the use of this field
are absolutely identical to the description for par. Data regarding
DeviceNET nodes on page 12-13, therefore, see this section.
• Byte swap - the significance and the use of this field are absolutely
identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section.
• Data transfer mode - the setting of this field depends on the setting of
the Slave. Indicates whether the Master intends exchanging data with
the Slave, in Word or in Byte. For further information see also par. Data
regarding ProfiBUS Slave on page 12-26.
HS-0-C4E-USO_67bis.fm
12-18 00/0708
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
00/0708 12-19
FB_TOOL program for configuration of Fieldbus
To insert the required value, press ENTER, change the data and press ENTER
again to confirm.
– Configuration type - to set the type of configuration required, open the menu
pressing ENTER, select the required item and press ENTER to confirm; this field
specifies whether the Node on InterBUS is an:
• I/O module - to exchange Input/Output data, or
• BK module - to create branches on the Interbus network and NOT to
exchange data.
– Device enabled at startup - the significance and the use of this field are absolutely
identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section.
– Device Group - to specify whether the current Node is on branch 1 or branch 2.
The field can only be modified when the Node is not active at the start. Press
ENTER, insert the required value and press ENTER to confirm.
– Device Level - to specify the current Node position in relation to the Master, i.e.
how many branches have to be crossed before reaching the Master. If it is 0, this
means that between the Node and the Master there is no branching. To change it,
press ENTER, insert the required value and confirm with ENTER.
– ID module - it is a number that univocally identifies the module on the selected
Node. Press ENTER, insert the required value and press ENTER to confirm.
– Length Code - it is a plate data of the device associated to the current Node. For
further information see the specific documentation of this device. To modify this
field, press ENTER, insert the required value and confirm with ENTER.
– I/O mapping on - the significance and the use of this field are absolutely identical
to the description for par. Data regarding DeviceNET nodes on page 12-13,
therefore, see this section.
– $WORD index - the significance and the use of this field are absolutely identical to
the description for par. Data regarding DeviceNET nodes on page 12-13,
therefore, see this section.
– Input/Output Byte number - the significance and the use of this field are
absolutely identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section.
– Byte swap - the significance and the use of this field are absolutely identical to the
description for par. Data regarding DeviceNET nodes on page 12-13, therefore,
see this section.
– COMAU application device - the significance and the use of this field are
absolutely identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section.
HS-0-C4E-USO_67bis.fm
12-20 00/0708
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
00/0708 12-21
FB_TOOL program for configuration of Fieldbus
After the modifications to this screen page have been completed, press END
(F6) to terminate the configuration of the current Node and return to the first
screen page (see Fig. 12.16).
• Generic - the configuration values are entered manually by the user, guided
by FB_TOOL program screen pages; the following data has to be inserted:
• Device enabled at startup - the significance and the use of this field are
absolutely identical to the description for par. Data regarding
DeviceNET nodes on page 12-13, therefore, see this section.
• Vendor ID, Device Type, Product Code - the significance and the use
of those fields are absolutely identical to the description for par. Data
regarding DeviceNET nodes on page 12-13, therefore, see this section.
• I/O mapping on - the significance is absolutely identical to the
description for par. Data regarding DeviceNET nodes on page 12-13,
therefore, see this section.
For CanBUS, this field is read only, because the copying is ALWAYS by
$DIN/$DOUT: it is therefore set by the Program and CANNOT be modified by the
user.
• Input/Output Byte number - the significance and the use of this field
are absolutely identical to the description for par. Data regarding
DeviceNET nodes on page 12-13, therefore, see this section.
• Byte swap - the significance and the use of this field are absolutely
identical to the description for par. Data regarding DeviceNET nodes on
page 12-13, therefore, see this section. After completing all the fields of
the page, press Next>> to access the next page (SDO configuration).
Users who are not skilled experts are never to attempt to change values on this
page.
HS-0-C4E-USO_67bis.fm
12-22 00/0708
FB_TOOL program for configuration of Fieldbus
• SDO - it is a page where the user can set some configuration parameters
that will be used at the start. These parameters are to be inserted in
sequence: only when a parameter configuration is completed, it is
possible to access the next.
12.2.3.3.2 Slave
Only the Slave interface of the fieldbuses allows system remote control, i.e. to
enter DRIVE ON/OFF, START, HOLD commands by remote control .
With this choice the C4G Control Unit can be configured as Slave module of a
DeviceNET, ProfiBUS or InterBUS network.
The parameters inserted by the user for the Slave, have to be consistent with the
configuration of its Master.
HS-0-C4E-USO_67bis.fm
00/0708 12-23
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
12-24 00/0708
FB_TOOL program for configuration of Fieldbus
To insert the required index (when enabled), move the focus onto it, press ENTER,
insert the required value and confirm with ENTER.
There is some data that is specific to the type of fieldbus selected, as described in the
following paragraphs:
– Data regarding DeviceNET Slave
– Data regarding ProfiBUS Slave
– Data regarding InterBUS Slave
HS-0-C4E-USO_67bis.fm
00/0708 12-25
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
12-26 00/0708
FB_TOOL program for configuration of Fieldbus
– ProfiBUS Slave ID - it is a code that univocally identifies the Slave on the Profibus
network. For C4G it is 2031.
– WORD/BYTE Data transfer - the setting of this Slave field depends on how its
Master has been configured; for example, if the Master is set to transfer 8 input
bytes and the Slave transfers a total of 16 input bytes, this field will be set as
WORD; if the Master has been set to transfer 16 input bytes, this field will be set
as BYTE.
HS-0-C4E-USO_67bis.fm
00/0708 12-27
FB_TOOL program for configuration of Fieldbus
– Network type - Indicates whether the Interbus board cable is in copper or optic
fibre.
– Baud Rate - the baud rate on the network associated to the Slave. To change this
field, open the menu by pressing ENTER, select the required item and press
ENTER to confirm.
By pressing the SAVE (F5) key (see Fig. 12.34) the current Fieldbus configuration is
permanently saved . Asking the program to save, the current parameter settings are
stored in the .C4G file.
To proceed with the saving, the program shows the screen page in Fig. 12.35, where
the user has to specify whether the configuration is really to be saved.
HS-0-C4E-USO_67bis.fm
12-28 00/0708
FB_TOOL program for configuration of Fieldbus
See NOTE regarding the entry number in the UD: root directory.
HS-0-C4E-USO_67bis.fm
00/0708 12-29
FB_TOOL program for configuration of Fieldbus
HS-0-C4E-USO_67bis.fm
12-30 00/0708
I/O Configuration Programs
This chapter describes in detail the programs supplied to the user for the configuration,
viewing and resetting of I/O, HAND Ports and I/O points on DSA.
The following programs are available:
– IO_TOOL Program - I/O Configuration in VP2 that has been written in Visual PDL2
language (see specific manual VP2-Visual PDL2), to be used on the Teach
Pendant;
– IO_INST Program - I/O configuration - for use in WinC4G environment on Personal
Computer.
If the user wishes to load system software version 3.0, starting from a 2.3x or 2.4x
version, it is not possible to maintain the configuration of the CAN modules
without making a conversion of the configuration data.
WARNING! If the user wishes to use the IO_INST program, it is necessary to use
that of version 2.51 and NOT that of previous versions as they are no longer
compatible.
HS-0-C4E-USO_67.fm
00/0707 13-1
I/O Configuration Programs
HS-0-C4E-USO_67.fm
13-2 00/0707
IO_TOOL Program - I/O Configuration in VP2
HS-0-C4E-USO_47bis.fm
01/0208 13-3
IO_TOOL Program - I/O Configuration in VP2
As can be seen in Fig. 13.2, the following functions are available on the Home Page of
the IO_TOOL, program:
– I/O ports(F2)
– DSA (F3)
– HAND (F4)
– Save (F5)
– Close (F6)
d.1 Configuration.
d.2 Release.
e. Operation completion.
HS-0-C4E-USO_47bis.fm
13-4 01/0208
IO_TOOL Program - I/O Configuration in VP2
The system opens a menu where the user has to indicate whether it is wished to operate
on:
– Input ports (1), or
– Output ports (2).
After the choice has been made between INPUT and OUTPUT, press ENTER or the LH
arrow to open the submenu shown in Fig. 13.4, where the type of port required can be
selected:
– Digital (1)
– Analog (2)
– Groups (3)
– Flex (4)
– Remote (5)
– System (6)
HS-0-C4E-USO_47bis.fm
01/0208 13-5
IO_TOOL Program - I/O Configuration in VP2
For Digital, Analog, Flex and Remote ports regardless of the type of I/O required,
the use of the screen pages that manage them is the same.
Therefore a detailed description is given of the user interface generic use (to
facilitate the description, the screen pages for Digital Inputs are used): for all
types of I/O ports (except groups of ports), the procedure to be followed is the
same.
In the pages that follow, any differences are indicated for each type of port
foreseen.
The “Groups” category is dealt with separately, since the procedure for this
differs considerably in relation to the other categories. See par. 13.1.2.6 Digital or
Remote I/O Groups on page 13-16.
Also the “System” category is dealt with separately (see par. 13.1.2.7 System I/O
ports on page 13-18) since it is substantially different to the other categories.
HS-0-C4E-USO_47bis.fm
13-6 01/0208
IO_TOOL Program - I/O Configuration in VP2
The selected ports are displayed immediately in red in the specific area (field number 4
in Fig. 13.5).
Note that the I/O ports that belong to the specified range are always IN SEQUENCE.
The list of the selected I/Os (those where operations are taking place) is always
displayed IN RED (see Fig. 13.5), whereas the ports displayed IN BLACK are to be
considered as not selected, i.e. ports on which AT THAT MOMENT no operation
is taking place.
For example, in Fig. 13.5 operations are taking place on ports from 1 to 5 (see
fields no.1 and no.3), therefore the system displays these ports in RED (see field
no.4). As can be seen, the remaining ports are displayed in BLACK.
NOTE - Obviously if it is intended to act on only one I/O port. the Range field (no.3
in Fig. 13.5) is to be set with value 1!
e.1 Configuration
e.2 Release
13.1.2.4.1 Configuration
This command is used to configure, that is to say, to associate the selected port or group
of ports to certain physical or virtual events.
Before starting to prepare a configuration, read with care the NOTE FOR THE USER at
the beginning of the chapter.
HS-0-C4E-USO_47bis.fm
01/0208 13-7
IO_TOOL Program - I/O Configuration in VP2
Virtual ports
To configure virtual I/O ports it is necessary to distinguish between:
– Digital or Remote
– Analog or Flex
Digital or Remote
The Remote type ports ($IN and $OUT) are available for the user starting from 411. The
use is exactly the same as for the Digital ports.
By pressing Virtual (F1) it is possible to make direct selection of the start value (Virt=1
or Virt=0) to be assigned to the selected ports (see Fig. 13.6), i.e. the value that the port
will assume at the Control start.
HS-0-C4E-USO_47bis.fm
13-8 01/0208
IO_TOOL Program - I/O Configuration in VP2
The new value is immediately displayed next to the name of the selected port, preceded
by the text “Virtual = “(see Fig. 13.7).
Analog or Flex
To configure analog or Flex ports as virtual, proceed as follows (for convenience screen
pages referring to analog inputs are used):
b. Change value
Before After
When Virtual (F1) is pressed, this enables the Value field (white background, as shown
in Fig. 13.8 - After), to assign to these ports the value that they shall assume at the
Control start.
HS-0-C4E-USO_47bis.fm
01/0208 13-9
IO_TOOL Program - I/O Configuration in VP2
Press ENTER, insert the new value and confirm with ENTER (see Fig. 13.9).
Physical ports
The number of ports that can be configured on a physical device depends on the number
of user bytes that have been indicated when the device was configured
Regardless of the type of port required by the user, to configure it as a physical port,
press PHYSICAL I/O (F4). With this function the screen page can be opened to select
the required fieldbus (see Fig. 13.11).
HS-0-C4E-USO_47bis.fm
13-10 01/0208
IO_TOOL Program - I/O Configuration in VP2
Proceed as follows:
a. Board selection
b. Choose NODE
Board selection
On the “PHYSICAL I/O selection” page, press ENTER to open the menu for the Board
field, choose the required board (Fig. 13.12) and confirm with ENTER.
Fieldbus selection
If a Fieldbus board has been selected, choose the required Fieldbus type (see
Fig. 13.13) and then also the Channel (see par. Channel selection on page 13-12).
HS-0-C4E-USO_47bis.fm
01/0208 13-11
IO_TOOL Program - I/O Configuration in VP2
If instead a CanBUS is selected, it is not necessary to select the channel, and therefore
pass directly to par. Choose first bit on page 13-13.
Channel selection
The user has to select the required channel, choosing between MASTER and SLAVE,
in the menu that opens when ENTER is pressed (see Fig. 13.14). After selecting the
channel, press ENTER to confirm.
Choose NODE
Regardless of the board or Fieldbus that has been chosen, the user must now indicate
the logic ID of the NODE where the I/O port (or ports) is/are to be mapped. To do so, it
is necessary to act on the NODE Logic ID field (field highlighted in green in Fig. 13.15):
Press ENTER, insert the required value and confirm with ENTER.
HS-0-C4E-USO_47bis.fm
13-12 01/0208
IO_TOOL Program - I/O Configuration in VP2
The program displays the information regarding the chosen node (see Fig. 13.15): the
physical ID (yellow), the number of bits configured for the node (red), the list of the bytes
and bits associated to it (blue).
For the Digital and Remote ports, the physical image of the data on Fieldbus or
on CanBUS is in fact an array of bits. It is grouped, for the user’s convenience as
array of bytes (the next figure shows an example of connection between $DIN
ports and physical images of the inputs coming from Fieldbus).
HS-0-C4E-USO_47bis.fm
01/0208 13-13
IO_TOOL Program - I/O Configuration in VP2
Press Bind (F3) (see Fig. 13.17 - yellow) to connect the selected ports to the physical
I/Os. The program immediately displays the new configuration (see example in
Fig. 13.18).
In our example, $DIN[1], $DIN[2] and $DIN[3] have been connected with the first three
bits of the first byte of Node 2 associated to the DeviceNET of the FBP1 board.
For the analog ports, the fieldbus node number and the associated physical byte are
displayed for each port; for the Flex ports the fieldbus node number, the first physical bit
and the length of the Flex. are displayed
HS-0-C4E-USO_47bis.fm
13-14 01/0208
IO_TOOL Program - I/O Configuration in VP2
Note that if the range of ports requested is more than the number of configured
physical bits, at the moment of association only the selected physical bits are
taken into consideration, and the excess I/O ports are not mapped.
13.1.2.4.2 Release
With this command a single I/O port or a group of them (in sequence) can be removed.
When Release (F2) is pressed, the selected ports (displayed in red) are released, i.e.
they are no longer associated to any physical or virtual channel (see Fig. 13.19).
Before After
HS-0-C4E-USO_47bis.fm
01/0208 13-15
IO_TOOL Program - I/O Configuration in VP2
a. Select the index of the group to be created (see field highlighted in yellow in
Fig. 13.20). If no configuration is displayed for this index it means that it is
available.
b. Press Port type (F4) (highlighted in blue in Fig. 13.20) to define the type of ports
to be grouped in the group selected in step a.
c. the program shows the screen page in Fig. 13.21, where the type of I/O ports have
to be chosen to be inserted in the selected group.
In the Port selection field the choice can be made between
– DIN or DOUT
– IN or OUT
HS-0-C4E-USO_47bis.fm
13-16 01/0208
IO_TOOL Program - I/O Configuration in VP2
To select the type of port required, press ENTER to open the menu, choose the
appropriate item and confirm with ENTER.
d. Continue, selecting the index of the first port of the group (the field is highlighted in
red in Fig. 13.21); Press ENTER, insert the required value and confirm with
ENTER;
e. insert the Range of ports to be grouped (field highlighted in blue in Fig. 13.21).
Press ENTER, change the value and confirm with ENTER.
f. If it is wished to associate also a second set of I/O ports to the group, press the
2nd SET softkey (F2), to enable the use of the specific fields (index of first port
and Range, also for the second set).
h. If the set configuration is correct, the OK softkey (F6) appears in the Central Menu
screen page as in Fig. 13.21. Press it to return to the Groups page (see Fig. 13.20).
i. The program displays a summarising screen page of the ports to be grouped (in
RED the ports of the first set, in BLUE the ports of the second set). Check that the
group index is set correctly (field highlighted in yellow in Fig. 13.20) and press Bind
(F3) to make the set group operational.
j. In the list on the left the structure of the newly created group is displayed (see
example in Fig. 13.22).
HS-0-C4E-USO_47bis.fm
01/0208 13-17
IO_TOOL Program - I/O Configuration in VP2
k. Press END (F6) to return to the main page (see Fig. 13.2).
a. select the relevant group (field highlighted in yellow in Fig. 13.20) press ENTER,
insert the group index and confirm with ENTER.
b. Press Release (F2) (highlighted in green in Fig. 13.20); the selected group returns
to be available for future use.
Accessing this section, the screen page presented by the IO_TOOL program is that
shown in Fig. 13.23.
HS-0-C4E-USO_47bis.fm
13-18 01/0208
IO_TOOL Program - I/O Configuration in VP2
WARNING - To select the different fields on the system WORD and on the list of
$SDIN/$SDOUT, it is strongly advised to ONLY use the Sel BIT and Sel SDIN (or
Sel SDOUT) softkeys , and NOT the ENTER key. In this way movements are greatly
facilitated.
Otherwise it would be necessary to press ENTER or ESC several times.
a. move the focus on the bit of the system WORD that is to be modified
b. press the Sel BIT (F1) softkey, the field related to this bit is now highlighted (see
Fig. 13.23)
c. move the focus on tthe $SDIN/$SDOUT to be associated to the bit selected in step
a.
d. press Sel SDIN (F2) (or Sel SDOUT (F2) if operating on Output ports). The port of
the chosen system will now be highlighted (see Fig. 13.24)
HS-0-C4E-USO_47bis.fm
01/0208 13-19
IO_TOOL Program - I/O Configuration in VP2
e. when a selection has been made in both lists, the program enables Bind (F3)
(highlighted in red in Fig. 13.24). Press it to make the association of the system port
to the system WORD bit active (as shown in Fig. 13.25).
Remove a $SDIN/$SDOUT
To remove a $SDIN or $SDOUT from the system WORD, proceed as follows:
a. move the focus on the bit to be released (in the system WORD)
b. press Sel BIT (F1). The bit is now highlighted (see Fig. 13.26)
HS-0-C4E-USO_47bis.fm
13-20 01/0208
IO_TOOL Program - I/O Configuration in VP2
b. give affirmative answer (OK (F4)), to the question asked by the program (see
Fig. 13.28). The IO_TOOL tool will reconfigure the system WORD, using the
default values.
HS-0-C4E-USO_47bis.fm
01/0208 13-21
IO_TOOL Program - I/O Configuration in VP2
To exit from the system ports management environment, press END (F6).
Press this key to open the screen page shown in Fig. 13.30.
If there is more than one DSA board in the system, there is DSA1 (F1) (see
Fig. 13.30), to access the configuration of one board rather than the other.
HS-0-C4E-USO_47bis.fm
13-22 01/0208
IO_TOOL Program - I/O Configuration in VP2
WARNING!
To CONFIRM the settings inserted for I/O points on DSA, at the end of
configuration operations, remember to always press SET (F4).
Otherwise the set configuration will NOT be saved.
Pressing END (F6) closes the section regarding DSA and returns to the main screen
page of the IO_TOOL. program
A description follows of the procedures to follow to manage the above mentioned I/O
points.
13.1.3.1 Alarms
This section (highlighted in red in Fig. 13.31) is used to activate and deactivate the robot
Alarm and the air Alarm.
To make the required choice, move the focus on to it (OFF or ON) and press ENTER to
confirm. An activated alarm is shown in green.
HS-0-C4E-USO_47bis.fm
01/0208 13-23
IO_TOOL Program - I/O Configuration in VP2
13.1.3.2 HDIN
This section is used to specify if and how it is required to act on the $HDIN configuration.
Move the focus on the field highlighted in red in Fig. 13.32 and press ENTER to open
the menu.
HS-0-C4E-USO_47bis.fm
13-24 01/0208
IO_TOOL Program - I/O Configuration in VP2
13.1.3.3 Input
Each DSA card has 4 available Inputs.
This section is used to enable them, moving the focus on the corresponding checkbox
(highlighted in red in Fig. 13.35) and confirming with ENTER.
HS-0-C4E-USO_47bis.fm
01/0208 13-25
IO_TOOL Program - I/O Configuration in VP2
Selecting a certain Input, the corresponding spindial is enabled, so that the user can
specify what is in the index of the $DIN port to be associated to that Input. To do so,
move the focus, press ENTER to be able to edit the field, type in the required index and
confirm by pressing ENTER again. If the Input selected is the first, the system asks the
user whether it is wished to map all the inputs in sequence. If the answer is affirmative
(OK (F4)), all four Inputs are automatically mapped in sequence, starting from the index
inserted for Input 1
13.1.3.4 Output
Each DSA card has 2 available Outputs. This section allows their configuration.
The user has to specify which Output is to be configured, moving the focus on the
corresponding checkbox (highlighted in red in Fig. 13.36) and confirming with ENTER.
In the same way as for the Inputs, when one of the two checkboxes is selected, the
program enables the corresponding spindial, so that the user can specify which is the
$DOUT port is to be associated to that Output. To do so, move the focus, press ENTER
to be able to edit the field, insert the required index and confirm pressing ENTER again.
13.1.3.5 Stroke-end
This section (highlighted in red in Fig. 13.37) manages the electrical stroke-ends
HS-0-C4E-USO_47bis.fm
13-26 01/0208
IO_TOOL Program - I/O Configuration in VP2
configuration.
With the IO_TOOL program the stroke_ends can be activated/deactivated.
To operate on the individual stroke-end, move the focus on the corresponding checkbox
(see Fig. 13.38) and select or deselect it as required, pressing ENTER.
In the example of Fig. 13.38, pressing the ENTER key will disable stroke-end 1.
13.1.3.6 Brakes
This section is used to manage the configuration of the auxiliary axis brakes.
With the IO_TOOL program these brakes can be activated/deactivated.
HS-0-C4E-USO_47bis.fm
01/0208 13-27
IO_TOOL Program - I/O Configuration in VP2
To operate on the brake of a single axis, move the focus on the corresponding checkbox
(see Fig. 13.39) and select or deselect it as required, pressing ENTER.
HS-0-C4E-USO_47bis.fm
13-28 01/0208
IO_TOOL Program - I/O Configuration in VP2
The user has to select the Arm and Hand to operate on. To do so, move the focus on
the field to be modified, press ENTER to enter editing mode, make the modification and
press ENTER again to confirm.
The following functions are available for the user:
– VIEW (F2)
– Configure (F5)
To exit from the section relating to the HANDS press END (F6) to return to the
IO_TOOL main page.
HS-0-C4E-USO_47bis.fm
01/0208 13-29
IO_TOOL Program - I/O Configuration in VP2
According to the operating mode chosen, the user has to enter different settings. They
are described in the relevant sub-paragraphs.
Regardless of the operating mode chosen, when the user has entered all the necessary
settings, press END (F6) to confirm and terminate the configuration.
13.1.4.2.1 One
To configure the Hand with a single output line.
The choice of operating mode One displays the screen page shown in Fig. 13.44.
HS-0-C4E-USO_47bis.fm
13-30 01/0208
IO_TOOL Program - I/O Configuration in VP2
13.1.4.2.2 Dual
To configure the Hand with two output lines.
The choice of the Dual operating mode displays the screen page of Fig. 13.45.
The information to be supplied by the user is the same as for the One operating mode
(to which reference is made), but for both Outputs.
HS-0-C4E-USO_47bis.fm
01/0208 13-31
IO_TOOL Program - I/O Configuration in VP2
13.1.4.2.3 Pulse
To configure the Hand in Pulse mode, with two output lines.
The choice of the Pulse operating mode displays the screen page of Fig. 13.46.
The information to be supplied by the user is the same as for the Dual operating mode
(to which reference is made), but it is now necessary to also specify the duration of the
impulse (between 10 and 10000 ms), in the Time field (highlighted in red in Fig. 13.46).
13.1.4.2.4 Step
To configure the Hand in Step mode, with two output lines.
The choice of the Step operating mode displays the screen page of Fig. 13.47.
HS-0-C4E-USO_47bis.fm
13-32 01/0208
IO_TOOL Program - I/O Configuration in VP2
The information to be supplied by the user is the same as for the Dual operating mode
(to which reference is made), but it is now necessary to specify also the time interval
between one step and the next (between 10 and 10000 ms), in the Time field
(highlighted in red in Fig. 13.47).
Press SAVE (F5) (highlighted in red in Fig. 13.48) to permanently save the current
configuration of the Inputs/Outputs. When it is requested to save the program, the
current parameter settings are stored in the file .C4G.
To save, the program shows the screen page in Fig. 13.49, where the user has to
specify whether the request is confirmed or not.
HS-0-C4E-USO_47bis.fm
01/0208 13-33
IO_TOOL Program - I/O Configuration in VP2
See NOTE regarding the entry number in the UD: root directory.
HS-0-C4E-USO_47bis.fm
13-34 01/0208
IO_INST Program - I/O configuration
a. connect the PC to the C4G Controller and run the WinC4G program.
b. from WinC4G select the directory into which the files have been transferred.
c. since the name of the installation program is IO_INST.COD, run the Filer Utility
Install IO_INST command from WinC4G.
The opportune files will be automatically copied from PC and the program will be run on
WinC4G.
The program can only be run on WinC4G (therefore on PC) and not on the Teach
Pendant.
When the user, through a screen page, has to choose or enter a value, it may
happen that the system displays the possible answer: these are choices or values
RECOMMENDED by the system and in any case the user can change them if
wished.
HS-0-C4E-USO_47.fm
01/0208 13-35
IO_INST Program - I/O configuration
13.2.3.1 Port_io
Through this branch of the menu the $DIN and $DOUT Input/Output ports can be
associated to the $GIN and $GOUT port groups, to the $AIN and $AOUT analog ports,
to the $SDIN and $SDOUT system variables and to the $FMI and $FMO flexible ports,
and certain physical events.
Above all one of the following possible choices has to be selected:
– Input
– Output
13.2.3.1.1 Input
As can be seen in the previous figure, the following commands are available:
– Din
HS-0-C4E-USO_47.fm
13-36 01/0208
IO_INST Program - I/O configuration
– Gin
– Sdin
– Ain
– Fmi
– Remote IN
Din
The target is to create or remove one or more $DIN ports and associate a connection to
each one with the physical image of the input data.
As can be seen in the previous figure, the user can make the following choices:
– Configure
– Clear
A detailed description follows for each function:
Configure
To configure the $DIN ports. If there is more than one port, they will be allocated in
sequence.
The program asks some questions concerning the ports to be configured:
– Physical Port, Virtual Port. To define the $DIN port to be configured, as physical
port or virtual port.
• If Virtual Port has been chosen, the following requests are displayed:
• First $DIN index - first $DIN of the virtual ports group to be configured
• Virtual Port starting value [0 .. 1] - value the virtual port assumes at the
Control start (0 or 1).
• If instead Physical Port has been chosen, the program asks for the type of
fieldbus where the inputs are to be mapped:
HS-0-C4E-USO_47.fm
01/0208 13-37
IO_INST Program - I/O configuration
According to the type of fieldbus chosen, the following situations may occur:
• CAN module
• Other interfaces (Profibus, DeviceNet, Interbus, Ethernet/IP, DSA)
CAN module
First of all the order number of the required CAN module is asked for.
– The program asks how many ports are to be mapped (the number of configurable
$DIN depends on the type of CAN module selected).
HS-0-C4E-USO_47.fm
13-38 01/0208
IO_INST Program - I/O configuration
The system asks for the index of the first (or the only) $DIN to be connected. If the
selected port is already connected, it is asked whether it is to be overwritten.
According to whether a system I/O module or a user I/O module has been chosen, the
following questions are asked:
If a master has been selected (Profibus, DeviceNet or Interbus), the order number of the
required slave module is asked for.
The program asks how many ports are to be mapped (the number of $DIN that can be
configured depends on the number of user Bytes indicated when configuring the slave
or the slave node of the master).
The system asks for the index of the first (or the only) $DIN to be connected. If the
selected port is already connected, it is asked whether it is to be overwritten.
The data image coming from the Fieldbus is, in fact, a bit array. It is arranged, for the
convenience of the user, as a byte array. The user has to specify the byte and the bit
that define the start position (in the physical image) starting from which all the $DIN input
HS-0-C4E-USO_47.fm
01/0208 13-39
IO_INST Program - I/O configuration
Clear
To reset previous $DIN ports configuration and $GIN groups formed by $DIN ports. The
configuration can be reset from an individual port or from all of them.
If All is chosen, the system asks for confirmation then makes the reset.
Gin
This command groups together contiguous $DIN ports.
HS-0-C4E-USO_47.fm
13-40 01/0208
IO_INST Program - I/O configuration
Configure
To configure a $GIN group. The program asks the following questions, in this order:
– Do you need a second set? (N/Y) The program now asks if also the second set
available is to be configured. If an affirmative answer is given, the same questions
will be asked as before, relating however to the second set.
HS-0-C4E-USO_47.fm
01/0208 13-41
IO_INST Program - I/O configuration
After the configuration has terminated, a summarising screen page is displayed showing
the configured $GIN group(s).
View
When this command is chosen, the screen page is shown that lists all the configured
$GIN groups.
Clear
To reset one at a time the configuration of $GIN input groups. The program asks the
following questions for each one:
Sdin
This command is used to construct the system word image (irst 16 bits of the physical
image of the data coming from the fieldbus) according to the user’s requirements. It is
only enabled if a Fieldbus Slave is configured as primary.
When run, a screen page is displayed on the screen in which
– on the left the current significance of the system word bit is shown,
– on the right, but only as a help for the user, the significance of the $SDIN ports is
shown
The standard setting can be changed, answering these questions:
– Bit in system $WORD [1 .. 16] The program asks for the insertion of the system
word bit number that is to be modified.
HS-0-C4E-USO_47.fm
13-42 01/0208
IO_INST Program - I/O configuration
– The user has to specify the operation to be made on the selected bit: it can be
cleared (C) or associated to a port (A)
• If it is chosen to clear it, the program makes the deletion and terminates the
command.
• If it is chosen to associate a port to the selected bit, the program asks these
questions:
• The program then asks for the index of the port to associate to the bit:
$SDIN[145..153]
If the slave is configured to word the port may be $DIN, and in this case the range
is [1..512]
In this IO_INST version the analog ports can only be configured on analog CAN
modules.
Ain
The target is to create or remove one or more $AIN ports and associate a connection to
each one with the physical image of the input data.
Configure
To configure one or more $AIN ports
HS-0-C4E-USO_47.fm
01/0208 13-43
IO_INST Program - I/O configuration
– Number of $AIN to be configured [1 .. 64] The system asks for the insertion of
the number of $AIN ports to be configured .
– Index of the first $AIN [1 .. 64] to insert the index of the first (or only) $AIN to be
configured
– Physical Port, Virtual Port. To define the $AIN port to be configured, as physical
port or virtual port.
• If Virtual Port has been chosen, the value is asked for that will be assumed
by the port at the Control start (from 0 to 65535).
• If a Physical Port has been chosen, the type of field bus is asked for, where
the $AIN port (or ports) is/are to be mapped .
According to the type of field bus chosen, the following situations are
possible:
• CAN module
• Other interfaces (Profibus, DeviceNet, Interbus, Ethernet/IP, DSA)
CAN module
The analog I/Os can be mapped on free channels of the configured digital/analog CAN
modules. First of all the order number of the required CAN module is requested.
First of all the order number of the required CAN module is requested. Obviously, the
selected CAN module must be analog type.
The program asks how many ports are to be mapped (the number of $AIN that can be
configured depends on the type of CAN module selected).
The index of the first (or only) $AIN to be connected then has to be inserted. If the
selected port is already connected, the user is asked if it is to be overwritten.
Next the user has to specify starting from which channel (i.e. of the 8 analog I/Os on the
selected CAN module) the $AIN ports being configured are to be connected
HS-0-C4E-USO_47.fm
13-44 01/0208
IO_INST Program - I/O configuration
After all the operations required by the program have been performed, a map is
displayed that shows the association between the 8 analog input channels of the
selected CAN, and the analog ports associated to it.
Other interfaces
For the configuration on other interfaces (DeviceNet, Profibus, Interbus and Ethernet/IP,
DSA), see the explanations for $DIN (see Other interfaces in the paragraph relating to
the $DIN), since the procedure is exactly the same.
Clear
To reset the previous $AIN ports configuration.
If instead All has been chosen, the system asks for confirmation then makes the reset.
Fmi
The target is to create, display or remove one or more $FMI ports and associate each
one to a connection with the physical image of the input data.
The user can make the following choices:
As can be seen in the previous figure, the user can make the following choices:
– Configure
– View
– Clear
Configure
The $FMI ports can only be configured if the physical images transmission takes
place through digital ports, that is to say, not using the $WORD.
They cannot be configured on CAN modules.
To configure an $FMI port. The program asks the following questions, in this order:
– Port index (FMI/FMO) [1..32] Asks for the number of the port to be configured.
HS-0-C4E-USO_47.fm
01/0208 13-45
IO_INST Program - I/O configuration
– Physical Port, Virtual Port To define the $FMI port to be configured, as physical
port or virtual port.
• If Virtual Port, has been chosen, the following questions are asked:
• The program asks how many bits compose the $FMI port to be
configured, and subsequently:
HS-0-C4E-USO_47.fm
13-46 01/0208
IO_INST Program - I/O configuration
• Then from which byte and which bit to start to copy the datum.
View
When this command is chosen, a screen page is displayed that lists the configured $FMI
ports.
Clear
To reset, one at a time, the $FMI ports configuration.
Remote IN
With this command a defined range of $IN and $OUT can be configured/reset.
The user can configure the byte and bit of the signals exchanged with the PLC, using
HS-0-C4E-USO_47.fm
01/0208 13-47
IO_INST Program - I/O configuration
As can be seen in the previous figure, the user can make the following choices:
– Configure
– Clear
A detailed description follows for each function:
Configure
To configure the $IN ports. If there is more than one port, they are allocated in sequence.
The program asks some questions regarding the ports to be configured:
– Physical port or virtual port. To define the $IN ports to be configured, as physical
ports or virtual ports.
• If Virtual Port has been chosen, the following requests are displayed:
• Index of first $IN - first $IN of the virtual ports group to be configured.
The $IN available are those with an index from 411 to 512.
• Virtual port initial value [0 .. 1] - value assumed by the virtual port at
the start of the Control (0 or 1).
• If instead Physical Port has been chosen, the program asks on which type
of fieldbus the inputs are to be mapped:
HS-0-C4E-USO_47.fm
13-48 01/0208
IO_INST Program - I/O configuration
According to the type of field bus chosen, the following situations are
possible:
• CAN module
• Other interfaces (Profibus, DeviceNet, Interbus, Ethernet/IP, DSA)
CAN module
First of all the order number of the required CAN module is asked for.
– The program asks how many ports are to be mapped (the number of $IN that can
be configured depends on the type of CAN module selected).
The system asks for the index of the first (or only) $IN to be connected. If the port
selected is already connected, the user is asked if it is to be overwritten.
After the user has inserted the PIN index, the system displays the connection made.
Other interfaces
For the configuration on other interfaces (DeviceNet, Profibus, Interbus and Ethernet/IP,
DSA), see the explanations for the $DIN (see Other interfaces in the paragraph relating
to the $DIN),since the procedure is exactly the same.
Clear
To reset the previous $IN configuration. It is possible to reset the configuration of a
single port or of all of them.
HS-0-C4E-USO_47.fm
01/0208 13-49
IO_INST Program - I/O configuration
13.2.3.1.2 Output
As can be seen in the previous figure, the following commands are available:
– Dout
– Gout
– Sdout
– Aout
– Fmo
– Remote OUT
Dout
The target is to create or remove one or more $DOUT ports and associate a connection
to each one with the physical image of the input data.
As can be seen in the previous figure, the user can make the following choices:
– Configure
– Clear
A detailed description follows for each function:
Configure
To configure $DOUT ports. If the ports are more than one, they will be allocated in
sequence.
The program asks some questions concerning the ports to be configured:
• Then, if virtual port has been chosen, the following questions are asked:
HS-0-C4E-USO_47.fm
13-50 01/0208
IO_INST Program - I/O configuration
• Index of first $DOUT - first $DOUT of the virtual port group that is to be
configured
• Virtual Port starting value [0 .. 1] - value the virtual port assumes at the
Control start (0 or 1).
• If instead Physical Port has been chosen, the program asks on which type
of fieldbus the output is to be mapped, and also in the same way for a multiple
configuration (see Fig. 13.53).
According to the chosen type of fieldbus, the following situations may occur:
• CAN module
• Other interfaces (Profibus, DeviceNet, Interbus, Ethernet/IP, DSA)
HS-0-C4E-USO_47.fm
01/0208 13-51
IO_INST Program - I/O configuration
CAN module
First of all the order number of the required CAN module is asked for.
– The program asks how many ports are to be mapped (the number of configurable
$DOUT depends on the type of CAN module selected).
The system asks for the index of the first (or only) $DOUT port to be connected. If the
selected port is already connected, it is asked whether it is to be overwritten.
According to whether a system I/O module or a user I/O module has been chosen, the
following questions are asked:
In both cases, the system asks if the outputs are to be mapped in increasing or
decreasing order.
HS-0-C4E-USO_47.fm
13-52 01/0208
IO_INST Program - I/O configuration
Upon termination the performed binding is displayed (the previous screen page shows
an example where the outputs are mapped in decreasing order)
Other interfaces
If a master has been selected (Profibus, DeviceNet or Interbus), the order number of the
required slave module is asked for.
– The program asks how many ports are to be mapped (the number of $DOUT that
can be configured depends on the number of user Bytes indicated when
configuring the slave or the slave node of the master).
The system asks for the index of the first (or only) $DOUT port to be connected. If the
selected port is already connected, it is asked whether it is to be overwritten.
HS-0-C4E-USO_47.fm
01/0208 13-53
IO_INST Program - I/O configuration
The image of the data prepared for the Fieldbus is, in fact, an array of bits. It is grouped,
for the user's convenience, as an array of bytes. The user has to specify the byte and
the bit that define the start position (in the physical image) starting from which all the
$DOUT output ports will be connected in sequence, in 1:1 mode.
The next figure shows an example of connection between output physical image to
Fieldbus and $DOUT ports.
Clear
To reset the previous configuration of $DOUT ports and $GOUT groups consisting of
$DOUT ports. It is possible to reset the configuration of a single port or all of them.
If instead All has been chosen, the system asks for confirmation then makes the reset.
Gout
This command is used to operate on groups of contiguous $DOUT ports.
HS-0-C4E-USO_47.fm
13-54 01/0208
IO_INST Program - I/O configuration
Configure
To make the configuration of a $GOUT group.
The program asks the following questions, in this order:
– Retentive Output. The user is to indicate whether it is wished that the outputs
maintain the status they had before a Control shut-down following a powerup.
HS-0-C4E-USO_47.fm
01/0208 13-55
IO_INST Program - I/O configuration
– Do you need a second set? (N/Y) The program now asks if also the second set
available is to be configured. If an affirmative answer is given, the same questions
will be asked as before, relating however to the second set.
After the configuration has terminated, a summarising screen page is displayed showing
the configured $GOUT group(s).
View
When this command is chosen, a screen page is displayed that lists the configured
$GOUT groups.
Clear
To reset one at a time the configuration of $GOUT input groups.
Sdout
This command is used to build the system word image (first 16 bits of the data physical
image to the fieldbus) according to the user’s requirements. It is only enabled if a
Fieldbus Slave is configured as primary.
When run, the following screen page is displayed:
HS-0-C4E-USO_47.fm
13-56 01/0208
IO_INST Program - I/O configuration
where
– the current meaning of the system $WORD bit is shown on the left half screen,
– the meaning of the $SDOUT ports is shown on the right half screen, but only as a
help for the user.
The standard setting of the system $WORD can be changed, answering these
questions:
– Bit in system $WORD [1..16] The program asks for the insertion of the system
word bit number that is to be modified.
– The user has to specify the operation to be made on the selected bit: it can be
cleared (C) or associated to a port (A)
• If it is chosen to clear it, the program makes the deletion and terminates the
command.
• If it is chosen to associate a port to the selected bit, the program asks these
questions:
• The program then asks for the index of the port to be associated to the
bit: $SDIN or $DOUT, range [1..160]
HS-0-C4E-USO_47.fm
01/0208 13-57
IO_INST Program - I/O configuration
If the slave is configured as word, the port may be $DIN/$DOUT, and in this case
the range is [1..512]
Aout
The target is to create or remove one or more $AOUT ports and associate a connection
to each one with the physical image of the output data.
Configure
To configure one or more $AOUT ports. The program asks the following questions:
– Retentive Outputs? (N/Y) The user is to indicate whether the output is to maintain
the status that it had before a Control shut-down, following a powerup
• If virtual port has been chosen, the following questions are asked:
• Number of $AOUT to be configured [1 .. 64] - quantity of virtual
outputs to be configured,
• Index of first $AOUT - first $AOUT of the virtual ports group to be
configured
• Virtual Port starting value [0 .. 65535] - value the virtual port assumes
at the Control start (from 0 to 65535).
• If physical port has been chosen, the user is asked the type of field bus the
$AOUT ports (or ports) are to be mapped on .
According to the type of field bus chosen, the following situations are
possible:
• CAN module
• Other interfaces (Profibus, DeviceNet, Interbus, Ethernet/IP, DSA)
CAN module
The analog I/Os can be mapped on the free channels of the configured digital/analog
HS-0-C4E-USO_47.fm
13-58 01/0208
IO_INST Program - I/O configuration
CAN modules. First of all the order number of the required CAN module is asked for.
The program asks how many ports are to be mapped (the number of $AOUT that can
be configured depends on the type of CAN module selected).
The index then has to be entered of the first (or only) $AOUT to be connected. If the port
selected is already connected, the user is asked if it is to be overwritten.
Subsequently the user has to specify starting from which channel (i.e. of the 8 analog
I/Os on the selected CAN module ) the $AOUT ports that are being configured are to be
connected.
Finally a screen page is shown on the screen that shows the configuration that has been
prepared.
After all the operations required by the program have been executed, a map is displayed
that shows the association between the 8 analog output channels of the selected CAN
and the associated analog ports.
Other interfaces
For the configuration on other interfaces (DeviceNet, Profibus, Interbus, Ethernet/IP and
DSA), see the explanations for the $DOUT (see Other interfaces in the paragraph
related to the $DOUT), since the procedure is exactly the same.
Clear
To reset the previous $AOUT ports configuration.
If instead All has been chosen, the system asks for confirmation then makes the reset.
Fmo
The target is to create, display or remove one or more $FMO ports and associate a
connection to each one with the physical image of the input data.
The user can make the following choices:
As can be seen in the previous figure, the user can make the following choices:
– Configure
– View
– Clear
HS-0-C4E-USO_47.fm
01/0208 13-59
IO_INST Program - I/O configuration
Configure
The $FMO ports can only be configured if the physical images transmission takes
place through digital ports, that is to say, not using the $WORD.
They cannot be configured on CAN modules.
To configure an $FMO port. The program asks the following questions, in this order:
– Port index FMI/FMO [1..32] Asks for the number of the port to be configured.
• If Virtual Port, has been chosen, the following questions are asked:
HS-0-C4E-USO_47.fm
13-60 01/0208
IO_INST Program - I/O configuration
• The program asks how many bits compose the $FMO port to be
configured, and subsequently:
View
HS-0-C4E-USO_47.fm
01/0208 13-61
IO_INST Program - I/O configuration
When this command is chosen a screen page is displayed listing the configured $FMO
ports.
Clear
To reset, one at a time, the $FMO ports configuration.
Remote OUT
With this command a defined range of $OUT can be configured / reset.
The user can configure the byte and bit of the signals exchanged with the PLC, using
the same procedure as for the $DOUT ports.
As can be seen in the previous figure, the user can make the following choices:
– Configure
– Reset
A detailed description follows for each function:
Configure
To configure the $OUT ports. If there is more than one port, they will be allocated in
sequence.
The program asks some questions relating to the ports to be configured:
The user is asked to specify whether the outputs are to maintain the status they
had before the Control was shut down, following a powerup.
• If virtual port has been chosen, the following requests are made:
• Number of output points to be configured [1 .. 102] - quantity of
virtual outputs to be configured
HS-0-C4E-USO_47.fm
13-62 01/0208
IO_INST Program - I/O configuration
• If instead physical port has been chosen, the program asks on which type of
fieldbus the inputs are to be mapped:
• CAN module
• Other interfaces (Profibus, DeviceNet, Interbus, Ethernet/IP, DSA)
CAN module
First of all the order number of the required CAN module is asked for.
The program then asks how many ports are to be mapped (the number of $OUT that
can be configured depends on the type of CAN module selected).
The system asks for the index of the first (or the only) $OUT to be connected. If the
selected port is already connected, the user is asked if it is to be overwritten.
After the user has entered the PIN index, the system displays the connection made.
Other interfaces
For the configuration on other interfaces (DeviceNet, Profibus, Interbus and Ethernet/IP,
DSA), see the explanation for the $DOUT (see Other interfaces in the paragraph relating
to the $DOUT), since the procedure is exactly the same.
Reset
To reset the previous $OUT configuration. It is possible to reset the configuration of a
single port or all of them.
HS-0-C4E-USO_47.fm
01/0208 13-63
IO_INST Program - I/O configuration
13.2.3.2 Fieldbus
Through this branch of the menu the configuration and/or the display of the fieldbus and
the CAN modules can be executed.
As can be seen in the previous figure, the following commands are available:
– Can
– DeviceNet
– Profibus
– Interbus
– Ethernet
– Clear
13.2.3.2.1 Can
To make the configuration of the CAN modules. It is therefore possible to define how
many modules are present in the CAN network and the addresses. Besides the fixed
system module, with address 7, an optional system module can be added at address 8
to manage remote I/Os (8 fixed inputs and 8 inputs/outputs) and to map digital I/Os (16),
and another 5 user modules to map the $DIN/$DOUT (16 input, 16 I/O).
As can be seen in the previous figure, the user can make the following choices:
– Configure
– View
– Add Modules
– Remove Module
Configure
To configure the CAN modules.
Once a CAN network has been configured, if the Configure CAN command is run
again, the program asks whether it is wished to reconfigure the network (see
Reconfigure). The program deletes the previous configuration and allows a new
one to be executed.
HS-0-C4E-USO_47.fm
13-64 01/0208
IO_INST Program - I/O configuration
The configuration (or re-configuration) of the CAN modules is described in detail further
on.
The following questions are asked:
– How many user can modules are present? [1..5] To define the number of
modules of the CAN network that the user wishes to configure.
– CAN module address x [8..99] To define the physical address of the module in
the CAN network. Address 8 refers to the optional system CAN module.
– CAN Module Type [1..2] To define whether the CAN module is digital and it is
located
• in the C4G control (1)
• if it is a digital/analog CAN module (2).
Obviously this question is not asked for the module with address 8, since this is
a system address and therefore present inside the control.
– In the analog CAN modules up to 8 analog input channels and 8 analog output
channels are possible. These channels can be configured, in preset groups of 4
channels each:
• first group - four analog input channels [1..4]
• second group - four analog input channels [5..8]
• third group - four analog output channels [1..4]
• fourth group - four analog output channels [5..8]
HS-0-C4E-USO_47.fm
01/0208 13-65
IO_INST Program - I/O configuration
The user is asked to specify, for each group, the voltage range to be applied.
A screen page is displayed summarising the configuration executed, with the
number of modules and their addresses.
View
Displays the CAN modules with their addresses.
After the user has specified the index of the required module, the system displays it.
Add Modules
To add one or more CAN modules to the pre-existing configuration. The system displays
the current configuration and asks some questions:
How many user CAN modules do you want to add? The number of CAN network
modules that the user wishes to add to the previous configuration can be specified.
HS-0-C4E-USO_47.fm
13-66 01/0208
IO_INST Program - I/O configuration
For each of the modules to be added, the user has to specify the address
and the type of CAN. The system displays the new configuration.
Remove Module
To remove a CAN module.
The system shows the current configuration of the CAN modules and asks the user to
specify which module is to be removed. The deletion takes place without any further
request for confirmation.
13.2.3.2.2 DeviceNet
With this choice it is possible to operate on the DeviceNet modules. The selections
allowed are:
– Dvnet_mst (DeviceNet Master)
– Dvnet_sl (DeviceNet Slave)
Dvnet_mst
To operate on DeviceNet Master modules.
HS-0-C4E-USO_47.fm
01/0208 13-67
IO_INST Program - I/O configuration
– Remove Node
– Modify
Configure
To configure the DeviceNet Master module and relevant slave modules, defining the
network addresses, the communication baud rate and the number of bytes sent to the
I/Os.
First of all the user has to specify whether board 1 or board 2 is required.
After the choice has been made, the following questions are asked:
– Baud Rate [1..3] To set the baud rate on the DeviceNet network. The system
displays the possible values.
– Starting address of command $WORD (CMD) [21..508] The program asks for
the $WORD address that contains the network management commands. A start
index of a block of 5 $WORDs has to be given, to be reserved for this function.
HS-0-C4E-USO_47.fm
13-68 01/0208
IO_INST Program - I/O configuration
– Starting address of status $WORD (STS) [21..508] The program asks for the
$WORD address that contains the information concerning the network status. The
user has to give the start index of a block of 5 $WORDs, to be reserved for this
function. The system proposes an address that immediately follows the command
$WORD (eg.: if the command $WORDs started at address 30, for the status
$WORDs the system suggests 35 as the start address).
NOTE: the user can choose addresses as desired, but it must be guaranteed that
the space reserved for the command $WORDs does NOT interfere with that
reserved for the status $WORDs
– Alarm activation after reset? (Y/N) - The system asks whether the user, after the
reset of an alarm generated by a network problem, wishes this alarm to be
generated again by the system itself. In any case, this mechanism is automatically
disabled in the Programming mode (T1), allowing the motors to be powered on
even with the network only partly operational.
After the master configuration has been completed, the program asks several questions
for the configuration of each separate slave:
– Logical address [1..32]: it is the logic address of the individual slave, that is to say,
the index used in the PDL2 programs to have access to data that concerns the
separate device.
Example: if the logic address is 18, the data of the corresponding device is found
in $FBP_TBL[<num_board>].FB_MA_SLVS[18,<xxx>]
– Physical address [1..63] To set the physical address, on the network, of the
individual slave. This is not to be confused with the logic address, although the two
values may be the same.
With reference to the example above, the device at logic address 18 may have any
physical address from 1 to 63: for example, 25.
HS-0-C4E-USO_47.fm
01/0208 13-69
IO_INST Program - I/O configuration
– Configuration with file .eds? Through this command the module can be
configured using the data present on its configuration file.
• If YES is chosen, the program asks for the name of the .eds file related to the
module to be configured (obviously this file has to be already loaded on UD:\).
Indicate the name of the file (the extension is not necessary).
• In this way the Vendor ID, the Device Type, the Product Code and the
default input/output bytes are set automatically.
• Subsequently only some of the questions given below will be asked for
the completion of the configuration.
• If instead it is decided NOT to configure the module by .eds, file, the program
will proceed with the manual configuration, asking all the following questions
(including those marked with (*)).
– Is the module enabled at startup? (Y/N) To define the status of the slave module
at the start. The Master connects only the modules that are declared as present
("enabled") at the start. If one or more of them are not present, an error is detected.
The modules declared not enabled will not be searched for on the network; by
means of an opportune command, it will be possible to subsequently connect them
and disconnect them.
– (*) Number of Input bytes of the module [0..32] To define the number of Bytes
in input to the module.
HS-0-C4E-USO_47.fm
13-70 01/0208
IO_INST Program - I/O configuration
– (*) Number of Output bytes of the module [0..32] To define the number of Bytes
in output from the module.
– Bytes swap? (N/Y) The program asks if the inversion is to be made between high
bytes and low bytes
– Do you want to change polling time? (N/Y) With this question the program asks
if the polling time is to be managed. Generally, on DeviceNet, the I/O modules
transfer the data only when there are changes; this modality is called Change Of
State (COS). The analog modules need to be continually updated and therefore
transfer the data in cycles (polling). The answer to this question must be affirmative
for the analog modules.
In the case of affirmation, the program asks for the insertion of a time between 10
and 1000 milliseconds. This function is essential for analog DeviceNet modules.
Do you want to handle the quick connect option? (N/Y) Some DeviceNet
modules have a function called quick connect to cut down the connection times
of the module to the network. If an affirmative answer is given, the program asks
for the insertion of the quick connect attribute for the enabling. Before giving an
affirmative answer to this question, check that the module has this function and that
the attribute is known.
This attribute is simply a service code that enables the quick connect function.
– User $WORD starting address for copying. Be very careful that there are no
overlaid blocks.
– Does the Comau’s application handle the module? The user is asked whether
the slave module that is being configured is managed by an application supplied
by Comau. If it is, the system displays the applications available and asks the user
to indicate which is the relevant one.
HS-0-C4E-USO_47.fm
01/0208 13-71
IO_INST Program - I/O configuration
– The system shows the final screen page referring to the configuration executed.
View
Displays the module DeviceNet Master configuration.
Slaves
Displays the configuration of the configured slave modules.
HS-0-C4E-USO_47.fm
13-72 01/0208
IO_INST Program - I/O configuration
Add Node
To add a node to a previously configured DeviceNet Master.
– First of all the user has to specify on which board the node is to be added.
– How many slaves do you want to add? The user must specify the number of
slaves to be added to the current configuration. (new-24)
– For each slave to be added, the program asks the user to enter the data needed
for its configuration.
– Upon termination the new configuration is displayed.
Remove Node
To remove a node from a previously configured DeviceNet Master. First of all the user
has to specify on which board this DeviceNet is installed.
The program displays the current list of slave modules and asks the user to indicate
which is the slave module to be removed.
Removal takes place after confirmation from the user.
Modify
To change the configuration of a DeviceNet board .
HS-0-C4E-USO_47.fm
01/0208 13-73
IO_INST Program - I/O configuration
Dvnet_sl
To configure the C4G Control as slave module of a DeviceNet line. From this point
onwards, the C4G Control Unit, as slave module, will just be called slave. The
parameters that will be entered by the user are to be consistent with the configuration
made on the master side. The master may be
– Control Unit master, or
– an external device (for example a PLC).
Configure
To configure the C4G Control Unit as slave module of an DeviceNet network.
Hereinafter, the C4G Control Unit as slave module, will simply be called slave. The
parameters that will be entered by the user must be consistent with the configuration
executed on the master side. The master may be
– The Control Unit master, or
– An external device (for example a PLC)
First of all the user has to specify whether it is wished to configure a slave module that
is on the FBP 1 board or on the FBP 2 board.
After the choice has been made, the following questions are asked:
– Node address (MAC ID) [1..63] To enter the address of the slave on the network.
This address is to coincide with the master network configuration.
HS-0-C4E-USO_47.fm
13-74 01/0208
IO_INST Program - I/O configuration
– Serial number This information is used by the master to acknowledge the device
on the network, at diagnostic level. It is not vital for system operation. It is a good
practice to have it coincide with the Control serial number.
– Baud Rate To declare the baud rate on the network, that has been set on the
master.
– Total number of bytes exchanged [2..32] The user is to specify how many bytes
in all have been exchanged: n° user bytes +2 system bytes. Only the input bytes
are to be specified, since the number of output bytes will be equal.
– Is C4G under remote control? (Y/N) The Control Unit is usually controlled by the
master especially through the DRIVE OFF/ON, START and HOLD commands.
• If an affirmative answer is given to this question, the function is enabled and
the first two input bytes automatically assume command significance and the
first two output bytes assume status significance. The significance of each bit
within the two command bytes and the two status bytes is described through
the predefined variables, which are, $SYS_INP_MAP and $SYS_OUT_MAP.
In particular the status bits, in output, will be reserved for the system and will
be mapped on the $SDOUT ports. If the Control Unit is under remote control,
the slave assumes the significance of primary slave, should there be several
slaves in the system.
• If a negative answer is given, all the bytes from and to the DeviceNet are
available for the user. The system does not reserve any datum. The slave
assumes the significance of secondary slave.
Map fieldbus Slave on DIN/DOUT? (Y/N) To choose whether to make the I/O
transfer through $DIN/$DOUT or by using the $WORD variables. In the latter case
the $WORD start address is asked for, to be copied [21..512] and care must be
taken that there are no overlaid blocks.
HS-0-C4E-USO_47.fm
01/0208 13-75
IO_INST Program - I/O configuration
If the total number of input bytes (that is the same as the number of output bytes)
is less than or equal to 16, the system reserves a group of 8 $WORDs for the
outputs and 8 $WORDs for the inputs, of which only the necessary part of the quota
will be used. For example, if the total number of bytes is 10 and the index of the
first $WORD is 100, the output data will reside from $WORD[100] to $WORD[104],
whereas the inputs will be from $WORD[108] to $WORD[112]. On the other hand,
if the total number of bytes is greater than 16, the system will reserve a group of 16
$WORDs for the outputs and 16 $WORDs for the inputs, with the same allocation
logic.
– Bytes swap (N/Y): The program asks if the inversion is to be made between high
bytes and low bytes.
Configuration example using $WORDs:
View
Displays the module DeviceNet Slave configuration. The system asks whether the slave
module (C4G) is on board 1 or board 2.
Enable
To enable the C4G Controller as slave. When the user sends this command, the
HS-0-C4E-USO_47.fm
13-76 01/0208
IO_INST Program - I/O configuration
Disable
To disable the C4G Controller, as slave. When the user sends this command, the
following message is shown:
Modify
To change the C4G slave parameters. First of all the user has to specify whether it is on
board 1 or board 2.
The program shows all the parameters of the C4G slave, previously configured, and
allows the modification of each one.
13.2.3.2.3 Profibus
With this choice it is possible to operate on the Profibus modules. As seen in the
previous figure, the possible selections are:
– Prof_mst
– Prof_sl
Prof_mst
To operate on Profibus Master modules.
Configure
To configure the Profibus Master module and the relevant slave modules, defining the
network addresses, the baud rate and the number of bytes for the I/Os.
HS-0-C4E-USO_47.fm
01/0208 13-77
IO_INST Program - I/O configuration
First of all the user must specify whether the field bus is to be configured on board 1 or
on board 2.
After the choice has been made, the following questions are asked:
– Net address [1..3] To define the physical address of the Profibus Master on the
network.
– Baud Rate Profibus Master [1..13] To set the baud rate on the Profibus network.
The system displays the possible values.
– Starting address of command $WORD (CMD) [21..508] The program asks for
the $WORD address that contains the network management commands. A start
index of a block of 5 $WORDs has to be given, to be reserved for this function.
HS-0-C4E-USO_47.fm
13-78 01/0208
IO_INST Program - I/O configuration
– Starting address of status $WORD (STS) [21..508] The program asks for the
$WORD address that contains the information concerning the network status. The
user has to give the start index of a block of 5 $WORDs, to be reserved for this
function. The system proposes an address that immediately follows the command
$WORD (eg.: if the command $WORDs started at address 30, for the status
$WORDs the system suggests 35 as the start address).
NOTE: the user can choose addresses as desired, but it must be guaranteed that
the space reserved for the command $WORDs does NOT interfere with that
reserved for the status $WORDs
– Alarm activation after reset? (Y/N) - The system asks whether the user, after the
reset of an alarm generated by a network problem, wishes this alarm to be
generated again by the system itself. In any case, this mechanism is automatically
disabled in the Programming mode (T1), allowing the motors to be powered on
even with the network only partly operational.
After the master configuration has been completed, the program asks several questions
for the configuration of each separate slave:
– Logical address [1..32]: it is the logic address of the individual slave, that is to say,
the index used with PDL2 programs to have access to the data concerning the
separate device. Example: if the logic address is 27, the data of the corresponding
device can be found in $FBP_TBL[<num_board>].FB_MA_SLVS[27,<xxxx>].
– Physical address [4..125] To set the physical address, on the network, of the
individual slave. This is not to be confused with the logic address, although the two
values may be the same. With reference to the above example, the device at logic
address 27 can have any physical address, from 4 to 125: for example 15.
– Configuration with file .GSD? (Y/N) Through this command the module can be
configured using the data present on its configuration file.
HS-0-C4E-USO_47.fm
01/0208 13-79
IO_INST Program - I/O configuration
• If YES is chosen, the program asks for the name of the .gsd file relating to
the module to be configured (obviously this file must already be loaded on
UD:\). Indicate the name of the file (the extension is not necessary).
• The screen will display the configurations possible: after the opportune
choices have been made, the program will configure the module.
• Through the configuration program it is also possible to view and modify
the User Parameters of the module in the .gsd file.
• Next some questions will be asked to complete the configuration
(module identification and input/output bytes are already set
automatically by the .gsd file)
In the case of configuration with .gsd file, the questions marked with (*) will NOT
be asked.
– (*) Module Identifier A slave has an identification number that defines its type.
This value is to be the same as that declared for the module that is being
configured.
– Is the module enabled at startup? (Y/N) To define the status of the slave module
at the start. The Master connects only the modules that are declared as present
("enabled") at the start. If one or more of them are not present, an error is detected.
The modules declared not enabled will not be searched for on the network; by
means of an opportune command, it will be possible to subsequently connect them
and disconnect them.
– (*) Transfer PLC data in WORD or Byte? (W/B) The program asks whether the
slave, in its configuration, will exchange data in Word or in Byte; the current choice
is to coincide with the preset modalities on the slave.
– I/O Copy on $DIN/$DOUT or $WORD? (D/W) To choose whether to make the I/O
transfer through $DIN/$DOUT or by using the $WORD variables. In the latter case
the $WORD start address is asked for, to be copied [21..512] and care must be
taken that there are no overlaid blocks.
HS-0-C4E-USO_47.fm
13-80 01/0208
IO_INST Program - I/O configuration
– (*) Number of input bytes in the module [0..32] To define the number of Bytes
in input to the module.
– (*) Number of output bytes in the module [0..32] To define the number of Bytes
in output from the module.
– Bytes swap? (N/Y) The program asks if the inversion is to be made between high
bytes and low bytes.
– Does the Comau’s application handle the module? The user is asked whether
the slave module that is being configured is managed by an application supplied
by Comau. If it is, the system displays the applications available and asks the user
to indicate which is the relevant one.
– After all the slave modules required by the user have been configured, the system
displays a summarising screen for the Profibus Master.
Reconfiguration/Enable/Disable
HS-0-C4E-USO_47.fm
01/0208 13-81
IO_INST Program - I/O configuration
• If the field bus is not to be reconfigured, the system will ask whether the
Profibus Master network is to be enabled or disabled.
View
Displays the module Profibus Master configuration.
Slaves
Displays the configuration of the configured slave modules.
Add Node
To add a node to a previously configured Profibus Master.
HS-0-C4E-USO_47.fm
13-82 01/0208
IO_INST Program - I/O configuration
– First of all the user has to specify on which board the node is to be added.
– How many slaves do you want to add? The user has to specify the number of
slaves to be added to the current Profibus Master configuration.
– For each slave to be added, the program asks the user to enter the data needed
for its configuration.
– Upon termination the new configuration is displayed.
Remove node
To remove a node from a previously configured Profibus Master. First of all it is
necessary that the user specifies on which board the Profibus is installed.
The program displays the current list of slave modules and asks the user to indicate
which slave module is to be removed.
Removal takes place after confirmation from the user.
Modify
To change the configuration of a Profibus Master board.
HS-0-C4E-USO_47.fm
01/0208 13-83
IO_INST Program - I/O configuration
Prof_sl
To operate on the Profibus Slave modules.
Configure
To configure the C4G Control Unit as slave module of an Profibus network. Hereinafter,
the C4G Control Unit as slave module, will simply be called slave. The parameters that
will be entered by the user must be consistent with the configuration executed on the
master side. The master may be
– the Control Unit master, or
– an external device (for example a PLC).
First of all the user has to specify whether it is wished to configure a slave module that
is on the FBP 1 board or on the FBP 2 board.
After the choice has been made, the following questions are asked:
– Node address (MAC ID) [3..125] To set the address on the slave network. This
address must coincide with the master network configuration.
– Total number of bytes exchanged [2..32] The user has to specify how many
bytes in all have been exchanged: n° user bytes + 2 system bytes. Only the input
bytes have to be specified, because the number of output bytes will be equal.
– Is C4G under remote control? (Y/N) The Control Unit is usually controlled by the
master especially through the DRIVE OFF/ON, START and HOLD commands.
• If an affirmative answer is given to this question, the function is enabled and
the first two input bytes automatically assume command significance and the
first two output bytes assume status significance. The significance of each bit
within the two command bytes and the two status bytes is described through
the predefined variables, which are, $SYS_INP_MAP and $SYS_OUT_MAP.
In particular the status bits, in output, will be reserved for the system and will
be mapped on the $SDOUT ports. If the Control Unit is under remote control,
HS-0-C4E-USO_47.fm
13-84 01/0208
IO_INST Program - I/O configuration
the slave assumes the significance of primary slave, should there be several
slaves in the system.
• If a negative answer is given, all the bytes from and to the DeviceNet are
available for the user. The system does not reserve any datum. The slave
assumes the significance of secondary slave.
– Map fieldbus Slave on DIN/DOUT? (Y/N) To choose whether to make the I/O
transfer through $DIN/$DOUT or by using the $WORD variables. In the latter case
the $WORD start address is asked for, to be copied [21..512] and care must be
taken that there are no overlaid blocks.
If the total number of input bytes (that is the same as the number of output bytes)
is less than or equal to 16, the system reserves a group of 8 $WORDs for the
outputs and 8 $WORDs for the inputs, of which only the necessary part of the quota
will be used. For example, if the total number of bytes is 10 and the index of the
first $WORD is 100, the output data will reside from $WORD[100] to $WORD[104],
whereas the inputs will be from $WORD[108] to $WORD[112]. On the other hand,
if the total number of bytes is greater than 16, the system will reserve a group of 16
$WORDs for the outputs and 16 $WORDs for the inputs, with the same allocation
logic.
– Transfer PLC data in WORD or Byte? (W/B) The answer to this question
depends on how the Master has been configured; for example, if the Master has
been configured to transfer 8 input words and the Slave transfers a total of 16 input
bytes, the question must be answered with Word; if the Master has been
configured to transfer 16 input bytes, the answer is to be Byte.
– Bytes swap? [N/Y] The program asks if the inversion is to be made between high
bytes and low bytes.
– Does the Comau’s application handle the module? The user is asked whether
the slave module that is being configured is managed by an application supplied
by Comau. If it is, the system displays the applications available and asks the user
to indicate which is the relevant one.
View
Displays the module Profibus Slave configuration
HS-0-C4E-USO_47.fm
01/0208 13-85
IO_INST Program - I/O configuration
Enable
To enable the C4G Controller, as slave. When the user sends this command, the
following message is shown:
Disable
To disable the C4G Controller, as slave. When the user sends this command, the
following message is shown:
Modify
To change the C4G slave parameters.
13.2.3.2.4 Interbus
With this choice it is possible to operate on the Interbus modules. The selections allowed
are:
– Ibus_mst
– Ibus_sl
HS-0-C4E-USO_47.fm
13-86 01/0208
IO_INST Program - I/O configuration
Ibus_mst
To operate on Interbus Master modules and the associated slave modules, defining the
network addresses and the number of Bytes for the I/Os, and to display the current
configuration.
Configure
To configure the Interbus Master module and the associated slave modules, defining the
network addresses, the baud rate and the number of Bytes for the I/Os.
First of all the user has to specify whether the field bus is to be configures on board 1 or
board 2.
After the choice has been made, the following questions are asked:
HS-0-C4E-USO_47.fm
01/0208 13-87
IO_INST Program - I/O configuration
$WORDs, to be reserved for this function. The system proposes an address that
immediately follows the command $WORD (eg.: if the command $WORDs started
at address 67, for the status $WORDs the system suggests 72 as the start
address).
NOTE: the user can choose addresses as desired, but it must be guaranteed that
the space reserved for the command $WORDs does NOT interfere with that
reserved for the status $WORDs
– Alarm activation after reset? (Y/N) - The system asks whether the user, after the
reset of an alarm generated by a network problem, wishes this alarm to be
generated again by the system itself. In any case, this mechanism is automatically
disabled in the Programming mode (T1), allowing the motors to be powered on
even with the network only partly operational.
After the master configuration has been completed, the program asks a series of
questions for the configuration of the slaves:
– Physical address [1..32] To set the physical address, on the network, of the
individual slave. This is not to be confused with the logic address, although the two
values may be the same. With reference to the above example, the device at logic
address 22 may have any physical address, from 1 to 32: for example 15.
– Is it a BK module? (Y/N) The program asks if the module to be configured is a bk
module, that is, a module that does not exchange data, but serves to create
branches on the Interbus network.
– Module Identifier Slave has an identification number that defines the type. This
value must be the same as that declared for the module being configured.
HS-0-C4E-USO_47.fm
13-88 01/0208
IO_INST Program - I/O configuration
– Length code [1..65535] It is a plate datum for the slave module. For further
information see the specific documentation of the slave device used.
– Is the module enabled at startup? (Y/N) To define the status of the slave module
at the start. The Master connects only the modules that are declared as present
("enabled") at the start. If one or more of them are not present, an error is detected.
The modules declared not enabled will not be searched for on the network; by
means of an opportune command, it will be possible to subsequently connect them
and disconnect them.
– I/O Copy on $DIN/$DOUT or $WORD? (D/W) To choose whether to make the I/O
transfer through $DIN/$DOUT or by using the $WORD variables. In this case, the
$WORD start address is then asked for, to be copied.
– Number of input bytes in the module [1..32] To define the number of Bytes in
input to the module.
– Number of output bytes in the module [1..32] To define the number of Bytes in
output from the module.
– When inserting the $WORD starting address for copying [21..512] care must be
taken that there are no overlaid blocks.
– Bytes swap? (N/Y) The program asks if the inversion is to be made between high
bytes and low bytes
– Device Level? [0..15] The position of the module as to the master, i.e., how many
branches have to be crossed to reach the master. If there are no branches, enter 0.
– On which branch do you want to configure this module? [1..2] The program
asks if the module is on branch 1 or 2. Obviously, this question is only asked if the
module is not active at the start.
View
Displays the module Interbus Master configuration
HS-0-C4E-USO_47.fm
01/0208 13-89
IO_INST Program - I/O configuration
Slaves
Displays the configuration of the configured slave modules.
The following question is asked:
– Slave module number: (MOD) [0 .. 1] - the choice of 0 allows a summarising view
of all the configured slave modules. Choice 1 allows access to a more detailed
display.
Add node
To add a node to a previously configured DeviceNet Master.
– First of all the user has to specify on which board the node is to be added.
– How many slaves do you want to add? The user has to specify the number of
slaves to be added to the current configuration. (new-24)
– For each slave to be added, the program, asks the user to enter the data needed
for the configuration.
– Upon termination the new configuration is displayed.
Remove node
To remove a node from a previously configured Interbus Master. First of all it is
necessary that the user specifies on which board the Interbus module is installed.
HS-0-C4E-USO_47.fm
13-90 01/0208
IO_INST Program - I/O configuration
The program displays the current list of slave modules and asks the user to indicate
which slave module is to be removed .
Removal takes place after confirmation from the user.
Modify
To change the configuration of an Interbus board.
Ibus_sl
To operate on Interbus Slave module.
Configure
To configure the C4G Control Unit as slave module of an Interbus network. Hereinafter,
the C4G Control Unit as slave module, will simply be called slave. The parameters that
HS-0-C4E-USO_47.fm
01/0208 13-91
IO_INST Program - I/O configuration
will be entered by the user must be consistent with the configuration executed on the
master side. The master may be
– The Control Unit master, or
– An external device (for example a PLC).
First of all the user has to specify whether it is wished to configure a slave module that
is on the FBP 1 board or on the FBP 2 board.
If bit 25 of $FB_CNFG[<fbp_num>,3] is set at 1, this means that the field bus board
has an optic interface. In this case the user is asked to specify the baud rate
(choice between 500kB and 2MB).
After the choice has been made, the following questions are asked:
– Total number of bytes exchanged [2..32] The user has to specify how many
bytes in all have been exchanged: n° user bytes + 2 system bytes. Only the input
bytes have to be specified, because the number of output bytes will be equal.
– Is C4G under remote control? The Control Unit is usually controlled by the
master especially through the DRIVE OFF/ON, START and HOLD commands.
• If an affirmative answer is given to this question, the function is enabled and
the first two input bytes automatically assume command significance and the
first two output bytes assume status significance. The significance of each bit
within the two command bytes and the two status bytes is described through
the predefined variables, which are, $SYS_INP_MAP and $SYS_OUT_MAP.
In particular the status bits, in output, will be reserved for the system and will
be mapped on the $SDOUT ports. If the Control Unit is under remote control,
the slave assumes the significance of primary slave, should there be several
slaves in the system.
• If a negative answer is given, all the bytes from and to Interbus are available
for the user. The system does not reserve any datum. The slave assumes the
significance of secondary slave.
– Map fieldbus Slave on DIN/DOUT? (Y/N) To choose whether to make the I/O
transfer through $DIN/$DOUT or by using the $WORD variables. In the latter case
the $WORD start address is asked for, to be copied [21..512] and care must be
taken that there are no overlaid blocks.
If the total number of input bytes (that is the same as the number of output bytes)
is less than or equal to 16, the system reserves a group of 8 $WORDs for the
outputs and 8 $WORDs for the inputs, of which only the necessary part of the quota
HS-0-C4E-USO_47.fm
13-92 01/0208
IO_INST Program - I/O configuration
will be used. For example, if the total number of bytes is 10 and the index of the
first $WORD is 100, the output data will reside from $WORD[100] to $WORD[104],
whereas the inputs will be from $WORD[108] to $WORD[112]. On the other hand,
if the total number of bytes is greater than 16, the system will reserve a group of 16
$WORDs for the outputs and 16 $WORDs for the inputs, with the same allocation
logic.
– Bytes swap? [N/Y] The program asks if the inversion is to be made between high
bytes and low bytes
View
Displays the module Interbus Slave configuration.
Enable
To enable the C4G Controller as slave. When the user sends this command, the
following message is shown:
Disable
To disable the C4G Controller as slave. When the user sends this command, the
following message is shown:
Modify
To change the parameters of the C4G slave.
HS-0-C4E-USO_47.fm
01/0208 13-93
IO_INST Program - I/O configuration
The program shows all the previously configured parameters of the C4G slave, and
allows each of them to be changed.
13.2.3.2.5 Ethernet
To operate on the Ethernet Slave module, using the following commands:
– Configure
– View
– Enable
– Disable
– Modify
Configure
To configure the Ethernet Slave module, defining the number of user signals (Byte) for
the I/Os.
The following questions are asked:
– Total number of bytes exchanged [2..32] The user has to specify how many
bytes in all have been exchanged: n° user bytes + 2 system bytes. Only the input
bytes have to be specified, because the number of output bytes will be equal.
– Is C4G under remote control? (Y/N) The Control Unit is usually controlled by the
master especially through the DRIVE OFF/ON, START and HOLD commands.
• If an affirmative answer is given to this question, the function is enabled and
the first two input bytes automatically assume command significance and the
first two output bytes assume status significance. The significance of each bit
within the two command bytes and the two status bytes is described through
the predefined variables, which are, $SYS_INP_MAP and $SYS_OUT_MAP.
In particular the status bits, in output, will be reserved for the system and will
be mapped on the $SDOUT ports. If the Control Unit is under remote control,
the slave assumes the significance of primary slave, should there be several
slaves in the system.
• If a negative answer is given, all the bytes from and to Ethernet are available
for the user. The system does not reserve any datum. The slave assumes the
significance of secondary slave.
– Map fieldbus Slave on DIN/DOUT? (Y/N) To choose whether to make the I/O
transfer through $DIN/$DOUT or by using the $WORD variables. In the latter case
the $WORD start address is asked for, to be copied and care must be taken that
there are no overlaid blocks.
HS-0-C4E-USO_47.fm
13-94 01/0208
IO_INST Program - I/O configuration
If the total number of input bytes (that is the same as the number of output bytes)
is less than or equal to 16, the system reserves a group of 8 $WORDs for the
outputs and 8 $WORDs for the inputs, of which only the necessary part of the quota
will be used. For example, if the total number of bytes is 10 and the index of the
first $WORD is 100, the output data will reside from $WORD[100] to $WORD[104],
whereas the inputs will be from $WORD[108] to $WORD[112]. On the other hand,
if the total number of bytes is greater than 16, the system will reserve a group of 16
$WORDs for the outputs and 16 $WORDs for the inputs, with the same allocation
logic.
– Bytes swap? [N/Y] The program asks if the inversion is to be made between high
bytes and low bytes.
View
Displays the configuration of the Ethernet Slave module, as shown in the example of the
next figure:
Enable
To enable the Ethernet Slave module. When the user sends this command, the following
message is displayed:
Disable
To disable the Ethernet Slave module. When the user sends this command, the
following message is displayed:
HS-0-C4E-USO_47.fm
01/0208 13-95
IO_INST Program - I/O configuration
Modify
To change the parameters of the Ethernet Slave module.
13.2.3.2.6 Clear
To reset the previous Fieldbus module configurations. It is always advised to run this
command when a Fieldbus is to be configured, to avoid problems with previous
configurations arising.
Before executing the operation, the system asks for confirmation from the user.
13.2.3.3 Dsa
For the I/O points on DSA, some settings can be modified and some I/O ports can be
configured.
13.2.3.3.1 Alarms
Manages the activation and deactivation of the robot alarm and the air alarm. The
program asks whether the robot alarm or the air alarm is to be configured, and whether
to activate or deactivate it.
HS-0-C4E-USO_47.fm
13-96 01/0208
IO_INST Program - I/O configuration
13.2.3.3.2 Output
Manages the configuration of output 1 and output 2. The user is asked to specify which
output is to be configured and whether to set it on direct mode or HDOUT.
The program initially asks whether to enable the output and whether it is preferred in
direct mode or HDOUT.
13.2.3.3.3 Hdin
For the HDIN configuration, the system displays the possible choices
13.2.3.3.4 Stroke
Manages the electrical stroke-ends configuration. They are disabled for each axis by
default. Through the program the stroke_ends can be activated/deactivated. The
program asks which axis is to be enabled or disabled.
13.2.3.3.5 Brakes
Manages the brakes configuration. They are enabled for each axis by default. Through
the program the brakes can be activated/deactivated. The program asks which axis is
to be enabled or disabled.
HS-0-C4E-USO_47.fm
01/0208 13-97
IO_INST Program - I/O configuration
13.2.3.3.6 Sik
Manages the configuration and the display of the signals $SDIN/$SDOUT relating to the
sik devices.
A Sik device can be activated on either the auxiliary axes or the robot axes. The
IO_INST program manages 4 arms and 4 auxiliary axes for each arm: 2 $SDIN and 2
$SDOUT are associated to each arm or auxiliary axis, reserved for the related Sik.
The signals $SDIN and $SDOUT for the arms, are within the range of 25 and 32,
according to the diagram in Fig. 13.56.
Signals $SDIN and $SDOUT for the auxiliary axes, are within the range of 65 and 96,
according to the diagram in Fig. 13.57.
The following description gives the details of the functions provided by the IO_INST
program for the management of the Sik.
HS-0-C4E-USO_47.fm
13-98 01/0208
IO_INST Program - I/O configuration
Configure
The purpose of this operation is to connect the physical image of the sik axes signals
with the corresponding $SDIN and $SDOUT.
Before configuring the I/O signals, the Sik device has to be enabled on the SETUP
page of the Teach Pendant (par. 6.16.2.5 Sik on page 6-142) and consulted the
Guide to Integration, Safeties, I/O, Communications manual.
The program displays the arms and the related Sik, then asks which arm is to be
configured,
and then on which fieldbus the $SDIN/$SDOUT ports are to be mapped. The sik axes
can be configured on CAN modules, DeviceNet Master, Profibus Master and Interbus
Master.
If it is wished to configure the Sik on the CAN module, the address 26 is advised.
Before starting the Sik configuration the required fieldbus must be configured.
HS-0-C4E-USO_47.fm
01/0208 13-99
IO_INST Program - I/O configuration
If the selected Fieldbus is NOT CAN, the user must indicate on which board the required
module is contained (board 1 or board 2)
The program asks for the number of the pin to start from: the two signals will then be
mapped close to each other. The program suggests the pin foreseen by the physical
connections performed by Comau (from 1 to 31 for $SDIN signals and from 32 to 18 for
$SDOUT signals). If the user has changed these connections, the new number has to
be inserted.
The same takes place for the $SDOUT ports:
The program asks for the number of the pin to start from, to map the $SDOUT ports.
Also for the $SDOUT ports, the two signals will be mapped close to each other .
Upon termination, the configuration obtained is displayed. The following figure shows a
configuration example with one arm and one auxiliary axis.
HS-0-C4E-USO_47.fm
13-100 01/0208
IO_INST Program - I/O configuration
Visual.
If Visual is chosen, the program asks which arm is to be viewed. A screen is then
displayed listing the signals relating to the sik axes with the corresponding position on
the Fieldbus chosen for the configuration.
In the examples shown in the figures that follow, the configurations display respectively
the configuration relating to an arm (in fact signals $SDIN and $SDOUT are between
25 and 32) and the configuration relating to an auxiliary axis (in fact signals $SDIN and
$SDOUT are between 65 and 96).
HS-0-C4E-USO_47.fm
01/0208 13-101
IO_INST Program - I/O configuration
Clear
If Reset is chosen the sik axes of a certain arm are deleted. The program asks for which
ARM the configuration is to be deleted. Before starting the deletion a confirming prompt
is displayed.
13.2.3.3.7 Ieak
Through this submenu the I/O configuration for rotary tables can be managed, with the
Ieak option (Interlock External Axes Kit). The maximum number of arms (and therefore
of rotary tables) that can be managed is 4.
Before configuring the I/O signals, the Ieak device has to be enabled on the
SETUP page of the Teach Pendant.
HS-0-C4E-USO_47.fm
13-102 01/0208
IO_INST Program - I/O configuration
Configure
The user has to indicate the field bus to be used for the configuration of the rotary tables
defined by the system.
According to the type of field bus chosen, the following situations are possible, which are
differ from each other:
– CAN
– Other interfaces (Profibus, DeviceNet, Interbus)
CAN
The user is asked to enter the number of the CAN module required, from those currently
configured. Having received this information, the system configures the I/Os relating to
the rotary tables on the specified CAN module.
To check the configuration executed, use the View command.
Other interfaces
As an example, configuration on the Interbus module is described.
The system uses the previously configured Interbus slave module, to map the I/Os
HS-0-C4E-USO_47.fm
01/0208 13-103
IO_INST Program - I/O configuration
relating to the external signals available. Vice-versa, the internal signals are always
to be configured on a CAN module; if these signals have already been configured on
a CAN module, this module is taken automatically by the system.
If the internal signals have never been configured, the system displays the configured
CAN modules and the user has to specify which is to be used.
Next the user is asked for the bytes to be used to start the mapping, respectively the
$SDIN ports and the $SDOUT ports, relating to the rotary tables.
At the end of the configuration, the system displays the mapped $SDIN ports, as shown
in figure:
HS-0-C4E-USO_47.fm
13-104 01/0208
IO_INST Program - I/O configuration
View
When the user asks to view the rotary table configuration, the system displays in
sequence the $SDIN ports and the $SDOUT ports, as shown in the two previous figures.
Reset
To reset the pre-existing configuration, relating to rotary tables.
The system performs the reset without any further questions to the user
13.2.3.4 Hand
Through this branch of the menu the Hand 1 and Hand 2 for one of the Arms in the
control can be configured.
The program configures the Hand on the active ARM. If it is wished to configure on
HS-0-C4E-USO_47.fm
01/0208 13-105
IO_INST Program - I/O configuration
another Arm, the Arm has to be changed from the Teach Pendant.
Possible commands are:
– Configure
– View
13.2.3.4.1 Configure
To configure one of the two Hands associated to a certain Arm.
When this command is selected, the system presents another menu where the Hand to
be configured can be indicated.
Once it has been decided which Hand is to be configured, the program presents a new
menu in which the way to configure it can be indicated.
The possible modes are:
– One
– Dual
– Pulse
– Step
– Clear
One
To configure the Hand with only one output line.
– Map the Hand on $DOUT or $WORD? Through this command it can be decided
whether to map the Hand output on a $DOUT variable or on a $WORD. If the first
choice is made, the program asks for the index of the $DOUT port where the output
is to be mapped [1..512]; for the second choice the program asks for the index of
the $WORD where the output is to be mapped [21..512] and the index of the bit
[1..16].
HS-0-C4E-USO_47.fm
13-106 01/0208
IO_INST Program - I/O configuration
– Open hand Output 1(T/F) The program now asks to indicate whether the signal
corresponding to Open Hand is to be TRUE (therefore in positive logic), or FALSE
(in negative logic).
Dual
To configure the Hand with two output lines.
The program will ask the same questions as for the One, mode, but obviously they will
be made for both the Output 1 line and for the Output 2 line.
Pulse
To configure the Hand in Pulse mode with two output lines.
The program will ask the same questions as for the Dual mode, and it will also ask for
the impulse duration (between 10 and 10000 ms).
HS-0-C4E-USO_47.fm
01/0208 13-107
IO_INST Program - I/O configuration
Step
To configure the Hand in Step mode with two output lines.
The program will ask the same questions as for the Dual mode, and will also ask for the
time interval (between 10 and 10000 ms) between one step and the next.
Clear
To reset the previous configurations for the Hand indicated.
The operation is only executed after confirmation has been received from the user.
13.2.3.4.2 View
To view the configuration of one of the two Hands of a certain Arm.
13.2.4 Save
This command stores the current settings of the parameters in the .C4G file.
HS-0-C4E-USO_47.fm
13-108 01/0208
IO_INST Program - I/O configuration
See NOTE regarding the entry number in the UD: root directory.
13.2.5 Quit
The Quit command quits the I/O Configuration Tool (IO_INST) program, asking whether
or not it is to be deleted from UD:.
HS-0-C4E-USO_47.fm
01/0208 13-109
IO_INST Program - I/O configuration
The possibility to configure a Sik device on a certain Arm and on a certain Axis,
depends on the characterization file: the user is recommended to check the
current configuration, by means of the ConfigureControllerView command from
WinC4G (as shown in Fig. 13.58, Fig. 13.59, Fig. 13.60 and Fig. 13.61), or using
Service Page, SysInfo sub-page, from the Teach Pendant (see Fig. 13.62).
If the current configuration is not the required one, please contact Comau
Robotics.
d. Read the string referred to the configuration file - the system displays the
configuration, at Arm and Auxiliary Axes level (see string highlighted in red in
Fig. 13.61).
HS-0-C4E-USO_47.fm
13-110 01/0208
IO_INST Program - I/O configuration
If instead it is wished to use the Teach Pendant, choose the SysInfo sub-page from
Service Page (Fig. 13.62 highlighted in red).
We shall now describe the steps to be carried out for the complete configuration of a Sik
device.
Our example starts from a system where the Fieldbus for the Sik configuration has NOT
been configured.
a. Required Fieldbus configuration - on the main screen page of IO_INST, issue the
Fieldbus (F2) command, as shown in Fig. 13.63.
HS-0-C4E-USO_47.fm
01/0208 13-111
IO_INST Program - I/O configuration
b. Choice of FieldbusType - from the possible choices offered by the program, select
the required Fieldbus: in our example (see Fig. 13.64) it is wished to use a Can
(F1) module.
d. Physical address - on the screen page shown in Fig. 13.66, enter the network
address of the I/O module to be configured. For the Sik device on Can Bus, it is
suggested to use address 26.
HS-0-C4E-USO_47.fm
13-112 01/0208
IO_INST Program - I/O configuration
For any further information about the choice of the network address (physical),
see the Integration guidelines, Safeties, I/O, Communications Manual - Par. Interfacing
with CAN Network and parallel I/O.
e. The program displays the logical address, the physical address and the chosen
module type (see Fig. 13.67). Press ENTER to continue.
f. DSA configuration - this starts the true configuration stage of the Sik device. From
the main IO_INST screen page, send the DSA (F3) command, as shown in
Fig. 13.68.
g. Access to the section relating to Sik - enter the Sik (F6) command, as shown in
Fig. 13.69.
h. Sik configuration - from the different functions shown on the screen page in
Fig. 13.70, choose Configure (F1).
HS-0-C4E-USO_47.fm
01/0208 13-113
IO_INST Program - I/O configuration
i. The program indicates the Arm on which it is possible to configure a Sik device
(see Fig. 13.71 (ACTIVE)). It is up to the user to check this information is correct.
If the check is successful, press ENTER.
WARNING! If the active Arm is NOT the one where it is wished to configure the
Sik, this means that the configuration file is not consistent with the actual
situation.
In this case, suspend the procedure and contact Comau.
j. Choice of Fieldbus - insert the identification (from 1 to 4) of the Fieldbus where the
Sik device is to be configured. In our example, the choice is CAN Bus (ID '1') (see
Fig. 13.72, fields highlighted in red). Press ENTER.
HS-0-C4E-USO_47.fm
13-114 01/0208
IO_INST Program - I/O configuration
It is very important not to create overlaying at PIN level, during the configuration!
It is therefore always advised to check the current mapping before deciding which
PINS to associate to the two SDIN and to the two SDOUT.
m. $SDOUT mapping - If available, choose PIN 32 to associate the two SDOUT (see
field highlighted in red in Fig. 13.74). Press ENTER.
HS-0-C4E-USO_47.fm
01/0208 13-115
IO_INST Program - I/O configuration
n. Final configuration display - the program displays the configuration prepared for
the Sik (see Fig. 13.75). Press ENTER.
o. Save new configuration - from main screen page, send the Save (F5) command,
as shown in Fig. 13.76.
p. The system asks the user for confirmation before saving (see Fig. 13.77). Answer
‘Y’ and press ENTER.
HS-0-C4E-USO_47.fm
13-116 01/0208
IO_INST Program - I/O configuration
q. The system displays a message to inform that saving has taken place (see
Fig. 13.78). Press ENTER to return to main screen page.
r. Exit from IO_INST - after Sik has been configured, to exit from the IO_INST
program send the Quit (F6) command, as shown in Fig. 13.79.
s. Enter a negative answer to the displayed question (see Fig. 13.80), to exit without
deleting IO_INST from UD: .
HS-0-C4E-USO_47.fm
01/0208 13-117
IO_INST Program - I/O configuration
Arm 1, Axis 8.
d. Read the string referring to the configuration file - the system displays the
configuration, at Arm and Auxiliary Axes level (highlighted in red in Fig. 13.84).
HS-0-C4E-USO_47.fm
13-118 01/0208
IO_INST Program - I/O configuration
If instead it is wished to use the Teach Pendant, call the SysInfo sub-page from Service
Page (Fig. 13.85 highlighted in red).
We shall now describe the steps to be carried out for the complete configuration of a
Ieak device.
Our example starts from a system where the Fieldbus for the Ieak configuration has
NOT been configured.
a. Required Fieldbus configuration - on the main screen page of IO_INST, send the
Fieldbus (F2) command, as shown in Fig. 13.86.
HS-0-C4E-USO_47.fm
01/0208 13-119
IO_INST Program - I/O configuration
b. Choice of type of Fieldbus - from the possible choices offered by the program,
select the required Fieldbus: in our example (see Fig. 13.87) it is wished to use a
Can (F1) module.
d. Physical address - on the screen page shown in Fig. 13.89, enter the network
address of the I/O module to be configured. For the Ieak device on Can Bus, it is
suggested to use address 25.
HS-0-C4E-USO_47.fm
13-120 01/0208
IO_INST Program - I/O configuration
For any further information related to the choice of the network address
(physical), see the Integration guidelines, Safeties, I/O, Communications Manual -
Par. 5.3 Interfacing with CAN Network and parallel I/O.
e. The program displays the logic address, the physical address and type of module
chosen (see Fig. 13.90). Press ENTER to continue.
f. DSA configuration - this starts the true configuration stage of the Ieak device. From
the main IO_INST screen page, send the DSA (F3) command, as shown in
Fig. 13.91.
g. Access to the section related to Ieak - enter the Ieak (F7) command, as shown in
Fig. 13.92.
h. Ieak configuration - from the different functions shown on the screen page in
Fig. 13.93, choose Configure (F1).
HS-0-C4E-USO_47.fm
01/0208 13-121
IO_INST Program - I/O configuration
i. Choice of Fieldbus - the program indicates the Arm on which a rotating Table is
present in the configuration file (see Fig. 13.94). It is the task of the user to check
that this information is correct.
WARNING! If the Arm rerelated to the rotating Table is NOT the one where it is
wished to configure the Ieak, this means that the configuration file is not
consistent with the actual situation. Suspend the procedure and contact Comau.
Specify on which interface the I/O related to the Ieak are to be managed. In our
example CAN Bus has been chosen (highlighted in red in Fig. 13.94). Make the
choice and press ENTER.
j. Chosen interface display - the program displays the logic address, the physical
address and module Type (see Fig. 13.95); press ENTER again to continue.
HS-0-C4E-USO_47.fm
13-122 01/0208
IO_INST Program - I/O configuration
k. $SDIN/$SDOUT mapping - The program automatically maps the four $SDIN and
two $SDOUT needed to manage the Ieak, and displays the final configuration (see
Fig. 13.96). Press ENTER to continue.
l. Save new configuration - from main screen page, send the Salva (F5) command,
as shown in Fig. 13.97.
m. The system asks the user for confirmation before saving (see Fig. 13.98). Give an
affirmative reply (‘Y’) and press ENTER.
n. The system displays a message to inform that saving has taken place (see
Fig. 13.99). Press ENTER to return to main screen page.
HS-0-C4E-USO_47.fm
01/0208 13-123
IO_INST Program - I/O configuration
o. Exit from IO_INST - after Ieak has been configured, to exit from the IO_INST
program send the Quit (F6) command, as shown in Fig. 13.100.
p. To exit without deleting IO_INST from UD: , answer ‘N’ to the displayed question
(see Fig. 13.101), .
HS-0-C4E-USO_47.fm
13-124 01/0208
Hints for the I/O software configuration
All configurations set through the values in the System Variable have to be saved
in the .C4G configuration file using CONFIGURE SAVE ALL (from the TP in the
Setup page, par. 6.16.1 Config. Function on page 6-130); subsequently to make it
operative, a system restart is necessary (from Teach Pendant , in the Home Page:
Restart - par. 6.7.3.1 Complete (CCRC) on page 6-46).
HS-RC-C4E-GIT_16.fm
00/0708 14-1
Hints for the I/O software configuration
14.2.1 Overview
The numbering of the FBP boards installed depends on the physical position of the
board. The board installed farthest to the left is named as board index 1, the second
board if installed is named with index 2.
This index allows access to the table $FBP_TBL[<number_FBP>] that contains the
configuration data of that board.
– Board furthest on the left = board 1 = index 1, therefore the configuration table is
$FBP_TBL[1]
– Second board installed after the furthest on the left = board 2 = index 2, therefore
the configuration table is $FBP_TBL[2]
The types of fieldbuses, called protocols, that are available on the Robot controller are
coded with the following numbering <Protocol>:
– Profibus = 2
– Interbus = 3
– DeviceNet = 4
These indexes allow direct access to the following system variables:
$FB_INIT[<number_FBP>,<Protocol>]
$FB_CNFG[<number_FBP>,<Protocol>]
$FBP_TBL[<number_FBP>].FB_TYPE = 2 - Profibus
$FBP_TBL[<number_FBP>].FB_TYPE = 3 - Interbus
$FBP_TBL[<number_FBP>].FB_TYPE = 4 - DeviceNet
The type of protocol defined in $FBP_TBL is to correspond to the type of board detected
inside the controller; that is to say, if the Profibus is declared on board N° 1,
$FBP_TBL[1].FB_TYPE = 2, inside the controller, as first FBP board farthest to the left,
there must be a C4G-PFP.
Generally the connections on the fieldbuses are MASTER-SLAVE type. This means that
there is typically a device which acts as MASTER and one or more devices that act as
SLAVE. The master is responsible for the network management and to activate
communications. The task of the slave is to update the I/O point images connected to it.
The $FBP_TBL table is logically divided into three sections:
– Internal Slave Configuration. The internal slave is the same C4G that acts under
the control of a PLC Master functioning as cell controller.
– Master configuration. An example, the master like any other participant on the
network has a univocal network address that identifies it.
– External Slave(s) Configuration. The external slaves are devices connected to the
C4G controller that acts as MASTER.
HS-RC-C4E-GIT_16.fm
14-2 00/0708
Hints for the I/O software configuration
However, it is possible to configure the internal C4G slave as part of an external slave
of the C4G Master section. This means that the C4G Master controls itself as Slave.
$FBP_TBL[<number_FBP>].FB_SL_INIT[1..20]
HS-RC-C4E-GIT_16.fm
00/0708 14-3
Hints for the I/O software configuration
HS-RC-C4E-GIT_16.fm
14-4 00/0708
Hints for the I/O software configuration
HS-RC-C4E-GIT_16.fm
00/0708 14-5
Hints for the I/O software configuration
HS-RC-C4E-GIT_16.fm
14-6 00/0708
Hints for the I/O software configuration
$FBP_TBL[<number_FBP>].FB_MA_SLVS[1..32,1..16]
$FBP_TBL[<number_FBP>].FB_MA_SLVS[<indice_slave>,1..16]
Therefore the index of the slave has to be indicated when configuring input/output
HS-RC-C4E-GIT_16.fm
00/0708 14-7
Hints for the I/O software configuration
images. There is no connection between the slave declaration index and the network
address. The declaration index is a logic information.
The following table shows the significance of each element. If the variable assumes
different significances according to the protocol, this is clearly underlined.
HS-RC-C4E-GIT_16.fm
14-8 00/0708
Hints for the I/O software configuration
HS-RC-C4E-GIT_16.fm
00/0708 14-9
Hints for the I/O software configuration
14.2.2 $FB_INIT
A system variable with matrix structure.
$FB_INIT[<number_FBP>,<Protocol>]
Bit Description
7..1 Reserved
10..8 Contains the coded request to manage the command word:
– 0 The internal slave interface is primary
– 2 The internal slave interface is secondary
– 3 The internal slave interface has not yet been defined
– 7 The internal slave interface is primary, but does not use the command
word.
11 Reserved
12 Set by the system when the interface is primary.
23..13 Reserved
24 If set to 1, at the next restart the system will execute an automatic updating
of the firmware of the FBP board or board having this protocol
32..25 Reserved
14.2.3 $FB_CNFG
A system variable with matrix structure.
$FB_CNFG[<number_FBP>,<Protocol>]
Bit Description
6..1 Reserved
7 The interface has been configured correctly.
11..8 Reserved
12 Set by the system when the interface is primary.
22..13 Reserved
23 The slave interface has been configured correctly.
24 The master interface has been configured correctly.
25 Optic interface for FBP Interbus board [3]
29..26 Reserved
30 An FBP board with this protocol has been found inside the control.
32..31 Reserved
HS-RC-C4E-GIT_16.fm
14-10 00/0708
Hints for the I/O software configuration
$DIN
$DOUT
$GIN
$GOUT
$AIN
$AOUT
$FMI
$FMO
$CIO_DIN
$CIO_DOUT
$CIO_GIN
$CIO_GOUT
$CIO_AIN
$CIO_AOUT
$CIO_FMI
$CIO_FMO
To configure the I/O ports, use either the IO_TOOL Program - I/O Configuration in
VP2 or the IO_INST Program - I/O configuration.
To configure the Fieldbus on which I/Os are later mapped, use the FB_TOOL
program for configuration of Fieldbus.
HS-RC-C4E-GIT_16.fm
00/0708 14-11
Hints for the I/O software configuration
Pos.
Bit Description
array
[1] - Configuration options
2..1 Can assume the following significances:
– 0 - I/O point not configured
– 1 - Physical I/O point
– 2 - Virtual I/O point.
8..3 Reserved.
12..9 Type of fieldbus where this I/O point is installed:
– 0 - None
– 1 - CAN Bus
– 2 - Profibus-DP Master
– 3 - Profibus-DP Slave
– 4 - DeviceNet Master
– 5 - DeviceNet Slave
– 6 - Interbus-S Master
– 7 - Interbus-S Slave
– 8 - DSA CPU
– 9 - Reserved
13 Reserved.
14 Only for $SDOUT. A PDL2 program can write.
15 Only for retentive $DOUT / $AOUT.
16 Reserved.
23..17 Reserved
30..24 Only for $FMI/FMO.
Indicates the number of bits to be taken from the data sequence
in input (FMI) or in output (FMO). The index of the first bit is
contained in the field [3] from bit 17 to bit 32.
Minimum value is 1, maximum 32.
32..31 Reserved.
[2] - Index: contains the index of the I/O point being configured.
Usually it coincides with the $CIO_xxx index, even if there is no
logic relationship.
HS-RC-C4E-GIT_16.fm
14-12 00/0708
Hints for the I/O software configuration
The input and output groups may consist of one or two homogeneous groups of
contiguous digital I/O points.
The size of a group is 16 bits.
For example:
$GIN[3]
$DIN[11..2] $DIN[29..23]
HS-RC-C4E-GIT_16.fm
00/0708 14-13
Hints for the I/O software configuration
In the example, the size of the first group is 6 (from 23 to 29), the size of the second
group is 10 (from 2 to 11), the starting index of the first group is 23, the starting index of
the second group is 2, the type of group is $DIN, therefore 1, the group index is 3:
$CIO_GIN[1,1] := 0x0A060103
$CIO_GIN[1,2] := 0x00020017
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
$SYS_INP_MAP[16,xxx] $SYS_INP_MAP[1,xxx]
HS-RC-C4E-GIT_16.fm
14-14 00/0708
Hints for the I/O software configuration
For $SYS_INP_MAP where $SDIN is used, the range of allowed indexes is from 145 to
154 that are the system inputs reserved for remote interfacing.
The internal slave that imports/exports the data from and for the command words is
declared primary slave. Therefore when configuring the primary slave it must be
explicitly declared that it is to handle the system command words (1 in input and 1 in
output). Since the command word is composed of 16 bits, 2 bytes, they are to be
cumulated to the number of user bytes to be transferred. Some examples:
– Primary interface + 4 user bytes. This means that the internal slave will transfer
from and to the PLC, 6 bytes in input and 6 bytes in output.
– Primary interface + 14 user bytes. This means that the internal slave will transfer
from and to the PLC, 16 bytes in input and 16 bytes in output. If the PLC is
configured to WORD, it will therefore exchange 8+8 words with the C4G controller.
Since the association is free between the position of the bit in the command word and
the $SDIN/SDOUT indexes, the user can freely construct the profile of the command
word.
HS-RC-C4E-GIT_16.fm
00/0708 14-15
Hints for the I/O software configuration
The C4G system proposes its profile for compatibility with the C3G controller that
couples:
In practice, the system proposes a profile 1:1 between the position of the bits in the
command word and the sequence of the $SDIN/$SDOUT starting from index 145.
To know the significance of the $SDIN/$SDOUT see the PDL2 manual.
HS-RC-C4E-GIT_16.fm
14-16 00/0708
Hints for the I/O software configuration
$CIO_CROSS[1..64,1..6]
HS-RC-C4E-GIT_16.fm
00/0708 14-17
Hints for the I/O software configuration
If the destination foresees a digital input, it is necessary that this has been declared
virtual or is simulated, otherwise the operation is not possible.
Analog values can be copied between each other, and the same applies for digital
values. It is possible to assign a bit with an analog value (e.g. bit 3 of $WORD[100]) to
a digital value, and also to assign a digital value to an analog value bit
HS-RC-C4E-GIT_16.fm
14-18 00/0708
Hints for the I/O software configuration
SDOUT
FDOUT
DOUT
GOUT
AOUT
WORD
SDIN
FDIN
DIN
GIN
AIN
BIT
OUT
FMI
FMO
IN
DIN Y Y Y Y N N Y Y Y Y Y Y Y Y N N
DOUT Y Y Y Y N N Y Y Y Y Y Y Y Y N N
GIN N N N N Y Y N N N N N N N N N N
GOUT N N Y N Y Y N N N N N N N N N N
AIN N N N N N N N N N N N N N N N N
AOUT N N N N Y Y N N N N N N N N N N
BIT Y Y N N N N Y Y Y Y Y Y Y Y N N
Destination
WORD Y Y Y Y N N Y Y Y Y Y Y Y Y N N
SDIN N N N N N N N N N N N N N N N N
SDOUT N N N N N N N N N N N N N N N N
FDIN N N N N N N N N N N N N N N N N
FDOUT N N N N N N N N N N N N N N N N
IN Y Y Y Y N N Y Y Y Y N N Y Y N N
OUT Y Y Y Y N N Y Y Y Y N N Y Y N N
FMI Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
FMO Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
Example:
HS-RC-C4E-GIT_16.fm
00/0708 14-19
Hints for the I/O software configuration
BEGIN
FOR i := 0 TO 15 DO
-- $WORD[200+I] := $WORD[100+I]
ru_cio_set(i + 1, 8, 100 + i, 0, 8, 200 + i, 0, FALSE)
ENDFOR
FOR i := 16 TO 23 DO
-- $DIN[1..8] := bit_test($WORD[100+I],I,ON)
ru_cio_set(i + 1, 8, 100 + i, i - 15, 1, i - 15, 0, FALSE)
ENDFOR
FOR i := 24 TO 31 DO
-- $DOUT[1..8] := bit_test($WORD[100+I],I,ON)
ru_cio_set(i + 1, 8, 100 + i, i - 23, 2, i - 23, 0, FALSE)
ENDFOR
FOR i := 32 TO 47 DO
-- $WORD[200+I] := $WORD[100+I]
ru_cio_set(i + 1, 8, 100 + i, 0, 8, 200 + i, 0, FALSE)
ENDFOR
FOR i := 48 TO 63 DO
-- IF BIT_TEST($WORD[100+I],I,ON) THEN
-- BIT_SET($WORD[200+I],I)
-- ELSE
-- BIT_CLEAR($WORD[200+I],I)
-- ENDIF
ru_cio_set(i + 1, 8, 100 + i, i - 47, 8, 200 + i, i - 47, FALSE)
ENDFOR
END cross
HS-RC-C4E-GIT_16.fm
14-20 00/0708
Hints for the I/O software configuration
To configure the I/O ports, use either the IO_TOOL Program - I/O Configuration in
VP2 or the IO_INST Program - I/O configuration.
To configure the Fieldbus on which I/Os are later mapped, use the FB_TOOL
program for configuration of Fieldbus.
Tab. 14.19- Command Words used for the dynamic connection and
disconnection of the node
Word Use Bits used
Bit 1: Start communication
Bit 2: Stop communication
Bit 3: Reset node (valid on
Type of command requested, DeviceNet or CAN Bus)
I typically referred to the node Bit 4: Start node
indicated in the IV word Bit 5: Stop node
Bit 6: Reset alarms on all network
nodes (valid on Interbus-S)
Bit 7..16: Reserved
The command in execution can be
II -
viewed
The command can be viewed after
III -
execution
Node logic address to which the
IV -
command is to be sent
HS-RC-C4E-GIT_16.fm
00/0708 14-21
Hints for the I/O software configuration
To configure the I/O ports, use either the IO_TOOL Program - I/O Configuration in
VP2 or the IO_INST Program - I/O configuration.
To configure the Fieldbus on which I/Os are later mapped, use the FB_TOOL
program for configuration of Fieldbus.
HS-RC-C4E-GIT_16.fm
14-22 00/0708
Hints for the I/O software configuration
Step 1
Enter the logic address in the variable:
Step 1 $WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5] + 3]
Step 2
– Reset stop node
BIT_CLEAR($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]], 5)
Step 2 – Set start node
BIT_SET($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]], 4)
Step 3
Wait for the status of the connected node (through the network
status bit mask)
Y – if the logic address of the node is < 17
Step 3 $WORD[$FBP_TBL[idx*¹].FB_MA_INIT[6] + 2]
– if the logic address of the node is> 16
$WORD[$FBP_TBL[idx*¹].FB_MA_INIT[6] + 3]
N
Step 5: Connection has taken place successfully.
– Reset start node:
Step 5 BIT_CLEAR($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]], 4)
– Reset start node in the word of the commands executed:
BIT_CLEAR($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]+2], 4)
– Reset address of logic node:
End $WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5] + 3]
Step 4
Wait:
– The value of the errors word is not 0 (the master has
Y generated an anomaly during the connection)
Step 4 – TIME-OUT (can be set by the user)
*¹ idx: “ai_board_idx” that is to say, the number of the board according to the position occupied in the RPU module
slot.
HS-RC-C4E-GIT_16.fm
00/0708 14-23
Hints for the I/O software configuration
Step 1
Enter the logic address in the variable:
Step 1 $WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5] + 3]
Step 2
– Reset start node
BIT_CLEAR($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]], 4)
Step 2 – Set stop node
BIT_SET($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]], 5)
Step 3
Wait for the status of the disconnected node (through the network
status bit mask)
Y – if the logic address of the node is < 17
Step 3 $WORD[$FBP_TBL[idx*¹].FB_MA_INIT[6] + 2]
– if the logic address of the node is > 16
$WORD[$FBP_TBL[idx*¹].FB_MA_INIT[6] + 3]
N
Step 5: Connection has taken place successfully.
– Reset stop node:
Step 5 BIT_CLEAR($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]], 5)
– Reset stop node in the word of the commands executed:
BIT_CLEAR($WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5]+2], 5)
– Reset address of logic node:
End $WORD[$FBP_TBL[idx*¹].FB_MA_INIT[5] + 3]
Step 4
Wait:
– The value of the errors word is not 0 (the master has
Y generated an anomaly during the connection)
Step 4 – TIME-OUT can be set by the user)
*¹ idx: “ai_board_idx” that is to say, the number of the board according to the position occupied in the RPU module
slot
HS-RC-C4E-GIT_16.fm
14-24 00/0708
PLC software configuration and use (optional feature)
15.1 Glossary
– Resource - PLC program.
– Target - environment in which the PLC resource is executed: in simulation from
Workbench it is the PC; in practice it is the C4G Control Unit.
– POU - PLC resources:
• program
• function
• function blocks
15.2 Introduction
The PLC environment consists of two types of software:
– integrated development environment (Workbench ISaGRAF) on PC, to write and
test PLC type programs
– run-time environment on the C4G Control Unit, to run PLC type programs.
This chapter describes all the operations required to use the existing PLC programs on
the C4G Control Unit
The following subjects are dealt with:
– Workbench configuration to map the C4G Controller I/Os
– PLC resource creation
– Debug mode
– PLC resource download and upload
– Management of PLC software on the C4G Control Unit
HS-0-C4E-USO_48.fm
00/0705 15-1
PLC software configuration and use (optional feature)
b. import the description of the I/Os, as indicated in Fig. 15.1 - Import I/O description:
e. select the resource and press on the window title with the mouse right-hand key:
select the “Properties” item (see Fig. 15.3 - Properties):
HS-0-C4E-USO_48.fm
15-2 00/0705
PLC software configuration and use (optional feature)
f. choose the Target/Code sub-page, shown in Fig. 15.4 (label highlighted in yellow)
g. select COMAU_C4G for the “Target” field (highlighted in red in Fig. 15.4)
i. select “Complete Table” (highlighted in blue in Fig. 15.12) and press “OK” to
confirm.
HS-0-C4E-USO_48.fm
00/0705 15-3
PLC software configuration and use (optional feature)
j. appropriately set all the fields of the screen page in Fig. 15.4 - Target/Code:
b. Select the resource and press on the window title with the mouse right-hand key:
select the “Properties” item (see Fig. 15.3 - Properties)
c. select ETCP as “Network”, and set the value 10000 as “TimeOut”: (see Fig. 15.6
- Network):
HS-0-C4E-USO_48.fm
15-4 00/0705
PLC software configuration and use (optional feature)
e. press the mouse right-hand key in an area of the environment where there is no
configuration present and choose “Insert Network”: (see Fig. 15.7 - Insert
Network):
f. choose “ETCP” as “Network” (see Fig. 15.8 - ETCP) and press OK:
HS-0-C4E-USO_48.fm
00/0705 15-5
PLC software configuration and use (optional feature)
g. with the left-hand key press on “bus ETCP”, and keep pressed
and extend the connection created toward the configuration: (see Fig. 15.9
- Connection):
h. If the connection has been successful, for the “IPAddress”, insert the IP address of
the C4G where the optional function of “Software PLC” is to be used (as shown in
Fig. 15.10 - IP address) and press OK:
b. select the resource and press on the window title with the mouse right-hand key:
select the “Properties” item (see Fig. 15.3 - Properties)
HS-0-C4E-USO_48.fm
15-6 00/0705
PLC software configuration and use (optional feature)
d. press “Options..” and select “Complete Table”(as shown in Fig. 15.12 - Complete
Table); then press “OK”.
HS-0-C4E-USO_48.fm
00/0705 15-7
PLC software configuration and use (optional feature)
(*) Only available on system software versions 2.53 and 2.48, and later.
HS-0-C4E-USO_48.fm
15-8 00/0705
PLC software configuration and use (optional feature)
a. Press the icon associated to the “I/O Wiring” environment to have access to
the environment
b. press the icon associated to the “Add Device” command to add a category
of ports; if the project for the dialogue with the C4G Control Unit has been
configured correctly, the window shown in Fig. 15.13 - Add device - in will open:
c. select “drv_c4g: rbit: R_BIT(* *)”, insert the number of channels belonging to the
device (in this case 2) in “Number of channels” and press OK
d. in the “Unwired variables” window, the BOOL type variables that have not yet been
connected to a physical port will be shown, with Read attribute and “Direction:
Input”, inserted in the “Dictionary” environment (see Fig. 15.14 - Unwired variables
- in:)
e. therefore a device will be available with two channels mapped on $BIT in read; it is
then necessary to configure the device. A read device has a “Start” parameter, that
determines the starting point for a certain category of C4G ports, starting from
which the device involved is mapped. In this example the device configuration is
opened with a double click on the tree structures until the “Start”: parameter is
displayed (see Fig. 15.15 - Start - in):
HS-0-C4E-USO_48.fm
00/0705 15-9
PLC software configuration and use (optional feature)
f. by default the “Start” parameter is set to 1 (which means it is assumed that “The
device we are configuring will be mapped on $BIT[1] and on $BIT[2]"); if it is wished
to change the value, click twice on “Start” and enter the required value in the
window that is shown in Fig. 15.16 - Change value - in:
g. after configuring the device as required, pass to the association as described in the
ISaGRAF Workbench manual.
a. press the icon associated to the “I/O Wiring” environment to have access to
the environment
b. press the icon associated to the “Add Device” command to add a category
of ports; if the project for the dialogue with the C4G Control Unit has been
configured correctly, the window shown in Fig. 15.17 - Add Device - out will open:
HS-0-C4E-USO_48.fm
15-10 00/0705
PLC software configuration and use (optional feature)
c. select “drv_c4g: woodcut: W_DOUT(* *)” and press OK; insert the number of
channels belonging to the device (in this case 1) in “Number of channels” and press
OK
d. in the “Unwired variables” window (see Fig. 15.18 - Unwired variables - out) the
BOOL type variables that have not yet been connected to a physical port will be
shown, with Write attribute and “Direction: Output”, inserted in the “Dictionary”
environment.
e. therefore a device will be available with one channel mapped on $DOUT in write;
it is then necessary to configure the device. A write device has a “Start” parameter,
that determines the starting point for a certain category of C4G ports, starting from
which the device involved is mapped. In this example the device configuration is
opened with a double click on the tree structures until the “Start”: parameter is
displayed (as shown in Fig. 15.19 - Start - out):
f. by default the “Start” parameter is set to 1 (which means it is assumed that “The
device we are configuring will be mapped on $DOUT[1]”); if it is wished to change
the value, click twice on “Start” and enter the required value in the window that is
shown in Fig. 15.20 - Change value - out:
g. for the output ports there is a second parameter that can be set by the user, this is
the “Hold” parameter. If it is set to TRUE, when the PLC resource deactivates, the
output will be held at the last value it assumed; otherwise the output port will be
reset.
h. after configuring the device as required, pass to the association as described in the
ISaGRAF Workbench manual.
HS-0-C4E-USO_48.fm
00/0705 15-11
PLC software configuration and use (optional feature)
ISaGRAF Library
In addition to the IEC 61131-3 standard languages and flow chart, the ISaGRAF
Workbench includes a library with more than 60 ready-to-use function blocks.
For further information, please refer to the ISaGRAF Workbench Manual (either on
Workbench CD or on www.isagraf.com site).
HS-0-C4E-USO_48.fm
15-12 00/0705
PLC software configuration and use (optional feature)
In this mode it is also possible to control the resource directly from the PC, connected
via the network to the robot controller.
– Commands available
– Debug mode activation.
– Resource control from Workbench.
– Inhibited commands
– PLC software modifications on-line
a. Select the resource from Link Architecture or Hardware environment (the same as
for Setting the symbols to include in a resource)
b. From the workbench main menu select the Debug submenu, then select “Debug”
from the list displayed:
HS-0-C4E-USO_48.fm
00/0705 15-13
PLC software configuration and use (optional feature)
c. the Debug mode is now active and the monitored resource is seen as follows:
e.1 To run the execution of the resource, select the Start command from the “Debug”
menu: the resource will be executed on the Target and its state will become “RUN”.
e.2 To stop the execution of the resource select the Stop command from the “Debug”
menu: the resource will be stopped on the Target and its state will become “STOP”
(as shown in Fig. 15.21).
e.3 To execute the code installed on the target, select the Start command from Code
saved On Target.
HS-0-C4E-USO_48.fm
15-14 00/0705
PLC software configuration and use (optional feature)
e.4 To delete the resource code from the Target memory, for example to reload it later
after making changes, select the Clear Stored Code command
e.5 To view the state of the resource that is on the Target and to monitor the value of
some variables, select the Diagnosis command.
e.6 To change the execution mode of the resource on the Target, while this is running,
select the Real Time/Cycle to Cycle command.
e.7 To run resource on the Target for one cycle only, first change the mode to Cycle
To Cycle as described in step e.6, then select the Execute one Cycle command.
e.8 To change the cycle execution time of the resource on the Target, select the
Change Cycle Timing command. A Pop-up window will be displayed, where the
new time value in seconds can be entered.
HS-0-C4E-USO_48.fm
00/0705 15-15
PLC software configuration and use (optional feature)
selected from the “Link Architecture” page, the commands Start, Stop, etc., cannot be
selected because the application does not know on which resource it should act, in the
case where there is more than one. The appearance of the resource changes when it is
selected, as can be seen by the selection colour blue, in the resource item window.
The entire Workbench interface has been studied to work on more than one resource at
a time, therefore each time it is wished to operate on one of them, it must first be
selected.
The same happens when, for example, the resource code is to be changed in the DGE
editor: it may be that certain commands are not found, because the Debug mode has
been activated, that automatically excludes the other.
For further information, see the ISaGRAF Workbench manual, available off-line
using the Help command from the Workbench main menu, or via Web, on the
Altersys official site at the URL address: "http://www.isagraf.com".
HS-0-C4E-USO_48.fm
15-16 00/0705
PLC software configuration and use (optional feature)
15.5.5.2 Example
a. On the Controller, a resource named “TEST” is running;
b. the resource is sent into execution (with the related programs it contains) either
from Workbench or from C4G (Start command);
c. the required changes are made, using Workbench: these may be an addition /
removal of a variable or a variation in the previous logic constructions; if there are
no changes, upon Workbench updating it will state that it is not possible because
it would be useless;
e. select the resource from the “Link Architecture” or “Hardware Architecture” page.
HS-0-C4E-USO_48.fm
00/0705 15-17
PLC software configuration and use (optional feature)
i. choose the change mode from the three available (see next figure).
HS-0-C4E-USO_48.fm
15-18 00/0705
PLC software configuration and use (optional feature)
a. check that the IP address assigned to the configuration is in effect the same as that
of the Controller to be reached.
b. check that the PC and the Target are both connected to the network, and that both
are “reachable”.
d. check that in the resource properties, connection on ETCP has been selected, as
follows
– The On-line change command is not possible because the Modification On-line
functionality is not present.
• This error condition should never arise because, by default, this functionality
is always present and activated on the C4G Controller.
Should this happen, the problem lies in the use of a system software that does
not support this functionality.
HS-0-C4E-USO_48.fm
00/0705 15-19
PLC software configuration and use (optional feature)
– The On-line change command is not possible since the resource code that is
running on the Controller is different to that on the PC, displayed in Workbench.
The binary files do not correspond (CHECKSUM error).
• This condition can occur when a project configuration parameter has been
changed on Workbench side, such as, for example, the target IP address on
the network, or when the code versions of the resource on the Target and on
the PC do not coincide. In this case the user has to use the “Download”
command to reload the resource on the Target.
HS-0-C4E-USO_48.fm
15-20 00/0705
PLC software configuration and use (optional feature)
15.6.1 Download
With this command a PLC resource can be loaded on the Robot controller from a PC
connected on the network, to the Controller.
This mode can be selected from the main menu of the Workbench, choosing
“Download”.
The following window is displayed:
HS-0-C4E-USO_48.fm
00/0705 15-21
PLC software configuration and use (optional feature)
If no resource is selected from the selection window, the download command will
be executed just the same, and the Workbench will indicate the success of the
operation, even if nothing has actually been transferred.
If, following the Start command, sent with “Start after download” or with the C4G system
command ProgramResPLCActivate, the resource does not start, this means that at the
moment of execution there has been an error displayed on the C4G controller, that,
according to the importance, may have completely compromised the entire PLC
software environment on the controller.
An error of this type is always accompanied by the message
31756-12: Initialising of PLC system level failed (xxx)
where xxx is the real origin of the problem, that can usually be traced to a wrong I/O
configuration on the Robot controller. This means that the resource has been wrongly
configured on the Workbench side, or there are errors in the logic of the resource.
15.6.2 Upload
The resource code can also be uploaded from the Controller, or from another project in
the PC, where the Workbench is installed, or from any other host accessible via network.
This process is called “UPLOAD”, and is divided into two distinct sub-processes:
– Import command
– Export command.
The description of these subjects follows:
– Import
– Utility
15.6.2.1 Import
The “Import” command can be selected from “File” in the main menu of Workbench, and
when it is selected another pop-up menu is shown that contains two sub-items, both of
which can be selected:
– PLC definition.
– Resource.
HS-0-C4E-USO_48.fm
15-22 00/0705
PLC software configuration and use (optional feature)
The use of “PLC definition” has already been widely dealt with in the par. 15.3.1 Import
of C4G Robot Control Unit information on page 15-2, therefore we shall consider
potential of the “Import/Resource” command.
This command allows the user to import one or more PLC resources to his/her PC, in
any ISaGRAF project, whether it is new or already existing, either from a target, such as
the robot controller, or from another ISaGRAF project.
In this way the user can have on his own PC the code of the resource that is running on
a Robot controller, in particular the code of this resource and all its characteristics can
be edited/ changed/ copied.
After a PLC resource has been “uploaded” it can be integrated into another project,
changed, compiled and loaded onto the same Robot controller or onto another that has
the PC software.
The selection of “Resource”, as follows, starts a guided procedure in which the user has
to first choose where the resource is to be taken from, whether from a target in the
network or from a project file.
– If taken from a target, the user is to make sure that his project on PC contains at
least one configuration (a resource item on the “Hardware Architecture” page) with
the same IP address selected, identical to the controller from which the code
involved is to be imported.
After this, the next step can be executed, in which the resources on the target that
has been effectively reached in the network will be offered.
After the resource involved has been selected, it can be loaded on the PC by
pressing the Upload button.
At the end of the guided Upload procedure, the imported resource will be displayed
in the current project, exactly as if it were created on the PC. In this condition the
user can use it in exactly the same way as any other resource.
– If instead the user decides to upload the resource from another project, the guided
procedure will ask the user to select the binary file of the resources of that project,
from the tree structure of the directories and the files containing the selected host.
The binary file has the extension “.rxf”.
“
If the binary file with this extension is not in the related folder of the project
involved, this means that this is the first “Export” command for the resource (s)
of that project that has been executed.
In this condition it is necessary to:
– close the current project (A)
– open the project from which the resource (B) is to be uploaded
– select the resource involved and execute the “Export” command
– close project B
– reopen project A where the “Import” is to be made
HS-0-C4E-USO_48.fm
00/0705 15-23
PLC software configuration and use (optional feature)
After the file has been chosen, when the upload key is pressed, the resource will
be automatically imported in the current project.
15.6.2.2 Utility
This functionality is one of the most powerful of Workbench, since it allows the recovery
of the PLC resource code, so that it can be shared by several users and different
projects in different PCs.
This implies that a resource takes with it also a configuration that represents the specific
context in which it could be executed. In practice, it is recommended to always import
and export resources from and to projects of the same type, i.e. having a configuration
that unites them.
If a resource is imported from a particular target with a particular configuration, in a
project on a PC with a different configuration, the user will have to make changes to
allow the management of this resource in a different context.
For example, a resource that runs on a controller configured to use system 100 $DOUT
cannot be compiled and thus managed in a project on a PC that does not provide at least
all those I/O points.
In conclusion, this method to copy resources and the possibility of their duplication on
robot controllers is an alternative to that which is described in the par. 15.7.1.3 ISaGRAF
binary files export on page 15-25, but is certainly more dynamic and flexible than the
latter.
HS-0-C4E-USO_48.fm
15-24 00/0705
PLC software configuration and use (optional feature)
HS-0-C4E-USO_48.fm
00/0705 15-25
PLC software configuration and use (optional feature)
A transfer to a C4G Control Unit that does not have the same configuration could cause
errors regarding the mapping of the inputs/outputs and it would not be possible to
manage the PLC programs without first updating the configuration involved.
Every export of ISaGRAF files from one Control Unit to another, in any case always
requires a machine restart after the transfer has taken place, using the RestartCold
command.
b. enter the name of this program (‘start_myplc’ in the previous example) in the
$STARTUP variable (see par. 6.16.6 Controller (CCS) on page 6-161 or
par. 7.9.1.4 CONFIGURE CONTROLLER STARTUP (CCS) on page 7-17)
HS-0-C4E-USO_48.fm
15-26 00/0705
PLC software configuration and use (optional feature)
A list follows of the commands belonging to this menu. For each of these, except for the
Projdir, command, the user has to indicate as parameter the name of the resource to
command.
The current resource name is displayed by the help, which is always active.
A detailed description is now given of all the Resplc menu commands:
– Activate
– Deactivate
– Restore
– Utility
15.7.3.0.1 Activate
With this command a PLC resource can be activated and run. The selected resource is
not loaded in memory, the program is just started and the instructions are performed.
There are two options available:
– Restart - re-starts the execution of a resource, regardless of its current mode. This
option also acts on the memory, deleting and loading the image of the selected
resource.
– Singlcan - sets the “Cycle to Cycle” mode to the selected resource.
Forces the execution of one cycle only, for that resource.
When the command containing this option is sent, the resource will be run and
automatically stopped at the end of the cycle.
Every subsequent Activate command without this option will start the resource in
run-time mode, which is the default for this command.
HS-0-C4E-USO_48.fm
00/0705 15-27
PLC software configuration and use (optional feature)
15.7.3.0.2 Deactivate
This command is used to deactivate a PLC resource, stopping the execution.
Furthermore, after stopping the instruction, it deletes the selected resource from the
memory.
15.7.3.0.3 Restore
With this command the PLC resource can be loaded into memory. It is a fundamental
action since it precludes the correct management of the resource.
15.7.3.0.4 Utility
With this command access is obtained to the Resplc menu sub-menu, that contains
other commands dedicated to the PLC environment, on the C4G Control Unit.
These are:
– Projdir
– Save
– Unload
– View
Projdir
This command is used to enter the PLC project folder that is to be managed by the C4G
Control Unit.
With Projdir it is possible to select a folder that is not “UD:\Resplc”, which is the default
folder. This command has been implemented to permit multi-project management.
Since this first PLC software version is single-project, and above all, to avoid
wrong and useless settings, its use will not at the moment have any effect and the
PLC environment will always search for the ISaGRAF project files in the default
folder.
Save
This file saves the code and configuration of the selected resource in the relevant
ISaGRAF binary files
It serves to make the changes made to a resource permanent, both regarding the code
and the configuration (e.g.: cycle time) of the said resource.
Unload
This command is used to delete the image of the resource previously loaded in memory.
HS-0-C4E-USO_48.fm
15-28 00/0705
PLC software configuration and use (optional feature)
It is useful to delete resource information that has been stored previously, and then
update the relevant image in the memory.
View
This command is used to view the information regarding the selected resource that is
present in the C4G Control Unit.
The information is displayed on the WINC4G system windows and on the TP-INT.
Tab. 15.2 - Information displayed by View contains a detailed description of each one.
Project name displays the name of the project belonging to the resource
Configuration name displays the name of the configuration belonging to the resource
displays the name of the C4G folder that contains the ISaGRAF binary files (for this
Project directory
first version it has to be “UD:\Resplc\”)
Resource number displays the number of the selected resource
displays the number of POUs in the project
POUs number
(programs+functions+function blocks)
Resource file size displays the dimension of the selected resource configuration binary file
Resource mode mode of the selected resource. It may be one of the following:
HS-0-C4E-USO_48.fm
00/0705 15-29
PLC software configuration and use (optional feature)
HS-0-C4E-USO_48.fm
15-30 00/0705
COMAU Robotics services
Repair: repairs.robotics@comau.com
Training: training.robotics@comau.com
Spare parts: spares.robotics@comau.com
Technical service: service.robotics@comau.com
comau.com/robotics