Scrpt (Script) - IDEC MICROSmart FC6A Series Ladder Programming Manual

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

Advertisement

26: S
CRIPT
Introduction
This chapter describes the SCRPT instruction that calls and executes scripts from the ladder program.

SCRPT (Script)

Executes the specified script.
Symbol
Operation
When the input turns on, the script that corresponds to the script ID specified by S1 is executed. When the script is finished
executing, the execution status and the execution time are stored in D1 and D1+1. To use the SCRPT instruction, you must create
a script to execute in Script Manager dialog box beforehand.
For an overview of the script function, see "Script Function Overview" on page 26-3.
For editing scripts, see "Script Programming and Management" on page 26-5.
Valid Devices
Device
S1 (Source 1)
D1 (Destination 1)
Special data registers cannot be designated as D1.
Settings
S1 (source 1): Script ID
Specify the script ID. A constant or data register can be specified.
D1 (destination 1): Execution results
Specify the data register where the execution results are stored. Two data registers starting with the specified data register are
used. The script execution status (error code at script completion) is stored in D1. The execution time from when the script
execution is started until it is completed is stored in D1+1 in 100 µs increments.
SCRPT
S1
D1
*****
*****
Function
Script ID
Execution results
FC6A S
MICROS
ERIES
MART
I
Q
M
R
L
P
M
ADDER
ROGRAMMING
ANUAL
T
C
D
P
Constant
X
1-255
FC9Y-B1726
Repeat
26-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents