SmartAXIS Touch User’s Manual 20-3
1 About the Script Function
20
Script
1.3 Data Type of the Script
It is required to set the data type appropriate for the range of data to be used, such as the maximum and minimum
values of the data used in the script, negative numbers or real numbers required, etc., considering what is to be
processed with the script.
●
Data Types
There are seven types of data that can be processed by the script function.
For details about the data types, refer to Chapter 2 “1.2 Available Data” on page 2-2.
Data type is set by the Script Editor.
For the setting method, refer to “2.3 Script Editor” on page 20-8.
Types of the data
type
Required
word count
Range that can be processed
BIN16 (+) 1 0 to 65535
BIN16 (+/-) 1 -32768 to 32767
BIN32 (+) 2 0 to 4294967295
BIN32 (+/-) 2 -2147483648 to 2147483647
BCD4 1 -999 to 9999
BCD8 2 -9999999 to 99999999
float32 2
-3.4×10
38
to
-1.18×10
-38
0
1.18×10
-38
to
3.4×10
38
There are functions that cannot be used when the data types are different. Please refer to the format list.
F For details, refer to “4 Script Definition Method” on page 20-14.
WindLDR data types are displayed as follows: BIN16(+) as W (word), BIN16(+/-) as I (integer), BIN32(+)
as D (double word), BIN32(+/-) as L (long), and float32 as F (float). For details, refer to the follows:
• Ladder program
F "SmartAXIS Ladder Programming Manual" - Chapter 4 "Instructions Reference" - "Data Type"
•FBD program
F "SmartAXIS FBD Programming Manual" - Chapter 4 "FB Reference" - "Data Type"