
WindO/I-NV4 User’s Manual
20-1
20
Script
This chapter explains the script function, editing and management of the script, definition method, and definition
sample.
1.1 Overview of the Script Function
●
What is the script function?
Complex processes such as conditional branching, logical operation, arithmetic operation, functions, etc., can be
programmed in a text format using Script Function.
As an example, the logical product (AND) calculation described as
in a ladder diagram is described as
[LM 100] & [LM 101]
in text format in the script.
■
Description and management of the script
The script is programmed by WindO/I-NV4 script editor, and managed by Script Manager.
■
Example of using the script
As an example, when reading the data from the external device and displaying on the MICRO/I, the load on the
external device can be reduced for processes such as conditional branching or function calculation, which apply a
heavy load on the external device, by processing it with a script on the MICRO/I.
Chapter 20
Script
1
About the Script Function
HG3G
HG2G-5F
HG5G-V HG4G-V
HG3G-V
HG2G-V
HG2G-5T
HG4G
HG1G HG1P
LM100
LM101
• By using the Script Editor, conditional expressions, operators, and functions can be described by selecting
them from a list, and an error in the script can also be determined. The script can also be exported as a
text file, so the script can be edited by a text editor such as Notepad, and the edited script can be
imported back into the Script Editor by saving it as a text file. For details, refer to “2.3 Script Editor” on
page 20-12.
• Script Manager can manage the script collectively by adding, deleting, organizing, importing, exporting,
etc., the script created by the Script Editor. For details, refer to “2.2 Script Manager” on page 20-7.
// Change the additional value
// depending on the value of D10
if ([D 10] <= 9)
{
[D 10] = [D 10] + 10; }
else
{
[D 10] = [D 10] + 20; }
// Change the additional value
// depending on the value of D11
if ([D 11] <= 19)
{
[D 11] = [D 11] + 20; }
else
{
[D 11] = [D 11] + 40; }
// Change the additional value
// depending on the value of D12
if ([D 12] <= 29)
{
[D 12] = [D 12] + 30; }
else
{
[D 12] = [D 12] + 60; }
// Change the additional value
// depending on the value of D13
if ([D 13] <= 39)
{
[D 13] = [D 13] + 40; }
else
{
[D 13] = [D 13] + 80; }
MICRO/I
External device
Get the result by processing with script
D10 0
→
10
D11 10 → 30
D12 30 → 90
D13 50 →
130
D10 0
D11 10
D12 30
D13 50
Read the data not processed
Write the result
Process with script to decrease
the load of external device.
D10 10
D11 30
D12 90
D13 130
Summary of Contents for MICRO/I HG4G-CJT22 F-B Series
Page 1: ...B 1701 11 User s Manual ...
Page 26: ...Preface 25 WindO I NV4 User s Manual ...
Page 106: ...5 WindO I NV4 Common Operations and Settings 2 74 WindO I NV4 User s Manual ...
Page 254: ...7 BACnet Communication 3 148 WindO I NV4 User s Manual ...
Page 362: ...5 Screen Restrictions 5 28 WindO I NV4 User s Manual ...
Page 402: ...3 Text 7 30 WindO I NV4 User s Manual ...
Page 574: ...9 Potentiometer 8 172 WindO I NV4 User s Manual ...
Page 1052: ...4 Using the Data 15 22 WindO I NV4 User s Manual ...
Page 1170: ...6 Important Notes 20 60 WindO I NV4 User s Manual ...
Page 1200: ...5 Restrictions 22 18 WindO I NV4 User s Manual ...
Page 1260: ...5 Editing User Accounts on the MICRO I 23 60 WindO I NV4 User s Manual ...
Page 1322: ...2 Monitoring on the MICRO I 25 28 WindO I NV4 User s Manual ...
Page 1414: ...4 E mail Function 28 66 WindO I NV4 User s Manual ...
Page 1554: ...3 Settings 34 14 WindO I NV4 User s Manual ...
Page 1642: ...2 Handling Problems 36 6 WindO I NV4 User s Manual ...
Page 1652: ...5 Text Alignment A 10 WindO I NV4 User s Manual ...
Page 1664: ...Index 12 WindO I NV4 User s Manual ...