26: S
CRIPT
26-2 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Execution results
The execution results (D1, D1+1) store the execution status and the execution time.
Execution status
If any error occurs other than the script ID error, script processing is canceled and the execution of the SCRPT instruction is
terminated. If the script ID error occurs, D1 and D1+1 are updated and execution of the SCRPT instruction terminates.
Execution time
The execution time from when the execution of the specified script is started until it is completed is stored in 100 µs
increments. For example, when it takes 1.45 ms to execute the specified script, 15 is stored as the execution time. When it
takes 6,553.5 ms or longer to execute the specified script, 65535 is stored as the execution time. The SCRPT instruction
execution time is affected by interrupt processing or other processing that occurs during the execution.
If any error occurs other than the script ID error, the script execution time from when the script execution is started until the
error occurs is stored as the execution time. If the script ID error occurs, zero is stored as the execution time.
Script selection
To specify a registered script ID for S1 in WindLDR, click Refer button on the SCRPT (Script) dialog box to open Script Manager
dialog box. Choose the script ID to execute and click on Select button on Script Manager dialog box. The selected ID will be
entered to S1.
Numeric Value Status Error Cause
0 Normal termination —
1 Arithmetic error Division by zero, floating point format error
2 Script ID error The specified script does not exist
3 Device access error Invalid device specified, device boundary exceeded