Page 1
Technical FA-M3 Training Text Information FA-M3 Programming Tool WideField2 for Ladder TI 34M6A82-01E TI34M6A82-01E 2002.11 2nd Edition...
Page 2
Precautions The operating information described in this training guide is written for use with the training system and training kit recommended by Yokogawa. When operating measurement and control devices for actual plant equipment, be sure to read the warning labels pasted on the devices and cautionary notes provided in the...
Functional Specifications ..............1-12 Installing FA-M3 Programming Tool WideField2 (SF620-ECW)....2-1 Overview of WideField2..............2-1 Installing and Starting WideField2............. 2-3 Basic Operation of FA-M3 Programming Tool WideField2 ......3-1 Screen Layout .................. 3-1 List of Files ..................3-5 Creating a Ladder Program................4-1 Creating a New Project..............
Page 4
FA-M3 Programming Tool WideField2 by operating the training kit. It is targeted at first time users of FA-M3 with basic understanding of sequence circuits and Windows concepts. The book should be read together with the other FA-M3 instruction manuals for a deeper understanding of the topics introduced herein.
< Features and System Configuration > Features and System Configuration Features Compact yet powerful... The FA-M3 is a compact PLC that can quickly process, respond and control processes of varying scales, providing for significantly increased performance and reduced cost of control panels and machines. Small...
Page 6
Like a set of files Easy remote system maintenance by e-mail... The FA-M3 supports remote system maintenance and engineering by e-mails. You may report errors, read from or write to devices, read system and user logs, and monitor a system using trace functions, all remotely.
< Features and System Configuration > System Configuration 1.2.1 Unit A unit is the smallest system consisting of the following modules. Install the modules below on a base module to compose a unit. Name Description Five types are available depending on the number of Base module modules to be installed.
Page 8
< Features and System Configuration > Fiber-Optic FA-bus 2 module FA-M3 Main unit Slot numbers 001 to 016 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 Add-on sequence CPU (Up to 3 CPUs)
Page 9
< Features and System Configuration > Restrictions on CPU Module Locations 1. The sequence CPU module that is to be used as the main CPU must be installed in slot 001 of the main unit. 2. In addition to the main CPU, sequence CPUs may also be installed in slots 002 to 004 of the main unit, acting as add-on sequence CPU modules.
< Features and System Configuration > FA-M3 Configuration 1.3.1 Main Unit Module Names Base module Power supply module CPU module Input/output and special modules Figure External view of FA-M3 TI 34M6A82-01E 2nd Edition : Nov. 1, 2002-00...
Page 11
< Features and System Configuration > 1.3.2 Base Module Overview The base module is used for holding the different modules. There are five types of base module: 4 slots, 6 slots, 9 slots, 13 slots and 16 slots modules. Select an appropriate module type according to your application.
Page 12
- Do not install the F3BU16-0N on the DIN rail. The metallic chassis of the base module is connected to the signal ground of the FA-M3 system. TI 34M6A82-01E 2nd Edition : Nov. 1, 2002-00...
Page 13
< Features and System Configuration > 1.3.3 Power Supply Module Components and their Functions F3PU10/F3PU20/F3PU30 Power Supply Modules The following figure shows the power supply modules with their covers removed. F3PU26 Power Supply Module The following figure shows the power supply module with its cover removed. F3PU16 Power Supply Module The power supply module supplies 24 VDC to a base module with 4 or 6 slots (it occupies one slot space).
Page 14
1-10 < Features and System Configuration > 1.3.4 CPU Modules Components and their Functions F3SP21/F3SP25/F3SP28/F3SP35/F3SP38 CPU Modules The external view of a F3SP53/F3SP58/F3SP59 CPU is shown below. TI 34M6A82-01E 2nd Edition : Nov. 1, 2002-00...
Page 15
1-11 < Features and System Configuration > 1.3.5 ROM Packs A CPU module can be installed with a ROM pack to store programs and device data. If programs and partial device data are made resident in the ROM, the CPU module automatically reads the program and device data from the ROM pack at powering up and executes the program.
1-12 < Features and System Configuration > Functional Specifications 1.4.1 CPU Module Types and Performance Specifications Table List of performance specifications (F3SP - S) (1/2) Specifications Item F3SP28-3S F3SP53-4S F3SP38-6S F3SP58-6S F3SP59-7S Control Mode Repeating operations (by stored program) Input/output control mode Refresh method (direct refresh instruction) Programming language Structured ladder language and mnemonic language...
Page 17
1-13 < Features and System Configuration > Table List of performance specifications (F3SP - S) (2/2) Specifications Item F3SP28-3S F3SP53-4S F3SP38-6S F3SP58-6S F3SP59-7S 0.045 to 0.0175 to 0.045 to Basic 0.18 µs per 0.07µs per 0.18µs per 0.0175 to 0.07µs per instruction instructions Instruction instruction...
Page 18
1-14 < Features and System Configuration > 1.4.2 Ladder Sequence Device Performance Specifications Table List of devices F3SP28-3N/-3S F3SP38-6N/-6S F3SP59-7S F3SP53-4H/-4S F3SP58-6H/-6S Device Name Remarks No. of No. of No. of Range Range Range points points points X00201 to X00201 to X00201 to Input relay X71664 (not...
Page 19
1-15 < Features and System Configuration > Table Device Capacities and Configuration Limits F3SP28-3N/-3S F3SP38-6N/-6S F3SP59-7S F3SP53-4H/-4S F3SP58-6H/-6S Device Name Initial Initial Initial Limits Limits Limits value value value Number of timers Number of timers Number of timers Timer 1024 2048 2048 and counters...
Page 20
1-16 < Features and System Configuration > 1.4.3 Devices Input Relay (X) Input relays are used for entering an ON/OFF state of an external device such as a push button or a limit switch. Y00701 X00601 Input from an Y00702 X00602 extemal device Output Relay (Y)
Page 21
1-17 < Features and System Configuration > Shared Relay, Extended Shared Relay (E), Shared Register, Extended Shared Register (R) When multiple CPU modules are installed, these relays and registers are used for exchanging data between the CPUs. Shared relays and registers can be used regardless of how multiple CPUs are combined.
Page 22
1-18 < Features and System Configuration > Timer (1 ms, 10 ms, 100 ms timers) Each timer is a countdown type which starts counting at the rising edge of a timer input and times out when the current value reaches 0. When the timer times out, its timeout relay is set to ON.
Page 23
1-19 < Features and System Configuration > Continuous Timer (100 ms timer) A 100-ms continuous type is a countdown type, which maintains its current value and timeout relay state even when the input condition is set to OFF. When the input condition is set to ON again, the timer starts counting from the maintained values.
Page 24
1-20 < Features and System Configuration > Counter (C) A decrement counter detects the rising edge of the counter input when the Counter instruction is executed and updates the current value. When the current value reaches 0, count up is said to occur. At this time, the Count-Up relay of the counter turns on. When the reset input is on, the counter does not accept count input.
Page 25
1-21 < Features and System Configuration > File Register (B) One point of file registers consists of 16 bits. As in data registers, data can be read/written on a 16-bit or 32-bit basis using application instructions. X00502 B0001 X00503 B0001 D0001 Index Register (V) Index registers are used for performing index modification for devices.
WideField2 (SF620-ECW) Overview of WideField2 The SF620-ECW FA-M3 Programming Tool WideField2 for the FA-M3 sequence CPU modules allows a user to create and debug programs, as well as manage applications. Its enhanced program reuse feature, coupled with functions for debugging various advanced function modules of FA-M3 dramatically increases efficiency of program and application development.
Page 27
*2: Remote OME (Remote Operation Maintenance & Engineering) is the Search generic name of a mechanism for remote maintenance of equipment Change Word Data Search Instruction proposed by Yokogawa and is a registered trademark of Yokogawa Change Long Word Data Electric Corporation. Find Next Change Current Value of Timer/...
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> Installing and Starting WideField2 This section describes how to install the WideField2 software, how to remove it from the PC when it is no longer required, as well as how to start the WideField2 software.
Page 29
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> 2.2.1 Setting up WideField2 This section describes how to install and set up the WideField2 software on a personal computer. We describe here WideField2 setup on the Windows NT environment. Take note that there may be some differences in the procedure on different operating systems.
Page 30
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> Click [Next]. The License Agreement dialog box opens. 5. Click [Yes]. The Customer Information dialog box will be displayed. The license agreement document is also provided with the product. Click [Yes] only if you have completely read the license agreement and agree with the terms therein.
Page 31
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> 6. Enter the Serial Number and click [Next]. The Choose Destination Location dialog box is displayed. The Serial Number is given on the registration card provided with the product. 7. Select the installation destination and click [Next].
Page 32
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> 8. Select the components you wish to install and click [Next]. Installation begins. - The components available for installation include the WideField2 program files, the sample program files and the instruction manuals. Turn on the checkboxes for the components you wish to install.
Page 33
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> Changing Folder Security Windows 2000 allows access rights to be defined for folders. WideField2 can be installed only in a folder which restricted users have the right to access. You can also change the access right for an installation folder during the installation.
Page 34
< 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> 2.2.2 Removing WideField2 This section describes how to remove the WideField2 software Removing the WideField2 software does not automatically delete project files or other application files created by the user. Procedure 1. Insert the product CD-ROM into the CD-ROM drive.
Page 36
2-11 < 2. Installing FA-M3 Programming Tool WideField2 (SF620-ECW)> 2.2.3 Starting WideField2 This section describes how to start the WideField2 software. Procedure 1. Select [Programs]―[WideField2]― [WideField2] from the Start menu. WideField2 runs. CAUTION Do not run the WideField2 software and the WideField (SF610) software concurrently.
< 3. Basic Operation of FA-M3 Programming Tool WideField20> Basic Operation of FA-M3 Programming Tool WideField2 Screen Layout This section describes the layout of a WideField2 screen. Figure Screen Layout Title Bar The title bar displays the name of the open project, the name of the active window and the name of the file being edited.
Page 38
< 3. Basic Operation of FA-M3 Programming Tool WideField20> Toolbar The toolbar displays icons of the most frequently used menus from the menu bar. You can select a menu from the menu bar or the toolbar. To register a menu to the toolbar, use the Setup Environment dialog box.
Page 39
< 3. Basic Operation of FA-M3 Programming Tool WideField20> Status Bar The status bar displays various status information of the WideField2 software. To switch between showing or hiding the status bar, use [View]-[Status Bar]. Explains outline of the menu that the Displays Overwrite/Insert mode.
Page 40
< 3. Basic Operation of FA-M3 Programming Tool WideField20> Configuration dialog box If [Configuration] on the Define Program Components dialog box has been previously set to [Setup], [Configuration] will be displayed in the project window. Double-clicking [Configuration] invokes the Configuration dialog box.
< 3. Basic Operation of FA-M3 Programming Tool WideField20> List of Files This section describes the various generated files. Generated Files CAUTION User program files in WideField2 are managed as version 4 files in WideField series. Table Specifications of Generated Files...
Page 42
< 3. Basic Operation of FA-M3 Programming Tool WideField20> Generated Icon Extension Item Specifications File Up to 8 alphanumeric characters beginning with a letter. Structure Type String may also include special characters ‘-‘ (hyphen) .YGRS File Name Definition File and ‘_’ (underscore).
Page 43
< 3. Basic Operation of FA-M3 Programming Tool WideField20> Elements of Edit Circuits This section describes the elements of an edit circuit. Circuit Comment 0001 * * * Initialization Routine * * * Circuit Tag Name Label Y201 LABEL Turns on...
< 4. Creating a Ladder Program > Creating a Ladder Program In this chapter, you will practice how to operate the WideField programming tool and how to create a ladder program. Creating a New Project When you create a new project, a folder with the same name as the project is automatically created and the following files are generated in the folder.
< 4. Creating a Ladder Program > Creating a New Block File Block files store blocks of a ladder diagram. An FA-M3 executable program consists of multiple block files. 1. First, select [File]–[Open Project]. 2. Double-click the TEST1 folder on the display screen.
Setting up Communication You can set the method of communication with the FA-M3. The settings are reflected as soon as you connect to the FA-M3. Procedure for Setting Up Communication 1. Select [Tool]–[Setup Environment], and click the [Setup Communication] tab.
Page 47
If fixed mode is selected, select the communication mode from the list box. (Use this when you know your CPU's communication mode.) If auto-detect is selected, it will take some time to connect to the FA-M3. The initial setting is for auto-detect. (You will not need to change any settings if RS-232C via modem is used.)
< 4. Creating a Ladder Program > Entering and Editing Instructions Display the Edit Block screen and select to show the following 6 items using the View pull-down menu. - Toolbar - Instruction Palette - Status Bar - Function Keys - Action Monitor - Project Window 4.4.1...
Page 49
< 4. Creating a Ladder Program > 4.4.2 Entering and Deleting Connection Lines 1. Using the mouse - Drawing a connection line Click the connection line icon and drag the connection line cursor (cross cursor) from the starting position of the connection line to the ending position. To return the cross cursor to the normal cursor, right-click the mouse or press [ESC].
< 4. Creating a Ladder Program > Creating a Ladder Program 4.5.1 Editing a Block 1. In the [Edit Block: TIMER1] screen, create the following ladder circuit. Note that, for the 3FSP58, T1921 must be substituted for T961. CAUTION For the 3FSP25 CPU module, T961 is the start address for the continuous timers. For the 3FSP58 CPU module, T1921 is the start address for the continuous timers.
Page 51
< 4. Creating a Ladder Program > 4.5.2 Defining Program Components 1. Select [Project]–[Define Program Components]. The Define Program Components screen for project name “TEST1” is displayed. 2. Click on [TIMER1] displayed in the [Block List] as shown below to activate it (enclose it in a box).
Page 52
< 4. Creating a Ladder Program > 4.5.3 Downloading a Program 1. Select [Online]–[Download]. From the available [Project] and [Block/Macro] options, select [Project]. With the F3SP28-3S and other newer CPU modules, partial downloading of Block/Macro is available. With the F3SP25-2N and other older CPU modules, partial downloading is not available. 1.
Page 53
4-10 < 4. Creating a Ladder Program > 4.5.5 Adding a Block Now, we will add the block named SETRST to the TEST1 program, download the program, and check its operation. CAUTION The following sample program checks for successful execution of the Out, Set, and Reset instructions.
Page 54
4-11 < 4. Creating a Ladder Program > 8. Activate (Enclose in a box) the SETRST block in the block list column and press the [Select] button. (See figure below) 9. Click [OK]. 10. Select [Online]–[Download] and download the project. 11.
Page 55
4-12 < 4. Creating a Ladder Program > 4.5.6 Downloading 2 Blocks We will now register the TIMER1 and SETRST blocks to an excutable program and download them. 1. Close the Edit Block and Block Monitor window currently displayed. 2. Select [Project]–[Define Program Components]. 3.
< 5. Ladder Program Training > Ladder Program Training Training Kit System Configuration Training kit FA-M3 → Slot number PU20 SP25 AD04 DA02 XD32 YD32 Programming tool cable Personal computer Training kit specifications: - 12VDC data input 16 toggle switches for ON-OFF (ON) operation,...
Page 57
< 5. Ladder Program Training > Terminal Number and Physical Address The following shows an example for accessing terminal number 1 of a 32-point DC input module. The physical address of an input/output relay is represented by one alphabetic character and five numeric digits.
Page 58
< 5. Ladder Program Training > I/O list (1) DC input module: F3XD32-3N XD32 Training kit Tag name SW No. Terminal No. Physical address X00801 START Exercises 1, 2, and 3 X00802 STOP X00803 Exercise 3 X00804 X00805 X00806 X00807 X00808 X00809 X00810...
Page 59
< 5. Ladder Program Training > I/O list (2) TR output module: F3YD32-1A YD32 Training kit Tag name SW No. Terminal No. Physical address Y00901 HOLD Y00902 LAMP1 Y00903 LAMP2 Y00904 SHOT Y00905 Y00906 Y00907 Y00908 Y00909 Y00910 Y00911 Y00912 Y00913 Y00914 Y00915...
< 5. Ladder Program Training > Exercise 1 (Circuit Design Using Physical Addresses) 5.2.1 Edit Ladder Diagram Outline of Exercise 1 In Exercise 1, you will use physical addresses to design a self-hold circuit. When you set an input switch (X00801) to ON, an output indicator (Y00901) is turned on. Even when you set this input switch (X00801) to OFF, the output indicator remains on.
Page 61
< 5. Ladder Program Training > Creating a New Block DEMO1 1. Select [File]–[New] and enter “DEMO1” as the file name of the block. 2. Close the [Local Device/Properties] screen. 3. Create the circuit shown in the following diagram. Then insert comments according to the steps given below. TI 34M6A82-01E 2nd Edition : Nov.
Page 62
< 5. Ladder Program Training > 4. Enter a circuit comment There are 2 ways to enter the circuit comment. - Click the Circuit Comment icon on the instruction tool palette and click the position where you wish to enter the comment (Alternatively, you can also select [Edit]–[Ladder Symbol]–[Circuit Comment]) - Move the position cursor to the position where you wish to enter the circuit comment and press the [Ctrl]+[F7] keys.
Page 63
< 5. Ladder Program Training > 7. Edit/Delete a subcomment - As with entering a subcomment, open the subcomment input window, modify the comment and press the [ENTER] key. - As with entering a subcomment, open the subcomment input window, delete the comment, press the [ENTER] key or click the [OK] button.
Page 64
< 5. Ladder Program Training > 5.2.2 Useful Functions of Edit Ladder Diagram Inserting an Empty Line To insert an empty line into the ladder diagram, select [Edit]–[Insert Line] from the menu. An empty line will be inserted at the position cursor line. Figure Inserting an Empty Line Selecting Lines...
Page 65
5-10 < 5. Ladder Program Training > Deleting Lines Lines within a specified range can be deleted in line units. The circuit comments and subcomments are also deleted. Figure Deleting Lines Procedure for Deleting Lines 1. Select the line(s). 2. Select [Edit]–[Delete Line], or press the [Delete] key. The following dialog box appears.
Page 66
5-11 < 5. Ladder Program Training > Temporarily Deleting Lines/ Recovering Temporarily Deleted Lines 1. Temporarily Deleting Lines Lines in specified areas can be temporarily deleted in line units. Temporarily deleted lines are displayed with their background color changed. This function is handy for temporarily deleting lines of circuits while editing programs, when you are uncertain whether the lines should be deleted or not.
Page 67
5-12 < 5. Ladder Program Training > Copying and Pasting Lines Lines in specified areas can be copied and moved to specified positions in line units. Lines can be copied and pasted to the same or a different window. Circuit comments and sub-comments are also copied and pasted. Figure Copying and Pasting 1.
Page 68
5-13 < 5. Ladder Program Training > Copying a Circuit Image Using the same procedure as for copying lines, select [Edit]–[Copy Image] to copy the circuit edit image to the clipboard in bitmap format. The copied circuit image can be pasted to software such as MS-Paint and MS-Word.
Page 69
5-14 < 5. Ladder Program Training > 2. Revert to Status Prior to Input If you have entered an incorrect instruction, etc., you can delete the instruction and revert to the previous status. Example: 1) When you enter in overwrite mode, the instruction is overwritten. 2) Select [Edit]–[Undo].
Page 70
5-15 < 5. Ladder Program Training > Index View The index view uses circuit comments as headings, and hides circuits written up to the next circuit comment. The index view is effective for grasping the overall flow of the ladder circuit first, before editing the details. Figure Concept of Index View 1.
Page 71
5-16 < 5. Ladder Program Training > 5.2.3 Defining the Executable Program Components Now, we define the file (DEMO1 block) saved earlier in step (10) of section 5.2.1 as a component of the executable program (JISYU1). 1. Select [Project]–[Define Program Components]. 2.
5-17 < 5. Ladder Program Training > Exercise 2 (Circuit Design Using Tag Names and Local Devices) In Exercise 2, you will use tag names to design circuits, and then assign physical addresses to the tag names. You will use timers and counters as local devices. 5.3.1 Edit Ladder Diagram Outline of Exercise 2 In Exercise 2, you use tag names to design circuits instead of using physical addresses.
Page 73
5-18 < 5. Ladder Program Training > Creating a New Block (DEMO2) 1. Close any edit block window or block monitor window currently displayed. 2. Select [File]–[New], enter “DEMO2” and click [OK]. 3. In the [Local Device/Properties] screen, enter a title of you choice in the title field, select "1"...
Page 74
5-19 < 5. Ladder Program Training > What are Local Devices? - Local devices are devices specific to a block. Unlike normal devices (global devices), local devices are visible and can be used only within a block. - You can allocate some normal devices as local devices in the configuration (you will learn how to do this in Section 5.3.3).
Page 75
5-20 < 5. Ladder Program Training > Defining Block Tag Names 1. Select [Edit]–[Block Tag Name Definition]. The Block Tag Name Definition DEMO2 window is displayed. 2. Click [Functions]–[Read Circuit]. A message "Reading from changed circuit. Do you want to continue?" is displayed. Click [Yes].
Page 76
5-21 < 5. Ladder Program Training > Creating Block DEMO2 1. Enter and complete the remaining circuit as shown below. Local devices are displayed in red (non user-definable color). Tag names yet to be assigned with physical addresses are displayed in blue. 2.
Page 77
5-22 < 5. Ladder Program Training > 5.3.2 Defining Program Components 1. Select [Project]–[Define Program Components]. 2. Delete DEMO1 in block number 1, and register (select) DEMO2. 3. Set [Configuration] to [Setup], and click [OK]. (You must select [Setup] when using local devices.) 5.3.3 Setting a Starting Number for Local Devices 1.
Page 78
5-23 < 5. Ladder Program Training > 5.3.4 Downloading and Monitoring a Block 1. Select [Online]–[Download] and downloads the EX1 executable program. 2. Select [Online]–[Block Monitor] and double-click DEMO2. 3. The DEMO2 block monitor window is displayed. 4. Turn off X802, turn on X801 and then turn it off. The circuit starts. 5.
Page 79
5-24 < 5. Ladder Program Training > Device Monitor 1. With the FA-M3 connected, select [Online]–[Device Monitor]. The Device Type sub-menu appears. Figure Device Type Sub-menu 2. From the Device Type sub-menu, select the device for monitor display. The monitor screen for the target device appears.
Page 80
5-25 < 5. Ladder Program Training > 3. If [I/O Relay] is selected, the I/O Configuration screen shown in the figure on the next page appears. Select the slot for monitor display. - If the I/O device does not have an I/O relay, the [Input/Output Relay] item will be displayed as inactive and cannot be selected.
Page 81
5-26 < 5. Ladder Program Training > 5.3.6 Debug Functions The debugging functions are as follows: - Forced set/reset of relays - Change data in word/long word units for registers and relays - Change current value of timers/counters - Change set value of timer/counters - Stop refresh - Start/stop block The debugging functions can be used when the CPU module’s operation mode is in...
Page 82
5-27 < 5. Ladder Program Training > Forced Setting/Resetting the X00801 Relay 1. Display the DEMO2 block monitor. 2. Turn off X00801 first (Next, we will force this relay to ON). 3. Turn on X00802, and then turn it off again. Check that the 3 LED indicators are off. 4.
5-28 < 5. Ladder Program Training > Exercise 3 (Structured Ladder Programming) 5.4.1 Edit Ladder Diagram Outline of Exercise 3 In Exercise 3, you will perform structured ladder programming by creating a ladder diagram and combining it with the ladder diagrams you created in exercises 2 and 3. Four data registers are used as local devices starting with /D00001.
Page 84
5-29 < 5. Ladder Program Training > Creating Block DEMO3 1. Select [File]–[New]. 2. Enter “DEMO3” as the file name and click [OK]. 3. Set the number of data registers used as local devices to 4, and click [OK]. 4. Create the diagram as shown below and save it. Notes on the READ/WRITE Instruction Explanation on the READ/WRITE parameters used in this exercise is given below.
Page 85
5-30 < 5. Ladder Program Training > 5.4.2 Setting Configuration The contents of the configuration setup depend on the CPU type. Configuration setting items are as follows: - Device Capacities - Setup Data Lock-up Range at Power Failure/Local Devices - Operation Control - Setup Data Register Initial Data - Setup DIO - Setup FA Link...
Page 86
5-31 < 5. Ladder Program Training > Setting Device Capacities The capacity for each type of device can be set. Figure Screen for Setting Device Capacities Table Input Items for Setting Devices Setting Item Setting Method Comments Capacities of Internal Relay (I) and Set using the keys or the spin Data Register (D) buttons.
Page 87
5-32 < 5. Ladder Program Training > [Power Failure/Local] Tab Use this tab to set up the data lock-up range at power failure and the local device range for various devices. Set the starting number for the local devices (four data registers) to be used in DEMO3 after defining program components (see Section 5.4.4, "Defining Program Components and Downloading").
Page 88
5-33 < 5. Ladder Program Training > Setting Operation Control The operation method can be set. Figure Screen for Setting Operation Control Table Input Items for Setting Operation Control Setting Item Setting Method Comments Error-Time Action Click on the [Run] or [Stop] radio buttons.
Page 89
5-34 < 5. Ladder Program Training > 5.4.3 Setting Program Execution Mode ACT/INACT instructions are instructions for starting and stopping a block. To use these instructions in a program, the program execution mode on the [Operation Control] tab in the configuration should be set to [Specified Blocks]. 1.
Page 90
5-35 < 5. Ladder Program Training > 5.4.4 Defining Program Components and Downloading 1. Select [Project]–[Define Program Components]. 2. Set DEMO3 to block number 1, DEMO2 to block number 2 and DEMO3 to block number 3 as shown in the figure below using the [Select] button. CAUTION If [Run Specified Block] is selected in the configuration, the block registered in block number 1 will be started.
Page 91
5-36 < 5. Ladder Program Training > 5.4.5 Checking the Operation 1. Select [Online]–[Program Monitor] and double-click DEMO3. The DEMO3 block monitor is displayed. 2. You can display multiple windows. Open the DEMO1 and DEMO2 block monitors too. 3. Turn off X00802, turn on X00801 and then turn it off again, and turn on X00803. DEMO2 starts.
Page 92
5-37 < 5. Ladder Program Training > 5.4.6 Online Editing Online editing is a function that modifies a CPU program while it is running. Online editing can be used when the CPU is in the debug or stop mode. Online editing can be used for blocks and macros.
Page 93
5-38 < 5. Ladder Program Training > Changing Data Using Online Edit 1. Open the DEMO3 program monitor window and close other windows. 2. Select [Debug/Maintenance]–[Start Online Editing]. [Online Editing] is displayed in the title bar of the block monitor. 3.
This function displays any error and alarm status, which is currently generated. Display System Log The FA-M3 stores events such as errors and power on along with time information in the CPU. You can use this function to display, save to file or print the system log.
Instruction number where the alarm was generated or the module slot number where the I/O error occurred Displaying the Alarm Display Screen 1. While connected to the FA-M3, select [Debug/Maintenance]–[Display Alarm]. The alarm display screen will be displayed. [Display Alarm] in the menu will change to [Redisplay Alarm].
Page 96
< 6. Maintenance Functions > Error Messages Displayed in the Alarm Monitor This displays the error status output of the sequence CPU module. See the self-diagnosis section in the “Sequence CPU Instruction Manual-Functions” for further details. Table Alarm Messages Message Code Description Trouble-shooting...
Page 97
< 6. Maintenance Functions > Message Code Description Trouble-shooting • Turn ON the sub-unit power supply Sub-unit Cannot read/write to the module installed in transmitter 12-0000 • Check the optical FA the sub-unit error bus or the optical FA bus 2 cables Sub-unit •...
< 6. Maintenance Functions > Display System Log This displays, saves to file, and prints log data such as errors or power ON events stored in the CPU. It can store a maximum of 70-150 pieces of data in memory, although the exact number varies according to the kind of information.
Page 99
< 6. Maintenance Functions > Displaying the System Log 1. Select [Debug/Maintenance]–[Display System Log] while connected to the FA-M3. The system log display screen will appear. The [Display System Log] menu will change to [Redisplay System Log]. 2. Selecting [Debug/Maintenance]–[Redisplay System Log] will read the most recent system log from the CPU and redisplay it.
Page 100
< 6. Maintenance Functions > Reading From the System Log File This reads the system log saved to a file. 1. Select [File]–[Open]–[Log File]. The following dialog box will be displayed. Figure Dialog Box for Opening a Log File 2. Select the file to be read from the displayed list of log files and then click the [Open] button.
Page 101
< 6. Maintenance Functions > Messages Displayed in the System Log This displays the operation log of the sequence CPU module. For further details, see the self-diagnosis section in the “Sequence CPU Instruction Manual-Functions.” Table System Log Messages Message Description Action Startup completed Initialization after power OFF completed...
< 6. Maintenance Functions > Display User Log User Log The user log functio1n, just like the system log function, records data that is generated such as user system errors or operation status. The user log function records data generated by user programs. The recorded data is called the user log and can be read using an instruction or the programming tool.
Page 103
6-10 < 6. Maintenance Functions > Defining User Log Message 1. Select [Project]–[User Log Message]. 2. Enter the messages for main code 1 and main code 2 as shown below. TI 34M6A82-01E 2nd Edition : Nov. 1, 2002-00...
Page 104
6-11 < 6. Maintenance Functions > Adding a User Log Save Instruction 1. Double-click DEMO1 from the block list in the project window. 2. Add the User Log Save instruction shown below and save the file. Meaning of instruction operands ULOG S1 : Main Code.
Page 105
5. Turn on X802 and then turn if off again. Displaying the Display User Log Screen 1. Select [Debug/Maintenance]–[Display User Log] while connecting to the FA-M3. The Display User Log screen appears. The [Display User Log] menu item changes to [Redisplay User Log].
Page 106
6-13 < 6. Maintenance Functions > Saving a User Log File 1. With the Display User Log screen open, select [File]–[Save As]. The following dialog box will be displayed. Figure Save User Log Dialog Box 2. Enter the file name in the [File Name] field and click the [Save] button. 3.
Page 107
6-14 < 6. Maintenance Functions > Clearing the User Log This clears the user log stored in the CPU. 1. With the Display User Log screen open, select [Debug/Maintenance]–[Clear Log]. Figure Clear User Log Confirmation Dialog 2. Selecting [Yes] will clear the user log stored in the CPU and the contents of the Display User Log screen will be redisplayed.
< 6. Maintenance Functions > Comparing Executable Programs This compares executable programs downloaded to the FA-M3 and executable programs in the computer. The compare function compares executable program files managed in an open project, as well as configuration and user log messages.
Page 109
Procedure for Comparing 1. Select [Online]–[Compare File and CPU] with a project open and while connecting to the FA-M3. 2. The following dialog box will be displayed, along with all data being currently processed. The comparison first uploads a program, and then compares it.
< 7. Sampling Trace > Sampling Trace What is Sampling Trace? The sampling trace function is used for storing states and contents of specified devices sequentially in the sampling trace memory of the CPU (only for F3SP25 and higher models). The tracing results can be displayed as scan charts or time charts using WideField2.
< 7. Sampling Trace > Sampling Trace Setup You can set up sampling trace either online using the Sampling Trace Tool or offline using the Configuration dialog box. Offline sampling trace setup using the Configuration dialog box is stored and will not be affected when power is turned off.
< 7. Sampling Trace > Sampling Modes The following three sampling modes are available. - When the TRC instruction is executed You can sample data of a specified contact at any point during a scan using the TRC instruction in a program. - When the END instruction is executed You can sample data of a specified contact at the end of each scan using the END instruction.
Page 113
< 7. Sampling Trace > You can specify sampling data in the following way. Sampling data is stored sequentially in the sampling trace buffer (rotary buffer) of the CPU when a sampling trace is executed in a specified sampling mode (see the figure on the right).
Page 114
< 7. Sampling Trace > 2. Specifying a positive delay count When you specify a positive delay count, 1,024 data items following the specified number of data items collected after a trigger condition is established are stored in the sampling trace buffer. The following illustration shows an example when you specify a delay count as "+500".
< 7. Sampling Trace > Setting Sampling Trace In this exercise, you will learn how to set up a sampling trace in online mode. The procedure is the same as that for setting up sampling trace offline using the Configuration dialog box. 1.
< 7. Sampling Trace > Starting Sampling Trace and Displaying Sampling Trace Results 1. Turn on relay X00803 (to run DEMO2). 2. Turn on relay X00801 (START), and turn off relay X00802 (STOP). 3. Click [Start]. "Wait for Trigger" is displayed at the lower right corner of the SmpTrace screen. 4.
< 8. Appendix> Appendix Special Relay (M) Special relays have specific functions such as indicating operation and error states of the CPU. Program mainly use the special relays as contact a or contact b. Block Run Status Block run status relays indicate which block is running when the CPU executes specified blocks.
Page 118
< 8. Appendix> Utility Utility relays are used to provide timing in a program or instructions to the CPU on an operation Table Utility (1/2) Item Utility Name Value Description M033 Always ON Used in initialization or as a dummy contact in a program M034 Always OFF Enable 1 scan at...
Page 119
< 8. Appendix> Sequence Operation and Mode Status These types of relays indicate a sequence operation state or operation mode state. Table Sequence Operation and Mode Status Item Sequence operation and mode status Name Value Description M129 Run mode flag ON: Run mode Indicates a CPU OFF: Other mode...
Page 120
< 8. Appendix> Self-diagnosis Status Self-diagnostics status relays reflect the results of sequence CPU self-diagnosis. Table Self-diagnosis Status Item Self-diagnosis status Name Value Description M193 Self-diagnosis error ON: An error is found The results of the self-diagnosis OFF: No error is found are loaded in special registers Z17-Z19 M194...
Page 121
< 8. Appendix> FA Link Module Status These relays show the status of the FA link. SEE ALSO For more information, refer to the special relay/special register section in the “FA Link, FA Link H, Optical FA Link H Module Instruction Manual” (IM34M5H43-01E) Table FA Link Module Status Item...
< 8. Appendix> Special Register (Z) Special registers have specific functions such as indicating operation or error states of the programmable controller. Sequence Operation State This type of registers indicates sequence operation states. Table Sequence Operation State Type Sequence operation state Name Value Description...
Page 123
< 8. Appendix> Detailed Self-diagnosis Status This type of registers reflects the results of sequence CPU self-diagnosis. Table Detailed Self-diagnosis Status Type Detailed Self-diagnosis Status Name Value Description These registers store self-diagnosis Z017 Self-diagnosis error number results. Self-diagnosis error block Z018 Self-diagnosis error number...
Page 124
< 8. Appendix> Utility Table Utility Type Utility Name Value Description This register stores year data in the Z049 BCD format. (write- Year (last 2 digits) For example, the year 1999, is stored enabled) as $0099 and the year 2000 is stored as $0000.
Page 125
< 8. Appendix> FA Link Module Status This type of registers indicates the status of the FA link. Table FA Link Module Information Type FA link module status Name Value Description 0: During initialization Z065 Local station status 1: Offline System 1 (FA link) 2: Online Z066...
Page 126
8-10 < 8. Appendix> CPU Module Status Table CPU Module Status Type CPU module status Name Description Number of stored user log For details of the user log function, see “6.3 Display Z105 records User Log” The time taken, starting from the beginning of the input Sensor control block refresh, until program execution and the end of the Z109...
Need help?
Do you have a question about the FA-M3 and is the answer not in the manual?
Questions and answers