Script Function Overview - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Script Function Overview

A script is a function for programming complicated processing with conditional branch, logical operations, arithmetic operations,
and functions as text.
The programmed scripts can be executed in a ladder program.
For example, the logical AND operation is written as follows.
Ladder diagram
M0100
M0101
■Script Programming and Management
Scripts are programmed using the Script Editor dialog box in WindLDR and managed with the Script Manager dialog box.
Notes:
• In Script Editor, you can program scripts by selecting conditional expressions, operators, and functions from a list, and you can also check
them for errors. The scripts can also be exported as text files, so they can be edited using a text editor such as Notepad. If you save an
edited script as a text file, it can be imported into Script Editor.
For details, see "Script Editor" on page 26-8.
• In Script Manager, you can manage the scripts as a group by adding scripts created in Script Editor or deleting them. For details, see "Script
Manager" on page 26-7.
Script Data Type
The data type for the range of data that will be handled in the script must be configured by taking into consideration the details of
the processing in the script including the maximum and minimum values of data that will be handled and whether negative
numbers and real numbers are required.
Notes:
• The data type is configured in Script Editor. For how to configure it, see "Script Editor" on page 26-8.
• Scripts can also be written that designate the data type for processing enclosed in curly brackets "{ }".
• Scripts can also be written that designate data types in executable line units. See "Programming Scripts" on page 26-12.
Data Types
The following five data types can be processed in a script. For details about data types in ladder, see "Data Types for Advanced
Instructions" on page 3-7.
Data Type
Word (Unsigned 16 bits)
Integer (Signed 16 bits)
Double Word (Unsigned 32 bits)
Long (Signed 32 bits)
Float (Floating point)
Note: Some functions cannot be used if the data type is different. Check the function in the notation list.
See "Programming Scripts" on page 26-12.
Script
[M0100] && [M0101]
Symbol
W
16 bits
I
16 bits
D
32 bits
L
32 bits
F
32 bits
FC6A S
MICROS
ERIES
MART
← The script is programmed as text.
Quantity of Data
Bits
Registers Used
1
1
2
2
2
L
P
M
ADDER
ROGRAMMING
ANUAL
Range of Decimal Values
0 to 65,535
–32,768 to 32,767
0 to 4,294,967,295
–2,147,483,648 to 2,147,483,647
38
–3.402823×10
to 3.402823×10
FC9Y-B1726
26: S
CRIPT
38
26-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents