
368
Appendix
Appendix
13.
Local/Global Variables and Flags
Description
The internal variables and flags used in the SEL language are classified into local and global types.
The data range used commonly by all programs is called the global range, while the data range used only by
each program is called the local range. When multi-tasking programs are run simultaneously, the global range
must be used to synchronize the programs and allow cross-referencing of variables among the programs.
Example of Use
Program handshake
Program A
Program B
Use of global flags with the above two programs permits handshake between the programs, and the actuator
moves per “MOVL 1” in program A, moves per “MOVL 2” in program B, and then move per “MOVL 3” in program
A, for example.
Backup in Battery
The XSEL controller has a built-in battery for retaining variables and flags used in the programs. For both
variables and flags, only those in the global range will be retained after the controller power is turned off. The
variables and flags in the local range are cleared when the program is started (the variables are reset to “0,”
while the flags turn OFF).
Summary of Contents for X-SEL
Page 1: ...Operation Manual Nineteenth Edition XSEL Controller P Q PCT QCT Type ...
Page 2: ......
Page 3: ... ...
Page 14: ... I Q 4 I9 A 5 ...
Page 15: ... 9 1 9 R K 4 5 R Q 4 5 ...
Page 16: ... R 4 5 A 91 B 9 Q O Y Q 4 5 4R 5 Q Q 4 7 5 ...
Page 17: ... C 6 C I 4 b 5 ...
Page 18: ......
Page 105: ...83 Part 1 Installation Chapter 7 System Setup Q 4 O O O 5 I 8 91 N O O O I I ...
Page 129: ...107 Part 1 Installation Chapter 9 Maintenance 5 8 NI Q 5 5 4 7 5 5 ...
Page 153: ...131 Part 3 Controller Data Structure Chapter 2 XSEL Language Data Q b b J b J 4 BB5 J J ...
Page 201: ...179 Part 4 Commands Chapter 2 Explanation of Commands I Q 4I 5 I 4N 5 4 5 4 5 I Q ISQ I ISQ ...
Page 216: ...194 Part 4 Commands Chapter 2 Explanation of Commands N 4 5 I 4N 5 4 5 4 5 N J I N 9 9 O ...
Page 318: ...296 Part 4 Commands Chapter 2 Explanation of Commands 8 U8 8 K 8 U U 8 8 8 U8 d 8 8 8 U8 ...
Page 352: ...330 Part 4 Commands Chapter 6 Application Program Examples I L 8 J 4 5 8 8 8 K K N 8 8 ...
Page 355: ...333 Part 4 Commands Chapter 6 Application Program Examples Q 4 5 ST8 8 8 ST8 R ST8 ...
Page 358: ...336 Part 4 Commands Chapter 6 Application Program Examples Y Y Q 4 5 Y 8 8 U8 4 Y 5 ...
Page 363: ...341 Part 5 Multi Tasking Chapter 1 Real Time Multi Tasking 8 Q Q 4 5 8 4 5 8 4 5 Q 8 8 Q ...
Page 367: ...345 Part 5 Multi Tasking Chapter 2 Example of Building a System 8 Q 8 Q 8 8 U8 8 U8 Q 8 R ...
Page 373: ...351 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y 5 5 5 5 5 8 Appendix ...
Page 374: ...352 Appendix 4O 5 4 5 4O 5 4O 5 Q8 Q 4 5 4 5 4O 5 4O 5 K Y K Y 5 5 5 5 ...
Page 375: ...353 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y Appendix ...
Page 376: ...354 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y ...
Page 377: ...355 Appendix 4O 5 4O 5 4O 5 NQ Q 4 5 K Y 4 5 4 5 4O5 4 5 4O 5 4J5 4O 5 Appendix ...
Page 380: ...358 Appendix 99 K R 4K I 5 Q K Q I ...
Page 381: ...359 Appendix K J J J J J J I I Q Q L Q Appendix ...
Page 382: ...360 Appendix I J J Q K ...
Page 383: ...361 Appendix 4 K 5 N C K 4 5 I K b K b K b K b 4 5 K K K B 9 O K O B 9 9 B Appendix ...
Page 385: ...363 Appendix A 8 K I Q b b b I Q b 8 4 5 8 4 5 QC 8 QC 8 Appendix ...
Page 387: ...365 Appendix 9 R K I 9 O O 9 Q 9 9 O 9 O I Appendix ...
Page 389: ...367 Appendix Q K I 9 9 9 4 K 5 K b K N 4 5 4 8 5 Q Q Q Appendix ...
Page 391: ...369 Appendix K Q Q BB K C ISQ C JQ C 4 5 I Q C 4 5 I L J J Q Appendix ...
Page 392: ...370 Appendix K N K 4 5 K N R K N 4 5 I K N 9 8 9 O T K N 9 F 4 5 Q F 4 5 F 4 5 Q 9 O 9 ...
Page 393: ...371 Appendix 4 O 5 O K R O I O 9 O 4 5 6 6 R O 4 5 Q R O O 9 F 4 5 Q F 4 5 Q 9 O Appendix ...
Page 395: ...373 Appendix A O Q N I O 9 Q A A B 9 9 9 9 A9 99 99 99 A99 Q Q O Appendix ...
Page 396: ...374 Appendix B I I O I I C b 9 Q Q Q O ...
Page 397: ...375 Appendix 9 I P 9 8 9 99 BBB BB O O C 6 R P 9 Q SSS SSSb 99 SSSSS Sb O BB 8 Appendix ...
Page 398: ...376 Appendix L Q J 4 5 I 9 O J 6 9 O 9 I 9 9 9 O 9 I J 9 O 9 O 9 O O ...
Page 399: ...377 Appendix R R O I 9 9 4 5 R O 9 9 O 6 O O Appendix ...
Page 400: ...378 Appendix K R Q 4 5 Q 4 8 b5 9b 4 8 5 K ...
Page 401: ...379 Appendix I O I I IP 9 RIP Appendix ...
Page 402: ...380 Appendix 8 I Q S8 Q I Q N Q Q H I 4 5 4O 5 ...
Page 403: ...381 Appendix L O K I 9 O O I Q I 4 5 K N Q O Q 4 95 Q R Appendix ...
Page 405: ...383 Appendix A I J 4 5 8 6 I 4 5 4 5 R 6 J Appendix ...
Page 416: ...394 Appendix 4 5 4 8 5 C I b I b I b 8 I b Q I T I Q I T 8 I I Appendix ...
Page 423: ...401 Appendix Q Q 9 Q Q Q Q 4 5 Q I 4 5 8 Q 4 5 Q Q 4 Q I 5 Q Q Q QIN 4O K 5 b b Appendix ...
Page 431: ...409 Appendix 4 5 Q J N J C 99 BBB 4 995 N C BB 4 BB5 Q I Q Y b 8 K Ib b N b I Appendix ...
Page 432: ...410 Appendix I b Q K Ib K Ib 99 N BB J 99 J K Ib 99 ...
Page 433: ...411 Appendix K Q Appendix ...
Page 435: ...413 Appendix N 3 Q I Q Q Y b b b b Appendix ...
Page 486: ...464 Appendix B O 4 5 9 9 9C O C Y C J 8 9 9 9C C 7 C 9 9 J 99 4 5 99999999K 9K K ...
Page 510: ...488 Appendix O INN JIO 4 Ib 5 I O I 9 C O B O O O O O O 3 4 5 A I B Appendix ...
Page 529: ...507 Appendix O INN JIO 4 Ib 5 I O I 4 5 AI 4 5 Appendix ...
Page 550: ...528 Appendix O INN JIO 4 Ib 5 I O I IA QIN 8 IA Q 8 IA 8 IA 8 I 4 5 Appendix ...
Page 559: ...537 Appendix O INN JIO I O I A Q A9 Q I 8 4 5 Appendix ...
Page 561: ...539 Appendix Q N 4 N 5 4 5 8 999 9 N O 4 5 8 9 O K 4 N 5 4 5 8 99 9 Q Q 4 5 Q Appendix ...
Page 565: ...543 ...