ScriptName "VersionInfo" // max 31 char ScriptAuthor "(dA)" // max 31 char ScriptVersion "[6]" // max 31 char // This Script demonstrates the usage of // the script Info commands. The commands defines // some texts, which are displayed in the devices // boot message. // compile the script and write the script to the device // (either by Wingate or ScriptProgramTool). Then restart // the device in Configmode (see devices documentation // about Config mode). // the devices message should look very similar to // RS-PB-SC V5.2[16] Date=12.08.2001 Name="VersionInfo" // Author="(dA)" Version= [6]" // Those commands must be the first commands of the script. // If other commands are before those, the script version // commands are simply ignored, no startup message is // generated for those items. SetErrorHandler ( : AddressLable1 ) ; var vb_error : Byte ; // V1.0 17.07.02 create example // V1.1 28.10.02 include SetErrorHandler // This is only a value for description of the Script. // Descripted is the Name, Author and the Version. // Path: VersionInfo -> Script Name // Path: VersionInfo -> Script Author // Path: VersionInfo -> Script Version // ScriptName "" // ScriptAuthor "" // ScriptVersion "" // Fieldbus -> no // RS 232 -> yes ( only in config mode ) // min value = 0 char // But no effect. // max value = 31 line // These Lines must stay in the top of the Script. // The Script is named as "VersionInfo", Author is dA and the Verion is [6]. // Notice: The Lines showes no effect if the Lines stayes not in top of the // Script. // The maximum of this command is one line. See the wrong example // below. // ScriptName "xxxxxxxxxxxxxxxxxxxxxxxxxx // xxxxxxx" // Possible return code for an error, please see notice below // Errorcode = 0x10 = EXEC_USER_RAM_RANGE_ERROR : start ; jump:start; stop ; : AddressLable1 ; Get ( ErrorCode , vb_error ) ; //user evaluation for the value of Errorcode return ;