Home
        FA-M3 BASIC Programming Tool M3 for Windows
         Contents
1.        IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A1 8       Detailed Error Message Probable Cause  Error Code   expressed in  hexadecimal        C1 Destination memory access error  a   lnternaleror pp  D1 Error found in a communication line    D4 Error found in a communication line    D6   Error found in a communication line  gt   D7 Error found in a communication line    D8   Error found in a communication line  gt     D9   Error found in a communication line  gt     DA Error found in a communication line    e Module not installed  e Invalid slot number    e Faulty module  e Subunit turned OFF ON at the time of Shared  accessing    Device not configured Invalid slot number       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A2 1       Appendix 2  Reserved Words     ABORT  eo  ep  eto  too   GMODE LEFT   EE EE EE IA E  ALLOCATE GOSUB    GPOSITION  asce      DecLosE Jerse  GRAPHICS  UNPU          Par fDeDer   ENABLENTR   GSELECTBT  an EN E E  DBDELM ENDE       fusmev S   AUTO toeroe  eow   fom   O  NO     ener AL    fond et e   LO0ALLOGKOUT    ALEFTS  Bop  oeer ferc    en      rom           BFORMAT  oent EROS  RIOS           DBOPEN Fc   pf   BINNOT  DBORDER  ERR     MAINTENANE      er LEI   fm E  BEN Be   fer mo          BOOT   BOX EFAULTOFF  FES INPUT    BOXFILL     DeFAULTON  F    ins 0    perle  Form INTO  new           fDerGCUR   FRAME oono new       CHAIN    DEFSHORT O  Fuse       NOFORMAT O  POMAR A fnr  cHG beror    O   Chrs oe coon       kevue           CIRCLE 
2.    A program block that executes initial operation when a BASIC program is operated  and  becomes the main part  It is necessary for an application to have a main program     O Subprogram    A function block called from a program  Variables and line numbers are all managed  independently     O Program area    An area to store BASIC programs within the BASIC CPU module  The size of the area  varies with the module  In addition  the size of the program area can be set using  Configuration      amp  Common area    An area to store variable data within the BASIC CPU module  This is used when the  same data are used between programs  In addition  the size of the common area can be  set using Configuration      amp  Download    The operation to bring a BASIC program from a personal computer to the BASIC CPU  module     0 Upload    The operation to store a BASIC program residing in the BASIC CPU module on a  personal computer     0 Debugging  An operation mode in which BASIC program downloading  program changes  program  additions  operation checks  etc  are executed by connecting a personal computer to the  BASIC CPU module  The BASIC CPU module is connected at the start of debugging to  enter debugging     O Break point    A function to debug the source code of a BASIC program  A running program can be  suspended at a line number at which a break point is set and a step run can be made  from that line     0 Step run  A function to run a BASIC program step by step     IM 34M06Q22 0
3.    Instruction          FA   M   Manual vie s ee En  BASIC Programming Tool M3  for Windows  IM 34M06Q22 02E  vigilantplant   YOKOGAWA 4    IM 34M06Q22 02E    Yokogawa Electric Corporation 2nd Edition          Blank Page       Applicable Product    O Range free Multi controller FA M3      Model Name  SF560 MCW    BASIC Programming Tool M3 for Windows    The document number and document model code for this manual are given below     Refer to the document number in all communications  also refer to the document  number or the document model code when purchasing additional copies of this manual       Document No    IM 34M06Q22 02E    Document Model Code   DOCIM    Media No  IM 34M06Q22 02E  CD  2nd Edition  Sep  7  2012  AR  IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00  All Rights Reserved Copyright O 2012  Yokogawa Electric Corporation    Important    E About This Manual          This Manual should be passed on to the end user       Before using this product  read this manual thoroughly to have a clear  understanding of the product       This manual explains the functions of this product  but there is no guarantee that  they will suit the particular purpose of a user       Under absolutely no circumstances may the contents of this manual be transcribed  or copied  in part or in whole  without permission       The contents of this manual are subject to change without prior notice       Every effort has been made to ensure accuracy in the preparation of this manual   However  sho
4.   Cancel  iel r Match case _ Canos      190  20L  210              230 HEXT I  250 IYEAR H   i 1      Year de  d    F050702 EPS   Replace and Next   The character string in the cursor position is replaced      Find Next   The next target is searched without replacing the character  string in the cursor position     Replacement of all targets  Click  Replace all      The character string in the cursor position and all subsequent occurrences of the  character string are replaced     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 10    5 8 Jump  Jumps by specifying a line number   A jump can be carried out only within a program being edited   There are the following three modes for jump     O  Move to Top Line   If selected  a jump is made to the beginning of the program being edited     O  Move to Bottom Line   If selected  a jump is made to the end of the program being edited     O  Move to specified line   A jump is made by specifying the line number of the destination     E Jump by specifying line number  1  Open the Jump dialog box     From the menu bar  click  Edit  and then click  Jump    2  Enter the line number of the destination     Jump    Cancel    a  Line number    400        F050801 EPS    3  Execute   Click  OK      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 9    9 11    Automatic Line Number Assignment Setup    Automatic line number assignment is a function to automatically generate line numbers  when beginning the editing of a new line     Example  Aut
5.   Click the  Yes  option button    Enter the subprogram name and variable that is to be traced   Select the program and input the variable     Yariable tracing    variable tracing    Program block set     variables  up to 4 delimited with commas       Yes  RESET     DATA TEST  DWAL     co No    oe         F060309 EPS    4  Set the variable tracing      OK   Variable tracing is set    Cancel   Deletes and ends the task before it is completed     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 15    SEE ALSO    Variable tracing that can be set once is five variables for one program block  Array variable tracing  should be set up completely      Example  AB       gt  AB    E Release of variable tracing    1  Start the variable tracing dialog box   Click  Debug     Variable tracing  from the menu bar   2  Select  No    Click the  No  option button   3  Release variable tracing    OK   Variable tracing is released    Cancel   Deletes and ends the task before it is completed     E Display of the variable data change  A change in variable data is displayed under  Debug  in  Debug Window      TRACE  PROGR    Line 325 DATA  125       TRACE   PROGRA    Line 410 DATA   24 er           Debug AEmorlist A Emorlog y  a    rf    F060310 EPS    The above example shows that the variable data in the    PROGR    program is changed to  128 on line 325  after that  it changes to 24 on line 410     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 4    6 16    Program Residence    The program res
6.   Connect with the BASIC CPU Module  After the connection     Online    will appear in the  status bar     1     Confirm the connection of the hardware     Connect the cable connector of the computer to the PROGRAMMER port on the    front of the BASIC CPU     Connect the cable connector of the computer to the COM port in the back of the    computer   Start Debugging  Click  Debug     Start debugging  from menu bar     Connection    Connected ta CPU module       Select the next action     Download   Cancel            F060101 EPS   Upload   Uploads the program that is in the CPU      Download   Downloads the program being edited in the CPU      Cancel   Stops the connection with the CPU    Selecting  Upload  or  Download  will place the module in the debug mode  enabling    the BASIC CPU Module to be debugged   Online Display   Online    appears in the status bar     Ay CAUTION    When downloading after editing the file  follow the instructions given below   To download the file before editing  Download it without saving   To download the edited contents  Download them after saving     When downloading a new file  be sure to save the file  and then download the file   Otherwise  the edited contents will be lost     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 3    E Debug Termination  Terminates debug communications between the BASIC CPU Module and ML bus CPU  Module   1  Terminate Debugging    Click  Debug     Terminate debug  from the menu bar to end the debug mode  Afte
7.   Subprogram s         Library L          F020110 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 9    O View  Display for error lists  display and setting for the menu bar and status bar  and font  setting for the edit window can be performed     Mew  DebugiD   Error list E   d    Toolbar T      W Status Bar S     Set Font F      F020111 EPS       Debug    This is the debug function in the on line status  Each function becomes effective after  connection to the BASIC CPU module     Debug  Operation Setup  Diagnostics U   Help H     Terminate debugging d     Initialize the program arealh    Download D    Upload      Aun A  FE    Sebfreleaze a break point  B  FY  Release all break points 4  Shift Ctrl F9    Branch tracing      Variable tracing        Free areaz F      Specifying program residence  d  Execution mode when debugging completed E  d  Debug list L  d       F020112 EPS       Operation Setup  Reset start of the CPU  the ROM management function  and the baud rate are set     Operation Setup T     Port Setting    Restart 5      HOk H     Baud set C          F020113 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 10    O Diagnosis  This is the diagnostic function for the BASIC CPU module  CPU operation monitor   configuration  error log saving and other operations are performed   Diagnostics  HelpiH     Program run monitorirngfk        Configuration  d  Error log L  d  LO ModulefD       Set datefT        F020114 EPS    O Help    On line help is displaye
8.   and  Write to  Common area      Confirmation   Confirmation dialog box is displayed    Yes   Write in ROM    No   Ends without writing to ROM     Download the program before switching to the ROM write mode     Downloading cannot be done in the ROM mode     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 2 3    7 6    Program Area Writing  Only the program is written in ROM     A    TIP    Download the program before switching to the ROM mode     Downloading the program   The program written in ROM is downloaded in the CPU   Switch to the Reside mode    Specify the program residence    Switch to ROM mode    Switch to ROM mode    Setting up ROM    Switch off the power to the FA M3  set up the ROM and switch the power back on  again     Writing to Program area    Click  Operation setup     ROM      Write to Program area    Confirmation   Confirmation dialog box is displayed     Yes   Write to ROM     No   End without writing to ROM     Downloading cannot be done in the ROM mode     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 1  7 2 4 Erase ROM    Erasing the contents of ROM  1  Toerase ROM   From the menu bar  click  Operation setup  and then click  ROM  and  Erase    2  Confirmation  The confirmation dialog box is displayed    Yes   Erase ROM    No   End   3  Erased   The confirmation dialog box is displayed     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 3    7 8    Communication Speed Setup    Set up the speed of communication with the CPU  After changing the 
9.   contact your local Yokogawa Europe B  V  office     E How to Discard Batteries    The following description on DIRECTIVE 2006 66 EC  hereinafter referred to as the EU  new directive on batteries  is valid only in the European Union     Some models of this product contain batteries that cannot be removed by the user   Make sure to dispose of the batteries along with the product     Do not dispose in domestic household waste   When disposing products in the EU  contact your local Yokogawa Europe B  V  office     Battery type  Lithium battery          Note  The symbol above means that the battery must be collected separately as  specified in Annex II of the EU new directive on batteries     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    Introduction    E Overview of This Manual    This manual is for BASIC Programming Tool M3 for Windows     BASIC Programming Tool M3 for Windows is a developmental environment for the FA   M3 BASIC CPU module     BASIC programming  debugging and CPU setting and diagnosis can be carried out  using BASIC Programming Tool M3 for Windows     This manual describes the hardware and software environments that are necessary for  using the BASIC Programming Tool M3 for Windows  and the functions and  specifications prepared as the BASIC developmental environment     The module models that support BASIC Programming Tool M3 for Windows are shown  below       Module   E  BASIC CPU module F3BP20 0N F3BP30 0N    SEE ALSO    For BASIC syntax  refer to the Ins
10.   e File is saved   e Subprogram is saved     O Printing Function    e Entire program printing  e Partial printing    Ay CAUTION    The names of folders used for saving BASIC application files cannot have character  strings containing double width spaces     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 1    Creation of New Program    Newly creates a BASIC program   Terminates a BASIC program that has been being edited till now     If new programming is executed  the program configuration and edit windows are  cleared and new programming becomes possible     1     Select new programming   From the menu bar  click  File  and then click  New    If program editing is executed in the edit window     BASICH3 for Windows       2  Do you save as the change of Gamen sa     E Ho   Lancel            F040101 EPS     Yes   If there is no file name  the Save dialog box is displayed  If the file name  already exists  the file is saved with that name     No   The program file being edited is not updated and new programming is  ready      Cancel   New programming is canceled and the screen returns to the window where  the current editing is taking place     If program editing is not executed in the edit window   The program file is not updated and terminated   Open a new programming screen     The program configuration and edit windows are cleared and a new programming  screen appears     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 2 Opening of Existing Program    Opens a BASIC pro
11.   segregating the grounding system     O Configure for CE Marking Conformance       For compliance with CE Marking  perform installation and cable routing according to  the description on compliance to CE Marking in the    Hardware Manual        O We recommend that you stock up on maintenance parts       We recommend that you stock up on maintenance parts  including spare modules   in advance       Preventive maintenance  replacement of the module or its battery  is required for  using the module beyond 10 years  For enquiries on battery replacement service   for purchase   contact your nearest Yokogawa Electric representative or sales  office   The module has a built in lithium battery  Lithium batteries may exhibit  decreased voltage  and in rare cases  leakage problems after 10 years      O Discharge static electricity before touching the system       Because static charge can accumulate in dry conditions  first touch grounded metal  to discharge any static electricity before touching the system     O Wipe off dirt with a soft cloth       Gently wipe off dirt on the product   s surfaces with a soft cloth       If you soak the cloth in water or a neutral detergent  tightly wring it out before wiping  the product     Letting water enter the module interior can cause malfunctions       Do not use volatile solvents such as benzine or paint thinner or chemicals for  cleaning  as they may cause deformity  discoloration  or malfunctioning     O Avoid storing the FA M3 controller 
12.  BASIC programs into the BASIC CPU module  after performing a syntax check of the program that is undergoing editing     If a syntax error occurs  the results are displayed in the    Debug window   Error list     and  no downloading is done     1     TIP    To avoid an insufficient domain error during downloading  before downloading  save the program in    Opening the program    Open the program file before downloading  If it is already opened  the program that  is the object of editing is downloaded     Downloading  Click  Debug     Download  from the menu     The following operation is performed according to the BASIC program and CPU  status     If there are no errors in the program      OK to download the program     is displayed in the message box    Yes   Downloading is started    No   No downloading is done      Downloading is completed    appears in the message box   If there are errors in the program      Error occurred  Downloading cannot be done    is displayed in the message box   Confirm the program   If the program already exists in the CPU   A confirmation message box is displayed    Yes   Downloading is started    No   No downloading is done     BASIC intermediate files  After confirming the program size with the help of the explorer  etc   carry out  the downloading    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 6    6 2 3 Uploading of BASIC Program    While connecting with the BASIC CPU module  if a program resides at the BASIC CPU  module side  upload 
13.  Compose the entire program block with one file     Line number  Initialize the file for every program block and describe it in  ascending order     Line number delimiter  Insert one or more standard width spaces between each line  number and corresponding program     Subprogram name  Name it with a character string of up to eight standard width  alphanumeric characters starting with an alphabetical letter     O Folder Name  A character string not containing a double width space     Ay CAUTION    e A program name displayed by the selection of    Diagnosis         Program run  monitoring        Program name    is composed of eight standard width alphanumeric  characters  If a program having file names exceeding eight characters or file names  using doublewidth or special characters is downloaded  the displayed characters  may vary irregularly  In addition  the part of the program name exceeding the eight  characters is not displayed     e  f a file that is not correctly recognized by BASIC Programming Tool M3 for  Windows is opened or downloaded  operation after that may be not normal     TIP    For program syntax  refer to the Instruction Manual for BASIC CPU Modules and YM BASIC FA  Programming Language  IM 34M06Q22 01E      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 21    Interpretation of Terms for BASIC  Programming Tool M3 for Windows    This section interprets nouns specific to BASIC programming tool for M3 for Windows  used in this manual      amp  Main Program 
14.  F3BP30 0N  to which the ROM pack  can be attached     SEE ALSO    Refer to the Instruction Manual for BASIC CPU Modules and YM BASIC FA Programming Language   IM 34M06Q22 01E  for details on the ROM Control function     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 2 1 Switching Modes    In the case of ROM operations  it is necessary to switch to the ROM writer mode     m Switching to ROM Writer Mode    1  Set ROM writer mode    From the menu bar  click  Operation setup  and then click  ROM     ROM mode      Set      2  Confirmation  Displays confirmation dialog box   Yes   Switches to ROM mode    No   Ends     E End ROM Mode    1  End ROM mode  From the menu bar  click  Operation setup  and then click  ROM     ROM mode      Reset    2  Confirmation  Displays confirmation dialog box    Yes   Cancels ROM mode    No   Ends     TIP    When a BASIC program is in operation  the ROM mode cannot be set  Switch to this mode after  stopping the BASIC program     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 2 2    7 5    Common Area Write    Write Program and Common area in ROM     Ms    TIP    Downloading of program   Downloads the program written in ROM to the CPU   Switch to residence mode   Performs the residence specification of the program   Switch to ROM mode   Switches to ROM mode    Fix the ROM    Switch off the power to the FA M3 and fix the ROM and then switch the power back  on     Write Common area    From the menu bar  click  Operation setup  and then click  ROM
15.  In that case  make individual  settings again after editing     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 3 2    6 8    Step Execution    Step execution is a debug function that runs the program step by step after it has been  stopped  or paused due to a breakpoint     1  Stopping running the CPU   Stops the CPU using the stop function or at a breakpoint     When it is stopped  the character string of the line following the one that was last  executed changes to green     320  330  340  350  320  380  390  410  420  450  440  450  460  470    17 7       VACA fff of oo PP Po PPP PP Pf EP ff Pf PPO PP Ef PEP ff 22 ES AM    Timer  VACA A Seo POPP PPP PPO PE EP PPP PPO PEEP PEPE PEP PES PE L       WHILE 1  IF ISEC   60 THEH  IF IMIH   59 THEH  IHIN   0 g  This line ts indicated in green   THOUR   IHODR   1  ELSE  IHIN   IHIN   1  ENDIF  ISEC         ELSE           F060201 EPS    2  Running the program step by step  Click  Debug     Step  from the menu bar     3  Step movement    Move to the next executed line     390  410  420  430  440  450    IF IHIN   59 THEH    IMIN   0   IHOUR   IHODR   1 4  The green indication of the  ELSE line is moved    IMIN   IMIN   1  EHDIF    F060202 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 9    6 3 3 Breakpoint    This sets the place in a program where the program execution halts  The breakpoint can  be set up one by one for each subprogram     E Setting the breakpoint    1     TIP    Selecting the break line    Display the 
16.  M3 for Windows    IM 34M06Q22 02E 2nd Edition    CONTENTS    Applicable OCU Cantoria i  MP  hr ii  RIVER OCC TION ae A EEE EEE vii  Copyrights and Trademarks      rnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnunnn xi  1  Introduction Of Software          a    rnxrnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnennnennnennnr 1 1  1 1 Operating Environment      ennnunnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnavnnnnnnennnnnnnnnnnnennnnnnr 1 1   1 2 Le EEE PP e e O CO CO O O E T 1 2   1 3 VANNS a ara ace 1 3   1 4 Personal Computer Environment Setup     ccoccccccccccccccccncnnononanonnnaninannnns 1 4   1 5 Connection with BASIC CPU Module       nnnrrnnnnnnvnnnnnnvnnnnnnnnnnnnnnnnnnnennnnnnr 1 5   2  Sole EN ee 2 1  2 1 Software Environment Cnfiguration          xrrnnnnnnnnnnnnnvnnnnnnvnnnnnnnnnnnnnennnnnnn 2 2   2 1 1 Screen COMMOUIALON escroto 2 3   2 1 2 Menu ConfiguratiQN       oocccccccncnccconcnnconononnonononnnoncnnnonanonnonanennnnnos 2 8   15 UPON 2 11   124 BE OPEN eee 2 12   2 1 5 Message BOX     mrrervnerernnnrernnnnvnnnrvvnnnvnnnnnennnnnennnnnsrnnnrnnnnvnnnnnennnn 2 14  no 2 17   2 2 Programming F  OW Lassen 2 18   2 3 Overview of BASIC Programming Tool M3 for Windows Files            2 20   2 4 Interpretation of Terms for BASIC Programming Tool for Windows 2 22   3  Startup and Termination of the Tool               c cccsccseeseeseeeeeeeeeeees 3 1  File Management Functions      anranrnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennunnnen 4 1   4 1 Creation of New Program scisscionacse
17.  apen 4 2   4 2 Opening of Existing Program          r  snnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnennnnennnnnennnnr 4 3   4 3 File Saving by Overwriting         xxrrnnnnvnnnnnnnnnnnnnnennnnnnvnnnnnnnnnnnnnrnnnnnevnnnnnnenenn 4 4   4 4 Saving with New Name      rnnnnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnennnnnennnnnnr 4 5   4 5 Subprogram SAVING vostra rin 4 6   4 6 Program File PRIMO disnea dali 4 7   4 7 Prier Se To sora coo E 4 8   4 8 Error LT SVING eee 4 9   93 ENNO FUACUONS   r 5 1    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    5 1 Limitation to Editing Functions    0occconncccncncicncnrocanorenannronnrcnnanrenaarennannnns 5 1  5 2 Programming in Edit Window      snrrrnnnvvvnnnnvnnnnnvnnnnnvennvevnnnnennnnennnnnernnnnenen 5 2  5 3 PA EE 5 5  5 4 OG EE NE A 5 6  5 5 AAA E e oi E o E EE 5 7  5 6 BS E og EE E T T E 5 8  5 7 RODIACE EE o   o 5 9  5 8 A e E PEE A 5 10  5 9 Automatic Line Number Assignment Setup      ooocccconcncoconcanonnnnannnnnnnns 5 11  5 10 Line Number Reassignment      annarnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnernnnvennnnuennn 5 12  5 11 Program Display SwitChiNQ       ccconnnccconncnccnccncononcnconnnnanonnnnnnronnnnarennnanos 5 13  5 12 Inclusion Of SUbDproQraM  cocoonnccccnconccnnnnocononanconnnnanonnnannronnnnnrernananenenannns 5 14  5 13 Deletion of Subprogram    occcconnnccconcncoconcanononnnronnnnnronnnnanernnanarennanarennanns 5 15  5 14 Modification of Subprogram       rennnnnvnnnnnnvnnnnnnnnnnnnnnnnnnnennnnnnnennnnnnennnnnnner 5 1
18.  connector   Doing so may adversely affect the functions of the module     O Use the following power source       Use only power supply module F3PUnn nn in FA M3 Controller for supplying power  input for control circuit connection       If using this product as a UL approved product  for the external power supply  use a  limited voltage   current circuit power source or a Class 2 power source     O Refer to the user s manual before connecting wires     Refer to the hardware user s manual or the applicable user s manual for the external  wiring drawing       Refer to    A3 6 5 Connecting Output Devices    in the hardware user   s manual before  connecting the wiring for the output signal       Refer to    A3 5 4 Grounding Procedure    in the hardware user s manual for attaching  the grounding wiring     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    viii    m Waste Electrical and Electronic Equipment    Waste Electrical and Electronic Equipment  WEEE   Directive 2002 96 EC   This directive is only valid in the EU         This product complies with the WEEE Directive  2002 96 EC  marking requirement   The following marking indicates that you must not discard this electrical electronic  product in domestic household waste     Product Category   With reference to the equipment types in the WEEE directive Annex 1  this product is  classified as a    Monitoring and Control instrumentation    product    Do not dispose in domestic household waste    When disposing products in the EU
19.  displayed in the error log display     e System message  Error message corresponding to the operation status of  the power on off system     e BASIC Error Message  Error message corresponding to the operation status of  the BASIC program     Two types of message information are recorded in the error log file   The recording method to the file is as follows   e System message  Record in the normal time error log file     e BASIC Error Message  Recorded in the error log file while BASIC is operating in  the real mode     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 18       E Correspondence of System Messages    The format of a system message is displayed  and it explains the contents of the  message and its correspondence     e Display Format  1999 12 01 15 12 15 Startup End    Date Time Character string of the message     Year Month Day   Hour Minute Second   F070605 EPS    e System Message List    Message Character String   Meaning    Correspondence  gt     in the READY status  is normal  power failure  momentary stop failure  system   abnormality in the CPU   Program   x X X X abnormally ended     Back up battery Abnormality   Back up battery defective or life Replace the CPU module  span affected  or there has been  damage to memory    The power has been Not necessary for normal   disconnected  process    SLOTn I O Module When the CPU accesses the I O Replace I O module  There   abnormality  1  module  an abnormality in the I O may be a case where the base   Error co
20.  oe CREADO OFCOM       CiRCLE FILL  DELE     GoreaDy        former           col bm         GcursorRON   LBCD   OFFERROR         IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A2 2          okey TP  READ O  SCREEN  TAN  OFF TIMEOUT POLYGON FILL REM SET STATUS TO  ON COMINT POSX RENUM SETDAY TRACEV  PON EOT  PRO RESERVE   SETTIME  TRIGGER    PON ERROR   PROSRD  Reset  sen  f  TONEVENT   PROSWT   RESETSTATUS   SHIFT SS  onn PRINTO RETURN SLOAD    TONKEY   PRINTBFORMAT   RIGHTS  se  f o     ON SEQEVT PRINT NOFORMAT   RND SQR VAL  ROTATE  ON TIMEOUT PRINTER IS RUN STATUS VOLUMES    soo ooo S  POR o sceo   SUBCOM  WINDOW  ouor  SCRATCH   SUBEND   WRITEO             fam  send    ET A              sgn      PANT    sere    pf  PAUSE     RANDOMIZE   SETOHAR   nn   Peek READ  seue      m     S       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    Revision History    Document Name   BASIC Programming Tool M3 for Windows  Document No    IM 34M06Q22 02E    Oct  1999   New publication       Sep  2012   Updated for R1 04 Version    Written by PLC Solution Department   IA Systems Business Division   IA Platform Business Headquarters   Yokogawa Electric Corporation  Published by Yokogawa Electric Corporation   2 9 32 Nakacho  Musashino shi  Tokyo  180 8750  JAPAN  Printed by Kohoku Publishing  amp  Printing Inc     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00       Blank Page       
21.  on hard disk 30 MB minimum     CD ROM drive Supported by the adove operating system    Any printer compatible with the operating systems listed above and supports A4  printing  Communication RS 232 C start stop synchronization  9600 and 19200 bps  requirements  Supported CPU F3BP20 0N and F3BP30 ON  modules       TIP    166 MHz or faster CPU is recommended  If the CPU is slower  the software may run very slowly     Ay CAUTION    The online help might not be displayed in Windows Vista 7 which does not support the    Windows help function by default     In this case  install a Windows Help program applicable for each OS from the Microsoft  Support site     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 2    Install    The installation procedure for BASIC Programming Tool M3 for Windows is described   1  Insert the software CD ROM into the CD ROM drive    2  Click  Start   Run by specifying file name  from the Windows task bar    3  Select or enter    setup exe    located in the root directory of the CD ROM drive     Run    mo Tope the name of    program  folder  or document  and  4 Windows will open It for pau     Oper  Je  setup  exe     Cancel   Browse            F010201 EPS    4  Click  OK    5  The setup tool starts up  Check the display contents and click  Next  in turn M drive     6  After the setup tool starts  the setup destination can be changed in the setup display  of the directory of the installation destination drive     7  After checking all settings  click  N
22.  to set up  perform maintenance on  or  remove the BASICM3 for Windows software  Users without Administrator privileges  cannot set up  perform maintenance on  or remove the BASICM3 for Windows software     In Windows Vista or Windows 7  select Run as Administrator in the installer program   Users without Administrator privileges will not be able to install this software     Ay CAUTION    When User Account Control  UAC  is enabled in Windows Vista or Windows 7  the  installer might not automatically run from the CD ROM     If this occurs  use Explorer to select Setup exe on the CD ROM  and then select Run  as Administrator to start the installer     AN CAUTION    When performing setup in Windows  it is recommended to install the software in a folder  for which restricted users have access rights  If the software is installed in a folder that  cannot be accessed by restricted users  such users will be unable to use the BASIC  Programming Tool M3 for Windows software     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00       1 1    Operating Environment    The BASIC Programming Tool M3 for Windows operates in the personal computer  environment shown below     Specification    lem  OS Microsoft Windows 7  32bit 64bit   Microsoft Windows Vista  32bit 64bit   Microsoft Windows XP Service Pack 3  Microsoft Windows 2000 Service Pack 4    Pentium 133 MHz or faster  adequate for the operating system to run properly   32 MB or more  adequate for the operating system to run properly   Space
23. 11    CPU Configuration    In CPU Configuration  the    immediate mode     momentary power failure detection mode       user area size setting    and    common area setting    are performed     CPU configuration  Power failure mode f Standard mode     immediate mode  User area size 400 KB     BP20  16 1 206 BF30  16 510K MPS0  16 51 21    Common area size    1 2l KB     BP20  O 104K BP30  0 286K MP3D0  0 256k   Total of area size 512 KE    conc         F070501 EPS    Start the dialog box    From the menu bar  click  Diagnostics  and then click  Configuration  and  CPU  Configuration      Switch to immediate mode    Click either of the option buttons   Standard Mode  1 or  Immediate Detection  Mode  1      1  For details  refer to the Instruction Manual for BASIC CPU Modules and YM BASIC FA Programming Language   IM34M06Q22 01E      Change or editing of user area size   Click the input area    Input to the Setting Display  view  Area becomes possible  Input numeric values   Change or editing of common area size   Click the input Area    Input to the setting display  view  area becomes possible  Input numeric values   Registration of change or edit    Click the  Register  button after having set it in the BASIC CPU Module  clear the  memory and automatically start     AN CAUTION    The setting of contents to the BASIC CPU Module is performed by  Register   If it is not  performed  the BASIC CPU Module returns to the original setting     Click  Cancel  in the case where the cont
24. 2    TIP    The  BASICM3 ini  file can be opened also by selecting  CPU Setting     Port Setting  from the main  menu for BASIC Programming Tool M3 for Windows     TIP    In Windows Vista 7  the folder security prevents restricted users from accessing the folder where  BASIC Programming Tool M3 for Windows is installed  In this case  edit the  BASICM3 ini  file in    ProgramData Y okogawa BASICM3  in the installation drive     Setting on the personal computer side          J           Check the usable port numbers by selecting    Control panel Device    manager     Port     Communication port        System  If not set correctly  communication with the BASIC CPU module cannot be made     TIP    To establish an online connection using KM13 1S  it is required to set up the dedicated driver software  on the PC in advance     USB cable instruction manual  IM34M06C91 01E   which describes the installation procedure and  COM port number setting procedure  and the driver software are supplied with the cable  Install the  driver software from the CD ROM supplied with the cable or from our website     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 6       Shortcut registration  1  Start    Explorer        2  Specify the folder where BASIC Programming Tool M3 for Windows is installed and  drag out BASM3WIN     3  Move the above file onto the Windows Desktop form and drop it there   4  A shortcut can also be carried out     O Program folder setup  Prepare a folder in advance for savin
25. 2E 2nd Edition  Sep  7  2012 00    2 22    O Branch tracing    Traces branching programs  such as subprograms or subroutines  The transition status  of functions in the program can be seen     O Variable tracing    The status of variable data used in the program can be seen  Information is displayed  every time variable data are changed        Error log  Error information of the BASIC CPU module system     O Library  An application program package using machine language  lts configuration and usage  are the same as that of a subroutine     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    3 1  3  Startup and Termination of the Tool    E Start up    1  Start BASIC programming tool M3 for Windows     Click  Program     FA M3 Application     BASICM3 for Windows  of the Windows  start menu     2     Mainframe    is displayed     Ay CAUTION    BASIC programming tool M3 for Windows cannot be started more than one time    Already running  is displayed     E Terminate    From the menu bar  click  File  and then click  Exit      SEE ALSO    If file saving is required or debugging is not terminated  the appropriate message is displayed  For the  operating method  refer to the menu sections for each function     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00       Blank Page       4 1    4  File Management Functions    This chapter on File Management Functions describes management of a BASIC  application file and program printing        BASIC Application File Management    e File is opened 
26. 400 GOSUB JIHOUG  410 IMIN   0  420 IHOUR   IHOUR  1  430 ELSE  la 440 IMIN   MIN   1 4   A50 ENDIF  460 ISEC 0  470 ELSE  490 ISEC   ISEC  1  450 ENDIF  BO FRM AHIL E h    1999 09 24 15 07 04 E43 L 00090 Branch destinations  1999 09 24 15 02 06 681 Start up completed    rf Debug    Error list    Errorlog    a    of  Ready  E       Offline   oline  14         F020101 EPS    The windows and bars that configure BASIC Programming Tool M3 for Windows are    1  Menu bar    2  Toolbar    3  Program configuration window    4  Edit window    5  Debug window    6  Status bar    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 4    E Program Configuration Window    This window appears on the left side of the main frame and displays the program  configuration  In this window  programs to be displayed in the edit window are selected          Gamen  sa    FEET   SWAPDATA  STATUS    F020102 EPS       ee  sa  Name of a file being edited  MAIN  Main program  Other displayed names  Subprograms    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 5  E Edit Window    This window is the program editing and debug area that appears from the center to the  upper right side of the main frame  lt displays a program selected in the program  configuration window  For the operating method  see Chapter 5 of this manual     Editing  Functions           320 lcd ooo Po OOO PAO EP POOP AA EP PP POA ILL CLIO LLL A PP PP OO EAE       330    340 WHILE 1   350 IF ISEC   60 THEN   360 IF IMIN   59 THEN  370 GOSU
27. 51401 EPS    1  Selection of subprogram  Display a subprogram to be modified in the    edit window      2  Subprogram modification   From the menu bar  click  Edit  and then click  Subprogram  and  Modify    3  Entry of subprogram  Modify subprogram name and argument   4  Click  OK      The program name in the    Program configuration window    and the display of the  Subprogram name and argument of the subprogram are modified     TIP    e Modification of a subprogram name and argument cannot be executed in the    Edit window     The    name of the file that is the target of editing becomes the main program name        Modification to a subprogram with a name identical to the file name cannot be done     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    5 17  5 15 Library Link    Sets and releases a library link     m Link Setup    1  Start the link setup    From the menu bar  click  Edit  and then click  Library  and  Add    2  Select library    Select a library file and click  Open    3  The library is added     E Link Release    1  Select library    Select a library to be deleted in the program configuration window   2  Start link release    From the menu bar  click  Edit  and then click  Library  and  Delete    3  Confirmation message is displayed     Yes   Releases     No   Does not release     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 18    5 16 Error List Display    The error list checks the syntax of the program being edited and displays the lines in  which ther
28. 6  95 19 Library LINK EE EE EE SE ERE 5 17  95 16 Error LIStDISplay aa id 5 18  Debugging Function    occccccoccocccnccnncocccnnnnnnonanonrnnnrnaronrnnnrnarnnnenanones 6 1  6 1 Debug Starting and Ending            cccccsscecesesseeeeeeeneeeseeseeeseaeeeseneneessneneenees 6 2  6 2 Program rorvardaNguv 444454 6 4  6 2 1 Initialization of Program Area         annnnnnnnnnvnvrnnnrenrnnnnennnnnnsnnrnnnennnnn 6 4  6 2 2 Downloading of BASIC Program          rrnnrnvnrnnnnvvvnnnnrnnrnnrnenrnnnennnnn 6 5  6 2 3 Uploading of BASIC Program         arrnnnnnnnnvvrnnnnenvnnnnrnnrnnnnenrnnsnennnn 6 6  6 3 Debug Functions Ae PPP    6 7  6 3 1 LSU QUIN 0 PRE EE 6 7  0 9 2  Otep EXCCUUON asistida 6 8  6 3 3 o A E 6 9  034 Branch TI AGING  stisanionicaianaianei dica 6 12  635    Vallable Tracing cpns librito 6 14  6 4 Program Residence        arxrnnnnuvnnnnnnnnnnnnnnnunnnnnennnnnennnnnernnnnvnnnnennnnvennnnennnnner 6 16  6 5 Operation Setup during Debug Completion       rrrrvnnnnnrnnnnnnnnnnnnvnnnnnnnrr 6 17  6 6 Br elie LIS untitled edad 6 18  Maintenance Function       nnrnnnnnnennnnnnnnnnunnnnnnnnnnnennnennnennnvnnnnnnennnennnr 7 1  7 1 I LE  EEE EE EE 7 2  7 2 ROM GATO A E eat 7 3  1 2 1 Switching M  dES 6 icecotddsnucsuisrccnwaluetoomestideapiawbbiduxintdasanmsdddweedaeh dens 7 4  7 2 2 COMMON Area Write             ccoooncccccconccoconnncoconnncconanonnnnannnnonanonoss 7 5  1 2 3 Program Area WVritiMQ            ooocccooncnconccccocnnconnnnnnnnncnnnnncnnnnononnnnnos 7 6  122 Eraso ROM drid
29. A       All   gt     sel         All      Release    ib Eb       Cancel         F060306 EPS    Ay CAUTION    If editing is done after setting branch tracing  branch tracing will not be displayed  correctly  After editing  reset branch tracing once again     m Setting of branch tracing    1  Start the Branch Tracing dialog box    Click  Debug   Branch tracing  from the menu bar   2  Select the subprogram that traces the branch status    Select the subprogram displayed in  Not Set  and highlight it in reverse video   3  Set the branch tracing    Click the  Set  gt   button    The selected subprogram is moved to    To be set        IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 13    E Branch tracing setup of all programs    1  Start the branch tracing dialog box    Click  Debug     Branch tracing  from the menu bar   2  Setthe branch tracing of the whole program   Click the  All  gt  gt   button    All the programs are moved to    To be set        E Release of branch tracing    1  Start the branch tracing dialog box   Click  Debug     Branch tracing  from the menu bar   2  Select the subprogram that releases tracing of the branch status     Select the subprogram that is displayed in    to be set     and highlight it in reverse  video     3  Release  Click the   lt Release  button   The selected subprogram moves to    not set        E Branch tracing release of all subprograms    1  Start the branch trace dialog box    Click  Debug     Branch tracing  from the menu bar   2  Re
30. B JIHOU    380 IMIN   0   390 IHOUR   IHOUR   1  400 ELSE   410 IHIN   IMIN   1  420 ENDIF   430 ISEC   0   440 ELSE   450 ISEC   ISEC   1   460 ENDIF   470 END WHILE   480 IF IMIN   59 THEN  490 GOSUB JIHOUG   500 IMIN   0   510 IHOUR   IHOUR   1  520 ELSE   530 IMIN   IMIN   1   540 ENDIF       F020103 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 6    E Debug Window    This window displays and switches between one of three types of windows  debug  error  list  and error log windows        L 00090 Branch destinatic      Start up completed          Debug A Errorlist     Error log    4    a  F020104 EPS    1999 0924 19 07 04 E43  1993 09 24 190206    0 Debug Window  In this window  debug data sent from the BASIC CPU module are displayed when    debugging     O Error List  This list displays the result of checking the BASIC program syntax     O Error Log  Information on the CPU error log is displayed  For the operating method  see Chapter 7    of this manual     Error Log Function in Maintenance Functions        AN CAUTION    The vertical scroll bar of the debug window may disappear or the horizontal scroll bar  may not return to the left side  but there is no problem in displaying data  If the vertical    scroll bar disappears  click the vertical scroll bar display position     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 7    E Menu Bar  Toolbar  and Status Bar    0 Menu Bar  The menu is for processing the functions of BASIC Programming Tool M3 for Windows   
31. Basic operation is carried out from this menu     File F  EdtE   View   Debua D  Operation Setup T  Diagnostics  Help H   F020105 EPS     amp  Toolbar    There are three types of frequently used tool bars  standard toolbar  search toolbar  and  debugging toolbar  Each function is the same as that of the menu bar  For a description  of the functions  see the section for each function     Delaj 4 aml AE ANO se lo  S      F020106 EPS  O Status Bar    The CPU communication status  resident mode indication  and the progress status when  downloading or uploading  are displayed        Ready OFLINE 1L 1C  F020107 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 8    2 1 2 Menu Configuration    The basic items in the menu bar and described   File F  EdtE  View  Debua D  Operation Setup  Diagnostics  Help H   FO20108 EPS    O File  BASIC program file access  program printing  and termination of BASIC Programming  Tool M3 for Windows can be performed     File F  EdtE  View  Debug D  Op    New  Chrl h  Open D     Ctrl 0l  Sawe s  Chrl 5  Save Asjal      FrintPI   Ctrl P  Printer Setup Hl       1 CA usen basic  amen  sa    E sitis   FO20109 EPS    O Edit  The editing function common to the off line status and debugging status  Each function  can be used in editing programs     Edit E  View  Debug  Operation Setup T  D    Cut T  Ctrl  Copy C  Ctrl E  Firid F      Ctrl F  ReplacelE      Ltri H  Jump  gt   Automatic line number assi9nment         Line number reassignment B     Ctrl R
32. M06Q22 02E 2nd Edition  Sep  7  2012 00    9 3    Cut    Cuts the program list partially   Cut data are saved in the clipboard                  1  Select the area to be cut   Select the area to be cut with the mouse   WHILE 1  IF ISEC   60 THEN  390 IF IHIN   59 THEN  400 GOSTE JIHOT GS  410 IMIN   JQ  420 IA LE   1  430 ELSE    440 IMIN IMIN   1  450  mil  F050301 EPS  2  Cut    From the menu bar  click  Edit  and then click  Cut    The selected area is cut     370 WHILE 1 P  380 IF ISEC   60 THEH   460 ISEC   D   470 ELSE   480 ISEC   ISEC   1   490 ENDIF   500 EHD WHILE   510 STOP   520 END        F050302 EPS       IM 34M06Q22 02E    2nd Edition  Sep  7  2012 00    9 4    Copy    Copies the program list partially   Copied data are saved in the clipboard               1  Select the copying area   Select the copying area with the mouse   WHILE 1  IF ISEC   60 THEN  390 IF IMIN   59 THEN  400 GOSUB JIHOTG  410 IMIH   U  420 IHOUR   IHOUE   1  430 ELSE    440 IMIH IMIH   1  450  Fa  F050401 EPS  2  Copy    From the menu bar  click  Edit  and then click  Copy    The selected area is saved in the clipboard     IM 34M06Q22 02E    5 6    2nd Edition  Sep  7  2012 00    5 5    5 7    Paste    Pastes the data from the clipboard   If correct data are not saved to the clipboard  the data are not pasted     If the number of lines to be pasted is more than the number of empty lines  pasting is not  performed and an error is displayed     The line number for the inserted data is automati
33. OK      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 7    4 8    Printer Setup    Set the output destination of BASIC program printing     Print Setup 7    Printer    Hame  AG F   AccusSet 1000 h     Properties      Status  amp  Type  AGFA Accuset 1000  where  LETI     Comment           Orientation    f Portrait    Paper    SIZE    Letter           C Landscape    Source    Autos elect Tray 7      Cancel         F040701 EPS    1  Open the dialog box   From the menu bar  click  File  and then click  Printer Setup    The setup dialog box appears   2  Change the setting   3  Close the dialog box    OK   The change is made    Cancel   Setting reverts to the setting before the change     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 8    4 9    Error List Saving    The contents displayed for syntax errors or the like during editing are saved in a file  The  saved file can be read in a text editor     1  Display the error list   From the menu bar  click  View  and then click  Error list  and  Display    The debug window displays the error list   2  Save  From the menu bar  click  View  and then click  Error list  and  Save    3  Choose a file name   Enter the file name and click  Save      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00       Blank Page       9 1    A Editing Functions    This chapter describes the editing functions of a BASIC application program  The  descriptions center around operation from the menu bar     O Program Editing Functions    General editing fun
34. am is undergoing debugging     PAUSE GAMEN     Line 3F0       TRACE  FROM  GAMEN   301 TO PROGR  TRACE  FROM  PROGR    420 10 GAMEN  TRACE   GAMEN  Line 35 DATAV  128    4   gt  fs  Debug    Errorlist    Errorlog      4     F060601 EPS    O Displaying the program list   Click the  Debug  tab in  Debug Window      O Clearing the debug list   Click  Debug     Debug list     Clear  from the menu bar to clear the debug list     O Saving the Debug list   Click  Debug     Debug list     Save in File  from the menu bar     Input the file name in the Save dialog box  and click  Save    A saved file can be read in a text editor     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 1    Maintenance Function    The maintenance functions are detailed set up functions of the CPU   The following are the maintenance functions    Restart   ROM Control  Communication Speed Setup  Operation Monitor  Configuration   Shared Device Setup   Error Log   I O Configuration Display  Date and Time Setup    UN CAUTION    The maintenance functions cannot be executed during online debugging   Before using the maintenance functions  perform  Terminate debugging      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 1 Restart    The restart function has two types of resets  system restart and CPU restart     System restart   Restarts the CPU for the entire unit  System restart is valid only for the slot 1 CPU   CPU restart   The targeted CPU alone will restart     E System restart    1     2     System rest
35. art   From the menu bar  click  Operation setup  and then click  Resstart  and  System    Confirmation   Displays the confirmation dialog box    Yes     System restarts     No   Ends    Restart   Displays Dialog box    System restarted        E CPU restart    1     2     CPU restart   From the menu bar  click  Operation setup  and then click  Restart  and  CPU    Confirmation   Displays the confirmation dialog box    Yes     CPU restarts     No   Ends    Restart   Displays Dialog box    CPU restarted        Ay CAUTION    Restart enables the resetting of the hardware default values and the checking of the  self diagnosis and I O configuration     When restarted  programs which are not resident get erased  The residing  programs are saved and started     Restarting can be done for an individual CPU  But  if individual CPU resetting   restarting  is done in multiple CPUs  an inter CPU communications error or an I O  error occurs in other CPUs which are not reset  This will have an adverse effect on  program running  To avoid this  restart a multiple CPU system by restarting the  system     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 3  7 2 ROM Control    The ROM Control function writes an application program in ROM   There are two types of ROM writing      amp  Common area write    Write Program  Common in ROM    O Program area write  Writes only the program in ROM    O ROM Erase  Erase the contents of ROM    TIP    ROM control can use only the BASIC CPU module  F3BP20 0N 
36. bscript  Operand error  incorrect operator described in character expression   Variable  label or line number not defined in an immediately executable statement    123  124    130  131  132  133  134  135  136    138  139  140  141  142  143  144  145  146  147  148  149  150  151  152  153  154  155  156  157  158  159  160  161  162  163  164  165  166  167  168  169  170    172  173  174             I OO   gt  I    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A1 5       Appendix 1 2 Detailed Error Codes    The following detailed error codes are output in cases where the BASIC error code 082   I O error   054  shared access error  or 055  SIGNAL transmission error  appears     O I O errors    82   XX    The following describes the meaning of error codes and probable causes where errors  are output when accessing the Sequence CPU Module and Contact Input Output  Module     Where errors appear when accessing another module  see applicable instruction  manual     Detailed Error Message Probable Cause  Error Code   expressed in  hexadecimal       01  Nodriverexists  o G      OG   Insufficientsystemarea os    13   Driverinternalerror o S S O    81   Nodriver exists  S S O    82 Invalid function e Attempted to execute statement which module  does not support  OUTPUT statement for input  module  etc      e Incorrect I O module slot number    83   Invalid logical file number    p S O  Invalid parameter address pf      86    91 Invalid parameter e Device number out of range  e Sp
37. cally assigned   1  Specify the position to be inserted   Specify the position where data are to be inserted with the cursor     320 WHILE 1 Pi  380 IF ISEC   60 THEN   460 ISEC   0   470 ELSE   450 ISEC   ISEC   1   490 ENDIF   500 END WHILE   510 STOP   520 END        F050501 EPS       2  Paste  From the menu bar  click  Edit  and then click  Paste    3  The data are pasted     490 ENDIF     500 EHD WHILE   5401 IF IHIN   59 THEN   502 GOSUB JIHOU     503 IHIN   U   504 IHOUR   IHOUR   1   505 ELSE   506 IHIN   IHIH   1   507 ENDIF    510 STOP       520 END vil  F    F050502 EPS       UN CAUTION    If a program is to be copied from another Windows application via the clipboard  use    data with the same specifications as the BASIC application file   sa  If the data are not  correct  copying is not executed     TIP    If pasted on a line basis  a line number is assigned regardless of the original program line number     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 6    9 8    Search    Searches for character strings     Searches are performed only within a program being edited  Other program blocks  cannot be searched        1  Open the Search dialog box   From the menu bar  click  Edit  and then click  Find    2  Enter the target of the search   Place the cursor in the  target character string  input area and enter the target of the  search   Find Ei Ea  Find what  DATA   F Match whole word only Lancel      Match case  F050601 EPS  3  Search    Click  Find Next    The 
38. co dandelion anaes 1 7  7 3 Communication Speed Setup         rrrnnnnrnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnennnnnennnnr 7 8  7 4 Operation Monitor    7 9  7 5 Configuration sia titi 7 10  7 5 1 CPU COMMUNAL OM sessiya en eee 7 11  7 5 2 Shared Device Setting               ccooooccccconcnccoconococononcncnanononnanonoss 7 12  7 6 ET A     e 7 13  7 6 1 EO    DIE A A TEET E A T 7 14    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    TOA LOG OM arranc   7 15   7 6 3 File Saving the LoOJ             cccoooccococonnccconcnncccanoncnnnnnononannnnononnnnss 7 16   7 6 4 Error Messages and Their CorrespondenCe     ccocccccconccccccnino    7 17   7 7 I O Cofiguration Display      ccoonnncccnnicicconcncononcnnonnnnnnonnnnnronnnanrrnnananennananos 7 19   7 8 A E O OOm  qPXqroQp EE T 7 21  Appendix 1  EFOFCOC union nana A1 1  Appendix 1 1 YM BASIC FA Error Codes          ennnrnnnnnvnnnnnnnnnnennnnnennnnnnnnnnennnnnnr A1 1  Appendix 1 2 Detailed Error Codes      nnnrrnnnnnnnnnnnnnnnnnnnnnnnnnnannnnnennnnnennnnnennnnner A1 6  Appendix 2  Reserves Words       raxraxnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennenne A2 1  y PP        i    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00       1 1    1  Introduction of Software    This chapter describes the personal computer environment  the methods of  installation and    uninstallation     and connection to the BASIC CPU module for  introduction to BASIC Programming Tool M3 for Windows     Ay CAUTION    Log in with Administrator privileges in order
39. communication  speed  carry out  Start Debugging      1  Changing the communication speed  Baud set    From the menu bar  click  Operation setup  and then click  Baud set    2  Selecting the Baud rate   Select from 2 modes     9600bps   This is low speed     19200bps   This is high speed     Ay CAUTION    After starting debugging  the baud rate cannot be changed   After the baud setting  debugging is done by performing  Start debugging     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 9  7 4 Operation Monitor  Display running status of the BASIC CPU module     O Start    From the menu bar  click  Diagnostics  and then click  Program run monitoring      O View           lt  lt Program run monitoring      Status    stop  Mame    GAMEN       F070401 EPS       Status     Displays the run status        Name     The name given in the BASIC program            denotes that the program  does not exist   S5        denotes programs that are not saved     0  Run  Button    Starts a paused program     O  Stop  Button    Stops a running program     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 9    7 10    Configuration    Sets up the default settings of the BASIC CPU module   e CPU Configuration  e Shared device setup    A WARNING    lf CPU Configuration is executed  the program and data saved in the CPU before the  execution will be lost  It is recommended that the program be saved before executing  CPU Configuration     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 5 1    7 
40. ctions  such as cutting  deletion  pasting  search  and jump   are described     O Program Configuration Editing Functions  Functions  such as subprogram addition and deletion  are described     O Error List  The display  saving and clearing of data for an error list are described     5 1 Limitations to Editing Functions    The editing functions have the following limitations     e If data are to be exchanged with other editors using the clipboard  use correct data   No data can be pasted if they cannot be handled in the clipboard     e BASIC programming tool M3 for Windows does not have an operation redo   restoring  function  Carefully execute  for example  program deletion     e Although line numbers are automatically assigned when lines are inserted using the  paste function  if the number of pasted lines is greater than the number of available  lines  the line numbers cannot be acquired and thus copying is not executed     e The length of a line can be no longer than the line number  6 characters including  spaces  plus one single byte space plus the statement  up to 246 single byte  characters   A double byte character in a statement is converted to two single byte  characters     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 2 Programming in Edit Window    This section describes program input in the edit window     E Text Input  The specifications are equivalent to that of a commercially available screen editor   Display the cursor in the    edit window    and ente
41. cursor moves to the target of the search           1 an ETRTETT     An  l Herr   mo Pi  1 Gt   1   7 Find what  DATA   EI E   1 Cancel    J  F Match whole word only   2   J   Match case   2   E     260 I NTH  gt  IMth   270 IDATE DATAE 3  Date   2oU 4    IHOMR DATA     an   TILSI TALT T  T       1 I  1    Hour    ail    F050602 EPS    4  Search for the next target     Click  Find Next  again     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9      9 9    Replace    Replaces program data     Replacement is carried out only within a program being edited  Other program blocks  are not replaced  The replacement methods include a method to execute each  replacement after confirming it and one to make all replacements at one time     1     Open the Replace dialog box   From the menu bar  click  Edit  and then click  Replace    Enter the contents of the replacement     Place the cursor in the input area for the character string before replacement and  enter it  then  place the cursor in the input area for the character string after  replacement and enter it        Find what  ATA  Replace with  DATE  Replace    Replace All      Match case Comcel        Match whole word only       F050701 EPS    Replace    Replacement after confirming   Click  Find Next     A search is started and the cursor moves to the target of replacement         Replace 7   1 1 C Erd els DATA Find Mext  120  gt   _EindNex    130       14 Replace with   DATE i i  r   Replace All      170  Match whole word only  
42. d  On line help includes function help for BASIC Programming  Tool M3 for Windows  functions for the BASIC CPU module  and statement help     Help H   Help Topice C     Fl    About BASIOM3 for Windows  A      F020115 EPS    TIP    Operation setting and the diagnostic function do not operate during debugging  To execute operation  setting and the diagnostic function  terminate debugging     UN CAUTION    The online help might not be displayed in Windows Vista 7 which does not support the  Windows help function by default     In this case  install a Windows Help program applicable for each OS from the Microsoft  Support site     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 11  2 1 3 Tool Buttons    An overview of the tool buttons is described  For a description of the functions  corresponding to each tool button  see the section for each respective function     Dek   Ea 812 43  AJO   2 s s  H      F020116 EPS  E Standard Toolbar    Tool buttons for file access  editing  and print functions  O  New Copy   S  Open  El Save g  Print  ES Cut   Help             E Debug Toolbar    Toolbar used for debug function    ES Run   Set release break point  E Step EJ Start debugging  El Stop E  Terminate debugging    E Search Toolbar    Toolbar used for Find  Move  and Replace in the editor window for editing and  debugging functions       Find F  Move to top line    Replace    Move to bottom line    fa  Move to specified line    UN CAUTION    A description of the tool buttons is not dis
43. d Windows 7 environment  icons or application  names may differ     Drawings shown in this manual may be highlighted  simplified  or partially omitted for  reason of description  In addition  in the environment of a machine in actual operation   the image of the screen may not agree with that shown in this manual     O Function keys and shortcuts    In BASIC Programming Tool M3 for Windows  operations with the function keys or  shortcuts are possible in addition to mouse operation from the menus     Since key arrangements on keyboards and the presence or lack of keys vary with the  type of computer  this manual describes mouse operation as a basic operation but does  not describe operation using the function keys or shortcuts for duplicating functions     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    XI  E Other Instruction Manuals    O When BASIC Programming Tool M3 for Windows is to be used  be sure  to read the following instruction manuals before reading this manual     First read instruction manual for BASIC Programming Tool M3 for Windows Read Me  First  IM 34M06Q22 11E      Refer to the following instruction manuals for the FA M3 as necessary in addition to this  manual     O For BASIC CPU modules and YM BASIC FA syntax  see     Instruction Manual for the BASIC CPU Modules and YM BASIC FA Programming  Language     O For FA M3 specifications and configuration  mounting and wiring   commissioning  maintenance and inspection  and limitations in  mounting the entire syst
44. de   k module is detected  module and CPU module also    must be replaced         1  n  Slot number of the I O module where the abnormality occurred   K  Error Code  Contents Information     E Correspondence of BASIC error messages    Describes the contents and their correspondence BASIC error messages   e Display Format    1999 12 01 15 12 15 E82 E6 L 00170 Timeout Error    Date Time Error code Line Number Message character string   Year Month Day   Hour Minute Second     f RSCOMTST p RSCOMPT 1    Program Name Program Name F070606 EPS    e BASIC Error Message  See Appendix 1  Error Codes later in this manual     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 19    7 7 I O Configuration Display    Displays the module configuration information   A module accessed by the BASIC CPU module is displayed     170 Module      SUB  UNIT  1    SUB  UMIT  2       puma      FO70702 EPS    O I O Module  I O Configuration Display    From the menu bar  click  Diagnosis  and then click  I O Module      0 Usage I O Display  The I O that is used by the CPU is displayed in yellow     O Alarm Display    A module that displays red denotes an alarm     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 20    Ay CAUTION    e     If the common area size is changed     registration    must be carried out  Take care as  the size will be changed if    Registration    is not done     e If the setup value of the common area size is not correct  the message    Area size  specification error    will be d
45. e are errors and the error codes in its own list in the debug window     From the menu bar  click  View  and then click  Error list  to start each process     O  Display     The debug window section switches to the error list display     O  Clear   Clears the error list page     O  Save   Saves the error list   Enter the file name and click  Save    The saved file can be read in a text editor     0 Jump to the error part  If the error contents displayed in the    Error list    in the debug window are double clicked   a jump is made to the relevant error part     SEE ALSO  For error contents and countermeasures  refer to the Instruction manual for BASIC CPU Modules  YMBASIC FA Programming Language  IM 34M06Q22 01E   or Online Help     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 1    6  Debugging Functions    This chapter mainly explains the operating methods regarding the debug  functions of the BASIC CPU module application programs     O Program forwarding and initialization  Explains how to download and upload an application program and how to initialize the  program area        Debug function  Explains the operation of each type of tracing function     O CPU control function    Explains the residence setup of the application program and the operation method at the  completion of debugging     0 Debug list  Explains the clearing of the debug list area and file saving     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 1 Debug Starting and Ending    E Debug Starting  
46. e using BASIC Programming Tool M3 for Windows   refer to the explanation for each function in Chapter 3 and later     The contents of each item are independent  respectively  and the manual has the  configuration and contents only in reference to a function that will help you understand  the specifications for BASIC Programming Tool M3 for Windows     The basic portions of the operation and editing functions of BASIC Programming Tool  M3 for Windows are realized with specifications that are as equivalent to the  commercially available Windows software as possible  Accordingly  editing and  operation screens are not specifically shown except for those screens specific to BASIC  Programming Tool M3 for Windows     E Notation in the Text    O Notation for Windows Screens and Operation    Character strings and symbols enclosed in brackets      These include menus in the menu bar  commands  text box names  and buttons    Example   Click  Debug   Run  in the menu bar     Click  Debug  in the menu bar with the mouse and click  Run  in the  pulldown menu     Character strings and symbols enclosed in double quotation marks          These include icons  windows  dialog boxes  and key input character strings    Example   The    Set date    dialog is displayed     O Notation of drawings related to BASIC Programming Tool M3 for  Windows and display screens    Examples of display screens in the text are described considering a Windows 2000  environment     In a Windows XP  Windows Vista an
47. ecified terminal number other than 0 or 1  e Module name not assigned    AAA  Number of specified processing requests exceeded   O Z o oS y O  Internal error in ASSIGN statement AA    BG  ASSIGN statement not executed  I O not installed   Incorrect module name assigned  e Module name not assigned  e Sequence CPU module not found       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A1 6       Detailed Error Message Probable Cause  Error Code   expressed in  hexadecimal        A1 ncorrect slot number         BO   invalid access procedure SS    Incorrect device name  B2 Data high low limit overflow    Incorrect device name  B5 Invalid data or code     BB      B6   Invalid module designation    BB   Invalid interruption code or number    BC Interruption code already requested     Buffer overflow  I O reset detected    CD Insufficient area  driver work area   e Faulty module  D3 Receiving data error    Communication error    Hardware error during data transmission 1 S O    Received text header information invalid      Received text header information invalid      Program initiation text received    Invalid transmission mode O  Buffer overflow S y O      Incorrect slot number  e Faulty module  statement   E TA AAA    D6     DB       D9       DB   E6 Timeout e Received statement not processed within the  given time     A  AA  execution status  not in normal status    Internal error EAS  Internal error SS  Internal error    Device not configured       IM 34M06Q22 02E 2nd Edition  Se
48. ed value that has been entered is  executed the next time the CPU is restarted     e The restart of the CPU can be executed either by using the CPU restart function or  turning on the FA M3 power     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    Toc A 1    FA M3    BASIC Programming Tool M3 Instruction Manual    Appendixes  IM 34M06Q22 02E 2nd Edition    CONTENTS  Appendix 1  Error COde s              ccccccceeeeeseeeeeeeseneenesenecnseeeseneenesensones A1 1  Appendix 1 1 YM BASIC FA Error Codes        ennnrnnnnnvnnnnnnnnnnennnnnnnnnnnnnnnnennnnnnr A1 1  Appendix 1 2 Detaild Error Codes        r  nnxrnnnnnnnnnnunnnnnnnnnnannnnnnnnnnnennnnnnnnnnennnnnnr A1 5  Appendix 2  Reserced Words        axranrannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnenne A2 1    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00       Blank Page       A1 1       Appendix 1  Error Codes    Appendix 1 1 YM BASIC FA Error Codes    1  2  3  4  5  A A    9 EE    Array subscript dimension error    FOR   NEXT error  Improper FOR   NEXT  WHILE   END WHILE  IF   ENDIF matching  Needs simple numeric variable in FOR statement    RESERVED       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    a  q       Error Code  Insufficient data  Too many entries  excessive input data   Too few entries  insufficient data   No data to be read by READ statement  Unmatched data type  Unmatched  RESERVED  Image data error    Error Message    30  31    QD    QD    34    Output overflow  Output data overflow  Value overflow  RESERVED  Inva
49. em  see the following instruction manual     Hardware instruction manual  IM 34M06C11 01E     Note  For specifications of products other than the power module  base module  I O module  cables  and terminal board  unit  see the instruction manual for each product     O If you use sequence CPU F3SP71  76  see the following instruction  manuals     Sequence CPU Instruction Manual     Functions  for F3SP71 4N 4S  F3SP76 7N 7S    IM 34M06P15 01E     O If you use sequence CPU F3SP66  67  see the following instruction  manuals     Sequence CPU Instruction Manual     Functions  for F3SP66 4S  F3SP67 6S    IM 34M06P14 01E       If you use sequence CPU F3SP22  28  38  53  58  59  see the following  Instruction manuals     Sequence CPU Instruction Manual     Functions  for F3SP22 0S  F3SP28 3N 3S   F3SP38 6N 6S  F3SP53 4H 4S  F3SP58 6H 6S  F3SP59 7S   IM 34M06P13 01E    O If you use sequence CPU F3SP08  21  25  35  see the following  instruction manuals   Sequence CPU Instruction Manual     Functions  for F3SP21  F3SP25 and F3SP35    IM 34M06P12 02E    O For information on the instructions used with sequence CPUs  see the  following instruction manuals     Sequence CPU Instruction Manual     Instructions  IM 34M06P12 03E     O When programming using ladder  see the following instruction manual     FA M3 Programming Tool WideField3 Manual  Instruction and Trouble shooting    IM 34M06Q16 01E     FA M3 Programming Tool WideField3 Manual  Offline   IM 34M06Q16 02E   FA M3 Programming Tool W
50. ents are not set in the BASIC CPU Module     SEE ALSO    For details on the immediate mode  user area and common area  refer to the Instruction Manual for  BASIC CPU Modules and YM BASIC FA Programming Language  IM 34M06Q22 01E      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 12    1 5 2 Shared Device Setting    Do the setting for the number of shared devices     Is    Start the shared relay and register configuration dialog box     From the menu bar  click  Diagnostics  and then click  Configuration  and  Shared  relay and register configuration      Change data  on number of devices    Click    no  of devices display area        Input the number of devices  For shared relays  also do only the setting by matching  with the other CPUs  Data sharing with the sequence CPU depending on shared  relays cannot be done        Common Device Configuration    Common relay  Point  Mur  E0001   E0512  E0513  E1024     Ena E       Common Register  Ponts Mum  R0001  R0512  R0513  R1024  e  een       case         FO70502 EPS    Set with the  Enter  Key    Registration of change   Click the  Register  button    The BASIC CPU Module setting is transmitted and registered     UN CAUTION    The setting of contents to the BASIC CPU Module is performed by  Register   In the  case where  Register  is not done  the BASIC CPU Module returns to its original setting     Click  Cancel  in the case where the contents are not set in the BASIC CPU Module     SEE ALSO    With regard to an overview of 
51. ext      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 3    Uninstall    A procedure to delete all BASIC Programming Tool M3 for Windows environments from  the personal computer is described     1  Click  Start   Set   Control Panel   Add and delete applications  from the Windows  task bar     2  Select    BASICM3 for Windows    and click  Add and delete      Confirm File Deletion E3    2  Are pou sure POL want to completely remove    BASICS for Windows  and all of its components           F010301 EPS    3  Click  Yes      UN CAUTION    If a system file required for the removal procedure has been deleted     uninstallation     cannot be executed  In addition  if there are folders and files not related to the system in  the system folder  the removal procedure may not terminate normally     TIP    For inquiries on the deletion of shared files  select the  All not  button and continue    Uninstall        IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 4 Personal Computer Environment Setup     amp  Changing the COM Port Number  The COM port number must be changed depending on the type of personal computer  and setup     Set up the personal computer for the BASIC Programming Tool M3 for Windows port     Setting on the BASIC Programming Tool M3 for Windows side  Open the BASICM3 ini file in the folder where BASIC Programming Tool M3 for  Windows is installed using the text editor and change the following setting      COM   port COM2  in the case of using a serial port as COM
52. g the BASIC program     1  Start    Explorer      2  Enter the folder name selecting  File   New   Folder  from the menu bar     SEE ALSO    To change the personal computer or Windows environment  see applicable instruction manual     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 5    Connection with BASIC CPU Module    This section describes connection with the BASIC CPU module        F010501 EPS    E Preparation    O Personal computer cable    Prepare the cable dedicated to the FA M3 CPU shown below     Select one depending on the specifications for the connector of the personal computer  serial port     Suffix Style Option    Model   Code   Cove   Code Specifications    e EE  KM11    AE D sub 9 pin female  SA ESA T 10m long    USB1 1 compliant cable for use with       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    1 8       E Setting a serial port number    Please set the COM number of a serial port as  BasicM3 ini    which exists in the  installation place of    BASICM3 for Windows        Open and change the contents of    BasicM3 ini    by the text editor   It can set up from COM1 to COMO   Default   COM1      example  When the COM number of a serial port is COM5    com   port COM5    TIP    The  BASICM3 ini  file can be opened also by selecting  CPU Setting     Port Setting  from the main  menu for BASIC Programming Tool M3 for Windows     TIP    In Windows Vista 7  the folder security prevents restricted users from accessing the folder where  BASIC Programming Too
53. gram residence      Reside                            After debugging   tart to run automatically                Operation mode when debugging  completed      Run                        Terminate debugging           Write to ROM     Chapter 7 Maintenance Functions        Write to ROM                Exit     C Programming is completed                 N  a    FO20202 EPS          IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 19       2 3 Overview of BASIC Programming Tool M3  for Windows Files    m File Configuration    This section describes the files created by BASIC Programming Tool M3 for Windows  It  meca recommended that user files be saved with the following identifying extensions     tension ac application BASIC program edited and created with BASIC Programming Tool M3  for Windows or commercially available editor   Text source file    BASIC application BASIC program edited and created with BASIC Programming Tool M3  Intermediate file     Stores up to 1024 items   CPU is undergoing debugging        IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 20  m BASIC Application File Specifications    A BASIC application file  extension   SA  can be edited with a commercially available  editor and be used  Create it with the following file specifications     O File Name    Normal operation can be obtained with a character string of up to eight standard width   single byte  alphanumeric characters starting with an alphabetical letter     O File Specifications  Program block 
54. gram saved on a personal computer   Terminates a BASIC program that has been being edited till now     E Opening from  Open   1  Open  From the menu bar  click  File  and then click  Open       Open    dialog is displayed   2  Select program file  Select the program file to be edited     Open    Look ir Fa       ls  Gamenz s  at  Gamen3 za    File name   Gamen  Files of type  Text Files  Intermediate Files    sa   un       Cancel         F040201 EPS    Click  Open    3  Program display    The program configuration is analyzed  and the configuration is displayed in the  program configuration window and the main program in the edit window   respectively     E Opening by selecting a recently used file    1  Alist of recently used files is displayed in the  File  menu   2  Click the file name     TIP    A file currently being edited cannot be re displayed even if it is selected from the recently used files   Select it from  File     Open      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 3    File Saving by Overwriting  Saves a file being edited with the same name as that prior to editing   1  Save by overwriting   From the menu bar  click  File  and then click  Save    2  Saved  It is saved with the name of the file being edited   Overwriting to the existing file is not confirmed     TIP    BASIC application linked to a library can be saved in intermediate language format   UN      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 5    4 4 Saving with New Name    The BASIC a
55. hten screws     Securely tighten module mounting screws and terminal screws to avoid problems  such as faulty operation       Tighten terminal block screws with the correct tightening torque  Refer to the  hardware user s manual or the applicable user s manual for the appropriate  tightening torque     O Securely lock connecting cables     Securely lock the connectors of cables  and check them thoroughly before turning  on the power     O Interlock with emergency stop circuitry using external relays       Equipment incorporating the FA M3 controller must be furnished with emergency   stop circuitry that uses external relays  This circuitry should be set up to interlock  correctly with controller status  stop run       amp  Ground for low impedance       For safety reasons  connect the  FG  grounding terminal to a Japanese Industrial  Standards  JIS  Class D  earlier called Class 3  Ground 1  For compliance to CE  Marking  use braided or other wires that can ensure low impedance even at high  frequencies for grounding      1 Japanese Industrial Standard  JIS  Class D Ground means grounding resistance of 100 Q max     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    VI    O Configure and route cables with noise control considerations       Perform installation and wiring that segregates system parts that may likely become  noise sources and system parts that are susceptible to noise  Segregation can be  achieved by measures such as segregating by distance  installing a filter or
56. ialog box    From the menu bar  click  Edit  and then click  Subprogram  and  Add    2  Select a file name    Click  Starting from a file  to display the file list   3  Select a file name and click  Open      E Inclusion of New Subprogram    1  Open the subprogram adding dialog box    From the menu bar  click  Edit  and then click  Subprogram  and  Add    2  Enter the name of a subprogram    Enter a subprogram name and argument   3  Click  OK      Ay CAUTION    If including a subprogram from a file  add a file configured with a subprogram only  If  codes other than a subprogram exist  the inclusion may be executed incorrectly     TIP    The name of a file that is the target of editing becomes the main program name  When adding a  subprogram  a subprogram with a name identical to the file name cannot be added     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 15    5 13 Deletion of Subprogram    Deletes a selected subprogram from the whole program   1  Select a subprogram to be deleted     In the program configuration window  select and highlight the subprogram to be  deleted with the mouse     2  Delete    From the menu bar  click  Edit  and then click  Subprogram  and  Delete    3  Confirmation message is displayed     Yes   Deletes     No   Does not delete     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 14    9 16    Deletion of Subprogram    Modifies the program name and argument of a subprogram     Addition of a subprogram    Mame   ADOSUB AS BS   cancel       F0
57. ideField3 Manual  Online   IM 34M06Q16 03E   FA M3 Programming Tool WideField3 Manual  Script   IM 34M06Q16 04E     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    Copyrights and Trademarks    E Copyrights  The copyrights for programs contained on the CD ROM and in the online manual belong  to Yokogawa Electric Corporation     For the online manual  PDF security is such that its contents cannot be altered  lt can be  output to a printer     If the online manual is output to a printer  use it only for utilizing this product  lf the  manual is printed out with a printer  exercise care so that no confusion with the latest  version occurs  To use the contents  check that the version number agrees with that of  the most recent CD ROM     Copying the online manual or assignment for  or selling or distributing it  including  providing it via a network of personal computers  to a third party is prohibited  In  addition  registering or recording the manual on video tape cassette or other medium is  also prohibited     E Trademarks     Microsoft Windows 2000        Microsoft Windows XP     Microsoft Windows Vista    and     Microsoft Windows 7    are registered trademarks of Microsoft Corporation in the US     Pentium is a trademark of Intel Corporation       In addition  the product and company names used in the manual are the trademarks  or registered trademarks of their respective companies     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00       TOC 1    FA M3  BASIC Programming Tool
58. idence function is the function that makes the program resident in the  CPU during program downloading or at the end of debugging     1  Specify the Reside   Click  Debug     Specifying program residence  from the menu bar     2  Setup   Click  Reside  or  Release     Reside   Does the residence specification      Release   Deletes the residence specification     Ay CAUTION    If there is no residence setup  the application program will not be saved in the BASIC  CPU module  In this case  the program will be erased at the end of debugging     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 5    6 17    Operation Setup during Debug Completion    The operation setup function at the completion of debugging runs or stops the program  after program downloading or at the completion of debugging     1  Change the operation mode at the completion of debugging    Click  Debug     Operation mode during debugging completed  from the menu bar   2  Setup    Click  Run  or  Stop      Run   Run starts at the completion of debugging     Stop   Stops at the completion of debugging   3  Confirmation of setup   Display the confirmation message     Yes     Makes the setup valid     No   Makes the setup invalid     Ay CAUTION       Operation setup at completion of debugging    operates only when the program is  resident     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 18    6 6 Debug List    The debug list is a list of each type of trace data and error and is displayed while the  CPU progr
59. ile     Print    Edit     Cut    Edit     Copy   Ctrl    C   Edit     Paste    Edit     Find    Edit     Find Next   F3    Edit     Replace    Edit     Jump     Move to Top Line    Edit     Jump     Move to Bottom Line   Ctrl    B   Edit     Jump     Move to the specified line    Edit     Line number reassignment    Debug     Run   F5    Debug     Stop    Debug     Continue   Ctrl     F5    Debug     Step   F8    Debug     Set release a break point    Debug     Release all break points   Shift     Ctrl     F9    Help     Help Topics   F1    Shortcuts by clicking the right mouse button vary with the type of window that is open    These are set for functions frequently used or functions that do not exist in the menu  bar     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 14       2 1 5 Message Box    This section describes the message boxes displayed in BASIC Programming Tool M3  for Windows and their button input processing  They are omitted in the descriptions of  the functions in each chapter     E Confirmation and Selection Message    When operation is performed from BASIC Programming Tool M3 for Windows  these  messages are displayed when confirmation of the operation is required or some  preprocessing is necessary for that operation     Message Box Options Time of Confirmation Display Type of  Available Function    Save changes to xxxxxxx  Yes When currently displayed File  No program is changed but is not  Cancel et saved  No saved already exists  No  No  Select proce
60. in places with high temperature or  humidity       Since the CPU module has a built in battery  avoid storage in places with high  temperature or humidity       Since the service life of the battery is drastically reduced by exposure to high  temperatures  take special care  storage surrounding air temperature should be  from    20  C to 75  C            There is a built in lithium battery in a CPU module and temperature control module  which serves as backup power supply for programs  device information and  configuration information  The service life of this battery is more than 10 years in  standby mode at room temperature  Take note that the service life of the battery  may be shortened when installed or stored at locations of extreme low or high  temperatures  Therefore  we recommend that modules with built in batteries be  stored at room temperature     O Always turn off the power before installing or removing modules       Failing to turn off the power supply when installing or removing modules  may result  in damage     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    VII       Do not touch components in the module       In some modules you can remove the right side cover and install ROM packs or  change switch settings  While doing this  do not touch any components on the  printed circuit board  otherwise components may be damaged and modules may fail  to work        Do not use unused terminals       Do not connect wires to unused terminals on a terminal block or in a
61. isplayed     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 21    7 8 Date Set    Change the date on the clock  which is operated in the BASIC CPU module   The corrected value should be set in a numeric value  unit  seconds  every 24 hours   In the case where the clock runs fast  enter the changed value by placing a minus sign        before the numeric value  On the other hand  in the case where the clock is slow   enter the changed value without placing any sign   Date set    Present    1999 rear  D9 bonth 24 Dav    15 Hour Tl6Minute 01 Second  Corrected 0 Seci     W Date   99 09 24    FM Corrected  Jo   100 5100     cae       F070801 EPS    m Display of Date Setting  1  To display the date setting dialog box   From the menu bar  click  Diagnostics  and then clock  Set date    The    Date Set Dialog    is displayed     m Change of Date    1  Enter the corrected date value   Click the Input Area with the mouse  and the cursor is displayed   Input from the cursor position   2  Check the change   Check the left side check box of the data that changes   3  Setup  Click  Setup    The items that are checked in the check box undergo a setting change     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 22    UN CAUTION    e The contents are set in the BASIC CPU module by  Set   In the case where  Set  is  not carried out  it returns to the original setup     When the contents are not set in the BASIC CPU module  click  Cancel      e The correction of the clock as per the correct
62. l M3 for Windows is installed  In this case  edit the  BASICM3 ini  file in    ProgramData Y okogawa BASICM3  in the installation drive     E Connection    1  Connection to serial port   Connect the cable to the serial port in the rear of the personal computer     2  Connect the cable to the PROGRAMMER port of the BASIC CPU module  Securely  connect the cable removing the protection cover on the CPU side     3  Confirmation of communications     Operate the Debug function or Maintenance function to confirm communication with  the CPU     TIP    For a personal computer having more than one serial port or using a COM port number for infrared  communications  it may be necessary to change the COM port number used by the serial port      TIP    To establish an online connection using KM13 1S  it is required to set up the dedicated driver software  on the PC in advance     USB cable instruction manual  IM34M06C91 01E   which describes the installation procedure and  COM port number setting procedure  and the driver software are supplied with the cable  Install the  driver software from the CD ROM supplied with the cable or from our website     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 1    2  Software Overview    This chapter gives a basic overview of BASIC Programming Tool M3 for Windows   the programming flow  and application files     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 1    Software Environment Configuration    BASIC Programming Tool M3 for Windows is a p
63. le name    Enter a file name    If there is no file with the same name    The file is saved with the entered name    If a file with the same name already exists     Save a Subprogram PG    AN LA userbasic Gamens sa already exists   Do you want to replace it        F040501 EPS   Yes     Saves by overwriting the file      No   Does not overwrite and the display returns to the Save dialog     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 6 Program File Printing    Prints a program being edited     The function includes printing an entire program being edited or printing a specified    program   Print ki  Printer  Mame  Properties         Status  Default printer  Ready  Type  AGFA Accuset 1000    Where   LPT1    Comment    Print range Copies   fe All Humber of copies                pel elr  C Selection  men         F040601 EPS    E Printing Entire Program    Prints an entire program being edited   1  Start of printing  From the menu bar  click  File  and then click  Print      2  Select  All   Click the  All  option button of  Printing range    3  Print    Confirm the printer and other items and then click  OK      m Printing Specified Program  Prints a program being displayed in the edit window   1  Display program  Display the program to be printed   2  Start printing  From the menu bar  click  File  and then click  Print    3  Select  Selected area   Click the  Selected area  option button of  Printing range    4  Print  Confirm the printer and other items and then click  
64. lease   Click the   lt  lt All  button    Move all the subprograms to    not set        E Display of the branch status  The branch status is displayed under  Debug  in  Debug window      TRACE  FROM SUBPRG    1230 TO MASTER       4      Debug A Erorlist    Enorlog y Ja    rl    F060307 EPS    The above example shows the item that has been branched at line 1230 of the program     SUBPRG    in MASTER     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 14    6 3 5 Variable Tracing    Variable tracing is the function that traces a variable change during debugging  For a  variable for which variable tracing is set  whenever the data undergoes a change  the  change information will be displayed under  Debug  in  Debug Window         variable tracing    variable tracing    Program block set     variables  up to 5 delimited with commas     cael       F060308 EPS    AN CAUTION    After adding a variable in online editing  setup for tracing of the variable cannot be done  before executing the program  If it is set  it will be displayed in the debug window as a     Variable name not defined    error  In the case of tracing an additional variable  trace it  after executing the program  If editing is done after setting variable tracing  variable  tracing will not be displayed correctly  After editing  reset variable tracing once again     m Setting of variable tracing    1     Start the variable tracing dialog box    Click  Debug     Variable tracing  from the menu bar    Select  Yes   
65. lid line number  IMAGE statement missing in a line referenced  Branch destination for GOTO GOSUB statement not found  Program statement name not found  Sequence error of declaration statements    HQ  O        41    42  43  44    CS AAA    Inter user area communications error   RESERVED   Communications error CPU type error  Communications error CPU type error  Communications error CPU type error  refer to detail error codes   SIGNAL transmission error   RESERVED   RESERVED   RESERVED   RESERVED   RESERVE  RELEASE statement error   Invalid numeric value in ON statement   Existing variable or array redeclared  RESERVED   Incorrect RETURN statement  RETURN with no GOSUB   RESERVED   RESERVED   Numeric conversion error   Error detected in ON ERROR processing  RESERVED   Attempt to execute a statement not executable   RESERVED   RESERVED   RESERVED   RESERVED   Prerun error  conflicting program   Conflicting error in main program   RESERVED   Syntax error in subprogram    51    99  56  57  58  59    61  63    64  65    O     N N O  Q1  01  O1  al   gt  NO AJOIN    T    70    12  13  74    76    11  78    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A1 3      80   Stack area is now being used  insufficient area   OO  086  RESERVED O ss  Line number exceeds 65535        IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    A1 4       Error Code    Error Message     gt   D  3    121  122    Character string not found  Free area not more than 400 byts  Subprogram error  Subprogram not fo
66. mmon    DIV NNN NNN  40 OPTION BASE 1  50 DEFSNG A  60 DEFDBL C    Open the dialog box for reassigning line numbers   From the menu bar  click  Edit  and then click  Line number reassignment      Line number reassignment    te Auto set    CC Manual set    Old line number   Mew line number   Increment    E Cancel            F051001 EPS    Reassign with automatic setup    Line numbers are reassigned at the setting in increments of 10 from the top line   Click the  Auto set  option button    Reassign with manual setup     Reassign line numbers by setting the old line number  new line number and  increment     Click the  Manual set  option button   Enter  Old line number    New line number   and  Increment  respectively     f Manual set    Old line number 12  New line number 10 Increment 10    F051002 EPS  Set    OK   Sets the entered contents    Cancel   Terminates the setting without change     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 13    5 11 Program Display Switching    Switch the programs displayed in the edit window   1  Click a program to be displayed        34 Gamen  sa       SWAPDATA  STATUS    F051101 EPS  2  The selected program is displayed in the edit window     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 14    5 12 Inclusion of Subprogram    Adds a subprogram to the program being opened     Addition of a subprogram    Mame    ADDSUB AS BS  Starting from a file  om         F051201 EPS    E Reading Subprogram File    1  Open the subprogram inclusion d
67. ng the Product    For the protection and safe use of the product and the system controlled by it  be  sure to follow the instructions and precautions on safety stated in this manual  whenever handling the product  Take special note that if you handle the product in a  manner other than prescribed in these instructions  the protection feature of the  product may be damaged or impaired  In such cases  Yokogawa cannot guarantee  the quality  performance  function and safety of the product     When installing protection and or safety circuits such as lightning protection devices  and equipment for the product and control system as well as designing or installing  separate protection and or safety circuits for fool proof design and fail safe design of  processes and lines using the product and the system controlled by it  the user  should implement it using devices and equipment  additional to this product     If component parts or consumable are to be replaced  be sure to use parts specified  by the company     This product is not designed or manufactured to be used in critical applications  which directly affect or threaten human lives and safety     such as nuclear power  equipment  devices using radioactivity  railway facilities  aviation equipment   shipboard equipment  aviation facilities or medical equipment  If so used  it is the  user s responsibility to include in the system additional equipment and devices that  ensure personnel safety     Do not attempt to modify the p
68. number el  1998 05 20 Teas  Start up completed   1999 0820 14 24 05 ES4 92 L 00350 Communication erronvlPl type error g      ef Debug A Errorlist    Errorlog fa  1 JN    FO70601 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 15    7 6 2 Log Clear   Clear the log information of the BASIC CPU Module    The error log display of    Debug Window    is also cleared    1     Debug Window    is switched to    Error Log Display      Click the  Error log  tab of    Debug Window       2  Clear the log  From the menu bar  click  Diagnostics  and then click  Error log  and  Clear    The error log is cleared     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 16    7 6 3 File Saving the Log  Save the error log  while it is displayed in    Debug Window     in a file   The saved file can be read in a text editor   1     Debug window    is switched to    Error Log Display           2  Save File   From the menu bar  click  Diagnostics  and then click  Error log  and  Save    Save error log ki Ed  Save in   base sjE ex  les  amp   aa  newlog ELG    File name   logtest  Save as type   Error Log Files    elg  a Cancel         F070602 EPS  3  Enter the file name in the file save dialog box  and click  Save      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 6 4    7 17    Error Messages and Their Correspondence    This section describes the method of correspondence when an error message is  displayed in the error log display     There are the following two types of messages that are
69. oints is set in one  subprogram  only the last setting will be valid and the others will be cancelled  A breakpoint set in a  subprogram breaks only once     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 11    E Releasing a breakpoint    Release a breakpoint that has been set     1     Select the line     Display the program in  Edit Window  and specify with the cursor the position at  which the breakpoint has to be released     420 IHOUR   IHOUR   1  430 ELSE   440 IHIH   IHIH   1  450 ENDIF   460 ISEC         F060304 EPS  Release the breakpoint     Click  Debug   Set release a breakpoint  from the menu bar     3  The breakpoint is then released     320 WHILE 1     380 IF ISEC   60 THEH   390 IF IHIN   59 THEN   410 IMIN   U   420 IHOUR   IHOUR   1   450 ELSE   440 IMIN   IHIN   1   450 ENDIF   460 ISEC   0   470 ELSE   450 PSE   ISEC   1   490 ENDIF   500 END WHILE   510 STOP         F060305 EPS    E Releasing a breakpoint    Release all the breakpoints in the entire program     1     To release all the breakpoints   Click  Debug   Release all breakpoints      2  All breakpoints are released     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 12  6 3 4 Branch Tracing    Branch tracing is a function that traces the branch status in a subprogram     In a subprogram in which branch tracing is set  when program branching is done  the  branch information will be displayed under  Debug  in  Debug Window      Branch tracing    Mot set To be set    MAI  RESET  STATUS  SMAPDAT
70. omatic assignment at the setting of starting number 12 in    increments of 10    TA MIPTI ITIL ETI NNN  22     lt Program NAME gt  SequenceCPU common     SL AAA VIVAS IVA IIIT TTA IT ITI TILIA IIIT NNN  42 OPTION BASE 1   52 DEFSNG A   62 DEFDBL        When a new line is generated  a numeric value obtained by adding 10 to the preceding  line number is given to that line     A    Open the dialog box for setting automatic line number assignment   From the menu bar  click  Edit  and then click  Automatic line number assignment      Set line number automatically  Set line number automatically     Yes Start line number   Increment      ae         F050901 EPS    Set the automatic line number assignment   Click the  Yes  option button   Enter  Start line number  and  Increment  respectively        Ves Start line number 10 Increment 10    F050902 EPS  Release the automatic line number assignment     Click the  No  option button    Set    OK   Sets the entered contents     Cancel   Terminates the setting without change     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 12    5 10 Line Number Reassignment    Reassigns line numbers   Example  Automatic assignment at the setting of old line number 12 and new    1     line number 10 in increments of 10    12 LLALL ITIL AAA AAA LANA IIIT I STL NT  13     lt Program NAME gt  SequenceCPU common    WA VITNET NNN NNN  15 OPTION BASE 1  16 DEFSNG A  17 DEFDBL C   from         to   10 VETT NNN NNN TN  20     lt Program NAME gt  SequenceCPU co
71. or list E         Toolbar T             Status Barf        Set Font F          F020118 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 17       2 2 Programming Flow  This section interprets the flow from FA M3 BASIC application programming to  debugging     The section describes the functions of the BASIC Programming Tool M3 for Windows  that become effective in each process     O Off line Programming Functions       C Programming flow             Edit using BASICM3  for Windows              Start up BASICM3 for Windows           Edit using a commercially  available editor                          Start up BASICM3 for Windows  Create a program      New    Open       Chapter 4 File Management Functions                Create a program or  open the existing file        Chapter 5 Editing Functions          Edit the program    Edit                                 Save  the program               Download         Exit                      Programming is completed          F020201 EPS    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 18          Debug and Maintenance Functions          Change CPU configuration     Chapter 7 Maintenance Functions          Change  Configuraton             Start debugging     Syntax error check      Download       Run  the program      Debug  the program                                          Save  the modified program                  Chapter 5 Editing Functions         Specify residence     Chapter 6 Debug Functions        Specifying pro
72. p  7  2012 00    A1 7       O Shared access and SIGNAL transmission errors    54   xx or 55   xx    The following describes the meaning of error codes and probable causes where errors  appear at the time of shared accessing     If errors are output at the time of SIGNAL transmission  the following failures may be  considered  You should also check parameters  cable connections and the destination  status     e Parameter errors involving unit numbers  or the like  e Cables disconnected   e Terminators not connected  terminators missing    e Destination module or card defective    Detailed Error Message Probable Cause  Error Code   expressed in  hexadecimal     Destination BASIC task not found    inati MAS  Event receive intermediate buffer overflow in  destination BASIC    Internal error    Incorrect buffer length specification e Common variables are not of integer type or  long integer type       Incorrect destination UNIT type  incorrect configuration    SSS y   O  Incorrect own UNIT type  gt    Invalid parameter      03      82      88      89    ENE  o 92  Sequence CPU not installed   Incorrect module name assigned  e Sequence CPU not assigned  e Sequence CPU module not found    AT    a       Ba    BS    E B4    BS     BG       a    A   Unconnected UNIT no  specified   O  Internal e  Internal error PG  Internal error  gt    Internal er  Internalemor PG  Internal error PG  Internalemor o O    BA   Internalerron pf    03  05  82  84  88  91  92  7  B1  B2  B3  B4  B5  B7  BA
73. played during debugging     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 12    2 1 4 Basic Operation    This section describes the basic operating specifications for BASIC Programming Tool  M3 for Windows by giving examples  Read the section for each respective function after  reading this section     O Selection from the menu bar  Operate the function by selecting it from the menu bar      Example  Search   1  Move the mouse pointer onto  Edit  on the toolbar and then click   2  Move the mouse pointer to the position for  Search     3  Highlight  Search  and click    4  The    Search    menu dialog is displayed     O Selection using the tool button  Operate the function from the tool button      Example  Search  1  Bring the mouse pointer onto the L    tool button and then click   2  The    Search    menu dialog is displayed     O Entering characters  Enter them from the keyboard      Example  Statement input   1  Click an edit line in the edit window    2  Since the cursor is displayed  enter characters from the keyboard   3  Press the Enter key     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    N     13     amp  Shortcut    The shortcut keys that are usable in BASIC Programming Tool M3 for Windows are  shown below  The functions are the same as the operations from the menu bar  For the  operation methods after startup  see each section     Pull down Menu Function Shortcut Key s   File     New   Ctrl    N  File     Open   Ctrl    O  File     Save   Ctrl   S          F
74. pplication being edited is given a new name and saved as a file     1     Save   From the menu bar  click  File  and then click  Save As     Select type of file   Set    File type        Text format    SA    The file becomes a text file that can be edited in another editor    Intermediate format    UN    Saves a file in the intermediate language     Ay CAUTION    Save a BASIC application linked with a library in intermediate language format  If it is  saved in text format  the library part becomes invalid     3  Choose name    Enter a file name    If there is no file with the same name    The file is saved with the entered name    If a file with the same name already exists     AN CuzerybasickGamen  sa already exists   Do pon want to replace it        F040401 EPS   Yes     Saves by overwriting the file      No   Does not overwrite and the display returns to the Save dialog     Ay CAUTION    The names of folders used for saving BASIC application files cannot have character  strings containing double width spaces     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    4 5    4 6    Subprogram Saving    A subprogram being edited in the edit window can be saved as a file     A saved subprogram can be used in another application     1     Select program    Select a program to be saved in the    Program configuration window    and display it in  the edit window     Save subprogram  From the menu bar  click  Edit  and then  Subprogram      The Save dialog box is displayed   3  Choose fi
75. program in the  Edit Window  and specify the break position with the  cursor     320 WHILE 1     380 IF ISEC   60 THEN   390 IF IHIN   59 THEH  410 IHIN   0   420 IHOUR   IHOUR   1  450 ELSE   440 IHIN   IHIH   1  450 ENDIF   460 ISEC        470 ELSE   450 ISEL   ISEC   1   490 ENDIF    500 END WHILE    510 STOP vil       Fa314 TTT  TT       F060301 EPS  Setting the breakpoint    Click the  Debug     Set release a breakpoint  from the menu bar   Entering the number of transit times  Enter the number of transit times     Set cycle frequency       Mo  of transit cycles  Cancel    1       F060302 EPS  4  To set the number of transit times  click  OK      Setting the number of transit times is a function that makes a break only when the break setup lines  pass over the setup cycles     Set 1 when the break is set for the first time     After stopping at the breakpoint one time  the setting of the number of break times returns to 1     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 10    5  The number of transit times is set   The breakpoint is displayed in blue characters     420 IHOUR   IHOUR   1  450 ELSE   440 IMIN   IMIN   1  450 ENDIF   460 ISEC   0    l  F060303 EPS    AN CAUTION    There may be some cases where the program is not stopped at the breakpoint when a  breakpoint is set to the added lines while editing the program  In this case  reset a  breakpoint after executing once     TIP    Only one breakpoint can be set in one subprogram  If a multiple number of breakp
76. r  termination  the BASIC CPU Module and ML bus CPU Module cannot be debugged     2  Offline display     Offline    appears in the status bar     Ay CAUTION    If the BASIC CPU Module is not in the residence mode at the time of debug termination   the program will be erased  In the case of saving a program in the BASIC CPU module   specify program residence  Refer to Section 6 4     Program Residence    for the residence  function     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 2    6 2 1    Program Forwarding    This section describes the process of forwarding program information to the BASIC  program area     e Initialization of program area  e Downloading of BASIC program  e Uploading of BASIC program    Initialization of Program Area    Erase and initialize the contents of the program area  With the initialization function of  the program area  the common area will not be initialized  To initialize the common area   use the INIT COM statement  For the INIT COM statement  refer to the Instruction  Manual for BASIC CPU Modules and YM BASIC FA Programming Language  IM  34M06Q22 01E     1  Initializing the program area   Click  Debug     Initialize the program area  from the menu   2  Confirmation   Confirm the initialization    Yes   Program area is initialized     No   No program area is initialized   3  The program area is initialized    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 2 2    6 5    Downloading of BASIC Program    The download function downloads the
77. r text from the keyboard   Enter the line number  insert one or more spaces  and then enter the description     If the automatic line number assignment function is set  it is not necessary to enter a line  number     1  Place the cursor to the right of the line number         10   Let s Gol  20         F050201 EPS    2  Enter    OPTION BASE 1    from the keyboard        10   Let s Gol  20 OPTION BASE 1     F050202 EPS    3  Press the  Enter  key        10   Let s Gol  20 person BASE 1  30    F050203 EPS    If the automatic line number assignment function is set  a new line is added     TIP    If the automatic line number assignment function is not set  enter the line number  Separate the line  umber from program data with one or more spaces     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    9 3    E Line Feed    Feed a line using the  Enter  key in the editor   When feeding a line  the entered line is checked for syntax error     E Line Number Management    If the  Enter  key is pressed at the end of a line  a new line is inserted  In this case  if the  automatic line number assignment function is set  a line number is generated on the  new line  The generated line number is described     Example 1 If the line number has sufficient margins or the last line           10 PRINT    A      10 PRINT    A     50 END   gt   20   50 END                      F050204 EPS    A new line number is generated by adding the designated increment to the preceding  line number     Example 2 If 
78. roduct     In order to prevent electrical shock  turn off all the power sources before connecting  wires  etc     This product is classified as Class A for use in industrial environments  If used in a  residential environment  it may cause electromagnetic interference  EMI   In such  situations  it is the user s responsibility to adopt the necessary measures against  EMI     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    E Exemption from Responsibility    Yokogawa Electric Corporation  hereinafter simply referred to as Yokogawa Electric   makes no warranties regarding the product except those stated in the WARRANTY  that is provided separately     Yokogawa Electric assumes no liability to any party for any loss or damage  direct or  indirect  caused by the use or any unpredictable defect of the product     E Software Supplied by the Company    Yokogawa Electric makes no other warranties expressed or implied except as  provided in its warranty clause for software supplied by the company     Use the software with one computer only     You must purchase another copy of the software for use with each additional  computer     Copying the software for any purposes other than backup is strictly prohibited   Store the original media that contain the software in a safe place   Reverse engineering  such as decompiling of the software  is strictly prohibited     Under absolutely no circumstances may the software supplied by Yokogawa Electric  be transferred  exchanged  or sublet or lea
79. rogram development environment for  the FA M3 BASIC CPU module under a Windows environment     It incorporates the following functions     O Editing Functions  e Program configuration and display function    Subprogram addition  Subprogram deletion  e BASIC program editing function  Cut  copy  and pasting functions  Search  jump  and substitute functions  Line number assignment and setting functions  Line number re assignment function  e Line number management function  e Error list display function  O Debug Functions  e Debug run stop  e Downloading and uploading  e Trace functions  Branch tracing  Variable tracing  e Break point setting  step run  e Program residence setting  e Run setting when debugging is completed  e Free area displaying  O Maintenance Functions  e CPU reset start  e ROM management function  Writing to common area  Writing to program area  ROM erasing  e Baud setting  e Program run monitor  e Configuration  CPU configuration  Shared device setting  e Error log  e   O configuration display  e Date setting    IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 3    2 1 1 Screen Configuration    The main frame and each window of BASIC Programming Tool M3 for Windows are  described     E Main Frame    Gamen sa   BASICM3 Pin  E  File F  Edit E  View  Debug D  Operation Setup T   Diagnostics U   Help H   1     oee ee se  A 2315  Malta s    i       Gamern sa 350   DATETIME  300 VE                All a   WHILE 1  A de 380 IF ISEC   60 THEN  390 IF IMIN   59 THEN  
80. sed  in part or as a whole  for use by any  third party without prior permission by Yokogawa Electric     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    E General Requirements for Using the FA M3 Controller    O Set the product in a location that fulfills the following requirements       Where the product will not be exposed to direct sunlight  and where the operating  surrounding air temperature is from 0  C to 55  C  32  F to 131  F      There are modules that must be used in an environment where the operating  surrounding air temperature is in a range smaller than 0  C to 55  C  32  F to 131  F    Refer to hardware user s manual or the applicable user s manual  In case of  attaching such a module  the entire system s operating surrounding air temperature  is limited to the module s individual operating surrounding air temperature       Where the relative humidity is from 10 to 90      In places where there is a chance of condensation  use a space heater or the like to  constantly keep the product warm and prevent condensation       For use in Pollution Degree 2 Environment     Where there are no corrosive or flammable gases           Where the product will not be exposed to mechanical vibration or shock that exceed  specifications       Where there is no chance the product may be exposed to radioactivity     O Use the correct types of wire for external wiring       USE COPPER CONDUCTORS ONLY     Use conductors with temperature ratings greater than 75  C     O Securely tig
81. ss after connection  Download  Cancel    OK to disconnect from CPU module  Yes At termination of debugging Debugging  No    OK to initialize program area  At initialization of program area   Debugging  No     XXXXXXX already exists  Yes When another program exists Debugging   OK to abort xxxxxxx program  No during downloading   OK to make xxxxxxx resident  At setting of program residence   Debugging  No   OK to release resident xxxxxxx  At release of program residence   Debugging  No   After debugging  OK to run program Yes At completion of debugging or at   Debugging   automatically  No selection of run set   After debugging  OK to abort program  Yes At completion of debugging or at   Debugging  No selection of stop set       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 15       E Setting Error    A setting error is displayed if operation from BASIC Programming Tool M3 for Windows  results in an error and cannot be executed     Message Box Options Time of Confirmation Display Type of  Available Function    Communication error OK When an error occurs in Diagnosis  communication with the CPU    Program does not exist  OK When running is started or Diagnosis  stopped without a program in the  CPU    Program is already running  OK Diagnosis  is running   Program is already stopping  OK Diagnosis  program is stopping   Illegal area size  invalid setpoint value OK Diagnosis  range in configuration   Cannot register  OK Diagnosis  while BASIC is running   System cannot be rese
82. t  OK Diagnosis  for CPU that is not the main CPU  Invalid CPU OK Diagnosis  in CPU being connected   Not in ROM writer mode  Data cannot be OK Diagnosis  written or deleted  mode   Not permitted because BASIC is running  OK Diagnosis  while BASIC is running   OK to restart system  Yes Operation  setting  OK to restart CPU  Operation  setting  OK to write common area to ROM  ROM  OK to write program area to ROM  ROM  OK to delete ROM contents  ROM  ROM  OK to set ROM writer mode ROM  OK to reset ROM writer mode  ROM  OK to operate xxxxxx  Yes Diagnosis  No operating status display dialog  OK to stop xxxxxx  Yes Diagnosis  No operating status display dialog  OK to update contents  Yes Diagnosis  No diagnostic  set  function  OK to clear error log  Diagnosis  No       IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    2 16    2 1 6 Setups    This subsection describes the changes of the display setup on the screens of BASIC  Programming Tool M3 for Windows     O Setup of Toolbar Display Items  Display or no display can be set for each item for the three types of toolbars     1  Click  View     Toolbar  from the menu bar   2  Check the tool to be displayed   3  Click the  OK  button        Toolbar     e Standard       W Search    W Debug    F020117 EPS  4  Checked toolbar is displayed     O Selection of Status Bar Display  1  Click  View     Status bar  from the menu bar     2  When the status bar is displayed  a check mark appears to the left of the item name     Mew  Debug L   Err
83. that program     1  Uploading  Click  Debug     Upload  from the menu bar     The program that resides in the CPU is uploaded  The upload status is displayed in  the    Status Bar        2  Display  The uploaded program is displayed     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    6 3    6 3 1    6 7    Debug Functions    This section describes the online debug function of the BASIC application program  A  detailed explanation of the function and operations from the menu bar is given     O Debugging  Describes the change functions of CPU running operations like running  disconnecting   step running  etc     0 Breakpoint setup function  Describes the breakpoint setup function     O Trace Function  Describes the branch tracing and variable tracing setup functions     Debugging    To start debugging  stop debugging and run programs continuously  follow the  instructions given below     O Start Debugging  Click  Debug     Run  from the menu bar     Debugging is started      amp  Stop Debugging  Click  Debug     Pause  from the menu bar   The program under execution is temporarily stopped   The character string that is stopped changes to green        Continue Debugging  Click  Debug     Continue  from the menu bar     The stopped program will restart     Ay CAUTION    e An explanation of the tool button will not be displayed during debugging     e If the program is edited after setting the breakpoint setup function and tracing  function  that program will not operate correctly 
84. the line number has sufficient margins but the margin is equal to or  less than the    increment              10 PRINT    A      10 PRINT    A     20 END  gt  11   20 END                      F050205 EPS    A new line number is generated by adding 1 to the preceding line number   Example 3 If the line number has no margin        10 PRINT    A       11 END             F050206 EPS    An error message Is displayed     E Blank Line    Don t make a blank line between program lines   If there is a blank line between program lines  an error occurs     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    5 4    m Error Check  A line for which an error occurs due to a syntax error or the like is displayed in the    error  list    in the    debug window    and the character string on that line is displayed in red     If the contents of the    error list    is double clicked  a jump is made to the relevant error  position      amp  Debug Window Error Display    If an error is detected  the error code and message are displayed in the    error list    of the     debug window        O Edit Window Error Display  The character string in the error line is displayed in red     190 IHOUPHAX 24  1 Hour    200 IMTHMAX 12  1 Mth   210 FOR I 1 TO 128   220 ICLR I  0     230 NET I    250 IYEAR DATA 1      Year   260 IMTH DATA     IMth   270 IDATE DATA 3    Date     60 I HOTR       Hour    290 IMIN DATA S      Min    300 ISEC DATA E     Sec vi  F    F050207 EPS       Line 280 is displayed in red     IM 34
85. the shared devices and operation specifications  refer to the Instruction  Manual for BASIC CPU Modules and YM BASIC FA Programming Language  IM 34M06Q22 01E      IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 13       7 6 Error Log  The log data for each type of error that occurs during operation are displayed in the  BASIC CPU Module   O Log Display    Display the Log information     O Log Clear    Clear all the Log contents     O Save in the File    Save the displayed Log contents in a file     TIP    e Power on off  etc  of the FA M3  changes in system status  abnormalities  error information  etc  are  displayed with latest data first     eA maximum of around 100 to 150 pieces of information can be stored  but this number will differ  depending upon the type of information     e  f the storage capacity becomes full  the information will be erased in order starting with the oldest  items  and new information will be stored     IM 34M06Q22 02E 2nd Edition  Sep  7  2012 00    7 14    7 6 1 Log Display  Log will be displayed in  Error log  page of    Debug Window      1     Debug Window    is switched to    Error Log Display      Click the  Error log  tab of the    Debug Window        Switched over to    Error Log Display    window     2  Display error log   From the menu bar  click  Diagnostics  and then click  Error log  and  Display   This is uploaded and displayed in    Debug Window           1992080 14 2553 Power down   1999 0580 142537 E32 41 L 00081 Incorrect Slot 
86. truction Manual for BASIC CPU Modules and YM BASIC FA  Programming Language  IM 34M06Q22 01E      E Configuration of This Manual    This configuration of this manual is as follows     Chapter 1 Introduction of Software  Describes the operating environment and setup of BASIC Programming Tool M3 for  Windows   Chapter 2 Software Overview  Describes the configuration of BASIC Programming Tool M3 for Windows and  summarizes BASIC development using BASIC Programming Tool M3 for Windows   Chapter 3 Startup and Termination of the Tool    Describes startup and termination of BASIC Programming Tool M3 for Windows     Chapter 4 File Management Function    Describes the program file management operation     Chapter 5 Editing Function  Describes the BASIC program editing function     Chapter 6 Debugging Function  Describes the online debugging function by connecting the BASIC CPU module     Chapter 7 Maintenance Function    Describes the operation management and setting functions for the BASIC CPU module     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    Appendix    Appendix 1 Lists error codes and meaning   Appendix 2 Lists and explains reserved words     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    XI    E How to Read This Manual    Use BASIC Programming Tool M3 for Windows after thoroughly reading Chapters 1 and  2 of this manual  These two chapters include a basic general description of the setup  methods and BASIC application development     If you find any unclear sections whil
87. uld any errors or omissions come to the attention of the user  please  contact the nearest Yokogawa Electric representative or sales office     m Symbols Related to Safety       A    Danger  This symbol on the product indicates that the operator must follow the  instructions laid out in this user s manual to avoid the risk of personnel injuries   fatalities  or damage to the instrument  Where indicated by this symbol  the manual  describes what special care the operator must exercise to prevent electrical shock  or other dangers that may result in injury or the loss of life     Y    Protective Ground Terminal  Before using the instrument  be sure to ground this  terminal     dr    Function Ground Terminal  Before using the instrument  be sure to ground this  terminal     VDS    Alternating current  Indicates alternating current     Direct current  Indicates direct current     IM 34M06Q22 02E 2nd Edition   Sep  7 2012 00    The following symbols are used only in the user s manual        WARNING    Indicates a  Warning    Draws attention to information essential to prevent hardware damage  software  damage or system failure     AN CAUTION    TIP    Indicates a    Caution     Draws attention to information essential to the understanding of operation and  functions     Indicates a    TIP     Gives information that complements the present topic     SEE ALSO    Indicates a    SEE ALSO    reference   Identifies a source to which to refer     m Safety Precautions when Using Maintaini
88. und  Unable to assign new subblock  lllegal replacement of SUB statement  Syntax error  Unable to assign stack area  Invalid array variable in a statement  GO  GOTO  GOSUB not described in ON statement   Invalid timer number  RESERVED  Variable name other than that described as operand was used   ncorrect line number or comma described as operand  nvalid significant character string  nvalid program name  FROM or INTO operand in TRANSFER statement   TO operand missing  FOR statement  etc    RESERVED  RESERVED  Invalid operand description  Computational expression error  RESERVED  RESERVED  Invalid data list  Invalid  Tn or  Un description  Invalid binary constant  RESERVED  Invalid line number or label  Too many variable names or labels  Invalid variable type declaration  Nesting of IF statement exceeds 16 levels   THEN without processing statement  ELSE without corresponding IF  ENDIF without corresponding IF  Statement not terminated in correct format  Left part or         does not appear in computational expression  Invalid DEF statement  Permissible numeric size exceeded  Invalid hexadecimal constant  Invalid FIND command operand  Undefined statement type  Command headed by a line number  Not executed with immediately executable statement  Six or more LF codes found between significant characters other than blank characters  Invalid statement number  Coded statement area  514 bytes  not assigned  Statement not allowed in multiple statement line  Data type error  Invalid su
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Lytro ILLUM Manual de Utilizador  INTERTEC 276 MOTOPODA ELETRICO  DSPKR User Manual  manual del usuario  MAP MnM Manual  StarTech.com USB Dual VGA over Cat5 KVM Console Extender - 650 ft / 200m  ControlLogix EtherNet/IP Module Installation Instructions  Carretel Krebs - Manual do Proprietário  Documentation sur le RehaGait  Euro-Pro EP700 User's Manual    Copyright © All rights reserved. 
   Failed to retrieve file