Script file reflection timing – KEYENCE SR-750 Series User Manual
Page 25
25
E SR-750 UM
[2] Changing the script execution setting
Using the AutoID Network Navigator, set the script execution setting of the SR-
750 Series to "Enable".
This must be set for the edit data function and the edit image file name function
respectively.
[Edit data function - Script execution setting item]
[Edit image file name function - Script execution setting item]
[3] Transferring the script file
Transfer the script file (FmtSet.lua) to the SR-D100 Series.
Following are the transfer methods.
• Sending configuration of AutoID Network Navigator
• Transferring only the script file from the AutoID Network Navigator terminal
• Transferring using the Fileview software
• Transferring using the FTP
Important
When transferring the script file using the Fileview software or the
FTP, set the file name to "FmtSet.Lua".
Script file reflection timing
Even if the script file is in operation, transfer is possible each time by using the FTP.
In this case, the reflection timing of the script program is from the timing ON after
file transfer.
Timing chart
A
A
A
B
B
Timing input
Script file
transfer
Data
Image file name
Handing of the script file when settings are changed, etc.
This section describes how to handles the script file when restoring to the default
settings or using the changeover function.
When executing the script file - status confirmation command
Obtaining the script processing time
Send command
SCPTIME
Response
OK, SCPTIME, now=AAus, max=BBus, min=CCus
AA: Returns the most recent script processing time.
BB: Returns the maximum value of the processing time.
CC: Returns the minimum value of the processing time.
• Returns the processing time of script executed after power ON.
Script debug setting
Send command
SCPDBG, n
Response
OK, SCPDBG
n= 0: Script debug OFF
n=1: Script debug ON
• This sets whether to output debug from the script file to the command port or
not.
• Setting the debug ON executes print(str) and outputs data.
Obtaining the script error results
Send command
SCPERR
Response
OK, SCPERR, mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
mm… : Script error character string
• This returns the details of script error.
Obtaining the script version
Send command
SCPVER
Response
OK, SCPVER, mmmm, nnnn
mm...: Script library version
nn… : FmtSet.lua version
(Only when FmtSet.lua exists and the version is defined)
• FmtSet.Lua version is the value stored in variable name "SCPVERSION"
within the FmtSet.Lua file.
• This returns the script library version and the FmtSet.lua version.
• If the script library does not exist, the error code 12 is returned.
* The script library is a library file to use the edit data function and the edit image
file name function.
Operation contents
FmtSet.lua
AutoID Network Navigator "Retrieve
Configuration"
Receives with the configuration file at the
same time.
AutoID Network Navigator "Send
Configuration"
Sends with the configuration file at the same
time.
AutoID Network Navigator "Default Settings"
Remains.
Send or delete by FileView
Transmission and deletion possible from PC.
Reading quick setup codes
Remains.
Send
command
SAVE
Remains.
LOAD
Remains.
DFLT
Remains.