I'm trying to perform an action based on if the program was run from the primary screen/panel of the teach pendent. After reading through the Karel Manual I thought $TP_CURSCRN would give me that info but changing panels while monitoring this system variable doesn't seem to affect it! Is there a different variable I should be looking at? Is this even an option in the fanuc TP?
Looking for a System Variable that can tell me what panel is currently selected on the teach pendent!
-
Aminnakhjavani -
June 24, 2024 at 7:58 PM -
Thread is Unresolved
-
-
Lemster68
June 24, 2024 at 8:09 PM Approved the thread. -
Can you perhaps describe your problem in more detail? You can only start a program from the primary window anyway. Otherwise the error message TPIF-166 FWD/BWD in primary window only will be shown.
The variable $SP_ID contains the currently displayed screen. For the Select screen, for example, this is 71, the RefPos Screen it is 147.
If a program is being executed, this value is 64, regardless of whether a TP program or a KAREL program is being executed (just tested in RoboGuide).
Addendum:
A quick search of all the manuals available to me has - unsurprisingly - not turned up a list of $SP_IDs.
-
I had made a list some time back. Not complete though.
Main Page
Page Name
SP_ID
With SCRN_ID
Utilities Hints
153
153,1
Proj Adjust
930
930,1
Program Shift
151
151,1
Mirror Image Shift
150
150,1
Tool Offset
155
155,1
Frame Offset
191
191,1
Group Exchg
1200
1200,1
Angle Entry Offset
254
254,1
Test Cycle Setup
69
69,1
Manual Fctns Macros
138
138,2
Alarm Alarm Log
18
18,1
Motion Log
18
18,2
System Log
18
18,3
Appl Log
18
18,4
Password Log
18
18,5
Comm Log
18
18,6
Log Book
1106
1106,1
I/O Cell Interface
955
955,1
Custom
992
992,1
Digital
98
98,1
Analog
97
97,1
Group
99
99,1
Robot
107
107,1
UOP
108
108,1
SOP
109
109,1
Interconnect
157
157,1
Link Device
299
299,1
Flag
1111
1111,1
Marker
1111
1111,2
TC_ONLINE
1111
1111,3
Ethernet
1062
1062,1
PROFIBUS
272
272,2
PMC
473
473,1
SETUP ZDT Client
1985
1985,1
General
68
68,1
Coll Guard
1087
1087,1
Frames
154
154,1
Macro
140
140,1
Ref Position
147
147,1
Prog Select
166
166,1
Port Init
163
163,1
Ovrd Select
181
181,1
User Alarm
31
31,1
Error Table
456
456,1
BG Logic
1111
1111,6
Resume Offset
1337
1337,1
Resume Tol.
420
420,1
Softfloat
225
225,1
Stroke Limit
197
197,1
Space fnct.
200
200,1
PROFIBUS
272
272,3
ProfiNet
1161
1161,2
Host Comm
195
195,1
Passwords
935
935,1
FILE File
74
74,1
File Memory
253
253,1
Auto Backup
1008
1008,1
USER 37
37,1
SELECT 71
71,1
DATA Registers
23
23,1
Position Reg
148
148,2
Pallet register
92
92,1
KAREL Vars
34
34,2
KAREL Posns
34
34,3
STATUS Axis
32
32,2
Version ID
70
70,1
Stop Signal
173
173,1
Exec-Hist
226
226,1
Memory
174
174,1
Prg Timer
152
152,1
Sys Timer
152
152,2
Condition
296
296,1
PROFIBUS
272
272,1
Notifications
1621
1621,1
Reminder
1827
1827,1
Program
932
932,1
Power Consumption
1711
1711,1
4D Graphics 4D Display
1388
1388,1
Axis Position Display
33
33,1
SYSTEM Clock
34
34,4
Variables
34
34,1
OT Release
66
66,1
Axis Limits
162
162,1
Config
34
34,6
Motion
290
290,1
DCS
1133
1133,1
USER2 190
190,1
HMI Menu
381
381,22
Top Menu
381
381,23
Jog Assist Menu
1631
1631,100