Saia-Burgess PG5 User Manual

Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
21.09.04
PG5 Up/Downloader
PG5 UpDownloadernew.doc 1/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
Contents
1.
Introduction................................................................................................................................ 4
2. Installation ................................................................................................................................. 4
3. S-Conf : Online Configurator...................................................................................................... 5
3.1 Introduction ............................................................................................................................ 5
3.2 Main Window.......................................................................................................................... 5
3.3 Menus .................................................................................................................................... 6
3.3.1 File menu ........................................................................................................................6
3.3.2 Online menu.................................................................................................................... 6
3.3.3 Tools menu .....................................................................................................................7
3.3.4 Options menu.................................................................................................................. 8
3.3.5 Help menu.......................................................................................................................8
3.4 Dialog Boxes..........................................................................................................................8
3.4.1 S-Bus Station dialog box.................................................................................................8
3.4.2 Information dialog box..................................................................................................... 8
3.4.3 History dialog box.......................................................................................................... 10
3.4.4 Halt and history messages............................................................................................ 11
3.4.5 Download Hardware Settings dialog box....................................................................... 14
4. Sload5 : Command-line Up/Downloader.................................................................................. 16
4.1 Introduction .......................................................................................................................... 16
4.2 Command Line Parameters ................................................................................................. 17
4.3 Return Values ...................................................................................................................... 23
4.4 Example Batch File ..............................................................................................................25
4.5 Interactive Mode................................................................................................................... 25
4.6 Progress dialog box .............................................................................................................32
4.7 Browse For File dialog box................................................................................................... 33
5. S-Dat : Data Transfer Utility..................................................................................................... 36
5.1 Introduction .......................................................................................................................... 36
5.2 Main Window........................................................................................................................ 38
5.3 Menus .................................................................................................................................. 39
5.3.1 File Menu ...................................................................................................................... 39
5.3.2 Edit Menu......................................................................................................................40
5.3.3 View Menu .................................................................................................................... 40
5.3.4 Online Menu.................................................................................................................. 40
5.3.5 Tools Menu ................................................................................................................... 41
5.3.6 Window Menu ............................................................................................................... 41
5.3.7 Help Menu..................................................................................................................... 41
5.4 Toolbar................................................................................................................................. 41
5.5 Status Bar ............................................................................................................................ 42
5.6 Command Line Invocation.................................................................................................... 42
5.7 Return Values ...................................................................................................................... 45
5.8 Data Transfer File Formats (.dt5) ......................................................................................... 46
5.8.1 Data Format file ............................................................................................................ 47
5.8.2 Address Format file....................................................................................................... 47
5.9 How to use Recipes ............................................................................................................. 50
5.10 Online Settings .................................................................................................................51
5.11 Quick Data Upload dialog box .......................................................................................... 51
5.12 Upload Data From PCD dialog box................................................................................... 52
5.13 Download Data To PCD dialog box .................................................................................. 53
5.14 Options dialog box............................................................................................................ 54
PG5 UpDownloadernew.doc 2/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
5.15 Channels dialog box ......................................................................................................... 55
5.16 About dialog box............................................................................................................... 55
5.17 Error Messages ................................................................................................................ 56
5.17.1 Command line errors..................................................................................................... 56
5.17.2 Syntax check errors ...................................................................................................... 57
5.17.3 Up/Download Errors...................................................................................................... 58
PG5 UpDownloadernew.doc 3/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
1. Introduction
This document describes the stand-alone up/downloader package, which can be installed without the presence of the entire Saia PG5. It also needs no software license to use it.
The package consists of three applications:
S-Conf : Online Configurator
S-Conf (Sconf.exe) is a stand-alone configurator for Saia PCD hardware. It allows the connected PCD's memory, communications and password to be configured online. It also has commands for displaying information from the PCD, uploading/downloading programs and data, controlling the CPU's status (Run/Stop/Restart), and even for downloading new firmware into the PCD.
Sload5 : Command-line Up/Downloader
Sload5.exe is a command line interface for the SAIA PCD up/downloader, for uploading and downloading SAIA PCD programs and hardware settings from the command prompt or from a batch file. It can also be invoked by other applications.
S-Dat : Data Transfer Utility
S-Dat (Sdat.exe) is a program for saving and loading a PCD's Register, Flag, Timer, Counter, Input/Output and/or Data Block values to/from text files. It has two modes, interactive mode and command-line mode. In interactive mode, it has a built in text editor for viewing, modifying or creating the address and data files which define the addresses and data to be up or downloaded. Command line mode up/downloads files using a command line and shows only the 'progress' dialog boxes.
2. Installation
The package is installed by running 'Sload513.exe'. This installs the communications driver and applications. If the PG5 is already installed, existing PG5 files will not be replaced.
PG5 UpDownloadernew.doc 4/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
3. S-Conf : Online Configurator
3.1 Introduction
S-Conf is a stand-alone configurator for Saia PCD hardware. It allows the connected PCD's memory, communications and password to be configured online. It also has commands for displaying information from the PCD, uploading/downloading programs and data, controlling the CPU's status (Run/Stop/Restart), and even for downloading new firmware into the PCD.
Hardware Settings are viewed and edited online, or can be downloaded from a file or saved in a file, type '.5hw', which is the file used by the PG5 Project Manager to hold a CPU's settings.
When S-Conf starts, it uses the online settings of the PG5 Project Manager's active CPU, or the last active CPU if Project Manager is not running. If the 'Auto Connect' option is enabled, then S-Conf will connect as soon as it starts (unless it's a dial-up modem channel).
S-Conf can be used even if another PG5 application is already online via the same serial port. Several PG5 applications can share the same port as long as they use the same communications channel.
Invocation: C:\Program Files\Saia-Burgess\PG5 1_3> Sconf32.exe
3.2 Main Window
Online Settings
If online, this shows the online settings of the connected CPU. If offline it shows the online settings of the CPU to be connected. The settings from the PG5's active CPU are used by default when S-Conf starts. Note that changing the online settings with S-Conf will not affect the online settings of the active CPU.
Tip: Before going online, check this to verify that you will connect to the correct CPU, especially
if on a network where the S-Bus station number should be checked. You can turn off the 'Auto Connect' option so that S-Conf won't connect automatically when it starts.
PCD Type
The connected PCD's type and subtype, e.g. PCD2.M480.
Version
The PCD's firmware version number. If it begins with 'B' then it's a Beta version. If it begins with '$' then it is a pre-release development version for testing or special purposes.
Program
The name of the program in the PCD. This is the first 8 characters of the PCD file name.
Date / Time
The PCD's date and time, read from its internal real-time clock. This can be set using the 'Online /Clock' menu command.
Day / Week
The day of the week (1..7) where 1 is Monday and 7 is Sunday, and the week of the year (1..54) which conforms to ISO 8601.
Status
The status of the connected CPU:
Run: The program is running. Conditional Run: The program is running but a breakpoint has been set. Stop at XXXXXX: The program has stopped at address XXXXXX. Halt at XXXXXX, dd/mm/yy hh:mm:ss: The program has halted at address XXXXXX, the date
and time of the halt are also shown. The next line shows the halt reason, such as "NO PROGRAM", see Halt and History messages.
Buttons
PG5 UpDownloadernew.doc 5/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
The buttons, such as 'Go Online' and 'Clock...' have the same functionality as the commands on the Online menu.
3.3 Menus
3.3.1 File menu
Open Hardware Settings File...
Opens an existing '.5hw' file for viewing, editing or downloading. Hardware Settings files are usually created by the PG5 Project Manager for each CPU, and can also be created by using the 'Online / Hardware Settings' command and pressing the 'Save As' button.
1, 2...
The list of most recently opened or created Hardware Settings files (.5hw). Click on a file name to open it.
Exit
Closes S-Conf.
3.3.2 Online menu
Go Online / Go Offline
Puts the PCD on/off line via the channel shown in the 'Online Settings'. If it fails to connect, check the Online Settings (see below), check the cable between the PC and PCD, make sure the PCD is switched on, then re-try the connection by pressing the 'Go Online' button again.
Online Settings...
Displays the 'Online Settings' dialog box which allows a communications channel to be configured for connection to the PCD, and also allows a CPU, S-BUS station number and/or telephone number to be entered. The appearance of the dialog box depends on the selected channel type.
NOTE
The 'Online Settings' command configures the channel for S-Conf only. If the Online Configurator is called from the Project Manager, changing the communications channel from the Online Configurator does NOT change the channel used by the PG5's active CPU. The CPU's channel must be configured using the Project Manager's 'Online Settings' command.
Hardware Settings...
PG5 UpDownloadernew.doc 6/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
Uploads the hardware settings from the connected PCD and displays them in the Hardware Settings dialog box. If OK is pressed, then the hardware settings are written back into the PCD, with or without the memory allocation which causes the user program(s) to be deleted.
Clock...
Sets the PCD's internal real-time clock, see the Set Clock dialog box.
S-Bus Station...
Allows only the S-Bus station number to be changed online, without stopping or resetting the PCD. (Downloading the full S-Bus configuration from the Hardware Settings dialog box always restarts the PCD.) If connected over an S-Bus network, S-Conf will reconnect to the PCD using the new station number.
Information...
Displays the Information dialog box which shows details of the PCD's hardware and software versions.
History...
Displays the History dialog box which shows the PCD's history table, and has a button for clearing the table.
Flash Backup/Restore > Backup User Program To Flash... Flash Backup/Restore > Restore User Program From Flash...
Copies the user program to or from the PCD's Flash memory, if fitted. See Backup/Restore User Program To/From Flash.
Run
Puts the CPU into Run mode. If the Run button is disabled it means the PCD is already running. Both Run and Stop are disabled if the PCD is in Halt.
Stop
Puts the CPU into Stop mode, program execution stops at the current location, which could be anywhere in the user program. If the Run button is disabled it means the PCD is already running. Both Run and Stop are disabled if the PCD is in Halt.
Restart
Resets the CPU and moves its instruction pointer to the start-up XOB 16 (if XOB 16 is not present the instruction pointer is moved to the start of COB 0). The CPU remains in Stop mode until a Run command is done.
WARNING
If online to CPU 0 of a PCD4 or PCD6 with more than one CPU, these commands will control
ALL the CPUs.
3.3.3 Tools menu
Download Program...
Downloads a user program from a '.pcd' file, see Download Program.
Upload Program...
Uploads a user program into a '.upl' file, see Upload program.
Upload All...
Uploads everything in the PCD's memory (code, text, data, media values etc) and saves it in a file. This command is often used before changing a battery or memory chip. See Upload All.
Download All...
Downloads everything into the PCD's memory from a file created by the 'Upload All' command. See Download All.
Online Debug
Opens S-Bug, the Onlone Debugger.
Download Firmware
Opens the Firmware Download Utility which allows the firmware in more recent PCD models to be updated from a file distributed by Saia. Firmware updates can be obtained from your Saia representative or from the SBC Support website.
PG5 UpDownloadernew.doc 7/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
3.3.4 Options menu
Auto Connect
S-Conf normally connects to the PCD when it starts, unless the configured channel is for a dial­up modem which is not online. Uncheck this option if you don't want S-Cont to try to connect whenever it is opened. If unchecked, then you must use the 'Go Online' button or menu command to connect.
Always On Top
Toggles the 'always on top' state. When checked, S-Conf is always displayed in front of all other windows.
Channels...
Displays the Channels dialog box, allowing the settings of each available channel to be viewed or configured, and new channels to be created.
3.3.5 Help menu
Help Topics
Displays the Contents/Index/Find help dialog box.
About S-Conf...
Displays the About dialog box.
3.4 Dialog Boxes
3.4.1 S-Bus Station dialog box
This command allows the connected PCD's S-Bus station number to be changed without restarting the PCD. This is useful if you need to change the station number of a PCD which is in use, because it does not interrupt program execution..
If communicating via S-Bus, the PCD will stay online using the new station number.
To change other S-Bus settings in the PCD use the Hardware Setting's S-Bus page.
3.4.2 Information dialog box
Displays information about the PCD's firmware, hardware and fitted communications cards. Information from the communications cards requires a full protocol (PGU) connection.
Production Information group
PG5 UpDownloadernew.doc 8/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
Production information which is programmed into the PCD's non-volatile memory during manufacture. Not all PCD models contain this data, a "Production Information not available" error will occur if the connected PCD does not have this data.
PCD Type
The PCD model type.
System ID
The PCD model subtype. Known types are shown as texts, e.g. "M110", "M220". If "?" is shown then the model is unknown (new PCD model, or invalid). Its hex value is shown in brackets.
Firmware Version
The version of the PCD's operating software, e.g. 002. If the version contains an 'X' or a '$' it signifies that the firmware is a pre-release or custom version.
Hardware Version
A single ASCII character which identifies the PCD hardware version. It is normally a letter between 'A' and 'Z'. This letter can also be found on the printed circuit board after the part number. Its hex value is shown in brackets.
Modifications
Shows which hardware modifications are present, 1..8. E.g. "1 2 3 5". Each number indicates a particular hardware modification or feature, whose values depend on the PCD type. "None" is shown if there are no modifications. Its hex value is shown in brackets (bit 0=mod.1, bit 7=mod.8).
Fab. Date (year/week)
Fabrication date. The year and week when the PCD was manufactured. Years earlier than 1996 are probably invalid, as are values containing the letters 'A'..'F'.
BAD CHECKSUM (was xxxxh, expected yyyyh)
The production information has a checksum so it can be validated. This message is displayed if the PCD has production information but its checksum is wrong. This probably means that the production information data has not been programmed. The data is displayed anyway, but may not be valid. The expected and actual checksums are shown in hex.
The following fields are shown only for the PCD3.
Serial Number
Each PCD has a unique serial number.
MAC Address
The 'Media Access Control' address, see below for details.
Slot B1, Slot B2 groups These show information about the communications cards fitted in Slot B1 and Slot B2, if available. Not all PCD types and firmware versions can provide this information, so the fields may be empty. They are not shown for PCD3 types.
Type
The card type, e.g. PCD7.F650. <unknown> will be shown if the PCD's firmware cannot provide the information or if it's a reduced protocol connection. <none> will be shown if there is no card fitted, or if it's a non-intelligent card which cannot provide any information. The PCD2.F510 (LED display only) always shows <none> because it's not an intelligent card.
Version
The revision of the card.
Modifications
List of modifications made to the card.
Fab. Date (year/week)
Fabrication date, the year and week when the card was manufactured.
MAC Address
The 'Media Access Control' address, a hardware address that uniquely identifies each node of a network. In IEEE 802 networks, the Data Link Control (DLC) layer of the OSI Reference Model is divided into two sublayers: the Logical Link Control (LLC) layer and the Media Access Control (MAC) layer. The MAC layer interfaces directly with the network medium. Consequently, each different type of network medium requires a different MAC layer.
PG5 UpDownloadernew.doc 9/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
3.4.3 History dialog box
The History is a list of all PCD errors which have occurred since the table was last cleared.
The three most common entries, listed below, are always present. These have a 'count' value which indicates the number of occurrences of the error in the Count column, the address of the last occurrence in the Address column, and the date and time of the last occurrence. If no error has occurred since the last time the history table was cleared, the date and time values show the date and time the history table was cleared. The 'Clear History' button deletes all entries except these four most common errors.
The window may contain additional entries for individual errors which are less likely to occur. These do not contain a count. If more than 12 of these errors have occurred, preceding errors are lost. The history table only logs the last 16 errors.
These are the three errors which are always shown, with counts. Other errors are listed in Halt and History Messages.
BATT FAIL
The battery on the memory module or CPU card needs to be replaced. Data in battery-backed RAM may be lost if the PCD is powered off.
IR OVERFLOW
Index register overflow. The user program contains an error which causes the Index Register to be incremented beyond its maximum value. The "Address" shows where the problem occurred, usually the line after the offending instruction. The user program should be corrected.
ERROR FLAG
The error flag was set because of an error in the user program. The "Address" indicates where the problem occurred. The user program should be corrected. The error flag can be set by things like a divide by zero, or sending data to an uninitialized serial port.
PG5 UpDownloadernew.doc 10/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
3.4.4 Halt and history messages
If the PCD detects a fatal error it loads the 'Halt Reason Register' with a text.
For non-fatal errors, the 'History Table' is loaded with a text. The History Table stores the last 12 errors in a circular buffer. The four most common errors have fixed positions at the end of the table, and have counters which indicate how many of these events have occurred. If the History table is cleared then these counters are set to zero and the time and date are set to the time the history was cleared. This table can be viewed with the History command.
The messages are listed in alphabetical order.
68K ADDR ERROR 68K CHK INSTR 68K INVALID OPC
68K TRAPV INSTR
>32 ST/TR ACTIVE >7 CALL LEVELS BAD MEM EXT INIT BAD MODEM STRING BAD TXT/DB TABLE
BAD USER MEMORY
BATT FAIL nnn BLOC NONEXISTANT BUS QUIT FAILURE CHECKSUM FAIL
COB NBR TOO BIG CONFIG TOO LONG CPU 0 START FAIL
Attempted to access an odd address. Internal system firmware error. Invalid 68000 instruction executed. Often caused by a missing end of block instruction or corrupted RAM memory. Internal system firmware error.
Too many active Graftec tasks (TRs). PB/FB call nesting depth overflow. Extension Memory or EMI segment corrupted. Invalid modem configuration string, or string too long. Text/DB memory corrupted. Can also be caused by an out-of­range Text or DB address. Wrong type of Flash EPROM installed, or Flash EPROM is write­protected. The memory backup battery must be replaced. Call to missing PB, FB, SB, ST or TR. Program attempted to access a non-existent card. Invalid user program checksum, EPROM only. Download the program again. COB number out of range (0..15). HW settings in Extended Header are too long for the EEPROM. No CPU can be put into Run without a program in CPU 0.
PG5 UpDownloadernew.doc 11/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
CPU FIRMWARE MIX
CPU NUMBER > 6 CPU SYNCH ERROR CSF INV PAR NBR DIFF CFG CH x DOUBLE TIME BASE DUART HW ERROR ERROR FLAG nnn EVERYTHING IS OK EXT DEVICE FAIL EXT HEADER FAIL EXTHDR EEPR FAIL
EXTERN PWR FAIL FABINFO CRC FAIL FB NBR TOO BIG HALT INSTRUCTION HALTED BY CPU 0 HALTED BY LAN 2 HEADER FAIL
ILLEGAL AUTO VEC INCLUDED TEXT >3 INIT STEP FAIL INTERRUPT ERROR INVALID OPCODE
IO QUIT FAIL nnn IP CH nnn NO MEM IP FAIL NO IPM
IP FAIL PORT n IP FAIL SASI DBX IP FAIL SASITEXT IP FAIL TOUT IP SB GWY FAIL IPM DON’T RESTART IPM HAS OLD FW IPM NOT PRESENT IR OVERFLOW nnn IST NBR TOO BIG LAN 2 WATCHDOG LON FAIL MANUAL HALT MEDIA CORRUPTION MEM EXT CORRUPT MEM EXT ERROR
MEMORY LOSS
MGWAY INIT FAIL MISSING MEM PACK MODIFIED PROGRAM
MODEM: ERROR
If more than one CPU is fitted, they must all have the same firmware versions. The CPU number set by the DIL switches on a PCD6 is invalid. SYNCH S2 timeout occurred. Invalid parameter number for CSF instruction. Different configuration on Profi-S-Net port x. DEFTB and DEFTR instructions used in the same program. One of the serial port UARTs is defective. Error flag set, nnn indicates the number of times it's been set. Normal power-up message. Hardware failure in plug-in card. Extended Header is corrupted, download the Memory Allocation. Error in EEPROM Extended Header, download the Memory Allocation. Extension rack power failure. Invalid checksum of fabrication information, contact Saia-Burgess. FB number out of range. HALT instruction executed by the user program. Co-processor has been halted by CPU 0. LAN2 coprocessor has put the CPU into HALT. Bad memory allocation or header corrupted, download the Memory Allocation. Internal system firmware error, contact Saia-Burgess. Text nesting depth overflow in STXT. More than 32 Graftec Initial Steps (ISTs) have been defined. Internal system firmware error, contact Saia-Burgess. An invalid user program instruction has been found. Note that some instructions are not supported by new PCD types (DSP, OUTS, STHS, LAN2 instructions. An I/O address has been accessed which is not present. Not enough memory to open TCP/IP channel in Open Data mode. An IP function has been carried out, but the PCD has no IP configuration. Incorrect port number in Ether-S-Bus master SASI text. Error in node list configuration DBX. Error in SASI instruction text. Incorrect timeout value in Ether-S-Bus master SASI text. TCP/IP S-Bus gateway could not be initialized. PCD has restarted but IPM module doesn't respond. Firmware in the IPM module is not compatible with PCD FW. IP Module (for TCP/IP) not fitted, or wrong slot selected. Index register incremented beyond 8191. IST number out of range. The LAN2 FW watchdog has been activated. Invalid LON port assignment. CPU has been halted by the HALT switch. Battery backed RAM failed, stored media values may be invalid. Extension memory corrupt, or a Text/DB address is out of range. Extension memory corrupt, halts if extension memory cannot be re-initialized from the extension memory initialization (EMI) segment. Caused by battery failure if RAM memory. Use the TEST 400 instruction to detect the error. Master gateway port configuration is invalid. Memory module not fitted. User program has been modified in the PCD's memory by a programming unit. This is only shown if memory is write-protected. Unknown modem error.
PG5 UpDownloadernew.doc 12/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
MODEM: INIT FAIL MODEM: NO MODEM MODEM: RESET FAIL MODEM: UART FAIL NO COB NO PROGRAM NOT RUN ON xx7HW PARITY FAILURE PB NBR TOO BIG PRIVILEGE VIOL PROF DP FAIL nnn
Error initializing modem. No modem fitted, or modem defective. Error on modem reset command. UART does not accept configuration. The user program does not contain a COB, it cannot be run. CPU has no user program to execute. PG5 user programs cannot be run on xx7 hardware. Data error on main external bus. PB number out of range. Internal system firmware error. Invalid PROFIBUS DP port assignment, nnn is the error number, see list below.
PRT2 DBL ASSIGND PRT3 DBL EQUIPED PSBUS GWY FAIL PSBUS PGU FAIL PS FAIL SAP PS FAIL SASI DBX PS FAIL SASITEXT PS FAIL TOUT PSM NOT PRESENT REG>4095 NOT SUP
Port 2 assigned as S-Bus PGU and XOB 20 or 25 programmed. Port 3a and 3b are fitted on a PCD6.M3. Profi-S-Bus gateway could not be initialized. Profi-S-Bus PGU could not be initialized. Incorrect SAP number in Profi-S-Bus master SASI text. Error in Profi-S-Bus node list configuration DBX. Invalid Profi-S-Bus SASI text. Incorrect timeout value in Profi-S-Bus master SASI text. Missing Profi-S-Net (Profibus) module. The firmware or PCD type doesn't support Registers above 4095. Currently only the PCD2.M480 and PC3.Mxx have 8192 Registers.
RTC FAILURE RTC NOT EQUIPPED
Real-time clock (RTC) is defective. The real-time clock on the PCD4's memory module is not present or is defective.
SB NBR TOO BIG SBUS PGU ERROR
SB number out of range. Invalid S-Bus PGU port assignment. Check the Hardware Settings.
SF NOT LOADED ST NBR TOO BIG
System Function (called by CSF) is not loaded, missing DBX 7. Graftec Step (ST) number out of range. Max. ST number depends in the PCD type.
SYSTEM OVERLOAD SYS TYPE ERROR SYS WDOG START TEXT SEGM. ERROR
Too many block calls. The system type in the Production Information is not correct. Restart caused by system watchdog. Text/DB segment corrupted, or the user program contains extended data blocks (DBX) which are not supported by the PCD's firmware.
TR NBR TOO BIG
Graftec Transition (TR) number out of range. Max. TR number depends on PCD type.
TRACE TEXT/DB HW ERROR USR MEM HW ERROR WATCHDOG FAIL XOB NBR TOO BIG XOB 0 EXECUTED XOB 0 START EXEC XOB 0 WDOG START XOB20/25 MISSING ZERO DIVIDE
Internal system firmware error. Text/DB memory failed, or incorrect memory allocation. User memory test failed. Restart executed by software watchdog timeout. XOB number out of range. XOB 0 executed during power down. XOB 0 has been started. XOB 0 executed by WDOG timeout. Interrupt input active and no XOB 20 or 25 programmed. Internal system firmware error.
PROF-DP FAIL xxx Error Codes
xxxx
Description
0 Key word MODE: not found
PG5 UpDownloadernew.doc 13/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
0 Wrong mode specified 0 Key word CONF: not found 0 DBX key word not specified 0 DBX number error 0 DBX number to large 0 DBX does not exist 0 Key word DIAG: not found 0 Flag or output key word not specified in DIAG 0 Error in address of diag flag or output 0 Range error diag flag or output 0 Register key word not specified in DIAG 0 Range error diag register 1 PROFIBUS-DP HW card not present 2 Error in instruction 3 DBX structure error 4 DBX type not for DP master (no PROFIBUS DBX) 5 FW-DBX version not compatible 6 No IN RING message after timeout on initialization 7 Semaphore error for data exchange (info to PCD support) 8 DBX error: data transfer function not implemented 9 Incompatible PCD7.F750 and PCD hardware
3.4.5 Download Hardware Settings dialog box
Pressing 'OK' will writes the Hardware Settings back into the connected PCD.
Download To PCD
Describes the destination PCD, it's type and channel etc. Verify that this is correct before downloading the settings. You will not be able to download the settings if the PCD type does not match the actual PCD type.
Which Settings group
Memory Allocation - the user program is deleted checkbox
When checked, the memory will be reallocated, which deletes all the user programs in the PCD. This is normally only necessary if the memory size has been changed, or if memory partitioning on a multi-CPU PCD4 or PCD6 has been changed. If you receive an error 'Not enough space for extended header', check this box to reallocate memory and make space for the configuration data.
S-Bus, Serial, Profi-S-Bus, TCP/IP, Gateway checkbox
Downloads the communications settings.
Password checkbox
Downloads the password. Note that this will remove password protection if the 'Password Protection' checkbox on the Hardware Settings dialog box is unchecked.
NOTES
Changes made online to the hardware settings will not update the PG5's Hardware Settings file (.5hw). The changed settings can be uploaded to the project using Project Manager's 'Online / Hardware Settings / Upload' command.
To remove the S-Bus, Gateway, Modem and/or TCP/IP configuration Uncheck the relevant checkbox on the Hardware Settings pages, then download the 'S-Bus, Serial .. Gateway' settings.
Operation not supported by PCD F/W version error Some old hardware or firmware may not support all Hardware Settings options. This error is normally caused by one of the following :
- S-Bus mode : old systems do not support Data Mode
- Password : old systems do not support a password
PG5 UpDownloadernew.doc 14/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
- Extension Memory : old hardware does not have extension memory For the S-Bus mode and password, a firmware upgrade may be available.
User memory write error This is usually caused by :
- missing memory chip or memory chip incorrectly inserted
- wrong type of memory chip
- wrong RAM/EPROM/FLASH jumper setting
- read-only jumper RO is in, and memory is write-protected
- USER PROG jumper (PCD2) incorrect for memory chip size
Changing communications settings If you change the PCD's communications settings, and these settings are being used for communications, you may put the PCD off line. For example, if communicating via TCP/IP and you then disable TCP/IP support in the PCD, then the PCD will go off line with a 'no response' error after the new settings are downloaded. Some firmware versions will return a 'NAK response' if you try to change communications settings which are in use.
PG5 UpDownloadernew.doc 15/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
4. Sload5 : Command-line Up/Downloader
NOTE
Users should normally use the Online Configurator, S-Conf, for up and downloading programs and hardware settings. Sload5 is an advanced tool for experienced users.
4.1 Introduction
Sload5.exe is a command line interface for the SAIA PCD up/downloader, for uploading and downloading SAIA PCD programs and hardware settings from the command prompt or from a batch file. It can also be invoked by other applications.
Because Sload5 command lines contain many switches, it can also be run in intercative mode, with a user interface to select the options and generate the command line text, which is then copied to the clipboard ready for pasting into a batch file.
Up/download operations require a PCD program file name (.pcd or .upl) or PCD memory image file name (.im5), and an optional hardware settings file name (.5hw) which is usually copied from the PG5 project. Instead of supplying separate file names, a single file name is used, and SLOAD5 will add the different extensions. For example, downloading the program file "C:\My Projects\My CPU\My CPU.pcd" will automatically use hardware settings file "C:\My Projects\My CPU\My CPU.5hw". This is because the PG5 Project Manager uses the same name for both files.
The hardware settings file contains the online settings (channel name, CPU number, station number etc). The hardware settings file can optionally contain the channel configuration (protocol, COM port, baud rate etc) which can be used to create a new channel on the target PC if it's not already configured. The channel settings must be added to the hardware settings file by pressing the 'Write Channel Settings To File' button. The hardware settings file is not needed if the hardware settings do not need to be downloaded and the communications channel is already defined on the target PC.
The customer who uses SLOAD5 for downloading a PCD program update will usually receive a program file, e.g. 'filename.pcd', the associated hardware settings file, e.g. 'filename.5hw', and a batch file, e.g. 'dodownload.bat', which contains the command to execute SLOAD5 with the correct command line. An indirect command filecan also be used instead of command line parameters.
Main Features
Powerful command line for upload, download, run and restart operations.
Download entire program or selected segments (code, text, extension memory).
Download hardware settings or selected settings (memory allocation, S-Bus, Password).
Upload a user program to a '.upl' file.
Upload the hardware settings to a '.5hw' file. This can be used by the PG5.
Upload All/Download All : saves/restores the entire PCD memory, for battery or memory change
etc..
Uses online and channel settings defined in a hardware settings file ('.5hw'), which is an editable file.
Can create a channel if the desired channel is not already configured on the host PC. The channel configuration can be copied into the hardware settings file (.5hw), and SLOAD5 will create the channel if it does not already exist.
Two modes of operation "batch mode" and "interactive mode". With command line switches it runs in batch mode and shows only the progress dialog box. Without the switches (or with the /GUI switch), it runs in interactive mode with a user interface for entering data and generating a command line text.
Selectable Extension Memory Initialisation (EMI) segment: Full/Compact/None
Options to "Copy To Flash" and "Copy From Flash".
PG5 UpDownloadernew.doc 16/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
Can use an indirect command file instead of a command line to supply its commands, e.g.
SLOAD5 @"filename.cmd"
Can optionally put the CPU into Run after a successful download.
Can be used to restart a CPU and put it into Run without doing a download.
Option to use the PG5 Project Manager's upload and download dialog boxes, see the
/PG5DIALOGS switch.
Handles password protected PCDs, by using an encrypted password, see /PASSWORD switch.
Can set the PCD's clock from the PC's clock.
Serial ports COM1 to COM255 can be used, see /COMn switch.
Can verify the target CPU using the CPU's unique serial number (currently PCS1.C8 only), see
/SERIALNO switch.
/IPADDS=n.n.n.n switch to set the TCP/IP address.
4.2 Command Line Parameters
SLOAD5 is invoked with this command line:
SLOAD5 ["filename"] [switches]
or
SLOAD5 @"command_filename[.cmd]"
Items in square brackets [..] are optional.
"filename"
The filename must be enclosed in double quotes. This can be the name of a PCD program file (.pcd), PG5 hardware settings file (.5hw), or uploaded program file (.upl), depending on the selected operation. You do not need to use an extension unless downloading a '.upl' file, because SLOAD5 adds the file extension according to the operation. If you do use an extension, you should use the right one: if downloading a program (/DNLD switch) use '.pcd' or '.upl'; if downloading hardware settings (/DNHW switch) use '.5hw'; if up/downloading both a program file and the hardware settings you can use either extension, '.pcd', '.upl' or '5hw'. For 'Upload/Download All', use '.im5'. SLOAD5 will create the file names it needs for each operation by changing the extension.
@"command_filename[.cmd]"
This is the name of an indirect command file which contains the command line, preceded by an @ sign. The contents of this file is read and processed as if it was part of the command line. You can also supply additional switches on the command line too. The default filename extension is '.cmd', but any extension can be used. If the filename contains spaces it must be enclosed in double quotes, e.g. @"Command File Name.cmd". The command file should contain the "filename" and switches exactly as they would be on the command line, except they can be on one or more lines in the file. Example: To run SLOAD5 using command line parameters in file command.cmd, and force interactive mode to be used. SLOAD5's dialog box shows the switch settings. SLOAD5 @command.cmd /GUI
switches
Switches are one or more words beginning with a forward slash '/', see the list below. The switches define the online connection, CPU and station number, and the operation(s) which will be done. Switches can be in upper or lower case, e.g. /DNLD is the same as /dnld. Not all switches are compatible with each other, for example, you cannot use /UPLD (upload program) and /DNLD (download program) together, or /COPYTOFLASH and /COPYFROMFLASH together. SLOAD5 will display an error message if incompatible or invalid switches are used.
PG5 UpDownloadernew.doc 17/58
Saia-Burgess Controls Ltd. Bahnhofstrasse 18 I CH-3280 Murten I Switzerland T +41 (0)26 672 71 11 I F +41 (0)26 670 74 99
The best way to create a command line is to open SLOAD5 in interactive mode, enter the file name and select the options you need, then press the 'Copy Command Line to Clipboard' button. This creates the command line for you, and you can then paste it into a batch file or other text document.
/ONLINE="channel_name"[,cpu[,stn]] /ONLINE=PG5 /ONLINE=5HW
This switch defines the 'online settings' - which channel, CPU and S-Bus station number will be used. If not used then the default is to use the settings from the Hardware Settings file (.5hw). channel must be one of these values : "channel_name" : The name of a channel which is already defined on the PC. The channel
name must be enclosed in double quotes, e.g. "PGU". cpu and stn : The optional CPU and S-Bus station numbers. If the PG5 or 5HW options are used, then the CPU and station numbers are read from the Registry or '.5hw' file, but can be overridden with these options. If "channel_name" is used, cpu and stn will default to CPU 0 and station
0. The station number stn is ignored if it's not an S-Bus protocol channel. PG5 : Use the online settings of the currently active or last active CPU in the PG5's Project Manager. The PG5 keyword must not be in double quotes, e.g. use /ONLINE=PG5. 5HW : The default if there's no /ONLINE switch. Uses the online settings and channel definition from the hardware settings file (.5hw). The PG5 always saves the CPU's 'Online Settings' in this file (see the [GoOnline] section). It does not save the channel settings. If the channel is not defined on the target PC, then SLOAD5 can create it from the channel definition in the '.5hw' file. If using PG5 V1.2, the only way to put the channel definition into the file is to use interactive mode's 'Write Channel Settings to File button. The 5HW keyword must not be in double quotes, e.g. use /ONLINE=5HW. Examples: To use channel S-Bus, CPU 0, station 12:
/ONLINE="S-Bus",0,12
To use channel MyChannel, CPU 0, station 0 :
/ONLINE="MyChannel"
To use the channel, CPU and station number defined in hardware settings file "MyFile.5hw" :
SLOAD5 "MyFile.pcd" /DNLD
or SLOAD5 "MyFile.pcd" /DNLD /ONLINE=5HW To use the Project Manager's active CPU's channel, CPU number and station (useful for add-on tools) :
/ONLINE=PG5
NOTES
On a PCD4 or PCD6, it is not necessary to be physically connected to the target CPU, programs can be downloaded through any CPU, but note that hardware settings can only be downloaded to CPU 0. The /ONLINE switch cannot be used with the /GOONLINE switch.
/GOONLINE="filename[.ini]"
The online settings are read from the [GoOnline] section in file filename, which has the default file type '.ini' . This is similar to the /ONLINE=5HW setting described above, but a different file is used. The /COMn, /IPADDS, /PHONE, /STN and /FDLADDS override switches can still be used. The file's [GoOnline] section can be viewed and edited with the 'Online Settings…' button. Use the '>' browse button to choose an existing file. This switch cannot be used with the /ONLINE= switch.
/COM1 .. /COM255
COM port override switch. To save defining a new channel for each serial COM port, this switch can be used to override the COM port in the online settings. It is used only for serial RS-232 or RS-485 channels. Only one switch is allowed on the command line. These switches cannot be configured from interactive mode.
PG5 UpDownloadernew.doc 18/58
Loading...
+ 40 hidden pages