SIMATIC 505 SoftShop for Windows Release 3.
! DANGER DANGER indicates an imminently hazardous situation that, if not avoided, will result in death or serious injury. DANGER is limited to the most extreme situations. ! WARNING WARNING indicates a potentially hazardous situation that, if not avoided, could result in death or serious injury, and/or property damage. ! CAUTION CAUTION indicates a potentially hazardous situation that, if not avoided, could result in minor or moderate injury, and/or damage to property.
Contents 1 - Introduction 1 Manual Design ................................................................................................................................1 Customer Support............................................................................................................................2 505 SoftShop for Windows Overview.............................................................................................3 What is 505 SoftShop for Windows? ..................................
Reading or Writing 575 Port Configuration....................................................................25 Saving Logic Programs .................................................................................................................27 Saving Offline .................................................................................................................27 Save/Save As Online.......................................................................................................
Status Word Memory ......................................................................................................68 Timer/Counter Memory ..................................................................................................69 Table Move Memory.......................................................................................................70 One Shot Memory ...........................................................................................................
Clear a Forced Element .................................................................................................106 Complete Cross Reference ..........................................................................................................106 Ladder Network Cross Reference................................................................................................108 Address Used...............................................................................................................
8 - Analog Alarms 142 Overview .....................................................................................................................................142 Analog Alarm Editor.....................................................................................................142 Copy and Paste Alarms ...............................................................................................................144 Analog Parameters................................................................
Process Variable Alarm High-High ..............................................................................155 Remote Setpoint ............................................................................................................155 Clamp Setpoint Low/High ............................................................................................155 Loop Gain .....................................................................................................................155 Reset Time .......
1 - Introduction Manual Design Welcome to 505 SoftShop for Windows, a powerful Windows-based tool for programming programmable logic controllers (PLCs). Whether you are a novice or an experienced programmer, this manual has been constructed to help you begin using 505 SoftShop for Windows quickly. We at Siemens have tried to assume little about you, the user, except that when you have a question regarding this software, you will want it answered by using this manual and the online help.
Customer Support From time to time you may find that this manual and the online help cannot answer your question. Siemens’ Customer Support staff will gladly help you find the answers to your questions.
505 SoftShop for Windows Overview What is 505 SoftShop for Windows? 505 SoftShop for Windows is one of the world’s most powerful and exciting programmable logic controller (PLC) programming software offerings.
Software Requirements You also need the following software loaded on your computer before you install 505 SoftShop for Windows: • Windows 95, 98, NT or 2000 Parallel Port Compatibility Connecting the Siemens-Key to your computer’s parallel printer port or USB is required to use 505 SoftShop for Windows, except when in the demo mode. Procedures for installing the Siemens-Key and 505 SoftShop for Windows are outlined in the next chapter.
2 - Installation Installing 505 SoftShop Before you begin installation, you should review the System Requirements section in the Introduction chapter. To install 505 SoftShop, turn your computer on and start Windows. Usually, Windows can be started by typing "win" at the C:\> prompt. The Windows Program Manager appears on the screen. Follow these steps to install the software: Simatic 505 SoftShop 1. Insert the 505 SoftShop Disk in your computer’s CD-ROM drive. 2.
Figure 2.0 505 SoftShop Access Level Full-function install allows full access to all features of 505 SoftShop. Read-only install will not allow the user to access the following: • File Menu operations-New, Open (Online), Save, Save As, Import, Export, and Merge. • Edit Menu-Undo, Cut, Copy, Paste, Clear, Delete, Insert, Append, and Select All. • View Menu-Ladder Editor, Special Function Editor, PID Loops, Alarms, Documentation Window, Symbol Library, and Data Window are all view only.
5. • Configuration Editing-Memory configuration editing, set PLC Scan Time, 505 I/O Edit, Profibus I/O Edit, Watchdog Timer Edit, and Time of Day edit. • Utilities Menu-Diagnostics on bases, Task Codes per scan, Port Lockout, Clear U Memory, and Password. After making your selection, click Next. Installation begins and a message appears telling you that the 505 SoftShop Installation Utility is loading.
2. A parallel port driver may be missing. 3. If you are running Windows NT, the NT driver may not be loaded. Remedy: Check to see that: • The Siemens-Key is connected to a parallel port. • The Siemens-Key is the first device attached to the computer. • That the parallel printer attached to one of the parallel printer ports is turned on. • Add the port driver : 1. Go to the DOS prompt of 505 SoftShop directory. 2. Type RNBODRVS and press enter.
Possible Cause The key date does not support the current software version. Remedy • Call Siemens Technical Support. Message Siemens-KEY is corrupt. Demo mode may be entered. Possible Cause You purchased a partial software package, and the partial package information cannot be read from the Siemens-Key. Remedy • Call Siemens Technical Support. Connect the Communications Cable The PLC communications cable connects the serial COM port of the personal computer to the PLC.
Prg Device FOIL BRAID SHIELD Controller BRAID FOIL SHIELD 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 - Transmit (TD) 3 - Receive (RD) 4 - RTS 5 - CTS 6 - DSR 7 - Signal Ground 8 - DCD 20 - DTR Drainwire Copperfoil Shield Drainwire Connector Shell P1 Copperfoil Shield Connector Shell P2 2.
Cable Pin-Outs for RS-422 Ports If your controller has an RS-422 port, you can connect through the RS422 port on your programming device. Use the pin-out values shown in Figure 2.4 for the RS-422 cable. Signal Pin Signal DI+ 1 DO+ DO+ 5 DI+ GND 6 GND DI- 7 DO- 8 DI- DO- 9-Pin D-Type Male Connector Figure 2.
3 - 505 SoftShop Basics Welcome to 505 SoftShop Software Features If you are new to the Windows environment, we suggest reading the preceding chapter before continuing with this chapter. This chapter will get you started using 505 SoftShop. Although you should progress at a rate comfortable for you, we recommend following the manual outline in your approach to programming. Advancing through the chapters in this order will help ensure a more efficient use of the software.
Figure 3.0 If you see this message, check to see that the Siemens-Key is: • Connected to a parallel printer port or • Connected to a parallel port before printers or other devices • See Installing the Siemens-Key section in Chapter 2 Installation for more information After you have checked the key’s installation, load 505 SoftShop from the icon. If 505 SoftShop continues to not detect the Siemens-Key, please call Siemens Customer Support at 1-800-964-4114 immediately.
Window Description The key features of the 505 SoftShop window shown in Figure 3.1 are defined below. More detailed descriptions follow. Window Feature Function Instruction Bars Use to add instructions, new rows, and new networks/addresses to a logic program. See Instruction Bars. Menu Bar Use to select 505 SoftShop functions. See Menu Bar. Multiple Program Windows Displays view and edit windows of multiple logic programs at the same time, limited only by the size of your computer’s memory.
Menu Bar The menu bar, located just below the title bar, identifies the names of the available 505 SoftShop functions. To display the menu options for each function, click on the function name. The menu options displayed may change depending upon the operation in progress. Select File, New Program or Open Program and the following Menu Bar appears (Figure 3.2). Figure 3.2 The Restore button appears on the Menu Bar when a program window is maximized.
Status Line The Status Line spans the bottom of the 505 SoftShop window. It displays information or describes the current operation on the left side. To display status line information for a menu item or button, click on the item or button and hold the left mouse button. The right side of the Status Line displays the information listed below. Status line Function PLC Path The first shadowed box on the status line displays the route defined for the active program.
Title Bar The Title Bar spans the top of the 505 SoftShop window (Figure 3.4). Use the Title Bar to: • Identify the application you are using. In Figure 3.1, the application is SoftShop. • Move the window. Click the title bar with the mouse pointer, hold down the left mouse button and drag to the desired location to move the window. • Change the size or position of the window. The following buttons appear in the corner of the title bar: Figure 3.
Click To Fast PLC Connection. Create a new program. See Creating New Logic Programs. Open an existing program. See Opening Logic Programs. Save the active program. See Saving Logic Programs. Print. See Printing Logic Programs. Cut the highlighted section to the clipboard. See Editing Logic Programs. Copy the highlighted section to the clipboard. See Editing Logic Programs. Paste a section from the clipboard. See Editing Logic Programs. Find a network, address, or tag.
Working With Logic Programs 505 SoftShop provides you with a number of different ways of editing programs. These include: • Connecting to a PLC to view logic stored in the PLC • Creating a new program offline • Loading a file online • Loading a file offline • Attaching documentation to an online program Before you can perform any editing, you must first open a logic program. Creating a New Logic Program With 505 SoftShop, it’s easy to create a new program.
Open an Existing Logic Program Offline or Online You can open an existing logic file to edit or update program information in either online or offline mode. Logic programs may contain one or more of the following: logic and data, tags, headers, and descriptions and comments. Several programs may be open at one time without losing memory contents. Editing or modifying a program online may produce unexpected or hazardous results. To open an existing program: 1.
5. To set up shared documentation, click the Advanced button on the Open Program dialog box. Result: The Share Address Documentation dialog box appears. 6. Enter the share address documentation program name in the Shared File and Path line or select Browse to locate an existing file. 7. Click Next and enter the refresh rate (time lag between updates from other users of the database). Valid times are from 1 to 1440 minutes. 8. Click Next and Finish. 9.
• PID Loops • Analog Alarms • Force States • Documentation (Tags, Descriptions, Comments and Headers • I/O Configuration • Profibus • V-Variables • K-Constants • Word I/O • U-Memory Editing or modifying a program online may produce unexpected or hazardous results. To Load parts of an existing program you must first established an online connection with the PLC (see Fast PLC Connection - Connecting to a PLC). Then: 11. Select Load By Parts from the File menu (Ctrl+B).
17. Enter the share address documentation program name in the Shared File and Path line or select Browse to locate an existing file. 18. Click Next and enter the refresh rate (time lag between updates from other users of the database). Valid times are from 1 to 1440 minutes. 19. Click Next and Finish. 20. Click OK or press Enter to load. NOTE If your controller is a 575, refer to Connecting Online to a 575 in this chapter for information on selecting Application ID and configuring ports.
If a file is being loaded from disk to the controller and the disk file Application ID is different than the connecting PLC’s ID; a warning appears describing that the loading file ID is different. Select OK to continue the load or Cancel to abort. Reading or Writing 575 Port Configuration To read or write the 575 port configuration, click on the Port Settings button in the Application ID Table dialog box. The Port Settings Dialog box appears (Figure 3.8). Figure 3.
Importing Documentation Use the following procedure to import documentation. 1. Type the program name in the File name field, or click Browse to search from valid program names (Figure 3.9). 2. Click OK to import the program. Figure 3.9 Use the Tag/Description Text File to merge Tags or Descriptions from the ASCII text files exported by SoftShop for Windows into the currently opened program. The default file extension is *.TXT but alternate extensions are allowed.
Saving Logic Programs Saving Offline Use the Save Program command to save the active program contents with its existing name. To save the active logic program: 1. Click on the Toolbar or select Save Program from the File menu (Ctrl+S), and a previously saved logic program is saved. 2. If the program has not been previously saved, the Save As dialog box appears (Figure 3.10). Select the desired location to save the program, and type in a name for the program in the File name field. Figure 3.10 3.
To save the active logic program: 1. Click on the Toolbar or select Save Program from the File menu (Ctrl+S). Result: The Save dialog box appears (Figure 3.11). Figure 3.11 2. In the Save select the parts of the program you wish to load or select Load Complete Program to load all parts. 3. If the program has not been previously saved or you wish to change the file name, select the Browse button, and type in a name for the program in the File name field. 4.
Save Program As Offline Use Save Program As to save the active logic program with a different program name. This is useful when maintaining the original without changes. For example, open file ABC.FTK, make changes, select Save Program As, and save the program as DEF.FTK. Now you have two files, ABC.FTK retained its same condition before you opened it, and DEF.FTK that contains changes made to ABC.FTK. NOTE You must validate logic before saving.
Printing Logic Programs 505 SoftShop provides you with a number of print features that allow customization of your printouts. These include: • Tags and Documentation • Cross Reference • Network/Address Range • Margins • Starting Page Number Before you can print, open a logic program. Make certain that you have loaded the correct print drivers for your printer through the Windows Control Panel.
Print Logic and SFs Click the Logic and SFs button to print the following: • All logic, ladder, SFS and SFP • Selected logic ladder, SFS or SFP • Selected ladder in address or network mode • Selected Special Function lines • Inline Xref • Ladder with Addresses, Tags, Descriptions, or Headers • Multiple or single networks/addresses per page The Print Logic and SFs dialog box determines which items are printed. (Figure 3.13). Figure 3.
The Ladder Display Size determines the Column width, Description rows, and Tag row size. Column Width adjusts the size of the ladder grid. Click the up or down arrow or enter a value between 7 and 24. Description Rows determines the number of character rows displayed for each description. Click the up or down arrow or type in a value between 1 and 12. Tag Rows determines the number of character rows displayed for each tag. Click the up or down arrow or type in a value between 1 and 4.
Click the All Loops check box to print the entire range loops. To print a selection, deselect the All check box and enter a range in the associated edit box. To include loop headers with the printout, click the Headers check box. 1. Click the Doc Font button to change the Header font in the active program. Result: The Font dialog box appears. 2. Choose a new font, font style, or font size. Notice that you can see a sample of the font in the Sample box. 3.
Print PLC Configuration Click the PLC Configuration check box from the Print dialog to print the following: • 505 Channel Base • Profibus DP – Slave I/O • PLC Memory Configuration • I/O Tags and Descriptions To change the PLC Configuration properties click the PLC Configuration button on the Print dialog box. The Print PLC Configuration dialog box appears (Figure 3.16). Figure 3.16 Click the All check box to print the entire range of items.
The tags and descriptions can be individually turned on or. To include with the Register print out select the appropriate check box under Include. 1. Click on the Doc Font button to change the Tag and Description printout font of the active program. Result: The Font dialog box appears. 2. Choose a new font, font style, or font size. Notice that you can see a sample of the font in the Sample box. 3. Click OK in the Font dialog box to save your changes. Result: The Print Loops dialog box appears. 4.
Print Documentation Click the Documentation check box from the Print dialog box to print the following: • I/O Elements (X, Y, WX and WY) • Control Relays (C) • SKP, LBL, GTS, SBR, JMP, MCR and END • Register Tags, Descriptions and Comments To change the Documentation properties click the Documentation button on the Print dialog box. The Print Documentation dialog box appears (Figure 3.18). Figure 3.18 Click the All check box to print the entire range of items.
To change the Cross-reference properties click the Cross-reference button on the Print dialog box. The Print Cross-reference dialog box appears (Figure 3.19). Figure 3.
Click the All check box to print the entire range of items. To print a selection, deselect the All check box and enter a range in the associated edit box.
Print to a Text File 1. To print to a text file select Output To Text File from the File menu. The Result: The Print Output to Text File dialog box appears (Figure 3.19b). See Printing Logic Programs for dialog box selections. 2. Once selections are made select OK. 3. Enter a file name to save to and select OK Figure 3.19b Editing Features 505 SoftShop uses a number of timesaving editing features to help you complete your programming tasks.
Window Feature Function Cut Removes the selection from the program and places it on the clipboard. Copy Copies the selection and places it on the clipboard. Paste Inserts clipboard contents into the program at the cursor location. Paste With Rewire Inserts clipboard contents into the program at the cursor location and allows the user to re-address any addressable items contained in the clipboard. Undo Resets the networks/addresses in a segment to their original data.
2. Click and hold down the left mouse button on the item, or network or (SF) lines to be copied, then drag the mouse to the end of the item range or network or (SF) lines to copy. 3. Copy your selection to the clipboard with one of the following: • Click • Select Copy from the Edit menu on the toolbar or NOTE If the start and ending networks/addresses or (SF) lines are known, then the copy from and copy to range can be entered directly into the Copy Range dialog box.
NOTE When pasting, clipboard contents are inserted before existing items. For example, if you are pasting a network and the cursor is positioned at Network 002, click paste and the clipboard contents become Network 002. The previous Network 002 becomes Network 003.
Undo Use Undo to reset networks/addresses in a segment to their original data. Any modified or inserted rung can be reset. Deleted rungs cannot be reset. To access the Undo feature: 1. Select Undo from the Edit menu or press Ctrl+Z. Result: The Undo Logic window appears (Figure 3.23). 2. Select the segments to reset and press OK, or press Undo All to reset all networks/addresses displayed. 3. Click Cancel to close the window. Figure 3.
Data Window While working in the Data Window, you can use Clear to clear all rows or one row at a time. Clear is accessed through the Edit menu or by pressing the Delete key. Delete Use Delete to delete an item and remove the space it occupies. Access Delete from the Edit menu using the Logic Editor in either offline or online mode. Delete can also be accessed from the Data Window. To delete: 1. Select the item or items you wish to delete. 2. Select Delete from the Edit menu.
3. Click OK or press Enter. Figure 3.26 – Ladder Insert Logic Editor - Offline Item Function Network/ Address Adds a new network before the current network or address where the cursor is positioned. Row/Line Adds a new row is before the row where the cursor is positioned. If box instructions prevent insertion, an error message appears. Column Adds a new column before the column where the cursor is positioned. If box instructions prevent insertion, an error message appears.
3. Type the program name in the Filename line, or click Browse to search from valid program names. 4. Select Tags, Descriptions, or Headers from Include to merge in. 5. Click OK to import the documentation. Figure 3.27 Merge Memory Merge allows you to merge externally developed subroutine programs into User Memory. For example, you can merge compiled C, Pascal, assembly language, and other programs into U-Memory. Follow these steps to prepare the external subroutine for use in the controller. 1.
4 - 505 SoftShop Setup Overview Before you begin programming, you will probably want to spend some time configuring and customizing the software and some of the hardware attached to your computer. This chapter will help you with: • Program Setup Shows you how to customize 505 SoftShop to fit your preferences. • Communications Setup Walks you through how to tell your computer which port is attached to your PLC. • Printer Setup Assists you in determining the correct settings for your printer.
To access the Program Setup options: 1. Select Program Setup from the Options menu. Result: The Program Setup dialog box appears (Figure 4.1). Figure 4.1 48 • 4 - 505 SoftShop Setup 2. Click on the desired tab to display setup selections. A check in a box or radio button (circle) means that this feature or object is selected or is "turned on." A drop down window means that there are multiple options for the particular tab item selected. Table 4.1 describes each feature in the Program Setup dialog box.
505 SoftShop for Simatic 505 Logic Tab/General Description Ladder Grid Displays the ladder grid when selected. Sticky Cursor When selected, the current ladder instruction is saved as the cursor. You have to manually select the pointer cursor when you are done editing the current instruction. If not selected, the cursor changes back to the pointer after inserting an instruction. All Headers Displays ladder, network, and SF headers when selected.
Logic Tab/Special Functions Description Instruction Width Determines the width allocated for display of Special Function instructions on each line. Click the up or down arrow or type in a value between 1 and 80. Column One Determines the width allocated for display of SF first column variables after the instruction. Click the up or down arrow or type in a value between 1 and 300. Column Two Determines the width allocated for display of SF second column variables after the instruction.
Setting Up Communications The Communications Setup allows pre-configure of serial ports, a modem board, or network interface boards in your computer that are used for communications with a SIMATIC 505 PLC. To access the Communications Setup: 1. Select Communications Setup from the File menu. Result: The Communications Setup dialog box appears (Figure 4.2). Figure 4.2 2. Select the appropriate PLC communications that you wish to set up (Serial Ports, TCP/IP, TIWAY, or Profibus FMS).
Figure 4.3 2. 52 • 4 - 505 SoftShop Setup Select the appropriate setting for each option in the dialog box. • Serial Port: Location where the serial communication port (COM1, COM2, COM3, or COM4) is configured for communications. You do not select which port to communicate out of at this stage. • Response T.O. (sec): Specifies the amount of time, in seconds, that the software waits for a response from the PLC before returning a time-out error. Any whole number between 5 and 25 can be used.
• 3. Number to Dial: Specifies the phone number to be dialed. The number format can be dash (414-358-8088), space (414 358 8088), period (414.358.8088), or none (4143588088). Commas (,) may be used if a pause is needed to gain access to an outside line before the number is dialed. For example, if 9 is used to gain access to an outside line and there is a pause between the time 9 is pressed and a dial tone, then the number entered should be 9,414-358-8088. Click OK or press Enter to accept the settings.
from 1 to 254 that is used to identify a controller on the TIWAY link. Each PLC on TIWAY has a controller secondary address. 3. Enter the controller secondary address Path Description. A Path Description is a 32-character alphanumeric description for the controller secondary address. 4. Click OK or press Enter to accept the settings. Click Cancel to disregard changes and return to the TIWAY Setup dialog box.
505 TCP/IP #2: 201.98.1.9 255.255.255.0 To use 505 SoftShop over an Ethernet network with the TCP/IP protocol, you need to purchase and install the PPX:505-CP2572 module in a Series 505 base. Refer to the SIMATIC 505 Ethernet TCP/IP Communication Processor (505-CP2572) User Manual, PPX:505-8132-x, for instructions. Assign an IP Address to the Module There are two ways to configure the IP address for your PPX:505CP2572 module. Each procedure has different advantages, as outlined in Table 4.2.
NOTE New or modified IP address configurations do not take effect until you power cycle the base containing the PPX:505-CP2572 module. Tips for Using the PLC Start Option The SIMATIC 505 Ethernet TCP/IP Communication Processor (505CP2572) User Manual describes how to build a Startup Network Command Block table, used with the PLC Start option, in the chapter on Installation (Chapter 2).
connection to 505 TCP/IP #1 shown above. There should be four successful replies to the PING command. If PING is not successful, there is a problem with the network settings or the 505 TCP/IP board configuration. If PING does not work, 505 SoftShop will not be able to connect to the PLC. After PING has successful replies, you can configure a TCP/IP connection in 505 SoftShop and open an online window. TCP/IP Communication Settings To configure your interface board port for communication with a PLC: 1.
Figure 4.8 NOTE The 505 SoftShop allows 1,000 different IP Addresses and Path Descriptions. 2. Enter the IP Address for the associated Interface Board. An IP Address is a 32-bit value that is divided into four 8-bit fields, each separated by a period. For example, 192.3.2.1 is an IP Address. Each computer on a network has a unique IP Address. You should consult your network administrator for the correct IP Addresses for your computer and board. 3. Enter the IP Address Path Description.
Refer to the SIMATIC 505 PROFIBUS-FMS Communication Processor (505-CP5434-FMS) User Manual for complete information on configuring the FMS CP module with the COM5434 Configuration software. NOTE Make sure to select the bus parameters, the baud rate, and the highest station address (HSA) that match those of all the other modules on the network. Also be sure to select a unique station address for each FMS CP module on the network.
Access H1 Devices Using 505 SoftShop To access the H1 network with 505 SoftShop: From the File menu, chose Fast PLC Setup. 4. Select H1 from the Fast PLC Connection Setup dialog box. 5. Click OK on the Setup dialog box. 6. From the File menu, chose Fast PLC Connection (H1 communications can also be established via open program). Result: The H1 Network Names screen appears (Figure 4.14). 5. Select a node name. These are the node names you configured using the COML 1413-TF-software prior to rebooting.
Page Setup Use Page Setup to select page margins, starting page number, and whether to include a Title page in your printout. To access the Page Setup: 1. Start or open a logic program. 2. Select Page Setup from the File menu or click on Page Setup in the Print Window. Result: The Page Setup dialog box appears. 3. Depending on which features you need to customize, choose left, right, top and bottom margin.
Fast PLC Setup The Fast PLC Setup allows you to configure a single PLC Connection when using Fast PLC Connection. To access the Fast PLC Setup: 1. Select Fast PLC Setup from the File menu. Result: The Fast PLC Setup dialog box appears (Figure 4.17). Figure 4.17 2. To configure and select your serial port or board for communication with a PLC: • Select the appropriate Communication Port from the list in the Fast PLC Connection Setup dialog box.
5 - PLC Memory & I/O Configuration Overview This chapter shows you how to set up and configure your Siemens family PLC. You must configure your PLC before you can create a ladder logic program. Configuration is part of the program; it performs the important function of relating the hardware components to the logic components. The setup and configuration process is completed in three steps in recommended order: 1. 2. 3.
PLC Type Setup (Offline) The setup and configuration process begins with PLC Type Setup. You must tell 505 SoftShop what processor you are using before you can configure the processor. Valid PLC types are: • Simatic 520 revision 1101. • Simatic 520c revision 1101 and 1102. • Simatic 525 revision 1102 and 1104. • Simatic 530 revision 1102, 1104, and 1108. • Simatic 530c revision 1104, 1108, and 1112. • Simatic 535 revision 1104, 1108, and 1112. • Simatic 560 revision 2120.
PLC Setup Option Description PLC Type Specifies the type of processor. Selection of PLC type determines choices available for remaining setup options in the PLC Type Setup dialog box. PLC Memory Size Specifies the PLC's memory size. Only the valid memory sizes for the PLC selected in PLC Type are displayed. Table 5.1 4. Click OK or press Enter to save your settings and return to the active logic program. Changing PLC Types The PLC type can be changed even after programming has been initiated.
System Memory • RLL instruction tables: drum, timer/counter, shift register, etc. • Image registers and control and relays.* • Subroutine parameter area.* • SF program temporary memory.* • Status Word memory.* System Operation * Not Configurable Table 5.2 The configuration process begins with PLC Configuration.
Accessing PLC Configuration 1. Select PLC Configuration from the PLC Utilities menu. Result: The PLC Configuration dialog box appears (Figure 5.2). Figure 5.2 2. Enter the appropriate ranges for the selected PLC memory type. NOTE The processor type must be selected before configuration. The various memory types are described in the pages that follow. Memory types are classified for RLL programming purposes in the following ways: 3. • Writeable - This memory type is read/write.
RLL instruction used in the program requires one or more 16-bit words of L-Memory. Image Register Memory A block of memory within the controller is reserved for maintaining the status of discrete inputs/outputs. This memory type is called the discrete image register. A word image register holds the values of word inputs/outputs. Control Relay Memory A block of memory within the controller is reserved for control relays.
Timer/Counter Memory A block of memory within the controller is reserved for the operation of the timer/counter group of RLL instructions, including the following: Timer (TMR, TMRF) Counter (CTR) Discrete Control Alarm Timer(DCAT) Motor Control Alarm Timer(MCAT) Up/Down Counter (UDC) When you assign a number to a timer, counter, up/down counter, or discrete/motor control alarm timer, be sure that you do not use that number for any other timer, counter, up/down counter, or discrete/motor control alarm t
Table Move Memory A block of memory within the controller is reserved for the operation of the table move instructions, including the following: • Move Word To Table (MWTT). • Move Word From Table (MWFT). When you assign a number to a table move instruction, be sure that you do not use that number for any other table move instruction. For example, if you configure a Move Word To Table #1 (MWTT1), do not configure a Move Word From Table #1 (MWFT1).
Shift Register Memory A block of memory within the controller is reserved for the operation of the shift registers, which include the following: • Bit Shift Register (SHRB). • Word Shift Register (SHRW). When you assign a number to a shift register, be sure that you do not use that number for any other shift register type. For example, do not configure SHRB11 and SHRW11.
the counts-per-step values are stored as 16 consecutive 16-bit words in DCP-Memory (except for the DRUM). For the DRUM instruction, counts-per-step values are stored in L-Memory; DCP is not used. NOTE If you use an operator interface to change the drum preset values (DSP or DCP), the new values are not changed in the original RLL program. If the RLL presets are ever downloaded, e.g.
PGTS word parameter area Bit 1 2 3 4 5 6 7 8 9 10111213141516 Values are copied into the1 word parameter area to be 2 used by the subroutine. 3 4 Word inputs Word outputs Other word data 5 6 When parameters are specified read/write, changed values are copied back into appropriate 15 memory areas. 16 17 18 19 20 Figure 5.4 User External Subroutine Memory A block of memory within the controller may be allocated for storing externally developed programs written in C, Pascal, Assembly language, etc.
I/O Configuration Controller Functionality in Configuration Keep in mind that, while you can configure I/O either online (with the controller) or offline (programming device only), functional differences exist between the two modes. When online, you can perform those functions that require interfacing with the controller. For instance, you must be online to write your I/O configuration to the controller or to read the configuration of a base from the base itself.
Figure 5.6 NOTE If you need to select a different Base number, you can do so by clicking on the Next Base or Prev Base button on the Edit I/O Base dialog box. You can also click on the Search Base button on the Edit I/O Base dialog box and enter a different base number. 3. Use the mouse or arrow keys to highlight the desired slot number to be configured. 4. Click on the Edit Slot button on the dialog box or press Enter. Result: The Edit I/O Slot dialog box appears (Figure 5.6). Figure 5.6 5.
Clearing a Base I/O Configuration 1. Start from Edit I/O Base dialog box (Figure 5.6). 2. Click on the Clear Base button on the Edit I/O Base dialog box. You have finished setting up the software and the hardware. The next step is programming. The Programming chapter discusses 505 SoftShop’s many different features for developing ladder logic. You can program in online or offline mode.
Task Comment Open a file in COM PROFIBUS. You can modify an existing configuration file, if appropriate, or create a new file. Select a master. Required. Choose the 505-CP5434-DP. Select a host. Required. Choose the appropriate Series 505 CPU. Modify bus parameters. Optional. You can accept the default settings, unless you wish to modify one, such as baud rate. Assign slave(s). Required. Choose slave(s), such as the 505 PROFIBUS-DP RBC, up to 112. Parameterize slave(s). Optional.
To import and/or configure data from the COM PROFIBUS software, you must be running 505 SoftShop, and the binary file (with its .2BF extension) that you created with COM PROFIBUS must be in a known location. Follow the steps below to execute: 1. Select PLC Configuration from the PLC Utilities menu. Result: The PLC Configuration dialog box appears (Figure 5.2). 2. Select the Profibus I/O button under I/O configuration on the PLC Configuration dialog box. Result: The Profibus-DP I/O dialog box appears.
Merge COM PROFIBUS Follow the steps below to merge in the COM PROFIBUS: 1. Click on the Merge button to execute the merge function. You are prompted to supply the name of the binary file from which you wish to import configuration data. 2. At the prompt, either type in the name of the binary file, or click the browse button to search other drives or directories.
Figure 5.8 The Edit Slave dialog box allows you to perform the following tasks: • The Search Slave button allows you to go to and edit other slave addresses without going back to the Profibus-DP I/O dialog box. • The Next Slave button allows you to go to and edit the next slave address in numerical increasing order without going back to the Profibus-DP I/O dialog box.
• For bit or bit-and-word modules (but not for word-only modules), the number for the I/O address must begin on an 8point boundary. An 8-point boundary is (n*8) + 1, e.g., 1, 9, 17, etc. Addresses not starting on an 8-point boundary are changed to do so when you write the values. • SoftShop does not flag duplicate I/O points. However, the Find I/O functions under the PLC Configuration dialog box can be used to search for duplicate I/O points. To Edit the I/O Address: 1.
Profibus Operations Profibus Operations allows you to change the operations mode from Operate to Stop, or Stop to Operate. You can also select from Synchronous to Asynchronous, or Asynchronous to Synchronous. The Profibus Operations mode can be selected from the Profibus-DP I/O dialog box (Figure 5.7) by: 1. Clicking on the Profibus Ops. Button or selecting Profibus Operations from the PLC Utilities menu. Result: The Profibus Operations dialog box appears (Figure 5.9). Figure 5.
6 - Programming Overview In this chapter, you will discover how to enter and modify logic using 505 SoftShop's features. Remember, in the Windows environment there is usually more than one way to complete a task. 505 SoftShop provides keyboard support to access all commands. You may find that the most efficient method of programming will be through a combination of keyboard and mouse techniques. Refer to Appendix A for a concise list of keyboard supported commands.
Using the Logic Editor The Logic Editor is where to begin programming since it allows you to display, access, and/or modify logic in the active logic program. You can view existing programs, or you can create a new one. To view an existing program: 1. Open or Import a logic program (see open program). 2. If there is logic in the program but does not appear, click on the toolbar or select Logic Editor from the View menu. Programming Ladder Several logic program windows can be displayed simultaneously.
5. Repeat Step 3 to enter additional networks. Insert a New Row You can insert a new row to a network similar to inserting a new network. In the active logic program window, use the mouse or keyboard to place the cursor on an existing row in the network. To enter a new row using the mouse: 1. Click (new row) on the Toolbar. Notice that the new row attaches to the pointer. 2. Place the pointer in the position where you want the new row to appear. 3.
7. If the sticky cursor has not been turned on in the Program Setup then after the instruction has been dropped into place the pointer returns to an arrow. To Enter Mnemonic Instructions with the Keyboard: 1. In the active logic program, position the cursor (by using the arrow keys) where the instruction is to be located. 2. Type in the instruction mnemonic at the cursor location and press ENTER. If you forget an instruction mnemonic just enter a ? and press enter.
88 • 6 - Programming Mnemonic Instruction DRUM Simulates electro-mechanical stepper switch. DSET Sets date in real-time clock. EDRUM Simulates electro-mechanical stepper switch. Can be indexed by timer, event, or timer and event. END Unconditionally terminates a scan. EQU Equal to. FRS Force role swap GEQ Greater than or equal to. GTR Greater than. GTS Calls a subroutine. IMC Compares status of discrete points with a specified bit pattern in a set of patterns.
Mnemonic Instruction destination location. MOVW Copies words from one location to another. MUL Multiplication MWFT Move word from table. MWI Copies words from one location to another using indexed addresses. MWIR Copies bits of a word to the discrete image register, or the control relay memory. MWTT Copies a word to a table. NC Normally closed contact. NEQ Not equal to. NO Normally open contact. NOP No operation. NOT Inverts power flow. OS Turns on output for a single scan.
Mnemonic Instruction segments during scan. 90 • 6 - Programming SMC Compares status of discrete points with a set of specified bit patterns. SQRT Square Root. SSI Scan synchronization inhibit STFE Searches for a word in a table equal to a specified word. STFN Searches for a word in a table not equal to a specified word. SUB Subtraction TAND ANDs the corresponding bits in two tables. TASK Start a new RLL program segment. TCMP Compares current time with a specified time.
Mnemonic Instruction it. If the TISOFT mode is turned on in the program setup (see Ladder options under LOGIC tab in Program Setup) the following list of the function key alternatives and the CTRL/ALT functions are available.
92 • 6 - Programming TAB Deletes current address and puts you into edit mode for address.
Using the SF Program and Subroutine Editor The SF Program and Subroutine Editor gives you the ability to display, access, and/or modify program using special functions. See Chapter 7 of the 545/555/575 Programming Reference Manual (Order Number: PPXSS505-8101-1) for all Special Function instructions. To access the Special Function Program Editor: 1. Click Special Function Program Editor from the View menu (Alt+V, F). The Special Function Program dialog box appears (see Figure 6.1a). Figure 6.1a 2.
10. 4. Enter a title for the program in the Program Title window. The title is optional and can be left blank. 5. Click Yes or No in the Continue On Error selection to have the program continue or stop when an error occurs. 6. Select the Program Type from the Combo Box. 7. Enter the cycle time in seconds (0.5-6553.5). 8. Check the Enable Program to allow exaction of the SF program. 9. For the 555-1105/-1106 and 575-2105/-2106 CPUs, the compile mode is selectable.
NOTE Most SF programs and subroutines can be compiled.
4. Position the pointer where you wish to place the instruction. 5. Click the left mouse button, and the instruction is placed in that location. If an instruction cannot be placed in that location, an error message is displayed. 6. The instruction remains attached to the pointer. Click the left mouse button once for each additional instruction you want to insert. Click the arrow in the middle of the Instruction Bar or another instruction to remove the instruction from the pointer.
1. Select the information you want to cut. You can cut parts of a network, all of a network or multiple networks. 2. Cut your selection to the clipboard with one of the following: • Click • Select Cut from the Edit menu. • Press Ctrl+X. on the toolbar. Copy To use the copy feature: 1. Select the information you want to cut. You can cut parts of a network, all of a network or multiple networks. 2.
NOTE When pasting with rewire, valid addresses for instructions are not checked until you “Validate and Enter Logic.” 5. Choose OK. NOTE When pasting with rewire, clipboard contents are inserted before existing items. For example, if you are pasting a network and the cursor is positioned at Network 2, click paste and the clipboard contents become Network 2. The previous Network 2 becomes Network 3. Clear Use Clear to clear an item without removing the space it occupies. To clear an item or items: 1.
Right Mouse Button Pop-Up Menus The menu items available with the right mouse button are as follows: Figure 6.5 Validate and Enter While programming in online or offline mode, logic must be validated and entered before it can be saved to disk or transferred online. To validate and check your logic: 1. Press function key F8, click on the toolbar or select Validate and Enter from the Program menu. 2. The message "Validating and Enter" appears on the screen. 3.
Figure 6.6 2. Click in the Go to group Network/SF Line Number radial button to find a specific network number or special function line number. Click the Network Address radial button to find a specific network address. 3. In the Network/SF Line Number or Network Address enter box; type the number of the network, network address or line number you wish to find. 4. Click Find to begin the search.
6. Click Cancel to disregard the search and return to the active logic program. Find Next Click on the toolbar or select Find Next on the Edit menu to find the next occurrence of an address or tag. Search and Replace Address You can use the Replace command on the Edit menu to search for a specified address and replace them with another address.
Figure 6.6b • Click the Replace button to perform the specified replacement. • Click the Skip button to skip the address and go on to the next item to be replaced. • Click the Stop button to Cancel the Replace operation and return to the specified logic window. 6. Skip on Error. When the Skip on Error's check box is chosen on the Replace dialog box. The program will skip illegal replacements and go on to the next item to be replaced automatically.
1. With a logic program open, click on the toolbar or select Data Window from the View menu. The Data Window dialog box appears (Figure 6.7). 2. Use the Program Setup from the Options menu or the right mouse menu to change which columns are displayed in the Data Window. See Program Setup in Chapter 4. Figure 6.7 Simatic 505 SoftShop 3. Type an address or tag in the address field. 4. Press Enter to accept the address/tag. 5.
select Save Template from the Data menu. To load a list of addresses, select Load Template from the Data menu. 10. Select On/Off from the right mouse menu to set or reset bit addresses. 11. Select Force On/Off from the right mouse menu to force on or off bit addresses. 12. Select Force Word from the right mouse menu to force a word address. 13. Select Clear Force from the right mouse menu to clear the forced address. 14. Use Clear All Forces from the right mouse menu to clear all forced addresses. 15.
Figure 6.8 2. Click the desired data format. For the String field, you can enter the number of characters to be displayed (from 1-64). 3. Click OK to select the format and return to the Data Window. Forcing an Element As a troubleshooting tool, control relays can be forced. The force attribute bit, also shown in Figure 6.8a, provides a single-bit memory location for storing the forced status of control relays.
2. From the menu select the type of forcing action you would like to do. From the Ladder Logic: 1. From the Ladder Editor select the element to force. 2. While on the element select the Diagnostics menu. From the menu select the type of forcing action you would like to do. Show Forces To show all forced elements complete the following steps. 1. Select the Data Window from the Veiw menu. 2. Once in the Data Window click on the right mouse button or left click on the Data menu. 3.
Figure 6.8b Only validated and entered logic is considered part of the NOTE current program. Thus, logic not entered and validated will not show in the Cross Reference Table. See Validate and Enter Logic in this chapter. 2. Type in the starting address in the corresponding address box or network number in the corresponding network box, if selected. Click on the Refresh button. The cross-reference will display the selected information in the view window.
Ladder Network Cross Reference In both online and offline programming, you can track addresses in a program by viewing the Cross Reference table. 1. Position the cursor over the instruction address to crossreference. Select Network Cross Reference from the View menu. The Network Cross Reference window appears (see Figure 6.9). If you have more than one program loaded, the information displayed is for the program in the active window.
Address Used To show if specific elements are used in your program, you can build an element usage listing. The following element types can be shown in the Ladder Element Used Table. X WX C K TC SHR Y WY V STW DRM MWT OS Creating an Address Used Listing To create an element usage listing both online and offline programming, you can track addresses in a program by viewing the Address Used Listing. 1. Select Address Used Listing from the View menu.
Blank Point does not exist. Dot (.) Point is not used in the program. Asterisk (*) Point is used in the program 3. Scroll through the list of addresses on the right side of the Address Used Listing dialog box to select the next grouping of addresses. 4. Click on the Address input box to start usage list from another address or tag. Repeat Steps 2 through 4 for each item you want to find. 5.
The list box has five columns each one holds a location. The location consists of rung number and item found. The list box displays the locations in order of rung number. The GOTO button closes the Address Trace window and places the cursor in ladder logic window at the network number selected in the Address Trace list box. Close or ESC or clicking on the X in the upper right corner of the dialog closes the dialog.
data of the selected program on disk to the data in the controller (online) or offline. To perform a File Program Compare you must first have an opened online or offline program see Chapter 3 Open an Existing Logic Program Offline or Online. Select File Program Compare from the File menu. Result: The File Program Compare window appears (Figure 6.09d). Figure 6.09d 1. Click the Browse button to locate the disk file to compare or type in the file extension and file name in the Compare File box. 2.
When the compare finishes, you receive a display such as that shown in (Figure 6.09E). The display highlights any mismatches between the File and controller or offline program. Figure 6.09e Displaying Processor Faults You can display the Faults of your processor while online. To display the processor faults: Simatic 505 SoftShop 1. Click Faults from the Diagnostics menu (Alt+D, A). 2. The online Faults are displayed (see Figures 6.10f).
Figure 6.09f Auxiliary PLC Functions and Displays Displaying Processor Status You can display the status of your processor while online or offline. To display the processor status: 114 • 6 - Programming 3. Click PLC Status from the PLC Utilities menu (Alt+U, P). 4. Either the PLC Status for online or offline is displayed (see Figures 6.10 and 6.11). 5. Click Close to close the PLC Status box, and return to the active logic program.
Figure 6.10 Offline PLC Status Figure 6.11 Online PLC Status PLC Operations This menu item allows you to view and modify PLC operations while online. To access PLC Operations: Simatic 505 SoftShop 1. Click PLC Operations from the PLC Utilities menu (Alt+U, O). The PLC Operations dialog box appears (Figure 6.12). 2. When you have S-memory configured, you receive a display with three fields, as shown in Figure 6.12, to change operating mode. Use the mouse or arrow keys to select the desired field.
Figure 6.
Changing Ladder Mode Without S-memory configured, the LADDERS field is the only option for changing program mode. Freeze places the controller in PROGRAM FREEZE mode. All outputs are frozen in their current states. However, intelligent I/O modules still can update outputs. 1. To select PROGRAM FREEZE mode, Click on the Freeze button on the PLC Operations dialog box. The following message appears, Stop the PLC with outputs frozen? Select either YES or NO. Prog_Off places the controller in PROGRAM OFF mode.
appears: Set the loop processor to program mode? Select either YES or NO. Halt places the loop card in HOLD mode; enabled control blocks are being queued to run, but are not running. Upon returning to RUN mode, execution resumes where it was halted. 1. To select LOOP HALT mode, Click on the Halt button on the PLC Operations dialog box. The following message appears: Set the loop processor to halt mode? Select either YES or NO.
Programming Port Lockout Use Port Lockout to prevent program changes from being made at different ports simultaneously. If the controller is unlocked, the Port Lockout button will display Locked. If the controller is locked, the Port Lockout button will display Unlock. To execute Port Lockout: 1. Click Port Lockout from the PLC Utilities menu (Alt+U, O). The Port Lockout dialog box appears (Figure 6.12a). Click Lock or Unlock from the Port Lockout on the Port Lockout dialog box. Figure 6.
Performing Syntax Check Use the Syntax Check to check your RLL program for errors that will prevent the controller from entering RUN mode (such as UNKNOWN INSTRUCTION, LADDER ELEMENT OUT OF RANGE, NO CORRESPONDING PAIR, or OUT OF MEMORY). Syntax Check is currently available only on 545, 555, and 575 controllers. To execute the Syntax Checker: 1. Click Syntax Checker on the Diagnostics menu (Alt+D, Y). The Syntax Checker menu dialog box is displayed (Figure 6.12a). Figure 6.
NOTE Status mode is automatically exited when an attempt is made to edit a network. When the network is validated and entered, Status is automatically displayed again. 3. Click Status on the Diagnostics menu to stop displaying status. Initiating a Single Scan Using a single scan allows you to view a single execution of your program. You must have the controller in program mode in order to execute a single scan. To perform a single scan of your program, complete the following steps. 1.
Figure 6.12b Task Codes Per Scan Task Codes Per Scan is used to set the number of task codes processed per scan for SF modules on each channel. To invoke the function: 1. Click Task Codes Per Scan from the PLC Utilities menu (Alt+U, A). 2. The Task Codes Per Scan dialog box is displayed in the format shown in Figure 6.12c. Only numbers for the channels you have configured are displayed; e.g., if you have four channels, the number goes to 4. 3.
• 5. 6. To change the active and standby roles of RBCs on a particular base: • Type in the channel and base number in their associated data field. • Click on the Swap RBCs. To run base diagnostics on all bases: • 7. Click on the Next DM button, and the data will be displayed in the dialog box. Click on the Run All button and the data will be displayed in the dialog box. Click Close to exit the Task Codes Per Scan and return to the active logic program. Figure 6.
program on disk and one for the controller. They do not have to be the same. NOTE You do not need to enter a password to go online. However, if the selected program on disk is protected, you must enter a password to go offline. A password value consists of 1 to 8 alphanumeric digits (for example, 09 or uppercase A-Z). Online, you can be prompted for the password for the controller program and/or for the selected program on disk. Offline, you are prompted for a password only for the selected program on disk.
Mode 1: If the controller and the selected program on disk do not have a password, you will not be prompted for a password. (Save and Open functions will be allowed.) No password will be written to the selected program on disk or to the controller. Mode 2: If the selected program on disk has a password and you enter a password for the selected program on disk at the online prompt, you will be able to use (Save and Open) functions.
Online Password Operations Table Mode No. Controller Password Offline Password User Password Save Allowed to Disk? Open Allowed to PLC? Comments 1 No No Not asked for. Yes. No password. Yes. No password. Selected program on disk must have 5.0 format or greater. There is no password for selected program on disk or in the controller. 2 No Yes User gives password for selected program on disk. Yes. Selected program on disk password is retained. Yes.
To invoke Password from Online or Offline: 1. Click on Password from the PLC Utilities menu (Alt+U, W). 2. The Password dialog box is displayed in the format shown in Figure 6.12e. Figure 6.12e Offline Password Selection and Access Level The buttons in Figure 6.12e are defined below: • Close-Allows you to return to the ladder display screen. • Enter Password-Allows you to enter or change the password for the selected program on disk. SoftShop prompts you for the new password twice.
• Disable Password-Allows you to disable password protection for the controller. If you have not already entered a password for the controller, 505 SoftShop prompts you for the current password. If the password you provide is not correct, 505 SoftShop does not disable the password protection. This function does not work unless you provide a password. Figure 6.
Caution If you execute Power Up Restart with the controller battery switch set to Off, all programs residing in the controller will be cleared. Be certain to check battery switch position before using Power Up Restart. To execute Power Up Restart: 1. Click Power Up Restart from the PLC Operations dialog box. 2. When you receive the message, Execute a PLC power up restart? Select either YES or NO. 3.
Clearing Memory This option allows you to clear all or parts of logic memory, data, tags, and documentation in the current program. You can use clear memory in either online or offline mode. When programming offline, you clear the entire active program or parts. When programming online, you clear the PLC memory. However, you cannot clear memory online while the processor is in Run mode. You must first stop the processor before clearing the memory online.
The following fields display information about applications. Only the IDs listed in the REQUIRED or OPTIONAL fields are valid for use as G-memory parameters in your RLL program. • APPLICATION ID displays the ID of the current application. • REQUIRED APPLICATIONS displays a listing of the application IDs needed for the current application to complete a process. • OPTIONAL APPLICATIONS displays a listing of the application IDs that are not required, but may be present.
7 - Documentation Using the Ladder, Network, and SF Header Editor Ladder Header 505 SoftShop provides a simple way to document ladder while you are creating or editing your program. The maximum number of characters you can enter for each header is 16K. Double-click the Ladder Header icon in the active logic program window (see Figure 7.1). The Ladder Header dialog box is displayed (see Figure 7.2). Type in your header. Select OK when you're finished. Figure 7.
Figure 7.2 Network Header 505 SoftShop provides a simple way to document networks while you are creating or editing your logic program. The maximum number of characters you can enter for each header is 16K. The network header is tied to the corresponding network output. If a XCALL, PGSTS OR PGTSZ are the outputs, the header is tied to the first occurrence of an X, Y or C address. Double-click the Network Header Input icon in the active logic program window (see Figure 7.1).
SF Header 505 SoftShop provides a simple way to document SF while you are creating or editing your SF program. The maximum number of characters you can enter for each header is 16K. Double-click the SF Header Input icon in the active logic program window. The Network Header Input dialog box is displayed (see Figure 7.5). Type in your header. Select OK when you're finished. Figure 7.4 Figure 7.5 To see SF headers in the active logic program, select Program Setup from the Options menu.
Using the Documentation Window In both online and offline programming, you can view and edit tags, descriptions, and comments in your program using the Documentation Window. The Documentation Window allows you to view, create, edit, and delete tags, descriptions, and comments for the active logic program.
Descriptions to include address descriptions. You must include either Tags or Descriptions in your window. In the Sort Order group, select Address, Tag, or Description to change the sort method. The sort order also modifies the Documentation Window by displaying the sort order method as the first column. For example, if the Sort Order is defined as Tag, then the first column in the Documentation Window is the Tag column. The address column is always included in the display.
NOTE If the font and size selected in the program setup is too large to be represented in the window, a standard font will be used. When this situation occurs, the warning message is displayed. The tag and description will NOT be shown in its actual size in this case. To edit an existing tag or description, you can use any of the following methods: 1. From the Documentation menu, select Modify Doc (Alt-D, M). 2. From the Pop-up menu in the Documentation Window, select Modify Doc. 3.
Cut To use the cut feature, select the information you want to cut by: 1. Clicking on the toolbar or select Cut from the Edit menu and the Cut Range dialog box appears. Enter the start and ending address to cut, in the dialog box from and to location. If tags are to be cut with the address, the Include Tags check box must be selected. Figure 7.7a 2. Select OK and the selected range of addresses are cut out of the Documentation Window and placed into the clipboard. Copy To use the copy features: 1.
Delete To delete an existing address tag, description, and comment: 1. From the Edit menu, select Delete (Alt-E, D) and the delete dialog box appears. Figure 7.7d 2. Enter the start and ending addresses to be deleted into the Delete Range dialog box from and to locations. 3. Select OK and the selected range of addresses are deleted from the Documentation Window.
Documenting in Ladder In addition to editing and creating new documentation in the Documentation Window, you can also edit and create new documentation in the logic program as you enter and edit your logic. The Documentation Window can also be used to help you program your logic. In the logic editor, these features are available: • Assign Tags. • Assign Addresses. • Edit and Create Documentation in Ladder. • Look up tags and use them in ladder. These items are discussed in the following sections.
Tag Table/Paste to Logic You can use the Tag Table in the logic editor and Paste to Logic in the Documentation Window to help you program with tags. These two options work in conjunction, enabling you to look up documentation and copying it into your current location in your ladder instruction. For example, if you would like to enter a tag as a parameter in your ladder instruction but you can't recall its name or address, use the following steps: 1. Enter a partial string (or nothing). 2.
8 - Analog Alarms Overview The analog alarm functions allow you to monitor an analog input signal by setting standard alarm on a process variable (PV) and a target setpoint (SP). Analog alarms are referenced by a user-assigned number from (1512) depending on the processor type. All analog alarm parameters are stored in Special Memory (S-Memory) when you program the analog alarm. The size of S-Memory is user configurable.
Figure 8.1 4. Select the Analog Alarm number that you want to enter or edit by using the left mouse button or the Arrow keys on the keyboard. 5. To edit the selected alarm number, double-click on the alarm number or click on the dialog box Edit button, or use the keyboard to Tab to the Edit button and press Enter. The following dialog box appears (Figure 8.2). Figure 8.2 To delete Analog Alarm Simatic 505 SoftShop 1. To delete an Analog Alarm, Click Alarm from the View menu (Alt+V,A).
Tab to the Delete button and press Enter. The following dialog box appears (Figure 8.3). Figure 8.3 3. Select Yes to delete the analog alarm, or No to return to the previous dialog box. Copy and Paste Alarms To Copy and Paste an Alarm: 144 • 8 - Analog Alarms 1. Click Alarm from the View menu (Alt+V, A). 2. The Analog Alarm Directory dialog box appears (see Figure 8.1). The dialog box shows the Loop Mode, Alarm number (1512) depending on the processor type, Alarm Title, and Enable/Disable state. 3.
Analog Parameters Figure 8.4 shows a template of the Analog Alarm Edit window. Figure 8.4 Alarm Title An eight-character title can be entered for each specific Analog Alarm number. The title is optional and can be left blank. V-Flag Address Enter an address: C, Y, V, or WY in the ALARM VFLAG ADDRESS field. If you select NONE, no data is written from the V-Flags in the analog alarm. The V-Flags contains the operational data for an analog alarm.
Table 8.1 Analog Alarm V-Flags 1 Bit Analog Alarm Function 1 1=Enable alarm. 2 1=Disable alarm. 3 1=Process Variable is in high-high alarm. 4 1=Process Variable is in high alarm. 5 1=Process Variable is in low alarm. 6 1=Process Variable is in low low alarm. 7 1=Process Variable is in yellow deviation alarm. 8 1=Process Variable is in orange deviation alarm. 9 1=Process Variable is in rate of change alarm. 10 1=Broken transmitter alarm. 11 1=Analog alarm is overrunning.
Low Process Variable Range Enter the low value of the process variable in the Process Variable Range Field. You must specify the engineering values that correspond to the lower range of the input span. High Process Variable Range Enter the high value of the process variable in the Process Variable Range Field. You must specify the engineering values that correspond to the upper range of the input span. Process Variable Bipolar Select YES or NO to specify analog inputs as bipolar or not.
Process Variable Alarm High-High Enter real number in engineering units; must be greater than or equal to high alarm value, and less than or equal to high range of Process Variable. Monitor Remote Setpoint To have the controller monitor the remote setpoint, select Yes in the Monitor Remote Setpoint field. If you select No, the analog alarm uses the current value in the analog alarm variable. Remote Setpoint Select NONE if there is no remote setpoint.
Monitor Rate of Change To have the controller monitor the rate of change, select Yes in the Monitor Deviation field; otherwise, select No. Rate of Change Alarm Enter a value in engineering units for the rate of change alarm. Monitor Broken Transmitter Alarm To have the controller monitor the Broken Transmitter Alarm, select Yes in the Monitor Broken Transmitter Alarm field; otherwise, select No.
9 - PID Loops Overview Process and batch control capability is provided using the controller’s proportional-integral-derivative (PID) loop functions, illustrated in Figure 9.1. When you program a loop, you can set the same eight alarm types used by analog alarms and described in Chapter 8. • High-high alarm point on the process variable (PV). • High alarm point on the PV. • Low alarm point on the PV. • Low-low alarm point on the PV. • Yellow deviation alarm point referenced to the setpoint (SP).
A PV alarm deadband is provided to minimize cycles in and out of alarm (chattering) that generate large numbers of messages when the PV hovers near one of the alarm limits. An option is also available to call a Special Function Program to initiate a special function calculation. The SF program call can be scheduled on the PV, the SP, or the output. Programming PID Loop The PID Loop Editor gives you the ability to display, access, and/or modify PID Loops. To access the PID Loop Editor: 1.
Figure 9.2 PID Title An eight character title can be entered for each specific PID Loop number. The title is optional and can be left blank. PID Algorithm Select POS for the position algorithm or VEL for the velocity algorithm in the PID Algorithm field. For the position algorithm, the position of the device being controlled is computed based on the error. The velocity form of the PID algorithm computes the change in the device position based on the error.
Bit PID Loop Function 1 0 Loop is in auto mode 0 1 Loop is in cascade mode 6 1=Error is positive 1=Error is negative 7 1=Process Variable is in high high Alarm 8 1=Process Variable is in high Alarm 9 1=Process Variable is in low Alarm 10 1=Process Variable is in low low Alarm 11 1=Process Variable is in yellow deviation alarm 12 1=Process Variable is in orange deviation alarm 13 1=Process Variable is in rate of change Alarm 14 1=Broken transmitter alarm 15 1=PID Loop is overrunning 16
You must specify the engineering values that correspond to the upper range of the input span. Process Variable Bipolar Select YES or NO to specify analog inputs as bipolar or not. Bipolar inputs span have spans of -5 to 5 volts, or -10 to 10 volts. 20% Offset of Process Variable Select No for no offset, and Yes for 20% offset. A span of 0 to 5.0 volts (0 to 20 milliamps ) is referred to as a span of 0 to 100%. A span of 1 to 5.
Monitor Low/High Select Yes to have the controller monitor the Low/High Alarm; otherwise, select No. The Low/High Loop can be entered as values requiring remedial action. Process Variable Alarm Low-Low Enter a real number in engineering units; must be less than or equal to low Alarm value, and greater than or equal to low range of Process Variable. Process Variable Alarm Low Enter a real number in engineering units; must be less than or equal to high Alarm value of Process Variable.
Freeze Bias Select YES or NO in the Freeze Bias field. Select No to have the bias adjusted when the output goes out of range. Select Yes to have the bias frozen when the output goes out of range. Derivative Gain Limiting Select Yes or No in the Derivative Gain Limiting field to have derivative gain limiting done. If you specify No, then derivative gain limiting is not done, even if a value is entered in the Limiting Coefficient field.
The control, equation with error squared is based on signed error squared, instead of the error alone. To implement a high gain for large errors, and no gain for small errors, incorporate an error deadband. When error deadband is selected, the controller does not take any action on the output if the process variable is within the yellow deviation limits.
Monitor Rate of Change To have the controller monitor the rate of change, select Yes in the Monitor Deviation field; otherwise, select No. Rate of Change Loop Enter a value in engineering units for the rate of change Alarm in the Rate of Change Alarm field. Monitor Broken Transmitter Alarm To have the controller monitor the Broken Transmitter Alarm, select Yes in the Monitor Broken Transmitter Alarm field; otherwise, select No.
Ramp/Soak Setpoint The ramp/soak feature allows you to define a variation for the process variable by specifying the time characteristics of the loop setpoint (Figure 9.4). The capability of varying the loop setpoint can be useful in a number of processes such as heat treating and batch cooking. Time Figure 9.4 Example Ramp/Soak Cycle You can use simple ramp operations to improve some process startup procedures. For example, the controllers do a bumpless transfer from manual to automatic mode.
currently contained in LRSN. Note that the step number is zero-based. LRSN contains 0 when the profile is on step #1, 1 when the profile is on step #2, etc. Using the Ramp/Soak Flags - Each loop ramp/soak profile has a corresponding 16-bit variable, LRSF, that contains operational and status information for the profile. When you program a ramp/soak profile, you may optionally specify a RAMP/SOAK FLAG ADDRESS.
Editor The Ramp/Soak Editor allows you to Edit or Delete an existing programmed step or Insert a new one. To access the Ramp/Soak Editor: 1. Click PID Loop from the View menu (Alt+V,P). The PID Loop Directory dialog box appears (Figure 9.1a). The dialog box shows the Loop Mode, Loop number (1-64), Loop Title, and Enable/Disable state. 2. Select the PID Loop number that you want to enter or edit Ramp/Soak by using the left mouse button or the Arrow keys on the keyboard. 3.
Table 9.2 BIT LOOP/FUNCTION 1 1= Restart at the first step. To restart, toggle bit off, on, then off again. The restart occurs on the trailing edge of a square wave. 2 1= Hold at current step. To hold, set bit on. 3 1= Jog to next step. To jog, set bit on. Jog occurs on the rising edge of a square wave. 4 1= Finish. Indicates ramp/soak is completed. 5 1= Wait. This bit is set during a soak period when the process variable is not within a specified deviation from the SP.
SmarTune temporarily puts a loop into manual mode. It makes a selectable change to a loop’s output (Mn) to cause a process variable (PV) movement toward the center of the PV span. Resultant PV changes are sampled. After sampling criteria is met, sampled values are used to calculate theoretical optimum gain (Kc), reset (Ti), and rate (Td). Theoretical optimums are converted to pragmatic optimums by a heuristic and assigned.
Figure 9.6 Now enter each appropriate variable for the autotune process. The following section describes, in general terms, each variable and the PID autotune process for a temperature control loop. Caution SmarTune should not be used if a process might experience harmful effects as a result of arbitrary Mn assignment. During a tuning session, Mn values are assigned in such a way as to determine the frequency response of a process.
The PID algorithm consists of three components: the Proportional, the Integral (Reset), and the Derivative (Rate). Each component impacts the output to address the varied characteristics of the process variable.
Figure 9-8 Steady State Error Thermal loading is induced by energy losses to the surroundings, conduction through the machine, as well as the process. A proportionalonly controller can resolve this error only to a limited degree. The Integral Component The integral term of the PID expression provides a means to eliminate the error in the proportional band. This term is defined as the Error integrated over time.
Essentially, the SmarTune utility creates a disturbance by initiating a step increase of the PID output. Process variable samples are collected as this increase in output precipitates a change in the process variable. When the sample period is complete, the data collection is analyzed for time lag, gradient, overshoot, steady state error, and oscillation. Using a frequency analysis method, the optimum PID gain values are determined.
StartVariable AckVariable StartVariable RST AbortVariable AbortVariable RST Figure 9-10Example of Activation/Deactivation of Auto Tuning Process These variables could just as easily be manipulated with IF, IMATH or MATH statements in an SFPGM or SFSUB. Allowed discrete variables include bits in a V-memory word. • When Start Variable transitions from a false to a true, a SmarTune session is activated. • When Abort Variable is true, a SmarTune session is deactivated.
conceived for use when Automatic Download has been configured as false, but may be used for other purposes. If Automatic Download is false, a loop is left in manual mode with its output set to Safe Output when a tuning session has completed. When Automatic Download is true, a loop is switched back to its previous mode and is assigned its previous SP on completion.
rcew fghi jklm nopq Description tuning 0101 xxxx xxx0 10xx Small PV changes; Step too small? 0101 xxxx xxx0 11xx PV near span low; Range marginal? 0101 xxxx xxx1 00xx PV near span high; Range marginal? 0101 xxxx xxx1 01xx Small output change; Step too small? 0101 xxxx xxx1 10xx Output near span low; Range marginal? 0101 xxxx xxx1 11xx Output near span high; Range marginal? 0101 xxxx xx1x xxxx PV changes before output; Noisy signal? 0101 xxxx x1xx xxxx PV changes inconsistent with output; No
rcew fghi jklm nopq Description 0110 xxx0 10xx xxxx PV/output inconsistent 2; Noisy PV/output signal? 0110 xxx0 11xx xxxx PV/output inconsistent 3; Noisy PV/output signal? 0110 xxx1 00xx xxxx PV/output inconsistent 4; Noisy PV/output signal? 0110 xxx1 01xx xxxx PV/output inconsistent 5; Noisy PV/output signal? Table 9-5 lists the value parameters used by SmarTune, with the default values and the ranges possible for each. Table 9-5 Name Default Value Range Max Time 30.
Max Time Max Time is a time in minutes. When a SmarTune session is started, a timer is set to this value. If that timer expires before the session has completed, the session is aborted with an error (see Table 9-4). Noise Band When electrical signals are converted to values, they vary randomly by insignificant amounts. An insignificant amount is application dependent. Noise Band gives a value in engineering units denoting the boundary between a significant and an insignificant change.
Calculate Derivative If Calculate Derivative is false, only Kc and Ti are calculated, and Td is set to zero. If Calculate Derivative is true, Kc, Ti, and Td are calculated. Safe Output Safe Output is a Mn value that will not cause any harm to a process. The default is to use the loop Mn value just prior to a tuning session start. High Stop If a PV goes above High Stop, Mn is set to Safe Output and an error is declared (see Table 9-4).
1. To Document a PID Loop, Click on PID Loop... from the View menu or (Alt+V, P). The PID Loop Directory dialog box appears (Figure 9.1a). The dialog box shows the Loop Mode, Loop number (1-64), Loop Title, and Enable/Disable state. 2. Select the PID Loop number that you want to document by using the left mouse button or the Arrow keys on the keyboard. Click on the dialog box Document button or use the keyboard to Tab to the document button and press Enter or (Alt+O).
10 - FTLogger/FTTrend FTLogger Overview FTLogger collects data from multiple PLC devices to selected database files. Addresses are entered in a spreadsheet format with up to 1,000 addresses per log window. Data is logged based on a specific time frame or used defined trigger. See pages 182 to 201. FTTrend Overview FTTrend displays real-time data collected from multiple PLC devices or historical data collected from the FTLogger. This information is displayed in a graph with up to 256 points per graph.
FTLogger FTLogger Overview FTLogger collects data from multiple PLC devices to selected database files. Addresses are entered in a spreadsheet format with up to 1,000 addresses per log window. Data is logged based on a specific time frame deadband or event. Creating a Log Window To create a new Log Window, perform the following steps: 1. Launch FTLogger 2. Click menu. on the Toolbar or select New Program from the File Figure 1 3.
4. Select the appropriate communications server (see appendix ? for listing of sever device associations). 5. The default path appears in the Log File Path field. Enter a path if different from the default. 6. Click the radio button Online to select the device port. Result: Communication is established as soon as the addresses are inserted in the log window. Until addresses are entered into the log window, the server is not actually online.
Specific time - Logging terminates after the time indicated just below the radio button. After time duration - Logging occurs for the duration of the time selected starting from the time indicated under the Start Logging group box. After one log - Logging is terminated after the first and only log. Closing the log window prior to the selected stop logging time overrides the time and terminates all logging from the closed window. A message appears warning you of the consequences of shutting down this window.
Figure 4 • Logging Methods Periodic - Updates the cache in time intervals specified in edit box. The format is msec, sec, min, and hour. Minimum value is 0 (updates as quickly as possible) and maximum value is 24 hours. Deadband - Data variation value or a percentage of a data variation. Compares each data value from the addresses in the log window with the deadband value. If a particular value fluctuates by the deadband amount (+ or -), the server updates the cache for that data item.
• END • AND • AND NOT • OR • OR NOT When END is selected, only the low trigger range is used in the expression. • Logging method description box Describes the log method that is currently checked. This text changes whenever you select a different log method. • Logging Options Update only when data changes - Log addresses on an individual basis only if the address value (including format) or status has changed.
Scroll through the Tag combo box in a log window to display the corresponding address and description (if it exists) of the highlighted tag. The address and description are referred to as doc tips and can be turned on and off with these boxes. All tips are checked by default. Time Stamp Figure 7 • Time Format Displays the current time (time at which the page was activated) in a standard format or military format. The default is standard format.
application. The Device Source Configuration screen is disabled if no servers are running (Figure 8). Figure 8 Two different messages are available in the static message box. • Add, delete, or modify for running servers. The configured devices will be saved to the configuration file below when saving the current project. This message appears when devices are attached to the server and a log window is opened.
Figure 9 The Select Configuration File screen allows you to create a new configuration file or open an existing file • New File Create a New Configuration File - Opens a new file. New Configuration Filename - The path for the configuration file defaults to the same path as the executable. Modify the new file or path by clicking the Browse button. The Select a New Configuration File screen appears (Figure 10). Enter a file name or select a name using the drop down arrow in the Look in field.
Figure 10 • Existing File Open an Existing Configuration File - Opens an existing file. More Files - Contains the Most Recently Used (MRU) configuration files read from the registry similar to the MRU list of .LGR files from the File menu. The database file must include at least four fields (address, tag, descrip, and comment) in order. If these fields are not found, a documentation-mapping dialog appears to map user fields to FasTrak fields described above.
Figure 11 10 • FTLogger 2. Enter information in the Device Name, Communications Type, and Server fields. Notes: The first running server (alphabetically) appears in the Server field. Modification of the device name automatically updates the doc filename so that they mirror one another. The Re-read file every <> minutes field is not available at this time. 3. Click the Comm. Setup… button to initialize vendor specific device settings as shown for Siemens 505 (Figure 12).
Figure 12 4. Click OK to send the configuration to the server. Result: A connection is made to the doc database file for reading and writing. If the database you are connecting to does not match specifications such as a mismatch between table name or field names, the Documentation Database Mapping screen appears to map specific fields so that the software knows where various types of documentation reside (Figure 13).
For the mapping to be successful, the fields names must map to the table names. The fields that are mapped must be of type “Text” for address, tag, and description and “Memo” for the comment field. The lengths of the fields must be less than or equal to FasTrak’s lengths for all fields except the comment field. The maximum character length is: • Address = 64 • Tag = 32 • Description = 96 Failure to provide a valid mapping prevents the device from being added. Modifying Devices 1.
Figure 15 2. Select a server from which you wish to delete a device. 3. Select a name in the Device Names field to delete devices. 4. Click Select All and OK to delete all the devices for a selected server. Documentation Once a device is configured you can specify a database file to hold and sort all documentation. Multiple users can simultaneously modify documentation for the same device so regular updates can be scheduled to get the latest documentation within the database.
addresses, and the general file format are verified. This action causes the import process to be slightly slower. To start the import process, click the OK button. Documentation can also be exported by selecting File → Import Documentation from the menu. Using the Log Sheet The Log Sheet displays information about the devices such as address, tag, description, value, timestamp, and status. You can change the way the data is presented and determine your status - online or offline.
enter text in the address field. Entering an address creates an update of all other columns. You can enter a range of addresses by using the fill format equations below. Address\+-[count][\increment][\format] Address1-Address2[\increment][\format] Tag A tag is a very short description of an address and can be used in place of an address. Devices must exist if you want to edit this field. Tags are stored in database files containing addresses and their corresponding descriptions.
entire packet would have failed by including 1 erroneous address. Unlike SoftShop, ControlShop does not implement the type of error checking that would prevent a user from entering an invalid address so it is up to the PLC/device to report these types of errors. When offline, all the status rows will display the string “Offline”. This field is not displayed by default.
Destination can be in the form of an end address or a count. For example, a start address of 400001 and an end address of 400003 will display 400001, 400002, and 400003 in the log window. Selecting a count of 3 instead of an end address will give the same results. However, if increment is set to 2 and end address is selected addresses 400001 and 400003 will be displayed while addresses 400001, 400003, and 400005 will be displayed if count is selected.
Select All The “Select All” menu item under the main “Edit” menu can be used to unconditionally highlight all the rows in the active log window. Features such as delete, format, size, on, off, cut, copy, and paste can be performed on the entire log window. Log Status Window The log status window shown below lists successful and failed logs as well as any miscellaneous errors that may occur while attempting to log data (dependant upon setup criteria) for all log windows that are currently logging data.
Figure 19 This dialog allows you to select which log windows we will be receiving status messages from (Source group box) as well as which status messages we wish to receive (Include group box). These messages can also be written to a file by checking the “Save Status Messages to a File” box in the “Status File” group box and including a path and filename. You can click on the “Browse” button to bring up a common file search dialog as shown above.
Figure 20 The “Error Types” list box holds all the error situations in which a response can be preprogrammed. Error situations include communication timeouts and device errors. The “Error Responses” group box lists all the possible responses for the item that is currently highlighted in the “Error Types” list box. If no items are checked in the group box, no action will be taken when the corresponding error situation arises.
FTTrend Overview FTTrend displays real-time data collected from multiple PLC devices or historical data collected from the FTLogger. This information is displayed in a graph with up to 256 points per graph. You can view different devices on the same graph and control how often the information is gathered and displayed. Creating a Trend Window To create a new Trend Window: • First launch FTTrender • Click menu.
Configuring FTTrend Devices Before any addresses can be inserted into a trend window, devices must be configured so that the servers know where to read the addresses. Selecting "Device Source…" from the Setup menu list does this. Only devices from “running” servers can be configured. Opening up a trend window starts a server for the selected server. Once a window is opened and the server starts running, it will continue to run throughout the duration of the application.
Figure 3 Within the “Select Configuration File” dialog, you can create a new configuration file or open up an existing one. If no configuration files exist, the “New File” radio button will be checked and the edit box within this group will hold a default configuration path and file. The path for the configuration file will default to the same path as the executable.
The list box within the “Existing File” group box will hold the most recently used (MRU) configuration files read from the registry similar to the MRU list of .LGR files under the “File” menu The database file must include at least 4 fields (ADDRESS, TAG, Description, and COMMENT) in order. If these fields are not found, a documentation-mapping dialog will be displayed to map user fields to FasTrak fields described above.
Figure 6 When “OK” is selected from the “Add Device” dialog, the configuration is sent to the server and a connection is made to the doc database file for reading and writing. If the database you are connecting to does not match specifications (i.e. there is a mismatch between table name or field names) then a dialog will be displayed to map specific fields so that the software knows where various types of documentation reside. This dialog is shown below.
than or equal to FasTrak’s lengths for all fields except the comment field. The max character length for “Address” is 64. The max character length for “Tag” is 32. The max character length for “Description” is 96. Failure to provide a valid mapping will prevent the device from being added. Modifying Devices To modify a device that is already configured select the “Modify Device” button from the “Device Source Configuration” dialog and the dialog below will be displayed.
Figure 9 Clicking on “Select All” followed by “OK” will delete all the devices for a selected server. You can also click in the “Device Names” list box to manually select which devices to delete. Trend Window Graph Setup To setup the graph settings: 1. Select Graph from the Setup menu. Result: The Graph Settings tab dialog box appears (Figure 10). Figure 10 There are six pages belonging to this property sheet.
General Tab The General Tab settings are the settings for both the Y and X-axis: • Refresh Rate is the time between screen updates. • Background Color- sets the color of the graph background. • Axis Color- sets the X and Y-axis color. • Grid – turns on and off the X and Y reference lines. • Grid Color- sets the color of the X and Y reference lines • Title is the name of the graph. Any name up to 64 characters can be used. Font Tab Font Tab changes character fonts of the graph.
[Month]/[day]/[year] - each represented by 2 digits. [month] /[day – each represented by 2 digits. The default format is ([month]/[day]/[year] - each represented by 2 digits). If neither is checked then nothing is display along the X-axis. “Use Start Times ” or “Use Start Date " allow you to set a time range to view logged data. If Use Start Time or Use Start Date is not checked then data will be read from the server or database and plotted immediately provided that the trend window is online and active.
the Y-axis Tab dialog box. The y-axis scale values and titles can be turn on and off by selecting/deselecting Show Number and Show Y-Axis Titles check boxes. Figure 13 Key/Pens Display There are five Key display options (display at the bottom of FTTrender window) available in FTTrender and four Pen (pen point that plots the data value (figure 14): • Show Value, the value of the data point being read. • Show Address, the current address being read.
Figure 14 Database Tab FTTrend can display real time data as well as data stored in a database. When FTTrend is in the real data mode it's data is also stored in a database. This provides the ability to not only see the most current data plotted but past data as well. The settings under Graph Settings Database tab (Figure 15) is where the database options are selected.
Compact Database When Going Online check box, when checked, helps to limit the amount of disk space used by FTTrend. When data is stored in a database some of the fields are not completely full. By compacting the trended data removes the spaces between these fields. The data base filename and location are user defined. A new path and filename can entered in the Database Path selection box. The Browse button is used to help in the location of file folders and pre-established files.
Figure 17 Choose a pre-setup device name from the drop down PLC selection box. This is the device from which data is to be retrieved from. Then enter an address (under Address box) or tag (under Tag box) to plot. Entering an item in the “Tags” list box will display the corresponding address in the “Address” edit box. If a description is associated with the address or tag it will be displayed in the Description box. The data point must now be associated with an Y-Axis chart see Y-Axis Tab for chart setup.
Figure 18 A previously logged database file must be entered under the Log File Path. Choose a pre-setup device name from the drop down PLC selection box. This is the device from which data is to be retrieved from. Then enter an address (under Address box) or tag (under Tag box) to plot. Entering an item in the “Tags” list box will display the corresponding address in the “Address” edit box. The data point must now be associated with an Y-Axis chart see Y-Axis Tab for chart setup.
Viewing Charts To view different time periods on a graph select one of the following options under the View Menu: • Prev Page (<<), goes one complete time interval page into the past. • Prev Time (<), goes one time interval in to the past. • Next Time (>), goes one time interval into the future (cannot go past current real time). • Next Page (>>), goes one time interval page into the future (cannot go past current real time).