1 About the Script Function
20-4
SmartAXIS Touch User’s Manual
1.4 Script Error of HMI Function
This section describes the types, cause, and information of script errors.
●
Types and causes of script errors
Script will stop running when an error occurs.
●
Error information
Script error information is stored in the following locations. An error message is displayed on the screen when a script
error has occurred.
Types of script error
Cause
Processing error
Dividend was divided by 0 for division and residue calculation.
Data types are BCD, float32, and value out of range is specified.
Execution time over error
The execution time for one script exceeded 3,000 milliseconds.
Writing count error
Data count written to the external device address in one script has exceeded 64.
Indirect device error
Indirect read from external device address is performed while the HMI Special
Internal Relay LSM14 or LSM15 is 1.
Indirect read or indirect write of external device address is performed with the
Global Script.
Parameter error
Value out of range was specified as argument for LINE function, RECTANGLE
function, or CIRCLE function.
Category
Storage location
Stored value
Existence of a script error
Bit 10 of the System Area address
+2
0
No error
1
Error
Script ID of the script with an error HMI Special Data Register LSD52
1 to
32,000
Script ID
Types of script errors
HMI Special Data Register LSD53
1
Processing error
2
Execution time over error
3
Writing count error
4
Indirect device error
5
Parameter error
• If there is a script error, bit 10 (11th bit) of the starting 2 (third word from the beginning) of the
System Area will be 1.
The starting device of the System Area is set in the
System
tab of the Project Settings dialog box.
For details about the System Area, refer to Chapter 3 “System Area” on page 3-23.
• For ladder program and FBD program errors, refer to Chapter 30 “2.2 Program Execution Error” on page
30-5.
Starting device
+1
+2
+3
+4
+5
+6
+7
System Area 1
System Area 2
System Area 3
System Area 4
+8
+9
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1st word
2nd word
11th bit
3rd word
4th word
5th word
6th word
8th word
7th word
10th word
9th word
Summary of Contents for SmartAXIS Touch FT1A Series
Page 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Page 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Page 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Page 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Page 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Page 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Page 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Page 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Page 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Page 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Page 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Page 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Page 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Page 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Page 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Page 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...