Mitsubishi Electronics C64 manuel d'utilisation
- Voir en ligne ou télécharger le manuel d’utilisation
- 478 pages
- 5.4 mb
Aller à la page of
Les manuels d’utilisation similaires
-
Air Conditioner
Mitsubishi Electronics PUZ-A36NHA2
12 pages 1.84 mb -
Projection Television
Mitsubishi Electronics VS-45502
112 pages 4.01 mb -
Air Conditioner
Mitsubishi Electronics MCFZ-A12WV
13 pages 0.77 mb -
Projection Television
Mitsubishi Electronics WD-73831
2 pages 0.55 mb -
Home Theater Server
Mitsubishi Electronics FX3S-30MT/ES-2AD
216 pages 5.28 mb -
Flat Panel Television
Mitsubishi Electronics WD-62528
74 pages 4.11 mb -
Projection Television
Mitsubishi Electronics WD-73C8
45 pages 3.33 mb -
Flat Panel Television
Mitsubishi Electronics LT-52249
96 pages 19.78 mb
Un bon manuel d’utilisation
Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation Mitsubishi Electronics C64. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel Mitsubishi Electronics C64 ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.
Qu'est ce que le manuel d’utilisation?
Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation Mitsubishi Electronics C64 décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.
Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.
Donc, ce qui devrait contenir le manuel parfait?
Tout d'abord, le manuel d’utilisation Mitsubishi Electronics C64 devrait contenir:
- informations sur les caractéristiques techniques du dispositif Mitsubishi Electronics C64
- nom du fabricant et année de fabrication Mitsubishi Electronics C64
- instructions d'utilisation, de réglage et d’entretien de l'équipement Mitsubishi Electronics C64
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes
Pourquoi nous ne lisons pas les manuels d’utilisation?
Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage Mitsubishi Electronics C64 ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles Mitsubishi Electronics C64 et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service Mitsubishi Electronics en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées Mitsubishi Electronics C64, comme c’est le cas pour la version papier.
Pourquoi lire le manuel d’utilisation?
Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif Mitsubishi Electronics C64, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.
Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation Mitsubishi Electronics C64. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.
Table des matières du manuel d’utilisation
-
Page 1
CNC C6/C64 PLC PROGRAMMING MANUAL (Ladder Section with MELSEC Tool) BNP-B2309D(ENG)[...]
-
Page 2
MELSEC and MELDAS are the registered trademar ks of Mitsubishi Electric Corporation. Microsoft, Windows and Microsoft Windows NT are the r egistered trademarks of Microsoft Corporation in the United States and/or other countries. Other company and product names herein may be t he trademarks or registered trademarks of their respective owners.[...]
-
Page 3
i Introduction These specifications are the programmi ng manual used when creating the sequence program with the PLC development software, or Mitsubishi Electric Co.’s integrated FA software MELSOFT series (GX Developer). The PLC (Programmable Logic Controller) is largely divided into the basic commands, function commands and exclusive commands, [...]
-
Page 4
ii Precautions for Safety Always read the specifications issued by the machine manufacturer, this manual, related manuals and attached documents before inst allation, operation, programming, maintenance or inspection to ensure correct use. Understand this numerical controller, safety items and cautions before using the unit. This manual ranks the s[...]
-
Page 5
iii CAUTION 3. Items related to program development Always observe the cautions before development to develop a program. If the data transferred does not follow the file name rule, the CNC will mistake it for another data, resulting in unexpected operation, e.g. PLC program erasure. Do not read a sequence program on which a conversion error occurre[...]
-
Page 6
iv Contents 1. PLC Development Environment Using GX Developer .......................................................... 1 1.1 Function ............................................................................................................................... 1 1.1.1 Development Environment Configuration ........................................[...]
-
Page 7
v 3.3 High-Speed Input/output Designation Method .................................................................. 57 4. Parameters ............................................................................................................................... 58 4.1 PLC Constants ....................................................................[...]
-
Page 8
vi 10.1.12 Examples of Tool Registration Screen ............................................................... 351 10.1.13 Display of Spindle Tool and Standby Tool.......................................................... 353 10.2 S.ROT Commands .......................................................................................................[...]
-
Page 9
vii 12.3.3.3 Alarm No. .................................................................................................. 414 12.3.3.4 Control Signals (PLC axis control information data) ................................415 12.3.3.5 Axis Designation ....................................................................................... 417 12.3.3.6 [...]
-
Page 10
1. PLC Development Environment Using GX Developer 1.1 Function - 1 - 1. PLC Development Envir onment Using GX Developer In the C64 Series, the user PLC development enviro n ment is supported using MELSEC PLC development tool, which is Mitsubishi int egrat ed FA software MELSOFT series (GX Develop er). This manual explains system co nfigurations use[...]
-
Page 11
1. PLC Development Environment Using GX Developer 1.1 Function - 2 - (1) GX Developer (PLC development soft ware package for Windows) GX Developer is a programming software p acka ge (model name: SW7D5C-GPPW) de sig ned for Mitsubishi Electric's MELSEC se ries pr ogrammable logic controllers. The conv entional function correspondin g to MELDAS[...]
-
Page 12
1. PLC Development Environment Using GX Developer 1.1 Function - 3 - 1.1.3 GX Developer Functions Supported by C64 Series The GX Developer functions explained h ere are th ose supported by the C64 Series in the "off-line functions" operated with the GX Developer independ ently and "on-line functions" carried out connected to the[...]
-
Page 13
1. PLC Development Environment Using GX Developer 1.1 Function - 4 - List of general section functions (2) : Possible, : Limitedly possible, U : Not possible Function Menu Sub menu Support Remarks (Project) Macro Registration macros Macro utilize Delete macros Macro reference path Printer setup Print Start new GX Developer session Exit GX Developer[...]
-
Page 14
1. PLC Development Environment Using GX Developer 1.1 Function - 5 - List of general section functions (3) : Possible, : Limitedly possible, U : Not possible Function Menu Sub menu Support Remarks Find/Replace Find device Find instruction Find step no. Find character string Find contact or coil Replace device Replace instruction Change open/close c[...]
-
Page 15
1. PLC Development Environment Using GX Developer 1.1 Function - 6 - List of general section functions (4) : Possible, : Limitedly possible, U : Not possible Function Menu Sub menu Support Remarks Tools Check program Merge data Check parameter Transfer ROM Read U Write U Verify U Write to file U Delete unused comments Clear all parameters IC memory[...]
-
Page 16
1. PLC Development Environment Using GX Developer 1.1 Function - 7 - 1.1.3.2 Function Support Conditions (on-line section) The following shows a list of GX Develo per o n-line functions supported by the C64 Series. A mark indicates functions that can cu rrently be u sed by the C64 Series. An r mark indicates that the function cannot be used becau s[...]
-
Page 17
1. PLC Development Environment Using GX Developer 1.1 Function - 8 - List of on-line section functions (2) : Possible, : Limitedly possible, U : Not possible Menu Sub menu Detailed function Support Remarks Monitor Monitor mode ON/OFF state Scan time PLC status Monitor [Write mode] Start monitor [All windo ws] Stop monitor [All windo ws] Start monit[...]
-
Page 18
1. PLC Development Environment Using GX Developer 1.1 Function - 9 - List of on-line section functions (3) : Possible, : Limitedly possible, U : Not possible Menu Sub menu Detailed function Support Remarks Debug Device test FORCE ON FOR CE OFF Toggle force Device Buffer memory U Debug U Skip execution U Partial execution U Step execution U Trace U [...]
-
Page 19
1. PLC Development Environment Using GX Developer 1.2 Setup - 10 - 1.2 Setup 1.2.1 Installing the Tools In the C64 Series PLC development env ironment, it is assumed that the various t ools are used on an IBM PC/AT compatible machine. Prepare each too l so that it is IBM PC/AT compatible machine. Refer to the enclosed Oper ating Man ual for the set[...]
-
Page 20
1. PLC Development Environment Using GX Developer 1.2 Setup - 11 - (2) RS-422 connection MELSEC-dedicated cable can be used to conn ect with C64 controlle r. Refer to the GX Developer Operating M anual fo r details. (3) Ethernet connection For the connection using Ethernet, the Ethernet card (FCU6 -EX87 5) mu st be m ounted to the extension slot on[...]
-
Page 21
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 12 - (5) Statements and note s GX Developer allows a PLC program to be co mm ented (with inte rlinear statements and notes). They are available in two types: integrated and periphe ral. Integrated type : Can be do wnloaded together with a ladder program to th e CNC cont[...]
-
Page 22
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 13 - List of PLC-related data Related data classificatio n File name (GX Developer) Remarks 1 2 PLC program (ladder) PLC program comment zzzzzz.WPG zzzzzz.WCD PLC ladder code Comment data for GX Dev elope r 3 Message 1st language M1xxxx.WPG Message 1st language data suc[...]
-
Page 23
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 14 - 1.3.3 Specifying the Connection Target You must specify the connection target before perfo rming on-line ope rations from GX Developer to the CNC. (1) Operation procedure Perform the following operation from G X Develop er to start the setting screen. [Online] → [...]
-
Page 24
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 15 - • Setting the GX Developer Connection De stination These parameters are used to set the GX Develop er connection method. These parameters are included in the GX Deve loper project data.[...]
-
Page 25
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 16 - 1.3.4 Starting/Stopping the PLC of the CNC Before writing a ladder program, y ou must stop the PLC of the CNC. (1) Operation procedure Perform the following operation from G X Develop er to start the operation screen. [Online] → [Remote oper ation] or Alt + 6 On [...]
-
Page 26
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 17 - 1.3.5 Writing the PLC Program to the CNC The following indicates how to write la dders fr om GX Developer to the CNC (especi ally the restrictions and C64 se ries-specific operation s). (1) Operation procedure Perform the following operation from G X Develop er to [...]
-
Page 27
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 18 - (2) Operation to be performed at write error As soon as a ladder is written from GX Develope r to the CNC, the CNC conv e rts it into the CNC- specific ladder machine co de. A conversion erro r occurs if any of the devices and command f ormats not supp orted by the[...]
-
Page 28
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 19 - (3) How to confirm the error step num ber At a conversion error, error information i s st ored to the special registers a s below. Device- monitoring these registers enables to find the error position. SD30 : Error step No. where the error o ccurred. SD31 : Cause o[...]
-
Page 29
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 20 - 1.3.6 Reading the PLC Program from the CNC The following indicates how to rea d a la dder from the CNC to GX Developer. (1) Operation procedure Perform the following operation from G X Develop er to start the operation screen. [Online] → [Read from PLC] On the fo[...]
-
Page 30
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 21 - 1.3.7 Verifying the PLC Programs The following indicates how to verify ladders betwee n the CNC and GX Developer. (1) Operation procedure Perform the following operation from G X Develop er to start the operation screen. [Online] → [Verify with PLC] On the follow[...]
-
Page 31
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 22 - 1.3.8 Monitoring the PLC Program There are no MELDAS-specific oper atio ns to monito r a PLC program. Refer to the GX Developer operating manual for the operation methods. Fo r usab le functions, refer to "1.1.3.2 Function Support Conditions (on-line section )[...]
-
Page 32
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 23 - 1.3.9 Diverting the PLC program that was developed using PLC4B (Note) PLC4 B and LIST4 B can not be used with C64. This section describes the method to use the ladder data on the C64 se rie s system, however, the ladder dat a here must be created with PLC4B of the [...]
-
Page 33
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 24 - (2) Starting GX Converte r and specifying the file to be conv erted Perform the following operation from G X De veloper to start GX Converter (read). [Project] → [Import file] → [Import to TEXT ,CSV format file] On the following screen, specify the file to be c[...]
-
Page 34
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 25 - (b) Data conversion wizard 2/4 Choose [Delimiters]-[Tab] and cli ck [Next>]. (c) Data conversion wizard 3/4 Choose to highlight the [Instr] column part in the [Data Preview] list and choose [Column Data Format]-[Instruction].[...]
-
Page 35
1. PLC Development Environment Using GX Developer 1.3 Developing PLC Programs - 26 - (d) Data conversion wizard 3/4 Further, choose to highligh t the Argume nt colu mn part in the [Data Preview] list and choose [Column Data Format]-[I/O (Device)]. Click [Next>]. (e) Data conversion wizard 4/4 Set the program name used on GX Develope r at [Dat a [...]
-
Page 36
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 27 - 1.4 Creating PLC Message Data This chapter explains a procedu re for developing PLC-related dat a su ch as alarm messages, operator messages, and PLC switche s. 1.4.1 Development Procedure There are the following two methods as a gene ral development procedure of[...]
-
Page 37
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 28 - (1) Using a general text editor (a) Creation The message data is described using a gene ral text editor. The description method and forma t will be described later. (b) Conversion The conversion from text data to GX Develope r data is ca rri ed out using the &quo[...]
-
Page 38
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 29 - 1.4.2 Message Data Description Method The message data can be described as text data by a general text editor and al so by commercially available spreadsheet softwa re in ad dition to the dire ct input with GX Developer. (1) Description Format Message data is cla[...]
-
Page 39
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 30 - (2) Description Metho d The message data is described as text data by the following descrip tion format. ... Sett ing area ... Mess age area (alar m m ess ages) ... P age brea k cod e ... En d co d e ... Mes sage area (PLC sw itches) ... Mess age area (co mments)[...]
-
Page 40
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 31 - (e) End code An end code is described at the end of the description. Description after the end code are ignored. An error will occur if there is no end code. (3) Details of comment message The messages used for Tool registratio n screen and for load meter are def[...]
-
Page 41
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 32 - (c) Load meter display 34 charact ers Bar graph start position is fixed to the 11th character of the left side Indicates R942 value (BIN 0 to 32767) Indicates R944 value (BIN 0 to 32767) Specify display length (No. of characters) with R943 40 charact ers 1 5 10 1[...]
-
Page 42
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 33 - (4) Precautions No. of characters, quantity limitations, handli ng of information other than settings, handli ng of information other than format. (a) Message data maxim um v alue Processing will be carried out with the following va lues considered as the maximum[...]
-
Page 43
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 34 - 1.4.3 Converting Data into GX Developer Format Convert the message data, which was described usi ng a text editor or like, into GX Develop er data in the following method. Use "GX Converter (dat a conversion software packag e)" for conversion. GX Conver[...]
-
Page 44
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 35 - (b) Data conversion wizard 2/4 Just click [Next>]. (c) Data conversion wizard 3/4 Choose to highlight the Command column part in the [Data Preview] list and choose [Colum n Data Format]-[Instruction ,Statement ,Note]. Click [Next>]. (d) Data conversion wiza[...]
-
Page 45
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 36 - 1.4.4 Entering/Editing Data Using GX Developer The message data in GX Developer are handled a s t he "integrated type interline ar statem ents" of a PLC program. "Integrated type interlinea r stateme n ts" are interlinear comments pr ovided to[...]
-
Page 46
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 37 - (2) Interlinear Statement Display Using List Displ ay (a) Display of project da ta list Perform the following operation to displ ay the Pr oject data list wind ow and double-click the file name to display the edit screen. First, the normal ladd er screen a ppears[...]
-
Page 47
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 38 - (3) Editing of integrated type interlinear statements (a) Circuit display On the circuit display screen that shows the integrated type interline ar statements, double- clicking the interlinear statement you want to edit displays the follo wing dialog. Perform edi[...]
-
Page 48
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 39 - 1.4.5 Writing to the CNC The following shows the method of transferrin g a message from the GX Developer to the CNC. The transfer method is the same as the ladde r code transfer method. Ladder codes an d me ssage data are distinguished by their file name s only. [...]
-
Page 49
1. PLC Development Environment Using GX Developer 1.4 Creating PLC-related Data - 40 - (2) Message Read Form at The message description format was sh own in "1.4 .2 (1) Description form at", but there are no special rules con ce rni ng provision of descriptions in the setting area or the ord er of message description in the message area. [...]
-
Page 50
1. PLC Development Environment Using GX Developer 1.5 Creating Devi ce Comments - 41 - 1.5 Creating Device Comments There are no MELDAS-specific oper atio ns for d evice comments. Therefore, refer to the GX Developer operating manu al for the development method. This section describe s the device comment development pro cedure outline and the devel[...]
-
Page 51
1. PLC Development Environment Using GX Developer 1.5 Creating Devi ce Comments - 42 - 1.5.2 Description Method for Indirect Entry The following explains the description method fo r cre ating device comment s using a spread sheet tool or like. The following example describes device comment s using a spread sheet tool. Descri b e d ev ice, equipmen [...]
-
Page 52
1. PLC Development Environment Using GX Developer 1.5 Creating Devi ce Comments - 43 - 1.5.3 Converting Comment Data into GX Developer Data Convert the comment data (CSV format), which was created using a spread sheet tool or like, into GX Developer data in the following method. Use "GX Conve rter (data conversion softwa re package)" for [...]
-
Page 53
1. PLC Development Environment Using GX Developer 1.5 Creating Devi ce Comments - 44 - (b) Data conversion wizard 2/4 Choose [Delimiters]-[Tab] and cli ck [Next>]. (c) Data conversion w izard 3/4 Make sure that the column parts in the [ Data Preview] list are in order of [Device Number], [Label] and [Comment], and click [Next>]. (d) Data conv[...]
-
Page 54
1. PLC Development Environment Using GX Developer 1.5 Creating Devi ce Comments - 45 - (e) Completion The setting is complete when the following dialog app ears. Cli ck [OK]. (f) Error status If an error occurred during conver sion, its status and the line wh ere it occurred are displayed . 1.5.4 Writing Comment Data to the CNC The following shows [...]
-
Page 55
1. PLC Development Environment Using GX Developer 1.6 PLC4B PLC Development Env ironment (M500) and Differences - 46 - 1.6 PLC4B PLC Development Environment (M500) and Differences This section explains difference s bet ween the PLC4B development environme nt and C64 series PLC development environment. 1.6.1 Development Tools, etc. In the C64 series[...]
-
Page 56
1. PLC Development Environment Using GX Developer 1.6 PLC4B PLC Development Env ironment (M500) and Differences - 47 - 1.6.2 PLC Commands Some commands have be en ch anged because the user PLC deve lopme nt environment using the MELSEC PLC development tool has been su ppo rted in C64 series. The command range that can be used in the MEL SEC-QnA Ser[...]
-
Page 57
1. PLC Development Environment Using GX Developer 1.6 PLC4B PLC Development Env ironment (M500) and Differences - 48 - (2) Commands with the Format that Differ s from that of the GX Dev eloper The device types and assignme nts have been recon side re d because the user PLC devel opment environment using the MELSEC PLC developm ent tool ha s been su[...]
-
Page 58
1. PLC Development Environment Using GX Developer 1.7 Error Status - 49 - 1.7 Error Status If an error has occurred in GX Develo per, the fo llowing dialog appears. The error messag e and error status are displayed in the dialog. (2) Error st atus (1) Err or m essage (Note) Wh en an error occurred at GX Developer On -l ine function, the error messa[...]
-
Page 59
1. PLC Development Environment Using GX Developer 1.7 Error Status - 50 - Status Message Cause Remed y 4070 The program before correction differs from the registered program. A ladder command outside the specification is included. Perform verification to identify the command that is the cause of the problem. When the "Read from PLC" is ex[...]
-
Page 60
1. PLC Development Environment Using GX Developer 1.8 Initializing PLC Data Storage Area - 51 - 1.8 Initializing for PLC Data Storage Area When an error has occu rred during writing to the CN C, or when th e normal sate is not recovered in spite of error handling, perform initializati on for the PLC data storage area, and retry from the first. ! [...]
-
Page 61
2. PLC Processing Program 2.1 PLC Processing Program Level and Operation - 52 - 2. PLC Processing Program 2.1 PLC Processing Program Level and Operation 2.1.1 High-speed processing program and main processing program Table 2.1-1 explains the content s of users PLC processing level and Fig. 2.1-1 shows the timing chart. Table 2.1-1 PLC processing le[...]
-
Page 62
2. PLC Processing Program 2.1 PLC Processing Program Level and Operation - 53 - 2.1.2 Cautions on high-speed processing programming The cautions on programming a high-speed processi ng program are explained. Pay careful attention to the following items before programming a high-speed processing program. (1) Index resistor There are some function co[...]
-
Page 63
2. PLC Processing Program 2.2 Multi-Programming Function - 54 - 2.2 Multi-Programming Function Multiple PLC programs can be registered in C64 and executed in order. Using this function, PLC program can also be developed by each process. 2.2.1 Program Registration Numbers Max. registration numbers of PLC program are 9. One program can contain progra[...]
-
Page 64
3. Input/Output Signals 3.1 Input/Output Signal Types and Processing - 55 - 3. Input/Output Signals 3.1 Input/Output Signal Types and Processing The input/output signals handled in user PLC are as follows: (1) Input/output from/to controller (2) Input/output from/to operation board (Note 1) (3) Input/output from/to machine The user PLC does not dir[...]
-
Page 65
3. Input/Output Signals 3.1 Input/Output Signal Types and Processing - 56 - Table 3.1-1 lists whether or not high-speed input/ output, interrupt input and initial processing can be performed. Table 3.1-1 Whether or not high-speed input/output, interrupt input and initial can be performed High-speed input specification High-speed output specificatio[...]
-
Page 66
3. Input/Output Signals 3.3 High-Speed Input/output Designation Method - 57 - 3.3 High-Speed Input/ output Designation Method High-speed input/output is designated by setting the corresponding bit of the bit selection parameter as shown below. (1) High-speed input designation 7 6 5 4 3 2 1 0 Bit selection parameter #6457 These bits correspond to th[...]
-
Page 67
4. Parameters 4.1 PLC Constants - 58 - 4. Parameters 4.1 PLC Constants The parameters that can be used in user PLC include PLC constants set in the data type. Set up data is stored in a file register and is backed up. In contrast, if data is stored in the file register corresponding to PLC constant by using sequence progr am MOV instruction, etc., [...]
-
Page 68
4. Parameters 4.2 Bit Selection Parameters - 59 - 4.2 Bit Selection Parameters The parameters that can be used in user PLC incl ude bit selection parameters set in the bit type. Set up data is stored in a file register and is backed up. For use in bit operation in a sequence program, the f ile register contents are transferred to temporary memory ([...]
-
Page 69
4. Parameters 4.2 Bit Selection Parameters - 60 - Bit selection screen[...]
-
Page 70
4. Parameters 4.2 Bit Selection Parameters - 61 - Contents of bit selection parameters #6449~#6496 Symbol name 7 6 5 4 3 2 1 0 0 Bit selection #6449 R4624L Control unit thermal alarm invalid Display unit thermal alarm invalid — Counter C hold Integrating timer T hold PLC counter program valid PLC timer program valid 1 0 1 #6450 R4624H — Alarm/ [...]
-
Page 71
4. Parameters 4.2 Bit Selection Parameters - 62 - Symbol name 7 6 5 4 3 2 1 0 0 #6465 R4632L — — — — — — — — 1 #6466 R4632H — — — — — — — — 2 #6467 R4633L — — — — — — — — 3 #6468 R4633H — — — — — — — — 4 #6469 R4634L — NC alarm output disabled 5 #6470 R4634H 6 #6471 R4635L — — ?[...]
-
Page 72
5. Explanation of Devices 5.1 Devices and Dev i ce Numbers - 63 - 5. Explanation of Devices 5.1 Devices and Device Numbers The devices are address symbols to identify si gnals handled in PLC. The device numbers are serial numbers assigned to the devices. The device numbers of devices X, Y, B, W, and H are represented in hexadecimal notation. The de[...]
-
Page 73
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 64 - 5.3 Detailed Explanation of Devices The devices used with the PLC are described below. 5.3.1 Input/output X, Y Input/output X and Y are a window for executing co mmunication with the PLC and external device or controller. Input X (1) This issued commands or data from an ex ternal [...]
-
Page 74
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 65 - 5.3.2 Internal Relays M and F, Latch Relay L The internal relay and latch relay are auxiliary rela ys in the PLC that cannot directly output to an external source. Internal relay M (a) The relay is cleared when the power is turned OFF. (b) There is no limit to the No. of "A&q[...]
-
Page 75
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 66 - 5.3.4 Link Relay B, Link Register W (1) Link relay B is a bit type device used for t he data link in each link function. An unused part can be used as first memory, etc., howev er, the step No. will be increased. (2) Link register W is a word type device used for the data link in [...]
-
Page 76
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 67 - 5.3.6 Timer T (1) The 100ms timer, 10ms timer and 100ms integrat ed timer are available for this count-up type timer. 100ms Timer T (a) When the input conditions are set, the count starts. When the set value is counted, that timer contact will turn ON. (b) If the input conditions [...]
-
Page 77
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 68 - 100ms Integrated timer T (a) When the input conditions are set, the count star ts. When the set value is counted, that timer contact will turn ON. (b) Even the input conditions are turned OFF, t he 100ms integrated timer current value (count value) will be held, and the contact st[...]
-
Page 78
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 69 - (3) Cautions for when using the same timer at two or more positions. The timer programmed last will be valid even if the timer is set in the subprogram which is not ladder-processed according to the branch as shown in the following circuit. M100 CALL P100 M100 CALL P1 10 FEND NOPL[...]
-
Page 79
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 70 - M100 CALL P100 M100 CALL P1 10 FEND NOPLF P100 P1 10 M1000 T30 D100 T30 Y10 RET NOPLF MOV K50 D100 M1000 T30 D100 T30 Y10 RET NOPLF MOV K100 D100 The circuit above enables that Y10 device will be ON after 5 seconds if M100 is ON and after 10 seconds if M100 is OFF.[...]
-
Page 80
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 71 - 5.3.7 Counter C (1) The counter counts up and detects the rising edge of the input conditions. Thus, the count will not take place when the input conditions are ON. Counter C (a) The value is set with a decimal, and can be designated from 1 to 32767. The data register (D) data can[...]
-
Page 81
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 72 - (3) Cautions for when using the same counter at two or more positions. The counter programmed last will be valid even if the counter is set in the subprogram which is not ladder-processed according to the branch as shown in the following circuit. M100 CALL P100 M100 CALL P1 10 FEN[...]
-
Page 82
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 73 - M100 CALL P100 M100 CALL P1 10 FEND NOPLF P100 P1 10 M1 100 C20 D100 C20 Y10 RET NOPLF MOV K50 D100 M1 100 C20 D100 C20 Y10 RET NOPLF MOV K30 D100 The circuit above enables that Y10 device will be ON after 50 counts if M100 is ON and after 30 counts if M100 is OFF.[...]
-
Page 83
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 74 - 5.3.8 Data Register D (1) The data register is the memory that stores the data in the PLC. (2) The data register has a 1-point 16-bit confi guration, and can be read and written in 16-bit units. To handle 32-bit data, two points must be used. The data register No. designated with [...]
-
Page 84
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 75 - 5.3.9 File Register R (1) As with the data registers, t he file registers are memories used to store data. However, there are some that have fixed applications , and those that are released. (2) The file register has a 1-point 16-bit confi guration, and can be read and written in [...]
-
Page 85
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 76 - 5.3.10 Special Register SD (1) Special register SD is a data register that t he applications are fixed as 1-second counter, etc. Do not use even a part not used currently in SD0 to SD127 for other purpose such as temporary memory. Special register SD (a) The register is cleared wh[...]
-
Page 86
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 77 - 5.3.12 Nesting N (1) This indicates the mast er control nesting structure. (2) The master control nesting (N) is used in order from smallest number. MC N 0 M 1 5 MC N 1 M 1 6 MC N 2 M 1 7 MCR N 2 MCR N1 MCR N0 A B C M1 5 M1 6 M1 7 N0 N1 N2 Ex ecute whe n A cond it io ns are se t. [...]
-
Page 87
5. Explanation of Devices 5.3 Detailed Explanation of Devices - 78 - 33 36 P20 501 723 726 X1 3 X1 7 Label Po i nt er CJ P 2 0 P255 CJ Ju m p to label P20 (step 501) w h en X1 3 tu rn s ON. Ju m p to END wh en X17 tu rn s ON. (4) The special usages of the pointers other than P255 are shown below. P251, P360 to P368: Label for star ting PLC high-spe[...]
-
Page 88
6. Explanation of Commands 6.1 Command List - 79 - 6. Explanation of Commands 6.1 Command List 6.1.1 Basic Commands Class Process unit Command sign Symbol Process details No. of steps Page LD Start of logic operation (A contact operation start) 1/2 104 LDI Start of logic denial operation (B contact operation start) 1/2 104 AND Logical AND (A contac[...]
-
Page 89
6. Explanation of Commands 6.1 Command List - 80 - Class Process unit Command sign Symbol Process details No. of steps Page SET SET D Device set 1/2 126 RST RST D Device reset 1/2 128 MC MC nD Master control start 2 130 MCR MC R n Master control release 1 130 PLS PLS D Generate one cycle worth of pulses at rising edge of input signal 2 132 PLF PLF [...]
-
Page 90
6. Explanation of Commands 6.1 Command List - 81 - 6.1.2 Function Commands (1) Comparison commands Class Process unit Command sign Symbol Process details No. of steps Page LD= = S1 S2 3 146 AND= = S1 S2 3 146 16-bit OR= = S1 S2 Continuity state when (S1) = (S2) Non-continuity state when (S1) =/ (S2) 3 146 LDD= D= S1 S2 3/4 148 ANDD= D= S1 S2 3/4 14[...]
-
Page 91
6. Explanation of Commands 6.1 Command List - 82 - Class Process unit Command sign Symbol Process details No. of steps Page LD< < S1 S2 3 154 AND< < S1 S2 3 154 OR< < S1 S2 Continuity state when (S1) < (S2) Non-continuity state when (S1) >= (S2) 3 154 LD<= <= S1 S2 3 154 AND<= <= S1 S2 3 154 OR<= <= S1 S2 C[...]
-
Page 92
6. Explanation of Commands 6.1 Command List - 83 - (2) Arithmetic operation commands Class Process unit Command sign Symbol Process details No. of steps Page + + SD 3 162 +P +P SD (D) + (S) (D) (BIN) 9 162 + S1 S2 D + 4 162 16-bit +P S1 S2 D +P (S1) + (S2) (D) (BIN) 10 162 D+ D+ SD 3/4 164 D+P D+P SD (D+1,D) + (S+1,S) (D+1,D) (BIN) 9/10 164 D+ S1 S[...]
-
Page 93
6. Explanation of Commands 6.1 Command List - 84 - Class Process unit Command sign Symbol Process details No. of steps Page / S1 S2 D / 5/6 174 16-bit /P S1 S2 D /P (S1) = . . (S2) Quotient (D) Remainder (D+1) (BIN) 11/12 174 D/ S1 S2 D D/ 5/6 176 / (BIN) 32-bit D/P S1 S2 D D/P (S1+1, S1) = . . (S2+1, S2) Quotient (D+1,D) Remainder (D+3, D+2) (BIN)[...]
-
Page 94
6. Explanation of Commands 6.1 Command List - 85 - Class Process unit Command sign Symbol Process details No. of steps Page NEG NEG D 2 194 NEGP NEGP D ・ ( D ) ( D ) BIN data 8 194 DNEG DNEG D 2 196 Comple- ment of 2 16-bit DNEGP DNEGP D ・ ( D + 1 , D ) ( D + 1 , D ) BIN data 8 196 (3) BCD BIN conversion commands Class Process unit Command sign[...]
-
Page 95
6. Explanation of Commands 6.1 Command List - 86 - (4) Data transmission commands Class Process unit Command sign Symbol Process details No. of step Page MOV MOV SD 3 206 16-bit MOVP MOV P SD ⋅ (S) (D) 9 206 DMOV DMO V SD 3/4 208 32-bit DMOVP DMO VP SD ⋅ (S+1,S) (D+1,D) 9/10 208 CML CM L SD 3 210 16-bit CMLP CML P SD ⋅ (S) (D) 9 210 DCML DCML[...]
-
Page 96
6. Explanation of Commands 6.1 Command List - 87 - (5) Program branch commands Class Process unit Command sign Symbol Process details No. of step Page CJ CJ P** Jump to Pn after input conditions are met 2 222 Jump — JMP JM P P** Jump to Pn unconditi onally 2 222 Program end — FEND FEND End process duri ng sequence program 1 224 — CALL CALL P*[...]
-
Page 97
6. Explanation of Commands 6.1 Command List - 88 - (6) Logical operation commands Class Process unit Comman d sign Symbol Process details No. of step Page WAND WAND SD 3 234 WANDP WANDP SD (D) ^ (S) (D) 9 234 WAND W A N D S 1 S 2 D 4 234 16-bit WANDP W A N D P S 1 S 2 D (S1) ^ (S2) (D) 10 234 DAND DAND S D 3/4 236 DANDP DANDP S D (D + 1, D) ^ (S + [...]
-
Page 98
6. Explanation of Commands 6.1 Command List - 89 - Class Process unit Comman d sign Symbol Process details No. of step Page WXOR WX O R S D 3 242 WXORP WX O R P SD ⋅ (D) (S) (D) 9 242 WXOR W XO R S 1 S 2 D 4 242 16-bit WXORP W XO RP S1 S2 D ⋅ (S1) (S2) (D) 10 242 DXOR DX OR SD 3/4 244 DXORP DX ORP S D ⋅ (D+1,D) (S+1,S) (D+1,D) 9/10 244 DXOR D[...]
-
Page 99
6. Explanation of Commands 6.1 Command List - 90 - (7) Rotation commands Class Process unit Command sign Symbol Process details No. of step Page ROR ROR Dn 3 250 RORP RORP Dn SM12 Rotate n bits r i g ht. ( D ) b0 b15 9 250 RCR RCR Dn 3 252 16-bit RCRP RCRP Dn SM12 (D) b0 b15 Rota te n bits r i g ht. 9 252 DROR DROR Dn 3 254 DRORP DRORP Dn b0 b31 SM[...]
-
Page 100
6. Explanation of Commands 6.1 Command List - 91 - Class Process unit Command sign Symbol Process details No. of step Page SFR SFR D n 3 266 16-bit SFRP SFRP Dn b0 bn b15 0 ~ 0 b0 SM12 b15 9 266 DSFR DSFR Dn 4 268 Right shift Device unit DSFRP DSFRP Dn (D) n 0 10 268 SFL SFL D n 3 270 16-bit SFLP SFL P Dn b15 bn b 0 0 ~ 0 b15 SM12 b 0 9 270 DSF[...]
-
Page 101
6. Explanation of Commands 6.1 Command List - 92 - (8) Data processing commands Class Process unit Command sign Symbol Process details No. of step Page SER S E R S 1 S 2 D 5 274 SERP S E R P S 1 S 2 D (S1) (S2) (D) : Match No. (D + 1) :Num b er of ma t c h data pieces n 11 274 DSER DSER S1 S2 D 5 276 Search 16-bit DSERP DSERP S1 S2 D (S2) (S1) 32[...]
-
Page 102
6. Explanation of Commands 6.1 Command List - 93 - (9) Other function commands Class Process unit Command sign Symbol Process details No. of step Page Carry flag set — S.STC S.STC Carry flag contact (SM12) is turned on. 1 292 Carry flag reset — S.CLC S.CLC Carry flag contact (SM12) is turned off. 1 292 LDBIT BIT S1 n Bit test (A contact operati[...]
-
Page 103
6. Explanation of Commands 6.1 Command List - 94 - 6.1.3 Exclusive Commands 1 Class Process unit Command sign Symbol Process details No. of step Page FROM n1 n2 Dn n3 FROM Reads the data of the buffer memory of MELSEC intelligent function unit out to the C6/C64 PLC. 5 304 Intelligent function 16-bi t TO n1 n2 Dn n3 TO Writes the data of C6/C64 PLC [...]
-
Page 104
6. Explanation of Commands 6.1 Command List - 95 - 6.1.4 Exclusive Commands 2 Class Process unit Command sign Symbol Process details No. of step Page K1: Tool number search 342 K2: Tool number AND search 343 K3: Tool change 344 K4: Random position tool change 345 K5: Forward rotation of pointer 346 K6: Reverse rotation of pointer 346 K7: Normal rot[...]
-
Page 105
6. Explanation of Commands 6.2 Command Formats - 96 - 6.2 Command Formats 6.2.1 How to Read the Command Table The basic command and function command explanations are as follow. Example of D+ comm and ○ D+,D+P …… BIN 32-bit ad di tion Usable device Bit device Word device Con-s tant Poin- ter X Y M L F B SB T SM V T C D R W SW Z SD [...]
-
Page 106
6. Explanation of Commands 6.2 Command Formats - 97 - 6.2.2 No. of Steps The basic No. of steps in the sequence command includes step 1 to step 6. Main examples of each step are shown below. Basic No. of steps Command (mnemonic) Circuit display Step 1 LD, ANI, ANB, ORB, STC, CLC, FEND, RET, P** FEND Step 2 INC, DEC, PLS, PLF, CJ, CALL IN C D1 0 CA [...]
-
Page 107
6. Explanation of Commands 6.2 Command Formats - 98 - 6.2.3 END Command The END command is automatically creat ed in both a circuit mode and a list mode. 6.2.4 Index Qualification (1) Index qualification (a) Index qualification is an indirect setting made by using an index register. When an index qualification is used in a sequence program, the dev[...]
-
Page 108
6. Explanation of Commands 6.2 Command Formats - 99 - (2) Devices which can be index-qualified With the exception of the rest rictions noted below, index qualific ation can be used with devices used with contacts, coils, basic commands, and application commands. (a) Devices which cannot use index qualification Device Meaning K, H 32-bits constant P[...]
-
Page 109
6. Explanation of Commands 6.2 Command Formats - 100 - 6.2.5 Digit Designation A digit may need to be designated for the bit device (X, Y, M, L, SM, F) when using the function command. How many points of 4-point unit bit dev ices are to be used with the 16-bit or 32-bit command is selected with this digit designation. Use device K when designating [...]
-
Page 110
6. Explanation of Commands 6.2 Command Formats - 101 - (1) When a digit is designated on the source (S) si de, the values that can be handled as source data will be as shown below. Table of digit designations and values that can be handled For 16-bit command For 32-bit command K1 (4 points) 0~15 0~15 K2 (8 points) 0~255 0~255 K3 (12 points) 0~4095 [...]
-
Page 111
6. Explanation of Commands 6.2 Command Formats - 102 - (2) When a digit is designated on the destination (D ) side, the No. of points designated by the digit will be the target of the destination side. Circuit side Process When source data (S) is a value MO V H12 34 K2M 0 Desti nati on (D) side K2M 0 00 1 0 00 1 1 M1 5 ‥‥ ‥‥ ‥ ‥ ‥‥ [...]
-
Page 112
7. Basic Commands - 103 - 7. Basic Commands These commands are the basis for the s equence programs. The sequence program cannot be created without these commands. The circuit can be created (programmed) with the same image as creating a circuit by combining the actual relay A contacts and B contacts as done conventionally.[...]
-
Page 113
7. Basic Commands LD, LDI - 104 - { LD, LDI ... Operation start Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { { { { { { { { { 1/2 (Note) In the modification of index, 2 steps are used for B or SB device. LD X9 LD I X9 Dev i ce No. Function LD is the [...]
-
Page 114
7. Basic Commands LD, LDI - 105 - Program example (1) Program used at head of circuit block. Coding No. of steps Com- mand Device 10 LD M32 11 OUT Y10 12 LDI M32 13 OUT Y11 M3 2 Y1 1 M3 2 Y1 0 10 12 14 (2) Program used at head of circuit block connected with ANB. Coding No. of steps Com- mand Device 99 LD X0 100 LD M9 101 AND M13 102 ORI M35 103 AN[...]
-
Page 115
7. Basic Commands AND, ANI - 106 - { AND, ANI ... Serial connection of contact Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { { { { { { { { { 1/2 (Note) In the modification of index, 2 steps are used for B or SB device. AN D X0 AN I X0 Dev i ce No. Fu[...]
-
Page 116
7. Basic Commands AND, ANI - 107 - Program example (1) Program used after LD, LDI, AND or ANI, etc. Coding No. of steps Com- mand Device 10 LD X3 11 AND M6 12 LDI X4 13 ANI M7 14 ORB 15 ANI M9 16 OUT Y33 17 LD X5 18 LD M8 19 OR M9 20 ANB 21 ANI M11 22 OUT Y34 X4 Y3 4 X3 Y 3 3 10 17 M1 1 M8 M9 X5 M7 M6 M9 OR B AN B 23 (2) Program used to connect c o[...]
-
Page 117
7. Basic Commands OR, ORI - 108 - { OR, ORI ... Parallel c onnection of one contact Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { { { { { { { { { 1/2 (Note) In the modification of index, 2 steps are used for B or SB device. OR X0 OR I X0 Dev i ce No.[...]
-
Page 118
7. Basic Commands OR, ORI - 109 - Program example (1) Program used at head of circuit block. Coding No. of steps Com- mand Device 10 LD X3 11 OR X4 12 OR X5 13 OUT Y33 14 LD X5 15 AND M11 16 ORI X6 17 OUT Y34 X4 X3 Y3 3 10 X5 X5 X6 M1 1 Y 3 4 14 18 (2) Program used in circuit. Coding No. of steps Com- mand Device 93 LD X5 94 LD M8 95 OR M9 96 ORI M[...]
-
Page 119
7. Basic Commands ANB - 110 - { ANB ... Serial connection of circuit block Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps 1 AN B A blo c k B bl ock Function (1) AND operation of the A block and B block is executed, and the operati on results are obtained.[...]
-
Page 120
7. Basic Commands ANB - 111 - Program example Program that serially connec ts continuous circuit blocks. X0 M7 10 X1 X2 X3 X4 X5 X6 X7 X8 X9 Coding No. of steps Com- mand Device 10 LD X0 11 OR X1 12 LD X2 13 OR X3 14 ANB 15 LD X4 16 OR X5 17 ANB 18 LD X6 19 OR X7 20 ANB 21 LD X8 22 OR X9 23 ANB 24 OUT M7 25[...]
-
Page 121
7. Basic Commands ORB - 112 - { ORB ... Parallel connection of blocks Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps 1 OR B OR or ORI i s used for th e on e cont act p ar a lle l c o nne c t ion. A blo ck B bl ock Function (1) OR operation of the A block [...]
-
Page 122
7. Basic Commands ORB - 113 - Program example Program that connects continuous circuit blocks in parallel. Coding No. of steps Com- mand Device 10 LD X0 11 AND X1 12 LD X2 13 AND X3 14 ORB 15 LD X4 16 AND X5 17 ORB 18 LD X6 19 AND X7 20 ORB 21 OUT M7 X2 X0 M7 10 X6 X4 X1 X3 X5 X7 22[...]
-
Page 123
7. Basic Commands LDP, LDF, ANDP, ANDF, ORP, ORF - 114 - { LDP, LDF, ANDP, ANDF, ORP, ORF ... Pulse ope ration start, pulse series connection, pulse parallel connection Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { { { { { { { 6 Setting data S Device[...]
-
Page 124
7. Basic Commands LDP, LDF, ANDP, ANDF, ORP, ORF - 115 - Cautions (1) Devices used for LDP have to be limited to the ones already output wi th OUT command, etc. If the devices to be output later are us ed, the condition will not be achieved. 10 13 X0 X5 M1 M1 X0 X5 M1 M1 X0 X5 M1 M1 17 X0 X5 M1 10 M1 M1 Correct example Incorrect example M1 (2) The [...]
-
Page 125
7. Basic Commands INV - 116 - { INV ... Operation results inversion Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps 4 INV Function Inverts the operation result imm ediately prior to the INV command. Operation result immediately prior to the INV command. Op[...]
-
Page 126
7. Basic Commands MEP, MEF - 117 - { MEP, MEF ... Operation results pulse conversion Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps 4 MEP MEF Function MEP (1) If operation results up to MEP command are leadi ng edge (from OFF to ON), turns ON (continuity [...]
-
Page 127
7. Basic Commands EGP, EGF - 118 - { EGP, EGF ... Pulse conversion of edge relay operation results Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { 6 Setting data Vn Edge relay nu mber where operat ion results are stored. Pulse convers ion command Vn EG[...]
-
Page 128
7. Basic Commands EGP, EGF - 119 - Program example (1) Program containing a subroutine program using an EGP command. END処理 X0 ON OFF X1 ON OFF ①② ① ② ①② V0 ON OFF V1 OFF ON D0 1 D1 1 ①② ①② 2 OFF ON ON X0の立上りでONする X1の立上りでONする X0がON ONの ためOFFする X1がON ONのためOFFする * 1 * 2 [...]
-
Page 129
7. Basic Commands OUT (Y, M, G, L, F, B, SB, SM) - 120 - { OUT (Y, M, G, L, F, B, SB, SM) ... Output (Y, M, G, L, F, B, SB, SM) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { { { { { { { 1/2 (Note) In the modification of index, 2 steps are used for B [...]
-
Page 130
7. Basic Commands OUT (Y, M, G, L, F, B, SB, SM) - 121 - Program example (1) Program output to output unit. Coding No. of steps Com- mand Device 10 LD X5 11 OUT Y33 12 LD X6 13 OUT Y34 14 OUT Y35 X6 Y 3 4 X5 Y3 3 10 12 Y3 5 15 (2) Program that turns internal relay or latch relay ON/OFF. Coding No. of steps Com- mand Device 93 LD X5 94 OUT M15 95 LD[...]
-
Page 131
7. Basic Commands OUT (T) - 122 - { OUT (T)... Timer output Usable device Digit desig- nation Index No. of steps Bit device Word dev ice Con- stant Pointer X Y M L F B SB T SM V T C D R W SW Z SD K H P Device { Setting valu e { { { { 3 Dev i ce No.(T 0 to 255) T0 D1 0 T0 K 5 0 Setti ng v al u e (1 to 32767 i s val i d) Setti ng v al u e (1 to 32767[...]
-
Page 132
7. Basic Commands OUT (T) - 123 - Execution condition This is executed per scan regardless of the operation results before the OUT command. Program example (1) Program to turn ON Y10 and Y14 ten seconds after X0 turns ON. (2) Program to use X10 to 1F BCD data as timer setting value. X2 T2 D 1 0 X0 10 14 Y1 5 T2 18 BIN K 4 X 1 0 D1 0 Th e X 10 to 1F[...]
-
Page 133
7. Basic Commands OUT (C) - 124 - { OUT (C) ... Counter output Usable device Digit desig- nation Index No. of steps Bit device Word dev ice Con- stant Pointer X Y M L F B SB T SM V T C D R W SW Z SD K H P Device { Setting valu e { { { { 3 C1 D10 C0 K50 Dev i ce No.(C0 to 127) Setti ng v al u e (1 to 32767 i s val i d ) Setti n g v al u e (1 to 3276[...]
-
Page 134
7. Basic Commands OUT (C) - 125 - Program example (1) Program to turn Y30 ON when X0 turns ON ten times, and to turn Y30 OFF when X1 turns ON. Coding No. of steps Com- mand Device 10 LD X0 11 OUT C10 K10 14 LD C10 15 OUT Y30 16 LD X1 C10 Y3 0 X0 C10 K10 10 14 16 X1 RST C1 0 17 RST C10 19 (2) Program to set C10 setting value to 10 when X0 turns ON, [...]
-
Page 135
7. Basic Commands SET - 126 - { SET ... Device setting (ON) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { 1/2 (Note) In the modification of index, 2 steps are used for B or SB device. Settin g com m and SET D Setti n g data D Dev i ce[...]
-
Page 136
7. Basic Commands SET - 127 - Program example (1) Program to set Y8B (ON) when X8 turn s ON, and reset Y8B (OFF) when X9 turns ON. Coding No. of steps Com- mand Device 10 LD X9 11 RST Y8B 12 LD X8 13 SET Y8B X8 X9 10 12 SET Y8 B RST Y8 B 14 X8 ( SET i n put ) OFF X9 ( RST i n put ) OFF Y 8 B O F F ON ON ON Operation of SET and RST commands[...]
-
Page 137
7. Basic Commands RST - 128 - { RST ... Device resetting Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { 1/2 (Note) In the modification of index, 2 steps are used for B or SB device. 2 steps are used for T or C device, also. Reset c[...]
-
Page 138
7. Basic Commands RST - 129 - Program example (1) Program to reset 100ms cumulative timer and counter. C23 X4 10 RST T96 Y5 5 RST C2 3 X5 T96 K18000 C23 K16 T9 6 14 20 22 W hen T 96 is set for the cu mula ti ve timer, T96 will tur n O N whe n t he X4 ON t im e is 30 m in. Th e No. of times th at T 96 turn s ON i s coun ted. T9 6 is reset w he n T 9[...]
-
Page 139
7. Basic Commands MC, MCR - 130 - { MC, MCR ... Master control set/reset Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps n { { D { { { { { { { { { { 2/1 MC MC ON/OFF comm and D Setti ng data D Nestin g (N0 to N7) D devi ce Nesti n g (N0 to N7) n n MC R n n[...]
-
Page 140
7. Basic Commands MC, MCR - 131 - MCR (1) This is the master control cancel command, and indicates the end of the master control range. (2) The designated nesting (N) No. and following nests will be canceled. MC R N3 N 3 to N7 m aster control is can celed. Program example (1) Program to turn MC ON when X9 is ON and turn MC OFF when OFF. X12 X9 10 Y[...]
-
Page 141
7. Basic Commands PLS, PLF - 132 - { PLS, PLF ... Pulse (1 scan ON) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { 2 PLS comm an d PLS D Setti ng data D Dev i ce No. to be pu l se coded PL F c o mma n d PL F D PLS PL F Function PLS (1) The[...]
-
Page 142
7. Basic Commands PLS, PLF - 133 - Program example (1) Program to execute PLS command when X9 turns ON. Coding No. of steps Com- mand Device 10 LD X9 11 PLS M9 X9 10 M9 PLS 13 X9 OF F M9 OF F ON ON 1 sc an (2) Program to execute PLF command when X9 turns OFF. X9 OF F M9 OF F ON ON 1 sca n Coding No. of steps Com- mand Device 10 LD X9 11 PLF M9 X9 1[...]
-
Page 143
7. Basic Commands FF - 134 - { FF ... Bit device output inversion Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps { { { { { { { { 7 Setting data D Device numb er to invert Inversion c ommand FF FF D Function (1) The status of the device designated by D is [...]
-
Page 144
7. Basic Commands FF - 135 -[...]
-
Page 145
7. Basic Commands SFT, SFTP - 136 - { SFT, SFTP ... Device shift Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { 3 SFT SFT P Shi ft com m and SFT D SFT P D Settin g data D Dev i ce No. to be shi fted Function (1) The device that designates the [...]
-
Page 146
7. Basic Commands SFT, SFTP - 137 - S F T i n p u t O F F SF T co mma n d ON SF T P c o mma n d Ex ecuted per scan Ex ecuted per scan Program example (1) Program to shift the data of Y57 to Y5B when X8 turns ON. SFT Y5 B SFT Y 5 A SFT Y 5 9 SFT Y 5 8 PLS M 8 X7 M0 (pules coding) SET Y5 7 M8 S hif t in g is e xec u t e d whe n M0 t ur n s O N . (pro[...]
-
Page 147
7. Basic Commands MPS, MRD, MPP - 138 - { MPS, MRD, MPP ... Registering, reading and clearing of operation results Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps 1 MP S MR D MPP MPS, MRD an d M PP are n ot di spl ay ed. Function MPS (1) The operation resu[...]
-
Page 148
7. Basic Commands MPS, MRD, MPP - 139 - Poi n ts (1) T he ci rcu i ts wh en M PS, MRD an d MPP are used an d n ot used are as foll ow . Cir c uit us ing MP S , MRD a nd MP P C irc uit no t us ing MP S, MR D a nd MPP X1 Y1 1 X0 X2 X3 X4 X5 Y1 0 10 Y1 2 X1 Y1 1 X0 X2 X3 X4 X5 Y1 0 10 Y1 2 14 19 X1 X0 X1 X0 Program example (1) Program using MPS, MRD a[...]
-
Page 149
7. Basic Commands NOP, NOPLF, PAGE n - 140 - { NOP, NOPLF, PAGE n ... No operation Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M VT CDRW S W Z S D K H P Digit desig- nation Index No. of steps n { { 1/1/2 "NOP" is not display ed in ladder display . NOP NOPLF PA G E n NO NOPLF PA G E n Function NOP (1) This [...]
-
Page 150
7. Basic Commands NOP, NOPLF, PAGE n - 141 - Program example NOP (1) Contact closed……….Deletes AND or ANI command No. of steps Com- mand Device 10 LD X8 1 1 AND Y97 12 ANI X 96 13 OUT Y12 14 No. of steps Com- mand Device 10 LD X8 11 N O P 12 ANI Y96 13 OUT Y12 14 Before change Coding 10 X8 Y12 Y97 Y96 Change to NOP A fter c hange Coding 10 X8[...]
-
Page 151
7. Basic Commands NOP, NOPLF, PAGE n - 142 - NOPLF • Printing the ladder will result in the following: -1- 6X 0 0 1 X001 END 8 0 X000 D30 MO V 1 D40 MO V 2 K K NOPLF 5 回路ブロックの区切りにNOPLF命令があると 改ページを行います。 10 18 19 Page break inserted when NOPLF is inserted between ladder b locks. K1 K2 • Pr[...]
-
Page 152
7. Basic Commands NOP, NOPLF, PAGE n - 143 - PAGE n Coding No. of steps Com- mand Device 10 PAGE K5 12 LD X0 13 AND X1 14 OUT Y0 15 LD X2 16 NOP 17 OUT Y1 18 NOPLF 19 PAGE K6 21 LD X3 22 OUT Y2 0 2 5 NOPLF 8 11 Y2 X3 Y0 Y1 9 K6 PAGE NOP K5 PAGE X0 X1 X2 〔回路モード〕 10 12 15 18 19 21 23[...]
-
Page 153
- 144 -[...]
-
Page 154
8. Function Commands - 145 - 8. Function Commands Recent sequence programs that require more advanc ed control cannot provide sufficient control only with basic commands and thus need fou r-rule operation and comparison, etc. Many function commands have been prepared for th is. There are approx. 118 types of function commands. Each command is expla[...]
-
Page 155
8. Function Commands LD=, AND=, OR= - 146 - { LD=, AND=, OR= .... Comparison of 16-bit data (=) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { { { { S2 { { { { { { { { { { { { { { { { { { { { 3 = S2 S1 Setti ng data S2 Co[...]
-
Page 156
8. Function Commands LD=, AND=, OR= - 147 - Program example (1) Program to compare the X0 to F data and D3 data. Coding No. of steps Com- mand Device 10 LD= K4X0 D3 13 OUT Y33 10 = D3 K4 X0 Y3 3 14 (2) Program to compare the BCD value 100 and D3 data. Coding No. of steps Com- mand Device 10 LD M3 11 AND= H100 D3 14 OUT Y33 = D3 H1 00 Y3 3 M3 10 15 [...]
-
Page 157
8. Function Commands LDD=, ANDD=, ORD= - 148 - { LDD=, ANDD=, ORD= ... Comparison of 32-bit data (=) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { { { { S2 { { { { { { { { { { { { { { { { { { { { 3/4 D= S2 S1 Settin g da[...]
-
Page 158
8. Function Commands LDD=, ANDD=, ORD= - 149 - Program example (1) Program to compare the X0 to 1F data and D3, 4 data. Coding No. of steps Com- mand Device 10 LDD= K8X0 D3 13 OUT Y33 10 D= D3 K8 X 0 Y3 3 14 (2) Program to compare the BCD value 18000 and D3, 4 data. Coding No. of steps Com- mand Device 10 LD M3 11 ANDD= H18000 D3 15 OUT Y33 10 D= D[...]
-
Page 159
8. Function Commands LD>, AND>, OR>, LD>=, AND>=, OR>= - 150 - { LD>, AND>, OR>, LD>=, AND>=, OR>= .... Comparison of 16-bit data (>, >=) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { [...]
-
Page 160
8. Function Commands LD>, AND>, OR>, LD>=, AND>=, OR>= - 151 - Program example (1) Program to compare the X0 to F data and D3 data. Coding No. of steps Com- mand Device 10 LD> K4X0 D3 13 OUT Y33 10 D3 K4 X 0 Y3 3 > 14 (2) Program to compare the BCD value 100 and D3 data. Coding No. of steps Com- mand Device 10 LD M3 11 AND&g[...]
-
Page 161
8. Function Commands LDD>, ANDD>, ORD>, LDD>=, ANDD>=, ORD>= - 152 - { LDD>, ANDD>, ORD>, LDD>=, ANDD>=, ORD>= ... Comparison of 32-bit data (>, >=) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { {[...]
-
Page 162
8. Function Commands LDD>, ANDD>, ORD>, LDD>=, ANDD>=, ORD>= - 153 - Program example (1) Program to compare the X0 to 1F data and D3, 4 data. Coding No. of steps Com- mand Device 10 LDD> K8X0 D3 13 OUT Y33 10 D> D3 K8 X 0 Y3 3 14 (2) Program to compare the BCD value 18000 and D3, 4 data. Coding No. of steps Com- mand Device [...]
-
Page 163
8. Function Commands LD<, AND<, OR<, LD<=, AND<=, OR<= - 154 - { LD<, AND<, OR<, LD<=, AND<=, OR<= .... Comparison of 16-bit data (<) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { {[...]
-
Page 164
8. Function Commands LD<, AND<, OR<, LD<=, AND<=, OR<= - 155 - Cautions Each command of LD<=, AND<=, and OR<= cannot use a constant for S2. When S2 is a constant, it operates as LDBIT, ANDBIT, and an ORBIT command, respectively. Program example (1) Program to compare the X0 to F data and D3 data. Coding No. of steps Com- [...]
-
Page 165
8. Function Commands LD<>, AND<>, OR<> - 156 - { LDD<, ANDD<, ORD<, LDD<=, ANDD<=, ORD<= ... Comparison of 32-bit data (<, <=) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { { { {[...]
-
Page 166
8. Function Commands LD<>, AND<>, OR<> - 157 - Program example (1) Program to compare the X0 to 1F data and D3, 4 data. Coding No. of steps Com- mand Device 10 LDD< K8X0 D3 13 OUT Y33 10 D< D3 K8 X 0 Y3 3 14 (2) Program to compare the BCD value 18000 and D3, 4 data. Coding No. of steps Com- mand Device 10 LD M3 11 ANDD< H[...]
-
Page 167
8. Function Commands LD<>, AND<>, OR<> - 158 - { LD<>, AND<>, OR<> .... Comparison of 16-bit data (<>) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { { { { { S2 { { { { { { { { { [...]
-
Page 168
8. Function Commands LD<>, AND<>, OR<> - 159 - Program example (1) Program to compare the X0 to F data and D3 data. Coding No. of steps Com- mand Device 10 LD<> K4X0 D3 13 OUT Y33 10 D3 K4 X 0 Y3 3 <> 14 (2) Program to compare the BCD value 1800 and D3 data. Coding No. of steps Com- mand Device 10 LD M3 11 AND<> [...]
-
Page 169
8. Function Commands LD<>, AND<>, OR<> - 160 - { LDD<>, ANDD<>, ORD<> .... Comparison of 32-bit data (<>) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { { { { S2 { { { { { { { { {[...]
-
Page 170
8. Function Commands LD<>, AND<>, OR<> - 161 - Program example (1) Program to compare the X0 to F data and D3, D4 data. Coding No. of steps Com- mand Device 10 LDD<> K8X0 D3 13 OUT Y33 10 D3 K8 X 0 Y3 3 D<> 14 (2) Program to compare the BCD value 18000 and D3, D4 data. Coding No. of steps Com- mand Device 10 LD M3 11 A[...]
-
Page 171
8. Function Commands +, +P - 162 - { +, +P ... BIN 16-bit addition Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 S1 { { { { { { { { { { { { { { { { { { S2 { { { { { { { { { { { [...]
-
Page 172
8. Function Commands +, +P - 163 - (2) -32768 to 32767 (BIN 16-bit) can be designated in S1, S2 and S. (3) The positive/negative of the data in S1, S2 , S and D is determined with the highest-order bit (B15). B15 Judgment of positive/negative 0 Positive 1 Negative (4) The carry flag will not turn ON if the 15th bit overflows. Execution conditions T[...]
-
Page 173
8. Function Commands D+, D+P - 164 - { D+, D+P ... BIN 32-bit addition Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/4 S1 { { { { { { { { { { { { { { { { { { S2 { { { { { { { { [...]
-
Page 174
8. Function Commands D+, D+P - 165 - (2) -2147483648 to 2147483647 (BIN 32-bit) can be designated in S1, S2 and S. (3) The positive/negative of the data in S1, S2 , S and D is determined with the highest-order bit (B31). B31 Judgment of positive/negative 0 Positive 1 Negative (4) The carry flag will not turn ON if the 31st bit overflows. Execution [...]
-
Page 175
8. Function Commands –, –P - 166 - { –, –P ... BIN 16-bit subtraction Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 S1 { { { { { { { { { { { { { { { { { { S2 { { { { { {[...]
-
Page 176
8. Function Commands –, –P - 167 - (3) The positive/negative of the data in S1, S2 , S and D is determined with the highest-order bit (B15). B15 Judgment of positive/negative 0 Positive 1 Negative (4) The carry flag will not turn ON if the 0 bit underflows. Execution conditions The execution conditions for -, -P are as shown below. Su btraction[...]
-
Page 177
8. Function Commands D–, D–P - 168 - { D–, D–P ... BIN 32-bit subtraction Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/4 S1 { { { { { { { { { { { { { { { { { { S2 { { {[...]
-
Page 178
8. Function Commands D–, D–P - 169 - (2) -2147483648 to 2147483647 (BIN 32-bit) can be designated in S1, S2 and S. (3) The positive/negative of the data in S1, S2 , S and D is determined with the highest-order bit (B31). B31 Judgment of positive/negative 0 Positive 1 Negative (4) The carry flag will not turn ON if the 0th bit underflows. Execut[...]
-
Page 179
8. Function Commands *, *P - 170 - { *, *P ... BIN 16-bit multiplication Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { { { { { { { { { S2 { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { 4 Settin g data S2 S1 Mult[...]
-
Page 180
8. Function Commands *, *P - 171 - Execution conditions The execution conditions for *, *P are as shown below. Mult ip lica t io n c o m m a nd O F F * ON Ex ecuted pe r scan Ex ecuted pe r scan *P Program example (1) Program to multiply the D0 data and BIN 5678 when X5 turns ON, and output the results to D3, 4. Coding No. of steps Com- mand Device[...]
-
Page 181
8. Function Commands D*, D*P - 172 - { D*, D*P ... BIN 32-bit multiplication Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { S2 { { { { { { { { { D {{{{{ { { 5/6 Settin g data S2 S1 M ul tipl i cation data or he ad No. of dev i ce whe[...]
-
Page 182
8. Function Commands D*, D*P - 173 - Execution conditions The execution conditions for D*, D*P are as shown below. Mult ip lica t io n c o m m a nd O F F D* ON Ex ecuted pe r scan Ex ecuted pe r scan D*P Program example (1) Program to multiply the D7, 8 BIN data and D18, 19 BIN data when X5 turns ON, and output the results to D1 to 4. Coding No. of[...]
-
Page 183
8. Function Commands /, /P - 174 - { /, /P ... BIN 16-bit division Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { S2 { { { { { { { { D { { { { { { 5/6 Div i si on com m and /P S2 S1 D / /P / S2 S1 D Setti n g data S2 S1 Di vi si o [...]
-
Page 184
8. Function Commands /, /P - 175 - Execution conditions The execution conditions for /, /P are as shown below. Di vi si on comm and OFF / ON Ex ecuted pe r scan Ex ecuted pe r scan /P Program example (1) Program to divide the D10 data by 3.14 when X3 turns ON, and output the value (quotient) to D5. Coding No. of steps Com- mand Device 10 LD X3 11 *[...]
-
Page 185
8. Function Commands D/, D/P - 176 - { D/, D/P ... BIN 32-bit division Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { S2 { { { { { { { { { D {{{{{ { { 5/6 D/P S2 S1 D D/ D/P D/ S2 S1 D S2 S1 Di v i si on data or head No. of dev i ce [...]
-
Page 186
8. Function Commands D/, D/P - 177 - Execution conditions The execution conditions for D/, D/P are as shown below. D/ ON Ex ecuted pe r scan D/P Di vi si on comm and OFF Ex ecuted pe r scan Program example (1) Program to multiply the D10 data by 3.14 w hen X3 turns ON, and output the low-order 16-bit of the results to Y30 to 3F. Coding No. of steps[...]
-
Page 187
8. Function Commands B+, B+P - 178 - { B+, B+P ... BCD 16-bit addition Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { S2 { { { { { { { { { D {{{{{ { { { 5/6 Ad di ti on com m an d B+P S2 S1 D B+ B+P B+ S2 S1 D Setti n g data S2 S1 No[...]
-
Page 188
8. Function Commands B+, B+P - 179 - Execution conditions The execution conditions for B+, B+P are as shown below. Ad diti on comm and OFF B+ ON B+P Ex ecuted pe r scan Ex ecuted pe r scan Program example (1) Program to add the D0 BCD dat a and D10 BCD data and output to D20. Coding No. of steps Com- mand Device 10 LD M0 11 B+ D0 D10 D20 B+ D1 0 D0[...]
-
Page 189
8. Function Commands B–, B–P - 180 - { B–, B–P ... BCD 16-bit subtraction Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { S2 { { { { { { { { { D {{{{{ { { { 5/6 B-P S2 S1 D B- S2 S1 D B- B-P Subtracti on com m and Sett i n g d[...]
-
Page 190
8. Function Commands B–, B–P - 181 - Program example (1) Program to subtract the D10 BCD data from D3 and output to D20. Coding No. of steps Com- mand Device 10 LD M0 11 B- D3 D10 D20 D1 0 D3 D2 0 M0 (O N) 10 B- 16 (2) Program to output the difference of the timer T3 setting value and current value to D20 BCD data. Coding No. of steps Com- mand[...]
-
Page 191
8. Function Commands B*, B*P - 182 - { B*, B*P ... BCD 16-bit multiplication Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { S2 { { { { { { { { { { D {{{{{ { { 5/6 Settin g data S2 S1 Mult iplic a t io n da t a o r N o. o f de vic e w[...]
-
Page 192
8. Function Commands B*, B*P - 183 - Execution conditions The execution conditions for B*, B*P are as shown below. Mult ip lica t io n c o m m a nd O F F B* ON Ex ecuted pe r scan Ex ecuted pe r scan B* P Program example (1) Program to multiple the D0 BCD data and D10 BCD data, and output the results to D20. Coding No. of steps Com- mand Device 10 [...]
-
Page 193
8. Function Commands B/, B/P - 184 - { B/, B/P ... BCD 16-bit division Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { { S2 { { { { { { { { { { D {{{{{ { { 5/6 Div i si on com m and B/ P S2 S1 D B/ B/ P B/ S2 S1 D Setti n g data S2 [...]
-
Page 194
8. Function Commands B/, B/P - 185 - Execution conditions The execution conditions for B/, B/P are as shown below. Mult ip lica t io n c o m m a nd O F F B/ ON Ex ecuted pe r scan Ex ecuted pe r scan B/ P Program example (1) Program to divide the D10 BCD data D20 when X3 turns ON, and output the value (quotient) to D5. Coding No. of steps Com- mand[...]
-
Page 195
8. Function Commands INC, INCP - 186 - { INC, INCP ... (16-bit BIN data) +1 Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { { { 2 IN C D I ncrement comm and IN C P D IN C I NCP Settin g data D No. of dev i ce to be i n crem[...]
-
Page 196
8. Function Commands INC, INCP - 187 - Program example (1) Example of addition counter program IN C P D8 M38 = D8 K100 M38 24 M3 8 t ur n s ON wh en D8 = 100. X8 Ex ecu te D8+1 at X8 OFF ON wh en M 38 is OFF. 14 K0 D 8 X7 10 MOV S e t D 8 t o 0 w h e n X 7 t u r n s O N . Coding No. of steps Com- mand Device 10 LD X7 11 MOV K0 D8 14 LD X8 15 ANI M3[...]
-
Page 197
8. Function Commands DINC, DINCP - 188 - { DINC, DINCP ... (32-bit BIN data) +1 Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { { { 2 DI NC D I n crem en t com m an d DI NC P D DI NC DI NCP Settin g data D Head No. of dev i[...]
-
Page 198
8. Function Commands DINC, DINCP - 189 - Program example (1) Program to increment the D0, 1 data by one when M0 turns ON. Coding No. of steps Com- mand Device 10 LD M0 11 DINC D0 DI NC D0 M0 10 (Pu lse codi n g) 13 (2) Program to increment X10 to X27 data by one when M0 turns ON, and to store the results in D3, 4. Coding No. of steps Com- mand Devi[...]
-
Page 199
8. Function Commands DEC, DECP - 190 - { DEC, DECP ... (16-bit BIN data) –1 Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { { { 2 DEC D Decrem en t comm and DECP D DEC DECP Setti n g data D No. of dev i ce t o be decremen[...]
-
Page 200
8. Function Commands DEC, DECP - 191 - Program example (1) Example of subtraction counter program DECP D8 M3 8 = D8 K0 M3 8 24 M3 8 t urn s ON w h en D8 = 0. X8 Ex ecute D8-1 at X 8 OFF ON wh en M 38 tu rn s OFF. 14 K100 D8 X7 10 MO V Set D8 to 1 00 wh en X 7 tu rn s ON. Coding No. of steps Com- mand Device 10 LD X7 11 MOV K100 D8 14 LD X8 15 ANI M[...]
-
Page 201
8. Function Commands DDEC, DDECP - 192 - { DDEC, DDECP ... (32-bit BIN data) –1 Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { { { 2 DDEC D Decrem en t comm and DD ECP D DDEC DDEC P Setti n g data D Head No. of dev i ce [...]
-
Page 202
8. Function Commands DDEC, DDECP - 193 - Program example (1) Program to decrement the D0, 1 data by one when M0 turns ON. Coding No. of steps Com- mand Device 10 LD M0 11 DDEC D0 DDEC D0 M0 10 (pu lse codi n g) 13 (2) Program to decrement X10 to X27 data by one when M0 turns ON, and to store the results in D3, 4. Coding No. of steps Com- mand Devic[...]
-
Page 203
8. Function Commands NEG, NEGP - 194 - { NEG, NEGP ... Complement of 2 (BIN 16-bit data) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { { 2 C omp l e me n t o f 2 e x ec u ti on co mma n d NE G D Setti ng data D No. of dev[...]
-
Page 204
8. Function Commands NEG, NEGP - 195 - Program example (1) Program to subtract D20 from D10 when XA turns ON and obtain an absolute value when the results are negative. D2 0 D1 0 - NE G D1 0 XA D10-D20 i s ex ecut ed. 15 D2 0 XA 10 < M3 M3 tu rn s ON w h en D10 < D20 D1 0 D1 0 M3 Th e absol u te v al u e (complement of 2) wh en M 3 tu rn s ON[...]
-
Page 205
8. Function Commands DNEG, DNEGP - 196 - { DNEG, DNEGP ... Complement of 2 (BIN 32-bit data) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { { 2 Com pl em en t of 2 ex ecu ti on com m and DNEG D Setti n g data D Head No. of[...]
-
Page 206
8. Function Commands DNEG, DNEGP - 197 - Program example (1) Program to subtract D20 from D10 when XA turns ON and obtain an absolute value when the results are negative. D2 0 D1 0 D- DNEG D1 0 XA Su btracts D20, 21 from D10, 11. 15 D2 0 XA 10 D< M3 M3 tu rn s ON w h en D10, 11 < D20, 21 D1 0 D1 0 M3 Th e absol u te v al u e (complement of 2)[...]
-
Page 207
8. Function Commands BCD, BCDP - 198 - { BCD, BCDP ... BIN BCD conversion (16-bit) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 Settin g data D BIN data or No. of devi ce wh er[...]
-
Page 208
8. Function Commands BCD, BCDP - 199 - Program example (1) Program to output C4 current value from Y20 to Y2F to BCD display. 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Y2 F Y2 E Y2 D Y2 C Y2 B Y2 A Y2 9 Y2 8 Y2 7 Y2 6 Y2 5 Y2 4 Y2 3 Y2 2 Y2 1 Y2 0 8000 4000 2000 1000 800 400 200 100 80 40 20 10 8 4 2 1 Coding No. of steps Com- mand Device 10 LD M0 11 BCD C4 [...]
-
Page 209
8. Function Commands DBCD, DBCDP - 200 - { DBCD, DBCDP ... BIN BCD conversion (32-bit) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { D { { { { { { { { { 4/5 Settin g data D BI N data or h ead No . of dev i ce w he re BIN [...]
-
Page 210
8. Function Commands DBCD, DBCDP - 201 - Execution conditions The execution conditions for DBCD, DBCDP are as follow. DBCD ON Ex ecuted pe r scan Ex ecuted pe r scan DB CD P Conv ersion com m and OFF Program example (1) Program to output the current timer value of which the setting value exceeds 9999 to Y1C to 2F. 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 [...]
-
Page 211
8. Function Commands BIN, BINP - 202 - { BIN, BINP ... BCD BIN conversion (16-bit) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 Settin g data D BCD da ta or No. of de vi c e wh[...]
-
Page 212
8. Function Commands BIN, BINP - 203 - Program example (1) Program to BIN convert the X10 to X1B BCD data when X8 turns On, and store in D8. Dig it a l s wit c h BC D Ca n be us ed for oth er pur po s es DI card Y1 F Y1 E Y1 D Y1 C Y1 B Y1 A Y1 9 Y1 8 Y1 7 Y1 6 Y1 5 Y1 4 Y1 3 Y1 2 Y1 1 Y1 0 800 400 200 100 80 40 20 10 8 4 2 1 0 0 0 1 1 0 0 1 0 1 1 [...]
-
Page 213
8. Function Commands DBIN, DBINP - 204 - { DBIN, DBINP ... BCD BIN conversion (32-bit) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { D { { { { { { { { { 4/5 Setti n g data D BCD data or head No. of dev i ce w h ere BCD da[...]
-
Page 214
8. Function Commands DBIN, DBINP - 205 - Execution conditions The execution conditions for DBIN, DBINP are as follow. Conv ersi on comm and OFF DBIN ON Ex ecuted pe r scan Ex ecuted pe r scan DBIN P Program example (1) Program to BIN convert the X10 to X23 BCD data when X0 turns ON, and to store in D14, 15. Coding No. of steps Com- mand Device 10 L[...]
-
Page 215
8. Function Commands MOV, MOVP - 206 - { MOV, MOVP ... 16-bit data transmission Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D *1 { { { { { { { { { { { { { { { { { 3 *1 Destination device X of MOV command is reserv[...]
-
Page 216
8. Function Commands MOV, MOVP - 207 - Program example (1) Program to store input X0 to XB data in D8. Coding No. of steps Com- mand Device 10 LD M0 11 MOV K3X0 D8 K3 X 0 MO V D8 M0 (O N) 10 14 (2) Program to store " 155 " in D8 as binary value when X8 turns ON. Coding No. of steps Com- mand Device 10 LD X8 11 MOV K155 D8 K155 MO V D8 X8 [...]
-
Page 217
8. Function Commands DMOV, DMOVP - 208 - { DMOV, DMOVP ... 32-bit data transmission Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D *1 { { { { { { { { { { { { { { { { { 3/4 *1 Destination device X of DMOV command is[...]
-
Page 218
8. Function Commands DMOV, DMOVP - 209 - Program example (1) Program to store D10, 11 data in D0, D1. Coding No. of steps Com- mand Device 10 LD M0 11 DMOV D10 D0 D1 0 DMOV D0 M0 10 (ON) 14 (2) Program to store X0 to X1F data in D0, D1. Coding No. of steps Com- mand Device 10 LD M0 11 DMOV K8X0 D0 K8 X 0 DM OV D0 M0 10 (O N) 14[...]
-
Page 219
8. Function Commands CML, CMLP - 210 - { CML, CMLP ... 16-bit data negation transmission Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 Tran smissi on comm and CML CML P CML S D [...]
-
Page 220
8. Function Commands CML, CMLP - 211 - Program example (1) Program to invert X0 to X7 data and to transmit the results to D0. Coding No. of steps Com- mand Device 10 LD M100 11 CML K2X0 D0 K2 X 0 CM L D0 M 100 10 14 このビットはすべて 0とみなします。 D0 のビット数< のビット数のとき 11 0 1 0000 X7 X0 00 1 0 11 11 b7 b0[...]
-
Page 221
8. Function Commands DCML, DCMLP - 212 - { DCML, DCMLP ... 32-bit data negation transmission Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/ 4 Tran smissi on comm and DC ML DCMLP[...]
-
Page 222
8. Function Commands DCML, DCMLP - 213 - Program example (1) Program to invert X0 to X1F data and to transmit the results to D0, 1. Coding No. of steps Com- mand Device 10 LD M200 11 DCML K8X0 D0 K8 X 0 DC ML D0 M 200 10 14 このビットはすべて 0とみなします。 01 0 0 01 1 1 00 10 1100 X1B X8 X7 X0 10 1 1 10 00 11 01 0011 b7 b0 1 1 1 1[...]
-
Page 223
8. Function Commands XCH, XCHP - 214 - { XCH, XCHP ... 16-bit data exchange Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D1 { { { { { { { { { { { { { { { D2 { { { { { { { { 4 Ex ch an ge com m and XCH X CHP XCH D1 D2 XC H P D1 D2 Settin g data D2 No. o[...]
-
Page 224
8. Function Commands XCH, XCHP - 215 - Program example (1) Program to exchange T0 current value with D0 data when M8 turns ON. Coding No. of steps Com- mand Device 10 LD M8 11 XCH T0 D0 T0 XCH D0 M8 10 (pu lse codi n g) 15 (2) Program to exchange D0 data with M16 to M31 data when M10 turns ON. Coding No. of steps Com- mand Device 10 LD M10 11 XCH K[...]
-
Page 225
8. Function Commands DXCH, DXCHP - 216 - { DXCH, DXCHP ... 32-bit data exchange Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D1 { { { { { { { { { { { { { { { D2 { { { { { { { { 4 Con versi on comm and DX CH DXCHP DX CH D1 D2 DXCHP D1 D2 Setti ng data D[...]
-
Page 226
8. Function Commands DXCH, DXCHP - 217 - Program example (1) Program to exchange T0, T1 current va lues with D0, 1 data when M8 turns ON. Coding No. of steps Com- mand Device 10 LD M8 11 DXCH T0 D0 T0 DXCH D0 M8 10 ( Puls e c o d ing ) 15 (2) Program to exchange D0, 1 data with M16 to M47 data when M10 turns ON. Coding No. of steps Com- mand Device[...]
-
Page 227
8. Function Commands BMOV, BMOVP - 218 - { BMOV, BMOVP ... Block transmission of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { D { { { { { { { n { { { { { { { { { { 5 Tran smissi on comm and BMOV BMOVP S D n BMOV BMOVP SD n S[...]
-
Page 228
8. Function Commands BMOV, BMOVP - 219 - Program example (1) Program to transmit the current va lues of T33 to T48 to D908 to D923. Coding No. of steps Com- mand Device 10 LD M90 11 BMOV T33 D908 H10 BMOV D908 T3 3 H1 0 M90 10 16 T3 1 B ef o r e e x ec ut i on ( T r ans mi s s io n s our c e) 01 0 0 00 1 0 0100 09 9 9 10 0 5 0115 00 0 0 T3 2 T3 3 T[...]
-
Page 229
8. Function Commands FMOV, FMOVP - 220 - { FMOV, FMOVP ... Batch transmission of same 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { D { { { { { { { n { { { { { { { { { { 5 Tr ansmissi on com ma n d FMOV FM OVP SD n FM O[...]
-
Page 230
8. Function Commands FMOV, FMOVP - 221 - Program example (1) Program to reset (clear) D8 to D23 when XA turns ON. 0 0 0 0 Transmi ssion 0 0 D8 D9 D21 D22 D23 D S 16 data bloc ks Resetting of data registers w ith FMOV command Coding No. of steps Com- mand Device 10 LD XA 11 FMOV K0 D8 H10 FM OV D8 K0 H1 0 XA 10 16[...]
-
Page 231
8. Function Commands CJ, JMP - 222 - { CJ, JMP ... Conditional jump Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps P { 2 CJ Jump com m and JM P CJ JM P Setti n g data P** Jump d estin ation poin ter No. (P0 to P249) P** P** Uncon dit ional Function CJ (1[...]
-
Page 232
8. Function Commands CJ, JMP - 223 - Points (1) After the timer coil is turned ON, if the time r that is turning the coil ON with the CJ or JMP command is jumped, the timer count will continue. (2) The scan time will be shortened if jumpi ng is done backward using the CJ or JMP command. (3) The CJ and JMP commands can be used to jump to a smaller s[...]
-
Page 233
8. Function Commands FEND - 224 - { FEND ... Program end Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps 1 FEND Function The sequence program is ended. CJ P** Sequ en ce pr o gr a m Sequ en c e pr o gr a m FEND Sequ en ce pr o gr a m P** 0 Operation w h e[...]
-
Page 234
8. Function Commands FEND - 225 - Program example Program when using CJ command. X1 Y2 2 P23 20 XB 12 X0 Y2 0 10 X1 4 Y3 1 17 CJ P23 FEND 19 W hen XB tu rn s ON, th e program j umps to th e P23 l abel , an d th e step fol l ow i n g P23 is ex ecuted. Ex ecu te w hen X B i s OFF. W hen X B turn s OFF, the en d of th e sequen ce program is in di cate[...]
-
Page 235
8. Function Commands CALL, CALLP, RET - 226 - { CALL, CALLP, RET ... Call/return of sub-routine program Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps P { 2/1 Retu rn of sub- routi n e program RET P** Head poi n ter No. of su b-rou ti n e program (l abel[...]
-
Page 236
8. Function Commands CALL, CALLP, RET - 227 - Cautions When returning from CALL or CALLP command (that is, when executing RET command), the operation results obtained immedi ately before will be retained. Thus, make sure not to program a command following to CALL or CALLP as it may cause an illegal operation. The example is shown below. SM3 CALL P1[...]
-
Page 237
8. Function Commands CALL, CALLP, RET - 228 - RET (1) The end of the sub-routine program is indicated. (2) When the RET command is executed, the sequence program in the step after the CALL or CALLP command will be executed. Execution conditions The execution conditions of the CALL, CALLP are as shown below. S ub -r o ut ine e xec ut io n c o m m an[...]
-
Page 238
8. Function Commands CALL, CALLP, RET - 229 -[...]
-
Page 239
8. Function Commands FOR, NEXT - 230 - { FOR, NEXT ... Command loop Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps n { { { { { { { { { 5/4 (Note) "n" is used with FOR command. FOR n FOR Setti ng data Number of repetit i on s of th e FOR to NEXT[...]
-
Page 240
8. Function Commands FOR, NEXT - 231 - Program example (1) Program to execute FOR to NEXT loop when X8 is OFF, and not to execute it when X8 is ON. Coding No. of steps Com- mand Device 10 LD X8 11 CJ P8 13 LDI M0 14 MOV K0 Z3 17 FOR K4 22 LDI M0 23 MOV Z3 D0Z3 26 INC Z3 28 NEXT 32 P8 33 LD X0A 34 OUT Y33 10 13 17 22 28 33 35 Caution (1) To force an[...]
-
Page 241
8. Function Commands BREAK, BREAKP - 232 - { BREAK, BREAKP ... Forced end of FOR to NEXT loop Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { P { 5 Com m a n d BRE AK D Pn D Pn Setti ng data Pn Nu m ber of dev i ce to store th e n u mber o[...]
-
Page 242
8. Function Commands BREAK, BREAKP - 233 - Program example (1) Program to force FOR to NEXT loop to end w hen D0 data reaches 30, that is, FOR to NEXT loop has been executed 30 times. Coding No. of steps Com- mand Device 10 LD M30 11 MOV K0 D0 14 FOR K100 19 LD M30 20 INC D0 22 LD= D0 K30 25 BREAKP D1 P0 36 NEXT 10 14 19 22 36 40 M3 0 M3 0 M OV K 0[...]
-
Page 243
8. Function Commands WAND, WANDP - 234 - { WAND, WANDP ... Logical AND of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 S1 { { { { { { { { { { { { { { { { { { S2 { {[...]
-
Page 244
8. Function Commands WAND, WANDP - 235 - (2) The bits other than designated digit are operated as 0. (Refer to program example (2).) Execution conditions The execution conditions for WAND, WANDP are as follows. O pe r a t io n c o m m a nd O FF WA N D ON Ex ecuted pe r scan Ex ecuted pe r scan WA N D P Program example (1) Program to execute logical[...]
-
Page 245
8. Function Commands DAND, DANDP - 236 - { DAND, DANDP ... Logical AND of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/4 S1 { { { { { { { { { { { { { { { { { { S2 {[...]
-
Page 246
8. Function Commands DAND, DANDP - 237 - Execution conditions The execution conditions for the DAND, DANDP are as follows. Operation comm and OFF DAND ON Ex ecuted pe r scan Ex ecuted pe r scan DA NDP Program example (1) Program to execute logical AND of the X 30 to 47 24-bit data and D99, 100 data when X8 turns ON, and to transmit the results to M[...]
-
Page 247
8. Function Commands WOR, WORP - 238 - { WOR, WORP ... Logical OR of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 S1 { { { { { { { { { { { { { { { { { { S2 { { { { [...]
-
Page 248
8. Function Commands WOR, WORP - 239 - Execution conditions The execution conditions for WOR, WORP are as follows. O pe r a t io n c o m m a nd O FF WOR ON Ex ecuted pe r scan Ex ecuted pe r scan WOR P Program example (1) Program to execute logical OR of the D 10 data and D20 data when XA turns ON, and to store the result in D33. Coding No. of step[...]
-
Page 249
8. Function Commands DOR, DORP - 240 - { DOR, DORP ... Logical OR of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/4 S1 { { { { { { { { { { { { { { { { { { S2 { { { [...]
-
Page 250
8. Function Commands DOR, DORP - 241 - Execution conditions The execution conditions for DOR, DORP are as follows. O pe r a t io n c o m m a nd O FF DOR ON Ex ecuted pe r scan Ex ecuted pe r scan DORP Program example (1) Program to execute logical OR of the X0 to 1F 32-bit data and the F0FF hexadecimal when XB turns ON, and to store the results in [...]
-
Page 251
8. Function Commands WXOR, WXORP - 242 - { WXOR, WXORP ... Exclusive OR of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 S1 { { { { { { { { { { { { { { { { { { S2 { [...]
-
Page 252
8. Function Commands WXOR, WXORP - 243 - Execution conditions The execution conditions for WXOR, WXORP are as follows. O pe r a t io n c o m m a nd OF F WX O R ON Ex ecuted pe r scan Ex ecuted pe r scan WX O R P Program example (1) Program to execute exclusive OR of the D10 data and D20 data when XA turns ON, and to store the results in D33. Coding[...]
-
Page 253
8. Function Commands DXOR, DXORP - 244 - { DXOR, DXORP ... Exclusive OR of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/4 S1 { { { { { { { { { { { { { { { { { { S2 [...]
-
Page 254
8. Function Commands DXOR, DXORP - 245 - Execution conditions The execution conditions for DXOR, DXORP are as follows. Operation comm and OFF DXOR ON Ex ecuted pe r scan Ex ecuted pe r scan DX ORP Program example (1) Program to compare the X20 to 3F 32-bit data and the D9, 10 data when X6 turns ON, and to store the No. of unmatched bits in D16. K8 [...]
-
Page 255
8. Function Commands WXNR, WXNRP - 246 - { WXNR, WXNRP ... Non-exclusive OR of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 S1 { { { { { { { { { { { { { { { { { { S[...]
-
Page 256
8. Function Commands WXNR, WXNRP - 247 - Execution conditions The execution conditions for WXNR, WXNRP are as follows. O pe r a t io n c o m m a nd OF F WX N R ON Ex ecuted pe r scan Ex ecuted pe r scan WX N R P Program example (1) Program to execute non-exclusive OR of the D10 data and D20 data when XA turns ON, and to store the results in D33. Co[...]
-
Page 257
8. Function Commands DXNR, DXNRP - 248 - { DXNR, DXNRP ... Non-exclusive OR of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3/4 S1 { { { { { { { { { { { { { { { { { {[...]
-
Page 258
8. Function Commands DXNR, DXNRP - 249 - Execution conditions The execution conditions for DXNR, DXNRP are as follows. Operation comm and OFF DX NR ON Ex ecuted pe r scan Ex ecuted pe r scan DXNRP Program example (1) Program to compare the X20 to 3F 32-bit data and the D9, 10 data when X6 turns ON, and to store the No. of matched bits in D16. K8 X [...]
-
Page 259
8. Function Commands ROR, RORP - 250 - { ROR, RORP ... Right rotation of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 ROR Righ t rotation com m and n D Settin g dat[...]
-
Page 260
8. Function Commands ROR, RORP - 251 - Program example (1) Program to rotate the D10 data 3 bits to the right when M0 turns ON. Coding No. of steps Com- mand Device 10 LD M0 11 ROR D10 K3 D1 0 ROR K3 M0 10 ( Puls e c o d ing ) 14 B 1 5 B 1 4 B 1 3 B 1 2 B 1 1 B 1 0 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 0 00 0 0 0 0 0 00 0 0 00 0 1 1 10 0 0 0 0 00 0 0 0 0 0[...]
-
Page 261
8. Function Commands RCR, RCRP - 252 - { RCR, RCRP ... Right rotation of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 RCR Righ t rotation com m and n D RCRP n D RCR[...]
-
Page 262
8. Function Commands RCR, RCRP - 253 - Program example (1) Program to rotate the D10 data 3 bits to the right when M0 turns ON. Coding No. of steps Com- mand Device 10 LD M0 11 RCR D10 K3 D1 0 RCR K3 M0 10 (pul se codi n g) 14 B15 B14 B13B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 1 Carry fl ag (SM12) D10 before ex ecuti on D10 after execu ti on 0 0 T[...]
-
Page 263
8. Function Commands DROR, DRORP - 254 - { DROR, DRORP ... Right rotation of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 DROR Righ t rotation com m and n D Setti n[...]
-
Page 264
8. Function Commands DROR, DRORP - 255 - Program example (1) Program to rotate the D10, 11 data 3 bits to the right when M0 turns ON. Coding No. of steps Com- mand Device 10 LD XA 11 DMOV K1 D10 15 LD M0 16 DROR D10 K3 K1 DM OV D1 0 XA 10 D1 0 DROR K3 M0 15 (pu lse codi n g) 19 After exe cution Tr a ns it ion Carr y f lag ( SM12 ) B1 5 B31 B30 [...]
-
Page 265
8. Function Commands DRCR, DRCRP - 256 - { DRCR, DRCRP ... Right rotation of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 DR CR Righ t rotation com m and n D Settin[...]
-
Page 266
8. Function Commands DRCR, DRCRP - 257 - Program example (1) Program to rotate the D10, 11 data 3 bits to the right when M0 turns ON. Coding No. of steps Com- mand Device 10 LD XA 11 DMOV K1 D10 15 LD M0 16 DRCR D10 K3 K1 DMOV D10 XA D1 0 DRCR K3 M0 ( p ulse c o d ing ) 10 15 19 Before exec ution After ex ecu tion Transit ion Carry flag ( SM 12 ?[...]
-
Page 267
8. Function Commands ROL, ROLP - 258 - { ROL, ROLP ... Left rotation of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 RO L Left rotati on comm and n D RO L RO LP ROL[...]
-
Page 268
8. Function Commands ROL, ROLP - 259 - Program example Program to rotate the D10 data 3 bits to the left when M0 turns ON. Coding No. of steps Com- mand Device 10 LD M0 11 ROL D10 K3 D1 0 RO L K3 M0 10 ( Puls e c o d ing ) 14 B 1 5 B 1 4 B 1 3 B 1 2 B 1 1 B 10 B9 B8 B7 B 6 B5 B4 B3 B2 B1 B0 10 0 00 0 0 0 0 0 0 00 0 0 0 1 000 0 0 0 0 00 0 00 0 00 1 [...]
-
Page 269
8. Function Commands RCL, RCLP - 260 - { RCL, RCLP ... Left rotation of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 RCL Left rotation com m and n D RCL RCLP RCLP n[...]
-
Page 270
8. Function Commands RCL, RCLP - 261 - Program example Program to rotate the D10 data 3 bits to the left when M0 turns ON. Coding No. of steps Com- mand Device 10 LD M0 11 RCL D10 K3 D1 0 RCL K3 M0 10 ( Puls e c o d ing ) 14 B 1 5 B 14 B 1 3 B 12 B 1 1 B 1 0 B9 B8 B7 B6 B5 B 4 B3 B2 B1 B0 10 0 00 0 00 0 0 0 00 0 0 0 1 0 0 00 00 0 00 0 0 0 0 00 * Ca[...]
-
Page 271
8. Function Commands DROL, DROLP - 262 - { DROL, DROLP ... Left rotation of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 DROL Left rotati on com m and n D DROL DR O[...]
-
Page 272
8. Function Commands DROL, DROLP - 263 - Program example Program to rotate the D10, 11 data 3 bits to the left when M0 turns ON. Coding No. of steps Com- mand Device 10 LD XA 11 DMOV H80000000 D0 15 LD M0 16 DROL D10 K3 H8000 0000 DM OV D1 0 XA 10 D1 0 DROL K3 M0 15 (Pu lse codi n g) 19 Be fore ex ecuti on After execution (n=3) Tr an s itio n Ca rr[...]
-
Page 273
8. Function Commands DRCL, DRCLP - 264 - { DRCL, DRCLP ... Left rotation of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 DRCL Left rotati on com m and n D DRCL DRC [...]
-
Page 274
8. Function Commands DRCL, DRCLP - 265 - Program example Program to rotate the D10, 11 data 3 bits to the left when M0 turns ON. Coding No. of steps Com- mand Device 10 LD XA 11 DMOV H80000000 D10 15 LD M0 16 DRCL D10 K3 H8000 0000 DMOV D1 0 XA 10 D1 0 DRCL K3 M0 15 (Pul se codi n g) 19 Before exe cuti on After execution ( n=3) T ran sit io n Carry[...]
-
Page 275
8. Function Commands SFR, SFRP - 266 - { SFR, SFRP ... Right shift of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { { 3 SFR Shi ft com m and n D SFRP n D SFR SFRP Setti [...]
-
Page 276
8. Function Commands SFR, SFRP - 267 - Execution conditions The execution conditions for SFR, SFRP are as shown below. Ri ght sh i ft comm and OFF SFR ON Ex ecuted pe r scan Ex ecuted pe r scan SFRP Program example Program that shifts the D8 data 5 bits to the right when M10 turns ON. Coding No. of steps Com- mand Device 10 LD M10 11 SFR D8 K5 D8 S[...]
-
Page 277
8. Function Commands DSFR, DSFRP - 268 - { DSFR, DSFRP ... Right shift of w ord device in batch Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { n { { { { { { { { { { 4 DSFR Shi ft com m and n D Settin g data n D Shi ft ran ge DSFR DSFR P D[...]
-
Page 278
8. Function Commands DSFR, DSFRP - 269 - Program example (1) Program to shift the D668 to 689 data to the right when M10 turns ON. Coding No. of steps Com- mand Device 10 LD M10 11 DSFR D683 K7 D68 3 DSFR K7 M10 10 (Pu lse codi n g) 15 Before ex ecuti on Af ter ex ecu ti on 0 D68 3 0 Design ati on ran ge of DSFR com m and D68 9 D68 8 D68 7 D68 6 D6[...]
-
Page 279
8. Function Commands SFL, SFLP - 270 - { SFL, SFLP ... Left shift of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { { { { { { { n { { { { { { { { { { { { { { { { { { { 3 SF L Shi ft com m and n D SF L SF LP SF LP n D Setti[...]
-
Page 280
8. Function Commands SFL, SFLP - 271 - Execution conditions The execution conditions for SF L, SFLP are as shown below. Left sh ift com m and OFF SF L ON Ex ecuted pe r scan Ex e cuted pe r scan SFLP Program example (1) Program that shifts the D8 data 5 bits to the left when M10 turns ON. Coding No. of steps Com- mand Device 10 LD M10 11 SFL D8 K5 [...]
-
Page 281
8. Function Commands DSFL, DSFLP - 272 - { DSFL, DSFLP ... Left shift of w ord device in batch Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { n { { { { { { { { { { 4 DSFL Sh i ft c o mma n d n D DSFL DS FL P DS FL P n D Setti ng data n D [...]
-
Page 282
8. Function Commands DSFL, DSFLP - 273 - Program example (1) Program to shift the D683 to 689 data to the left when M10 turns ON. Coding No. of steps Com- mand Device 10 LD M10 11 DSFL D683 K7 D6 83 DSFL K7 M10 10 (pu lse codi n g) 15 Before ex ecu tion After ex ecuti on 0 D68 3 0 De s ig na t io n r a ng e o f D SF L c o m m a nd D68 9 D68 8 D68 7[...]
-
Page 283
8. Function Commands SER, SERP - 274 - { SER, SERP ... Search of 16-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { S2 { { { { { { { D { { { { { { { { n { { { { { { { { { { 6 SE R D S1 n S2 Search comm and Setti ng data S2 S1 N[...]
-
Page 284
8. Function Commands SER, SERP - 275 - Program example Program to compare the D883 to D887 data with "123" when XB turns ON. Coding No. of steps Com- mand Device 10 LD XB 11 SER D0 D883 D10 K5 SE R D8 83 D0 D 10 K5 XB 10 17 M at ch ed dat a Searc h res u lts D1 0 D1 1 3 2 12 3 12 3 12 3 20 50 0 10 12 3 D88 2 D88 3 D88 4 D88 5 D88 6 D88 7 [...]
-
Page 285
8. Function Commands DSER, DSERP - 276 - { DSER, DSERP ... Search of 32-bit data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { S2 { { { { { { { D { { { { { { { { n { { { { { { { { { { 6 DSER D S1 n S2 Search comm and Setti ng data S2 [...]
-
Page 286
8. Function Commands DSER, DSERP - 277 - Program example Program to compare the D884 to D893 data with "123" when XB turns ON. Coding No. of steps Com- mand Device 10 LD XB 11 DSER D0 D884 D10 K5 DSER D8 84 D0 D 10 K5 XB 10 17 12 3 Sear c h dat a D1, D0 data Mat c h ed dat a Sear ch re su lt s D1 0 D1 1 3 2 12 3 12 3 12 3 20 50 0 10 12 3 [...]
-
Page 287
8. Function Commands SUM, SUMP - 278 - { SUM, SUMP ... Count of No . of 16-bit data set to 1 Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { D { { { { { { { { 4 SUM Operati on comm and D S SUM SUMP SUM P D S Settin g data D Head No. of dev[...]
-
Page 288
8. Function Commands SUM, SUMP - 279 - Program example Program to obtain the No. of D10 data bits that are set to ON (1) when XB turns ON. Coding No. of steps Com- mand Device 10 LD XB 11 SUM D10 D20 D1 0 SUM D2 0 XB 10 15 D1 0 D2 0 01 10 1 0 0 0 0 0 0 1 10 1 0 B15 …………… … …………… …………… … B0 Th e total No. of bi ts s[...]
-
Page 289
8. Function Commands DSUM, DSUMP - 280 - { DSUM, DSUMP ... Count of No. of 32-bit data set to "1" Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { D { { { { { { { { 4 DS UM Operati on comm and D S DS UM DSU M P DS UMP D S Settin g[...]
-
Page 290
8. Function Commands DSUM, DSUMP - 281 - Program example Program to obtain the No. of D10, D11 data bi ts that are set to ON (1) when XB turns ON. Coding No. of steps Com- mand Device 10 LD XB 11 DSUM D10 D20 D1 0 DS UM D2 0 XB 10 15 D10, D11 D20 01 10 1 0 0 0 0 0 0 1 11 0 B3 1 …… ……… ……… ……… ……… ……… B0 The total N[...]
-
Page 291
8. Function Commands DECO, DECOP - 282 - { DECO, DECOP ... 8 256 bit decoding Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { D { { { { { { { n { { { { { { { { { { 5 DECO D S n Decode com m an d DECO DE CO P DE CO P D S n Settin g data D[...]
-
Page 292
8. Function Commands DECO, DECOP - 283 - Program example (1) Program to decode the three bits 0 to 2 of R20, and turn the bits corresponding in D100 ON. Coding No. of steps Com- mand Device 10 LD X0 11 DECO R20 D100 K3 DECO D100 R2 0 K3 X0 10 16 B 1 5 B 14 B 1 3 B 1 2 B 11 B 1 0 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 00000 100000 0 0 11 1 B 1 5 B 14 B 1 3 B[...]
-
Page 293
8. Function Commands S.BDECO - 284 - { S.BDECO ... BCD data decoding Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { D { { { { { { { 4 Decode comm and S. BD EC O D S Setti n g dat a D S No. of devi ce wh ere data to be decoded is se t. H[...]
-
Page 294
8. Function Commands S.BDECO - 285 - Program example (1) Program to convert the low-order 8 bits (BCD) of R20 to the BIN data, and to store the results obtained by decoding in D10 to D25 data Coding No. of steps Com- mand Device 10 LD X0 11 S.BDECO R22 D10 X0 S.BDEC O R20 D10 10 15 B15 B14 B13 B12 B1 1 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 0 0 0 0 0 0 [...]
-
Page 295
8. Function Commands SEG, SEGP - 286 - { SEG, SEGP ... Decoding to 7-segment display data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { { { { { { { { { { D { { { { { { { { { { { { { { { { { 3 SEG Decode com m an d D S SEG SEGP SEGP D[...]
-
Page 296
8. Function Commands SEG, SEGP - 287 - 7-segment decode table S Co nf ig ur a t io n o f 7-se gme n t Bi t pattern D Di spla y data B0 B1 B2 B3 B4 B5 B6 B7 B6 B5 B4 B3 B2 B1 B0 F E D C B A 9 8 7 6 5 4 3 2 1 0 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 1 0 1 0 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 1[...]
-
Page 297
8. Function Commands ENCO, ENCOP - 288 - { ENCO, ENCOP ... 256 8 bit encoding Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { D { { { { { { { n { { { { { { { { { { 5 ENCO D S n En code comm and ENCO EN CO P EN CO P D S n Settin g data D S [...]
-
Page 298
8. Function Commands ENCO, ENCOP - 289 - Program example (1) Program to encode the eight bits 0 to 7 of R20, and turn the bits corresponding in D100 ON. Coding No. of steps Com- mand Device 10 LD X0 11 ENCO R20 D100 K3 ENCO D10 0 R2 0 K3 X0 10 16 0 0 B15 ・・・・ ・・・・・・ ・ ・・ B7 B6 B5 B4 B3 B2 B1 B0 B15 ・・・・・・・ ?[...]
-
Page 299
8. Function Commands S.AVE - 290 - { S.AVE ... Calculation of average value Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { D { { { { { { { { n { { 5 S.AVE D S n A vera ge v al ue com m an d Setti n g data D S Head No. of de v i ce w her e[...]
-
Page 300
8. Function Commands S.AVE - 291 - Program example (1) Program to average the details of D882 to D888 when XB turns ON, and to output the results to D0. Coding No. of steps Com- mand Device 10 LD XB 11 S.AVE D882 D0 K7 S. AVE D0 D8 82 K7 XB 10 16 D8 82 D8 83 D8 84 D8 85 D8 86 D8 87 D8 88 123 10 123 500 20 123 123 7 data items 146 D0 Av erage v al u[...]
-
Page 301
8. Function Commands S.STC, S.CLC - 292 - { S.STC, S.CLC ... Setting/resetting of carry flag Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps 1 S. S T C (Setti ng of carry fl ag) S.S TC S.CL C I npu t of carry fl ag set I n pu t of carry f l ag reset (rese[...]
-
Page 302
8. Function Commands S.STC, S.CLC - 293 - Program example Program to add the D2 data and D0 data when M0 turn s ON and to turn the carry flag (SM12) ON if the results exceed 32767. If the results are 32767 or less, the carry flag is turned OFF. > D1 D0 24 > D1 D2 M1 S. CL C S.S TC M1 15 D0 D1 M0 10 D2 M1 22 A dd th e D2 an d D0 d ata, and st [...]
-
Page 303
8. Function Commands LDBIT, ANDBIT, ORBIT - 294 - { LDBIT, ANDBIT, ORBIT ... Bit test of "A" contact handling Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { n { (Note) { (Note) 2 OR BI T AND B IT LD BI T < = n S1 < = n[...]
-
Page 304
8. Function Commands LDBIT, ANDBIT, ORBIT - 295 - Program example (1) Program to test bit 3 of D10. Coding No. of steps Com- mand Device 10 LD<= D10 K3 12 OUT Y33 10 < = K3 D1 0 Y3 3 13 (2) Program to test bit 15 of D10. Coding No. of steps Com- mand Device 10 LD M3 11 AND<= D10 K15 10 < = K15 D1 0 Y3 3 M3 13 OUT Y33 14 (3) Program to t[...]
-
Page 305
8. Function Commands LDBII, ANDBII, ORBII - 296 - { LDBII, ANDBII, ORBII ... Bit test of "B" contact handling Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { { n { (Note) { (Note) 2 ORBI I AND B II LDBI I < > n S1 < &g[...]
-
Page 306
8. Function Commands LDBII, ANDBII, ORBII - 297 - Program example (1) Program to test bit 3 of D10. Coding No. of steps Com- mand Device 10 LD<> D10 K3 12 OUT Y33 10 < > K3 D1 0 Y3 3 13 (2) Program to test bit 15 of D10. Coding No. of steps Com- mand Device 10 LD M3 11 AND<> D10 K15 10 < > K15 D1 0 Y3 3 M3 13 OUT Y33 14 (3) [...]
-
Page 307
8. Function Commands BSET, BSETP - 298 - { BSET, BSETP ... Bit setting of w ord device Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { n { { 2 BSET Bi t set co m m an d n D BSE T BSET P B SET P n D Setti n g data D No. of devi ce to se[...]
-
Page 308
8. Function Commands BSET, BSETP - 299 - Program example (1) Program to reset 8th bit (to 0) of D8 when XB turns OFF, and to set 3rd bit (to 1) of D8 when XB turns ON. 10 BR ST D8 K8 X0 B 19 BSET D 8 K3 X 0 B P P Re s e t 8 th bit o f D 8 . S et 3 rd b i t o f D 8 . Coding No. of steps Com- mand Device 10 LDI X0B 11 BRSTP D8 K8 19 LD X0B 20 BSETP D[...]
-
Page 309
8. Function Commands BRST, BRSTP - 300 - { BRST, BRSTP ... Bit resetting of w ord device Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps D { { { { { { { { { n { { 2 BRST Bi t reset comm and n D BRST BRSTP BRSTP n D Setti n g data D No. of de vi ce to rese[...]
-
Page 310
8. Function Commands BRST, BRSTP - 301 - Program example (1) Program to reset 8th bit (to 0) of D8 when XB turns OFF, and to set 3rd bit (to 1) of D8 when XB turns ON. 10 BR ST D8 K8 X0 B 19 BSET D 8 K3 X 0 B P P Re s e t 8 th bit o f D 8 . S et 3 rd b i t o f D 8 . Coding No. of steps Com- mand Device 10 LDI X0B 11 BRSTP D8 K8 19 LD X0B 20 BSETP D[...]
-
Page 311
- 302 -[...]
-
Page 312
9. Exclusive Commands 1 - 303 - 9. Exclusive Commands 1 Although the basic and functional commands are not used only for specific purposes, some commands may be efficient if command applicati ons such as data transfer between under PLC and controller and controller display screen are limited. Then, we provide a number of exclus ive commands which a[...]
-
Page 313
9. Exclusive Commands 1 FROM, TO - 304 - { FROM, TO ... Reading from buffer memory / Writing to buffer memory Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps n1 { { { { { { { n2 { { { { { { { Dn { { { { { { { { { { { { { n3 { { { { { { { 5 Setting dat a ([...]
-
Page 314
9. Exclusive Commands 1 FROM, TO - 305 - Execution conditions The execution conditions for FROM, TO are as shown below. ON Command Executed per scan FROM TO Executed per scan OFF Program example (1) To read 32 words of data in Area 2 of the FL-net unit (buffer memory address 2000H) and write them into D0 to D31 of data register. (When the I/O numbe[...]
-
Page 315
9. Exclusive Commands 1 FROM, TO - 306 - Restrictions in Using FROM/TO Command Using FROM/TO command by the built-in PL C in C6/C64 has the restrictions below. (1) The number of FROM and TO commands that can be used in one scan (including multiple program) is 50 each. Using more than 50 w ill cause the alarm "Q01 EMERGENCY STOP LAD 0005",[...]
-
Page 316
9. Exclusive Commands 1 FROM, TO - 307 -[...]
-
Page 317
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 308 - { READ, SREAD, WRITE, SWRITE ... Transient command Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { S2 { { { { { { { D1 { { { { { { { D2 { { { { { { { { 6/12 S1 { { { { { { { S2 { [...]
-
Page 318
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 309 - Function READ/SREAD Reads the word device data of the desi gnated station out to the local station. SREAD turns the target station device ON at r ead completion, that enables the target station to confirm the data has been read out. (1) Control data [Control data composition (S1)] Data set [...]
-
Page 319
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 310 - Device Item Set data Setting range Set by (S1)+1 Completion status Store the status at completion of a command. 0 : Normal Other than 0 : Error (error code) — System (S1)+2 Channel used by the local station Designate the channel used by the local station. 1 to 8 User (S1)+3 (Not used) —[...]
-
Page 320
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 311 - Device Item Set data Setting range Set by (S1)+16 Error detection network No. Stores the network number of the station that detected an error. However, it is not stored when the completion status of (S1)+1 is "Channel in use (C085H)." 1 to 239 (Network No.) 1 to 239 System (S1)+17[...]
-
Page 321
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 312 - Control data Device Item Set data Setting range Set by Execution type b15 ~ b7 ~ b0 0 (2) 0 (1) (1) Execution type (bit 0) 0:No arrival confirmation When the target station is on the same network: Completed when the data is sent from the local station. Execution source Completion Target sta[...]
-
Page 322
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 313 - Device Item Set data Setting range Set by (S1)+4 Target station network No. Designate the network No. of the target station. 1 to 239:Network No. 254:When 254 is designated in "Un" 1 to 239, 254 User (S1)+5 Target station No. Designate the target station. 1 to 64 : The station wit[...]
-
Page 323
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 314 - Device Item Set data Setting range Set by (S1)+13 Date/Hour of error occurrence Higher 8 bits : hour (00H to 23H), lower 8 bits : date (01H to 31H) b15 to b8 b7 to b0 Hour (00H to 23H) Date (01H to 31H) — Sys te m (S1)+14 Minute/Second of error occurrence Higher 8 bits : second (00H to 59[...]
-
Page 324
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 315 - Program example Reading the data stored in D10 to D14 of the st ation 4 into D200 to D204 of the station 1. ( → Refer to (a).) Writing the data stored in D300 to D304 of the st ation 2 into D50 to D53 of the station 3. ( → Refer to (b).) QnA(R)CPU AX40 A Y40 A J71 QLP21 Channel 3 D200 D[...]
-
Page 325
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 316 - (a) Program of Ch.1 (READ command) To execute the program as below, apply the interlock. MOV H81 D0 MOV K3 D2 MOV K2 0 D4 MOV K4 D5 MOV K5 D7 MOV K2 0 D8 MOV K5 D9 Command t o set contro l dat a Read command G .READ U20 D0 D10 D200 M0 M0 Process i ng at read completi on Process i ng at norm[...]
-
Page 326
9. Exclusive Commands 1 READ, SREAD, WRITE, SWRITE - 317 - (b) Program of Ch.2 (WRITE command) To execute the program as below, apply the interlock. MOV K3 D 5 MOV K5 D 7 MOV K2 0 D8 MOV K4 D 9 Command t o set contro l dat a MOV H81 D0 MOV K6 D 2 MOV K2 0 D4 Write comm and G .SW RITE U20 D0 D30 0 D50 M60 M1 00 M60 P rocessing at write compl etion P[...]
-
Page 327
9. Exclusive Commands 1 RIRD, RIWT - 318 - { RIRD, RIWT ... Read/Write the device data Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { D1 { { { { { { { D2 { { { { { { { { 5/11 RIRD/RIW T Command G .RIRD Un S1 D1 D2 GP .RIW T Un S1 D1 D2 RI[...]
-
Page 328
9. Exclusive Commands 1 RIRD, RIWT - 319 - Function RIRD Reads the device data from the designated station CPU. (1) Control data Device Item Set data Setting range Set by (*1) (S) + 0 Completion status Stores the status when the command is complete. 0 : No error (normal completion) Other than 0 : Error code — System (S) + 1 Station number Designa[...]
-
Page 329
9. Exclusive Commands 1 RIRD, RIWT - 320 - RIWT Writes the device data to the designated station CPU. (1) Control data Device Item Set data Setting range Set by (*1) (S) + 0 Completion status Stores the status when the command is complete. 0 : No error (normal completion) Other than 0 : Error code — System (S) + 1 Station number Designate the st [...]
-
Page 330
9. Exclusive Commands 1 RIRD, RIWT - 321 - Execution conditions The execution conditions for RIRD, RIWT are as shown below. Executed per scan Command OFF G .RIRD,G .RIWT Executed per scan GP .RIRD,GP .RIWT ON Program example Program to read out the D100 to D103 data of the local station 2nd channel. Coding No. of steps Com- mand Device 10 LD 11 ANI[...]
-
Page 331
9. Exclusive Commands 1 OPEN - 322 - { OPEN ... Opens a connection Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { D1 { { { { { { D2 { { { { { { { 12 Setting dat a Det ails Dat a type "Un" Hea d input/output No. for Ethernet I/[...]
-
Page 332
9. Exclusive Commands 1 OPEN - 323 - Device Item Setting dat a Setting range Setting side (S2) + 3 Blank 0 (S2) + 4 to (S2) + 5 Client device IP address Designate the client device's IP address. (Set 0 × A8C00101 for IP = 168.192.1.1) 1 H to FFFFFFFF H User (S2) + 6 Client device port No. Designate the port No. for the client device. 1025 to [...]
-
Page 333
9. Exclusive Commands 1 OPEN - 324 - Execution conditions The execution condition for OPEN is as shown below. Command OFF OPEN ON Program example Program to open a connection to send dat a with port No. :6000 and connection No.:5. ZP .OPEN "U20" K5 D10 0 M150 14 No. of steps Command Device 1 MOPV H8000 D100 4 MOV H100 D102 7 DMOV H0C0A801[...]
-
Page 334
9. Exclusive Commands 1 OPEN - 325 -[...]
-
Page 335
9. Exclusive Commands 1 CLOSE - 326 - { CLOSE ... Close the connection Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S { { { { { { { { D1 { { { { { { D2 { { { { { { { 12 Setting dat a Det ails Dat a type "Un" Hea d input/output No. for Etherne[...]
-
Page 336
9. Exclusive Commands 1 CLOSE - 327 - Program example ZP .CLOSE "U20" K5 D130 M170 10 M340 No. of steps Command Device 10 LD M340 11 ZP.CLOSE "U20" K5 D130 M170 23 Cautions (1) Even if the dedicated commands (OPEN, CLO SE, BUFSND, BUFRCV) are executed with the high-speed PLC, the actual operation will take place at the same timi[...]
-
Page 337
9. Exclusive Commands 1 BUFSND - 328 - { BUFSND ... Data transmission (for fixed–buffer communication) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { S2 { { { { { { S3 { { { { { { D1 { { { { { { { 13 Setting dat a Det ails Dat a type[...]
-
Page 338
9. Exclusive Commands 1 BUFSND - 329 - Execution conditions The execution condition for BUFSND is as shown below. Command OFF BUFSND ON Program example The program to send a connection to send in R500 and above with the port No. :6000 and the connection No.:5. ZP .BUFSND " U20 " K5 D220 M160 R500 27 M302 No. of steps Command Device 27 LD [...]
-
Page 339
9. Exclusive Commands 1 BUFSND - 330 - Example of data communication program The following is an example of the program t hat executes sending (BUFSND) and receiving (BUFRCV). UDP/IP, non-procedural type are used for both commands. The send destination IP address is 192.168.1.3, and the applicable port No. is 6000. Connection 5 is used. In the actu[...]
-
Page 340
9. Exclusive Commands 1 BUFSND - 331 - Recept’n OPEN execut ’n st pulse Recept’n OPENcm nd clnt dev port No. Recept’n at conn- ection 1 BUFRCV error complet. status Recept’n OPENcmnd execut’ n type Recept’n OPEN complete status BUFRCV control data BUFRC V normal complet. pulse Recept’n OPENcm nd applica - tion set Recept’n OPENcm [...]
-
Page 341
9. Exclusive Commands 1 BUFRCV - 332 - { BUFRCV ... Data reception (for fixed–buffer communication) Usable device Bit device Word dev ice Con- stant Pointer X Y M L F B S B T S M V T CDRW S W Z S D K H P Digit desig- nation Index No. of steps S1 { { { { { { { { S2 { { { { { { D1 { { { { { { D2 { { { { { { { 13 Setting dat a Det ails Dat a type &q[...]
-
Page 342
9. Exclusive Commands 1 BUFRCV - 333 - Execution conditions The execution condition for BUFRCV is as shown below. Command OFF BUFRCV ON Program example The program to receive data stored in R600 and above with the port No. :6001 and the connection No.:1. ZP .BUFRCV “U20” K1 D120 M260 R600 27 No. of steps Command Device 27 LD M302 28 ZP.BUFRCV &[...]
-
Page 343
10. Exclusive Commands 2 - 334 - 10. Exclusive Commands 2 Although the basic and functional commands are not used only for specific purposes, some commands may be efficient if command applicati ons such as data transfer between under PLC and controller and controller display screen are limited. Then, we provide a number of exclus ive commands which[...]
-
Page 344
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 335 - 10.1 ATC Exclusive Command 10.1.1 Outline of ATC Control The ATC (Automatic Tool Change) can be controlled in the following two ways: (1) Mechanical random control With the information of magazine position from the machine, and T comm and, the control system determines the direction of mag[...]
-
Page 345
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 336 - 10.1.4 Relationship between Tool Registration Screen and Magazines When the floating pointer system or tool table rotation system is selected on the tool registration screen, correspondence display between the magazi nes and tools changes each time the magazine rotates; when the fixed poin[...]
-
Page 346
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 337 - 10.1.5 Use of ATC and ROT Commands The use order of the ATC and ROT commands during the T command or tool change command is shown below: The relationship between the tool number s earch command and rotary body indexing command when the tool table rotation system or floati ng pointer system[...]
-
Page 347
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 338 - (1) Index tool number 8 in the situation shown above (a) In the tool table rotation system , the tool number search command outputs 3. (b) In the floating pointer system, the tool number search command outputs 7. (2) The tool number search command output result is used by the rotary body i[...]
-
Page 348
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 339 - 10.1.7 Command List Command Description S.ATC K1 Rn Rm Mn Tool No. search S.ATC K2 Rn Rm Mn Tool No. logical product search S.ATC K3 Rn Rm Mn Tool change S.ATC K4 Rn Rm Mn Random position tool change S.ATC K5 Rn Rm Mn Pointer forward rotation S.ATC K6 Rn Rm Mn Pointer reverse rotation S.AT[...]
-
Page 349
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 340 - 10.1.9 File Register (R Register) Assignment and Parameters (1) File registers for ATC control The file registers used with the ATC are as shown below. Corresponding file (R) register Magazine No. 1 magazine No. 2 magazine No. 3 magazine T4-digit/T8-digit specifications T4- digit T8- digit[...]
-
Page 350
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 341 - (2) Control parameter contents R4700 F E D C B A 9 8 76 5 4 32 1 0 M ax . n u mber of stan dby di spl ay ed: 4 0 : T 4-digi t 1 : T 8-digi t 0 : Magaz i n e starts from "1". 1 : Magaz i n e starts from "0". For details on the control parameters, refer to "1[...]
-
Page 351
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 342 - 10.1.10 Details of Each Command (1) Tool No. search This command is used to search for t ool No. stored in the tool data table. When the command tool No. is found, number of searched data and its location are output. If two or more tool No. are found, the location of tool No. nearest to th[...]
-
Page 352
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 343 - (2) Tool No. logical product (AND) search Tool number AND search is the same as the tool number search command (ATC K1) in function: search data and in-magazine tool number and A ND data are ANDed together for a search. Based on the o u tput resul t, th e rotation di recti on , th e n umbe[...]
-
Page 353
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 344 - (3) Tool change When a spindle tool and a magazine index tool are exchanged by the ATC ar m, etc., the contents in the memory (R register) must be updated correspondingly. S.A TC K3 AC T M1 0 R4710 R4000 R4000 R4001 R4715 R4750 R4751 R4758 R4720 4720 R4752 R4759 : 2 1001 (1) 1002 (2) 100[...]
-
Page 354
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 345 - (4) Random position tool change In tool change, a spindle tool is usually exc hanged with a magazine index tool. It may often occur, however, that tool change must be performed at a station other than the usual tool change position (tool change at auxiliary tool change position, for exampl[...]
-
Page 355
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 346 - (5) Pointer "FWD" rotation In the ATC control with floating pointer, pointer count is controlled so that it coincides with the actually indexed magazine position when the magaz ine rotates in "FWD" direction for index. R47 15 1 2 P o int e r is inc r e m e nt e d . R471[...]
-
Page 356
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 347 - (7) Tool table "FWD" rotation The tool table rotates in "FWD" directi on in accordance with the magazine rotation. R4750 1000 R4751 1001 :: :: R4760 1010 R4710 S.A T C K7 AC T M1 0 R4710 (Note 1) In th i s con trol m ode, poi nte r alw ay s i n dica tes "0&[...]
-
Page 357
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 348 - (9) Tool data read This command is used to call a s pecific tool No. in the magazine. 2 1000 (0) 1001 (1) 1002 (2) 1003 (3) : ( 8 ) 1009 (9) Regi ster No. to speci fy magaz in e No. to be read M agazi n e No. to be read is speci fied Po inter (Note) W hen poi nter i s n ot u sed, R4715 s[...]
-
Page 358
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 349 - (10) Tool data w rite Instead of setting tool No. through the setting and display unit, the tool No. is entered to each magazine No. set through PLC program. R4002 : : : : R4000 R4001 R4040 R4715 R4045 R4750 R4751 : : R4759 4040 4045 R4758 ( 5 ) 2 1000 (0) 1001 (1) 1002 (2) 100[...]
-
Page 359
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 350 - (11) Automatic tool data w rite All tool Nos. are written (entered) in batch . This command is used for initialization, etc. The data are written one after another for each tool, starting from the default value. 1000 2 1008 (0) 1009 (1) 1000 (2) 1001 (3) 1006 (8) 1007 (9) Regi ster No. wh [...]
-
Page 360
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 351 - 10.1.11 Precautions for Using ATC Exclusive Instructions (1) When tool data is rewritten by ATC or other than ATC command, tool registration screen display is not updated. The following processing is required: · Turn on special relay SM64 by using the SET command. Program example) ・ AC [...]
-
Page 361
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 352 - (1) Comment display part Comment in the comment display part is prepared by the user with the comment display function. Refer to the section "1.4 Creating PLC-related Data". (2) Spindle tool, standby tool display part The number of display items can be changed a ccording to the c[...]
-
Page 362
10. Exclusive Commands 2 10.1 ATC Exclusive Command - 353 - 10.1.13 Display of Spindle Tool and Standby Tool The tool mounted on the spindle or the tool to be mounted next on the spindl e (standby tool) and tool No. in the magazine are set and displayed on the t ool registration screen. However, the spindle and standby tool Nos. can also be di spla[...]
-
Page 363
10. Exclusive Commands 2 10.2 S.ROT Commands - 354 - 10.2 S.ROT Commands ROT commands are prepared as functions such as ro tary body target position, rotation direction and ring counter. The commands can be used to determine the direction of rotation and number of steps with the data resulting from ATC exclus ive command tool No. search processing.[...]
-
Page 364
10. Exclusive Commands 2 10.2 S.ROT Commands - 355 - (1) Rotary body indexing Direction of rotation and number of steps of ATC magazine (or turret) are determined automatically. Rn Rn+1 Rn+2 Rn+3 R p Param eter settin g R No. Curren t posi ti on R No. Target posi ti on R No. Ou tput R No. 4 3 15 14 7 6 5 4 3 2 1 0 Rp (param eter) conten ts (Spare) [...]
-
Page 365
10. Exclusive Commands 2 10.2 S.ROT Commands - 356 - (a) Example of rotary body index by ROT K1 instruction Conditions: (i) The number of rotary body index cycles is 6. (ii) The target position is specified by a T command. (Note) Normally the target position must be a binary, but in this example, the number of rotary body index cy cles is 1 to 6, a[...]
-
Page 366
10. Exclusive Commands 2 10.2 S.ROT Commands - 357 - AC T Rn S.ROT K1 Mm Rm 0 : CW 1 : CC W R nu mber to specify rotary body in dex cycles (R4011 i n thi s ex am ple) Top of con trol data bu ffer (R4000 in th i s ex ample) PLS M100 S.ROT K1 R4000 R4011 M200 <= R4010 H0F Completi on ci rcui t X3 4 M100 X2 38 M202 (M203) M200 M200 M 201 M 202 [...]
-
Page 367
10. Exclusive Commands 2 10.2 S.ROT Commands - 358 - (Note 1) Either M202 or M203 can be used for a stop signal. (Note 2) The devices (X, Y, and R) are used in this example for no special purpose. Use any device within the available range. (Note 3) If a number from 1 to 6 has not been specifi ed for current position data (R4012) before the ROT comm[...]
-
Page 368
10. Exclusive Commands 2 10.2 S.ROT Commands - 359 - (2) Ring counter (Up/dow n counter) This command is used to control position of rotary body (or turret). Com pl etion ("1" for error) Ring co unte r c o m m a nd Cycl es of index for rotary body are apecifi ed. Control data bu ffer locati on i s specifi ed. Rn Rn+1 Rp Parameter settin g[...]
-
Page 369
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 360 - 10.3 Tool Life Management Exclusive Command (When BASE SPEC parameter #1037 cmdtype is set to 1 or 2.) The following command is provided only for tool life management. (It is used for the machining centers.) 1. Spare tool selection ... TSRH R nu mber wh ere com m and tool [...]
-
Page 370
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 361 - 10.3.3 Spare Tool Selection System One of the following two can be selected by using a parameter for the spare t ool selection system of the spare tool selection command in tool life management II: (1) Selection in tool registration order (W hen BASE SPEC parameter #1105 T[...]
-
Page 371
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 362 - 10.3.5 User PLC Processing When the Tool Life Management Function Is Selected A PLC processing example when tool change is made by the T command is given below: ST ART Does T command exist? Is life management select ed? Read life management tool data based on the R220 cont[...]
-
Page 372
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 363 - (1) Procedure w hen tool command is executed (a) Tool life management I 1) When tool command (T command) is gi ven, the controller out puts T code data and start signal (TF). (Note) The T code data (BCD) is binary converted and then used. 2) The user PLC checks the tool co[...]
-
Page 373
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 364 - <When tool is changed> When tool is changed, the spindle tool num ber is set in R6350, R6351. (User PLC) W hen the spindle tool number changes , the controller as sum es that the spindle tool is c hanged, and searc hes the too l data f ile for the t ool dat a of the [...]
-
Page 374
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 365 - (3) Tool data flow (a) (b) (c) (d) R220 R221 R6500 R6501 R6502 R6503 R6504 R6505 R6506 R6507 R6508 R6509 R6510 R6511 R6350 R6351 R6352 R6353 R6354 R6355 R6356 R6357 R6358 R6359 R6360 R6361 R6362 R6363 R6364 R6365 TSRH R4000 R 6500 R4000 R4001 R6500. R6400 to R7199. R6350, [...]
-
Page 375
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 366 - (4) Tool data The tool data is tool managem ent data such as the group number , tool number, and tool status. The details are given below: Tool data name Explanation Data range Group number Number to manage tools of the same type (form and dimensions) in a group. The tools[...]
-
Page 376
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 367 - (5) Tool data flag and tool status The tool data flag and tool st atus contents are shown below: (a) Correspondence w ith tool life management data screen (b) Tool data flag ..... Bits 0~7 of file register Rn (such as R6358) bit Explanation bit 0 bit 1 Length compensation [...]
-
Page 377
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 368 - 1) Spare tool compensation system Tool compensation corresponding to the spindle tool can be made in tool life management II. One of the following three types of length and compensation can be selected by setting tool data: i) Compensation umber system (0 is set on the too[...]
-
Page 378
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 369 - (c) Tool status ..... Bits 8~F of file register Rn (such as R6358) bit Explanation bit 8 bit 9 bit A bit B Tool status (numeric data 0~4) 0: Unused tool 1: Used tool 2: Normal life tool 3: Tool error 1 tool 4: Tool error 2 tool bit C bit D bit E bit F (Reserved) (d) Tool s[...]
-
Page 379
10. Exclusive Commands 2 10.3 Tool Life Management Exclusive Command - 370 - 10.3.6 Examples of Tool Life Management Screen Tool life management screen examples are given below. For operation, refer to the Operation Manual. Screen example[...]
-
Page 380
10. Exclusive Commands 2 10.4 DDB (Direct Data Bus) - 371 - 10.4 DDB (Direct Data Bus) ... Asynchronous DDB The DDB function is used for PLC to directly read/wr ite various pieces of data that controller has. PLC can read specified data into buffer or write spec ified data into controlle r by storing necessary information for read/write and calling[...]
-
Page 381
10. Exclusive Commands 2 10.4 DDB (Direct Data Bus) - 372 - (1) Control signals (Rn), (Dn) F E D C B A 9 8 7 6 5 4 3 2 1 0 Warnin g o utput E rr or dur i ng c ho ppi ng ( not us ed) Si z e ov er N o . of ax es i l l e gal Lar ge s ec ti on No. er r or Write pr otec t E rror o ccurre nce N o opt io n 0: R ea d des i gn ati on 1: Wri te d es ign ati [...]
-
Page 382
10. Exclusive Commands 2 10.4 DDB (Direct Data Bus) - 373 - (6) Read/w rite data (Rn+6, Rn+7), (Dn+6, Dn+7) (LOW) (HIGH) (LOW) (HIGH) When data is read, the controlle r outputs data specified by PLC. When data is written, PLC sets the data to be written. Rn+6 Rn+7 (Dn+7) (Dn+6) Rn+6 Rn+7 (Dn+7) (Dn+6) Rn+6 Rn+7 (Dn+7) (Dn+6) 1-byte data 2-by te dat[...]
-
Page 383
10. Exclusive Commands 2 10.5 External Search - 374 - 10.5 External Search 10.5.1 Function When PLC specifies the program number, sequenc e number, and block number of a work program for the controller, the external search functi on searches memory for the program number, sequence number, and block number. Note that the external search from PLC hig[...]
-
Page 384
10. Exclusive Commands 2 10.5 External Search - 375 - (2) Status The search state is indicated. The status is set by the controller and is used by PLC for completion check, etc. F8 2 1 0 3 Search processin g Search com pl eti on Search error com pl etion Ex tern al se ar ch no op tio n <Error cau se> D at a s p e c ifi ca t io n e r ro r The [...]
-
Page 385
10. Exclusive Commands 2 10.5 External Search - 376 - 10.5.3 Search Start Instruction After interface data between the controller and PLC is prepared, search is started by using the following instruction: AC T S.DDBS R n (Rn i s an y fi le regi ster th at can be used by the user.) (Start con diti on ) 10.5.4 Timing Charts and Error Causes (1) Norma[...]
-
Page 386
10. Exclusive Commands 2 10.5 External Search - 377 - (3) Search error completion (Data specification error) Search start i n stru ction c o nd it io n Search processi n g Search com pl etion Da t a s p e cif ic a t io n e rr o r <Error cau se> ・ Program n umber and sequ ence nu mber are not specifi ed. ・ Program n umber or sequence num b[...]
-
Page 387
10. Exclusive Commands 2 10.5 External Search - 378 - 10.5.5 Sequence Program Example MO V R n +1 K4 M00 MOV Kon Rn+2 MO V Knn Rn+4 MO V Kbn Rn+6 MO V K1 Rn Sear ch s t ar t m em o Sear ch s tar t m em o M1 5 F15 RST M2 F2 RST MEM RST MEM Sear ch s tar t m em o Completion c ause Automatic oper at i on F15 F2 Ex tern al search status i s transferred[...]
-
Page 388
11. PLC Help Function - 379 - 11. PLC Help Function To help the user PLC, an exclusive interface is provided between the user PLC and controller or PLC basic. The function and interface are explained below. PLC help function examples: · Alarm message display · Operator message display · PLC switches · Key operation by user PLC · Load meter dis[...]
-
Page 389
11. PLC Help Function 11.1 Alarm Message Display - 380 - 11.1 Alarm Message Display The contents of an alarm that occu rred during sequence (user PLC) proce ssing can be displayed on the setting and display unit. Up to four alarm messages can be displayed at a time on the alarm diagnosis screen. T he maximum length of a message is 32 characters. 11[...]
-
Page 390
11. PLC Help Function 11.1 Alarm Message Display - 381 - (3) Alarm classification display Classification No. can be displayed following t he message to be displayed regardless of the F or R type. (Dn1~Dn4 in the figure) For example, one typical alarm message is prepared and classification No. can be used to indicate the alarm source or cause. Examp[...]
-
Page 391
11. PLC Help Function 11.1 Alarm Message Display - 382 - 11.1.3 F or R Type Selection Parameter Set the parameter on the bit selection scr een of PLC parameter (setup parameter). [Bit selection parameter screen] # (6450 ) D a t a ( 0 0 0 0 0 0 * 1 ) 7 6 5 4 3 2 1 0 0: F type interf ac e 1: R type int erf ace Use num ber 6450. Bit 0: Alarm m es sage[...]
-
Page 392
11. PLC Help Function 11.2 Operator Message Display - 383 - 11.2 Operator Message Display When a condition to inform the operator of a message occurs, an operator message can be displayed independently of an alarm message. A maximum of 60 characters can be display ed for the operator message on the alarm diagnosis screen. One operator message can b[...]
-
Page 393
11. PLC Help Function 11.2 Operator Message Display - 384 - 11.2.2 Operator Message Preparation Create messages by using PLC development software (GX Developer). According to the description format, set the num ber of characters for one message and the number of messages to be prepared, then prepare message data. The maximum length of an operator m[...]
-
Page 394
11. PLC Help Function 11.3 PLC Sw itches - 385 - 11.3 PLC Switches Similar function to machine operation switches can be provided by using the controller setting and display unit. The number of switch points is 32. The switch names can be given as desired. 11.3.1 Explanation of Screen The screen is explained below. PARAMETER SCREEN PLC SWITCH (MENU[...]
-
Page 395
11. PLC Help Function 11.3 PLC Sw itches - 386 - 11.3.2 Explanation of Operation To turn on or off a switch, set the number of the switch to be turned on or off in the parentheses of setting part # ( ) and press the INPU T C A L C key. Depending on the state of the switch, its input device R38, 39 is turned on (off) and accordingly the switch mark [...]
-
Page 396
11. PLC Help Function 11.3 PLC Sw itches - 387 - The table below shows the message displayed during operation on the PLC switch screen. No. Message Explanation Remedy E01 SETTING ERROR A number outside the allowable setting range from 1 to 32 is specified in # ( ). Specify a valid number within the range. 11.3.3 Signal Processing 4 Th e ch a[...]
-
Page 397
11. PLC Help Function 11.3 PLC Sw itches - 388 - The following shows an example of operation of special relay SM from the user PLC. (1) Two-point sw itch (Example) When two opposite switches, chip convey er manual and chip conveyer automatic, are provided; RST M 2 RST M 1 Always O N MOV K4M200 R138 M10 E M10F SM94 M2 0 F SM95 M20E RST M 2 M10 E M1 [...]
-
Page 398
11. PLC Help Function 11.3 PLC Sw itches - 389 - (2) Three-point switch (Example) When three opposite switches 17, 18, and 19 are provided; M20 0 M100 M10 1 M10 2 SET M3 SM96 RST M3 SET M4 SM 97 RST M4 SET M5 W hen SM 96 turn s on , R39 bi t0 turn s OFF. RST M4 RST M3 RST M5 M3 M4 SM 98 RST M5 M5 W hen SM 97 turn s on , R39 bi t1 turn s OFF. W hen [...]
-
Page 399
11. PLC Help Function 11.3 PLC Sw itches - 390 - (3) External sw itch and PLC sw itch (Example 1) When an external optional st op switch (X14) is provided; MOV R38 K4M100 Always O N X1 4 M 1 0 4 SET M8 RST M9 RST M8 RST M8 RST M9 PLS M7 M9 SET M9 PLS M6 SM83 M6 M7 M203 MOV K4M 200 R138 Always O N X1 4 M 1 0 4 X1 4 M 1 0 4 M8 X1 4 M 1 0 4 M6 Under s[...]
-
Page 400
11. PLC Help Function 11.3 PLC Sw itches - 391 - (Example 2) When an external switch (XC) that i nhibits a PLC switch handle interrupt is provided; M2 04 MO V R 38 K 4M1 00 Alwa ys O N XC M10 4 SM 84 MOV K4M 200 R138 Alwa ys ON XC M10 4 PLS M10 M1 0 Under sequence control in the above example, when the external switch (XC) is on, the PLC switch for[...]
-
Page 401
11. PLC Help Function 11.4 Key Operation by User PLC - 392 - 11.4 Key Operation by User PLC The same operation as if the operator perform ed key operation can be performed by operating key data by user PLC. 11.4.1 Key Data Flow R8 R1 12 User PLC (b) (c ) (a) (d) For moni tor Vali d key data processing ( C N C ) (a) Key data is set in file registers[...]
-
Page 402
11. PLC Help Function 11.4 Key Operation by User PLC - 393 - 11.4.3 Key Data Processing Timing Key data is processed at the timing shown below. Set data in R112 only when it is necessary. Normal key operation by the operator is made impossible. NU L L (00H) 100m s or lon ger (100 300m s is adequate.) NU L L (00H) Target k ey data i s set. I f no da[...]
-
Page 403
11. PLC Help Function 11.4 Key Operation by User PLC - 394 - 11.4.4 Layout of Keys on Communication Terminal The layouts for the keys on the communication terminal used with this contro ller is as shown below. (1) Key layout for setting and display unit (NC-dedicated display unit) M ITS UB I S HI READY MONI- TOR TO O L PARAM ED I T MDI DIAGN IN/ O [...]
-
Page 404
11. PLC Help Function 11.4 Key Operation by User PLC - 395 - 11.4.5 List of Key Codes Key sy mbol Code (HEX) Key symbol Code (HEX) Key sy mbol Code (HEX) Key symbol Code (HEX) MONITOR 80 ( ) 0B(F8) – (+) 2D(2B) O (A) 4F(41) TOOL/PARAM 81 ( ) 0A(F7) • (, ) 2E(2C) N (B) 4E(42) EDIT/MDI 83 ( ) 08 (F5) EOB ( ] ) 3B (5D) G (C) 47 (43) DIAGN IN/OUT 8[...]
-
Page 405
11. PLC Help Function 11.5 Load Meter Display - 396 - 11.5 Load Meter Display The load meter can be displayed by setting a value in the designated file regist er (R) with the ladder program. The spindle load, Z axis load, etc. char acters and scale are created with comments in the PLC development software (GX Developer) message function. For detail[...]
-
Page 406
11. PLC Help Function 11.5 Load Meter Display - 397 - File register (R) for load meter display For $1 For $2 For $3 For $4 For $5 For $6 For $7 Numerical display R942 R1042 R1142 R1242 R1342 R1442 R1542 Load meter 1 Bar graph display R943 R1043 R1143 R1243 R1343 R1443 R1543 Numerical display R944 R1044 R1144 R1244 R1344 R1444 R1544 Load meter 2 Bar[...]
-
Page 407
11. PLC Help Function 11.6 External Machine Coordinate System Compensation - 398 - 11.6 External Machine Coordinate System Compensation External machine coordinate system compens ation is executed by setting compensation data (absolute amount) in the PLC file register (R) for each axis. Thus, the compensation timing is when PLC rewrites file regist[...]
-
Page 408
11. PLC Help Function 11.7 User PLC Version Display - 399 - 11.7 User PLC Version Display The user PLC version can be displayed together with the controller software version on the DIAGN/IN/OUT menu changeover configuration (menu) screen of the setting and display unit. (Note) The user PLC must be controlled by the user. 11.7.1 Interface Data corre[...]
-
Page 409
11. PLC Help Function 11.7 User PLC Version Display - 400 - (2) To display a 3-digit version code R132 R133 R134 R135 Program example) R132 R133 R134 R135[...]
-
Page 410
12. PLC Axis Control 12.1 Outline - 401 - 12. PLC Axis Control 12.1 Outline This function allows an independent axis to be cont rolled with commands from the PLC, separately from the NC control axis. 12.2 Specifications 12.2.1 Basic Specifications Item Details No. of control axes Max. 7 axes Simultaneous control axes The PLC control axis is control[...]
-
Page 411
12. PLC Axis Control 12.2 Specifications - 402 - 12.2.2 Other Restrictions (1) There is no mirror image, external deceleration or machine lock function. (2) Rapid feed override, cutting override and dry run control are not possible. (3) Automatic operation start, automatic operation stop, reset and interlock NC controls are invalid for PLC control [...]
-
Page 412
12. PLC Axis Control 12.3 PLC Interface - 403 - 12.3 PLC Interface The interface between the PLC and NC is carried out by setting the control information data in the R-register (Note 1) with the PLC, and calling the S.DDBS function. 12.3.1 S.DDBS Function Command AC T S.DDBS R n (Note 1) When ACT is set to 1, the PLC axis control proce ss is carrie[...]
-
Page 413
12. PLC Axis Control 12.3 PLC Interface - 404 - 12.3.2 Control Information Data Set the control information data in the R-regist er before calling the S.DDBS function command. The following is a list of control information data. 2 bytes Comm and 2 bytes Status 2 bytes Alarm detai ls 2 bytes Control sign al 2 bytes Axis desi gnation 2 bytes Operatio[...]
-
Page 414
12. PLC Axis Control 12.3 PLC Interface - 405 - 12.3.3 Control Information Data Details 12.3.3.1 Commands Commands consist of main commands and sub-commands. F 8 7 0 R n + 0 Sub-commands Main commands Main commands: The types of DBBS main commands are as follows. 1: Search 2: PLC axis control Sub-commands: The PLC axis control sub-command is as fol[...]
-
Page 415
12. PLC Axis Control 12.3 PLC Interface - 406 - 12.3.3.2 Status The status is set by the NC to indicate the execut ion status of this functi on command and the status of the axis being controlled. F E D C B A 9 876543210 R n + 1 bit 0: busy Command processing bit 8 : oper Option error 1: den Axis movement completed 9 : 2: move Axis moving A: 3: SA [...]
-
Page 416
12. PLC Axis Control 12.3 PLC Interface - 407 - bit 8: oper Option error This bit turns ON when an attempt is made to execute PLC axis control when there is no PLC axis control option. bit E: ALM2 Axis in control alarm This bit turns ON when an alarm occurs (such as a servo alarm) during execut ion of axis control. Axis control cannot be execut ed [...]
-
Page 417
12. PLC Axis Control 12.3 PLC Interface - 408 - Timing chart (1) For rapid traverse and cutting feed mode A CT Start busy den move Speed (2) For jog feed mode A CT Start busy den mov e Speed (Note) The axis moves by jog feed only during start ON.[...]
-
Page 418
12. PLC Axis Control 12.3 PLC Interface - 409 - (3) For reference point return feed mode (3-1) Dog-type reference point return A CT Start busy den move ZP Speed (G1 mode) (Note 1) The axis moves by reference point return feed only during start ON. Turn the start OFF after confirming that the reference point has been reached. (Note 2) The first refe[...]
-
Page 419
12. PLC Axis Control 12.3 PLC Interface - 410 - (4) For handle feed mode A CT Start busy den move Handle Speed (Note) Handle feed is possible only during start ON.[...]
-
Page 420
12. PLC Axis Control 12.3 PLC Interface - 411 - (5) When the interlock signal is ON (= 1) A CT Start Interl ock busy den mov e Speed (6) When the reset signal is ON (= 1) A CT Start Reset busy den mov e Speed[...]
-
Page 421
12. PLC Axis Control 12.3 PLC Interface - 412 - (7) When the servo OFF signal is ON (= 1) A CT Start Servo OFF busy den mov e svon Speed (8) When the ACT signal is OFF (= 0) A CT Start busy den mov e Speed[...]
-
Page 422
12. PLC Axis Control 12.3 PLC Interface - 413 - (9) When the start signal ON (=1) is earlie r than the ACT signal ON (=1) (A section) (9-1) When OFF the last ACT signal OFF is earlier than a start signal OFF (B section) A CT St a r t busy den move S peed A section B section When ACT is turned OFF at the 1st time, a start signal continues being ON, [...]
-
Page 423
12. PLC Axis Control 12.3 PLC Interface - 414 - 12.3.3.3 Alarm No. The alarm Nos. of status ALM1 and ALM2 are set. F 8 7 0 ALM1 Alarm No. ALM2 Alarm No. The details of each alarm No. are shown below. (1) ALM1 (Control information data designation alarm) Alarm No. Details 01 Control signal illegal ( A si g nal other than a re g istered control si g [...]
-
Page 424
12. PLC Axis Control 12.3 PLC Interface - 415 - 12.3.3.4 Control Signals (PLC axis control information data) Control signals such as start, interlock, reset, ax is removal and axis removal 2 are designated for the PLC axis. F E D C B A 9 876543210 R n + 3 bit 0: Start bit 8: Absolute value command 1: Interlock 9: 2: Reset A: 3: Servo OFF B: 4: Axis[...]
-
Page 425
12. PLC Axis Control 12.3 PLC Interface - 416 - bit 5: Axis removal 2 The axis will execute a deceleration stop, and a servo OFF/ready OFF status will result, when the axis removal 2 signal turns ON. A servo ON/ready ON status will result for the stopped PLC axis when the axis removal 2 signal turns OFF (is canceled). A restart must be executed to [...]
-
Page 426
12. PLC Axis Control 12.3 PLC Interface - 417 - 12.3.3.5 Axis Designation The axis No. of the PLC axis is designated. R n + 4 0: 1st axis 1: 2nd axis : : 6: 7th axis 12.3.3.6 Operation Mode The operation mode for the PLC axis is designated. For example, in the handle mode, Rn+5=6 (DATA) is set. R n + 5 0: Rapid traverse (G0) 1: Cutting feed (G1) 2:[...]
-
Page 427
12. PLC Axis Control 12.3 PLC Interface - 418 - 12.3.3.7 Feedrate When the operation mode is cutting feed or jog feed (Rn + 5 = 1 to 3), the PLC axis feedrate is designated with a binary code. R n + 6 7 Designation value 1 to 1000000 mm/min. (0.1 inch/min.) (Note 1) The feedrate designated in the parameters is used for the rapid traverse mode and r[...]
-
Page 428
12. PLC Axis Control 12.3 PLC Interface - 419 - 12.3.3.9 Machine Position The machine position output to the machine system is expressed. The machine position becomes the rfp (reference point) when the reference point is reached. R n + 10 11 12.3.3.10 Remaining Distance The remaining distance of the movement data out put to the machine system is ex[...]
-
Page 429
12. PLC Axis Control 12.3 PLC Interface - 420 - 12.3.4 Reference Point Return near Point Detection Set the near point dog signal of the PLC axis refer ence point return for the following devices in the PLC. Device No. Signal name Y438 *PCD1 PLC axis Reference point return near point detection 1 Y439 *PCD2 PLC axis Reference point return near point [...]
-
Page 430
12. PLC Axis Control 12.3 PLC Interface - 421 - 12.3.5 Handle Feed Axis Selection The axis is designated for the following devices when handle feed is carried out with a PLC axis. Device No. Signal name Y42D HS1P 1st handle PLC axis valid Y42E HS2P 2nd handle PLC axis valid Y42F HS3P 3rd handle PLC axis valid When Y42D to Y42F are ON, each handle c[...]
-
Page 431
Appendix 1. Example of Faulty Circuit - 422 - Appendix 1. Example of Faulty Circuit Wrong configurations of circuits are sh own below. Co rrect the circuitry, if any. Faulty circuit producing errors Correct circuit (1) Circuit containing OR (2) Rounding circuit Y11 Y10 X4 X3 X2 X1 Whether or not the Y10 condition includ es X3, X4 and X2 is unknown.[...]
-
Page 432
Appendix 2. MELSEC QnA Series Command Lists 2.1 Sequence Commands - 423 - Appendix 2. MELSEC QnA Series Command Lists The following command lists are excerpts from the "Q nACPU Programming Manual (Common Commands)" (model name: QNACP U-P (KYOUTU) 13J522 ). In these lists, the commands "marked U " are un available for the C64 ser[...]
-
Page 433
Appendix 2. MELSEC QnA Series Command Lists 2.1 Sequence Commands - 424 - End com m ands Classifi- cation Command sign Symbol FEND FEND Program end END END Other com m ands Classifi- cation Command sign Symbol Stop STOP STOP NOP ────── NOPLF NOPLF No opera- tion PAGE PAGE n 2.2 Basic Commands Compar ison operation com m ands Classifi- c[...]
-
Page 434
Appendix 2. MELSEC QnA Series Command Lists 2.2 Basic Commands - 425 - Compar ison operation com m ands ( continued) Classifi- cation Command sign Symbol LDE ES 1 S 2 ANDE ES 1 S 2 ORE ES 1 S 2 LDE ES 1 S 2 ANDE E S1 S2 ORE ES 1 S 2 LDE ES 1 S 2 ANDE ES 1 S 2 ORE ES 1 S 2 LDE ES 1 S 2 ANDE ES 1 S 2 ORE ES 1 S 2 LDE ES 1 S 2 ANDE E S1 S2 ORE ES 1 S [...]
-
Page 435
Appendix 2. MELSEC QnA Series Command Lists 2.2 Basic Commands - 426 - Arithm etic operation c omm ands Classifi- cation Command sign Symbol + + SD +P +P SD + + S1 S2 D +P +P S1 S2 D SD P P SD S1 S2 D BIN 16-bit addition/ subtrac- tion P P S1 S2 D D+ D+ SD D+P D+P S D D+ D+ S1 S2 D D+P D+P S1 S2 D D D D S D P D SD P D D S1 S2 D BIN 32-bit addition/[...]
-
Page 436
Appendix 2. MELSEC QnA Series Command Lists 2.2 Basic Commands - 427 - Arithm etic operation co mm ands ( continued) Classifi- cation Command sign Symbol E+ E+ SD E+P E+P SD E+ E+ S1 S2 D E+P E+P S1 S2 D E E SD E P E SD P E E S1 S2 D Floating- point data addition/ subtrac- tion E P E S1 S2 D P E E S1 S2 D E P E S1 S2 D P E/ E/ S1 S2 D Floating- poi[...]
-
Page 437
Appendix 2. MELSEC QnA Series Command Lists 2.2 Basic Commands - 428 - Data transfer commands Classifi- cation Command sign Symbol MOV D MOV S 16-bit data transfer MOVP MOVP SD DMOV DMOV SD 32-bit data transfer DMOVP DMOVP SD EMOV EMOV SD Floating- point data transfer EMOVP EMOVP SD $MOV $MOV SD Charac- ter string data transfer $MOVP $MO VP SD CML [...]
-
Page 438
Appendix 2. MELSEC QnA Series Command Lists 2.3 Application Commands - 429 - 2.3 Application Commands Logical operation com m ands Classifi- cation Command sign Symbol W AND WAND SD W ANDP WANDP SD W AND WAND S1 S2 D W ANDP WANDP S1 S2 D DAND DAND SD DANDP DANDP SD DAND DAND S1 S2 D DANDP DANDP S1 S2 D BKAND BKAND n S1 S2 D AND BKANDP BKANDP n S1 S[...]
-
Page 439
Appendix 2. MELSEC QnA Series Command Lists 2.3 Application Commands - 430 - Shift com m ands Classifi- cation Command sign Symbol SFR SFR n D SFRP SFRP n D SFL SFL n D n-bit shift SFLP SFLP n D BSFR BSFR n D BSFRP BSFRP n D BSFL BSFL n D 1-bit shift BSFLP BSFLP n D DSFR DSFR n D DSFRP DSFRP n D DSFL DSFL n D 1-word shift DSFLP DSFLP n D Bit proces[...]
-
Page 440
Appendix 2. MELSEC QnA Series Command Lists 2.3 Application Commands - 431 - Data process ing com mands (continued) Classifi- cation Command sign Symbol MAX MAX n SD MAXP MAXP n SD MIN MIN n SD MIN P MI NP n SD DMAX DMAX n SD DMAX P DMAXP n SD DMIN DM IN n SD Retrieval DMINP DMINP n SD SORT n SORT S1 S2 D1 D2 S2:Num ber of dat a bloc ks to be com p[...]
-
Page 441
Appendix 2. MELSEC QnA Series Command Lists 2.4 Exclusive Commands - 432 - 2.4 Exclusive Commands Exclusive c om mands (com m unication) Classifi- cation Command sign Symbol OPEN S1 ZP.OPEN "Un" S2 D1 CLOSE S1 ZP.CLOSE "Un" S2 D1 BUFSND S1 ZP.BUFSND "Un" S2 D1 S3 BUFRCV S1 ZP.BUFRCV "Un" S2 D1 S3 D2 ERRCLR ER[...]
-
Page 442
Appendix 3. PLC Development Env i ronment using GPPQ 3.1 System Configuration at PLC Dev elopment - 433 - Appendix 3. PLC Developmen t Environment using GPPQ The system configuration and resp ective tool f unction outlines of the PLC development environment are described here, espe ci ally the function of the "MELSEC QnA Series GPP Function So[...]
-
Page 443
Appendix 3. PLC Development Env i ronment using GPPQ 3.2 Development Tool Function Outl ine - 434 - 3.2.3 GPPQ (SW2IVD/NX-GPPQ type GPP Function Software Package) The GPPQ is a programming software package (m o d el name: SW2IVD-GPPQ) for the mainstream model "QnA Series" of the Mitsubishi programmable l ogic controller MELSEC Series. The[...]
-
Page 444
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 435 - 3.3 GPPQ Function Outline and Functi ons Supported by the C64 Series The GPPQ is a programming software package (m o d el name: SW1IVD-GPPQ) for the mainstream model "QnA Series" of the Mitsubishi programmable [...]
-
Page 445
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 436 - List of general section functions (2) : Possible, r : Support not possible/not determined Mode Function Support Remarks PC name setting r PC system setting r PC file setting r Device setting r PC RAS setting r I/O assign[...]
-
Page 446
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 437 - List of general section functions (3) : Possible, r : Support not possible/not determined Mode Function Support Remarks Device comment Pointer statement Interlinear statement Note Print statement File access PC access ?[...]
-
Page 447
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 438 - 3.3.2 Function Support Conditions (on-line section) The following shows a list of GPPQ on-l i ne functio ns supported by the C64 Series. A mark indicates func tions that can currently be used by the C64 Series. An r mark[...]
-
Page 448
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 439 - List of on-line section functions (2) : Possible, r : Support not possible/not determined Mode Function Menu Detaile d function Support Remarks Stop at bit device rising edge r Stop at bit device falling edge r Stop at w[...]
-
Page 449
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 440 - List of on-line section functions (3) : Possible, r : Support not possible/not determined Mode Function Menu Detaile d function Support Remarks CPU status display RUN STOP PAUSE r STEP-RUN r Latch clear r Reset r Operati[...]
-
Page 450
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 441 - List of on-line section functions (4) : Possible, r : Support not possible/not determined Mode Function Menu Detaile d function Support Remarks Digit designation monitor display Timer/counter monitor display Double word [...]
-
Page 451
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 442 - List of on-line section functions (5) : Possible, r : Support not possible/not determined Mode Function Menu Detaile d function Support Remarks Internal RAM Fixed 10.2 Drive name selection IC memory card r Fixed 10.3 Fil[...]
-
Page 452
Appendix 3. PLC Development Env i ronment using GPPQ 3.3 GPPQ Function Outline and Functions Supp orted by the C64 Series - 443 - List of on-line section functions (6) : Possible, r : Support not possible/not determined Mode Function Menu Detaile d function Support Remarks 10.5.8 Write option For write during run 10.5.9 Key word registration r 10.5[...]
-
Page 453
Appendix 3. PLC Development Env i ronment using GPPQ 3.4 Setup Procedure - 444 - 3.4 Setup Procedure 3.4.1 Tool Setup Procedure In the C64 Series PLC development env ironment, it is assumed that the various t ools are used with an IBM PC-compatible personal computer. Prep are ea ch tool so that it is IBM PC-c ompatible. Refer to the enclosed Oper a[...]
-
Page 454
Appendix 3. PLC Development Env i ronment using GPPQ 3.5 PLC Program Development Procedure - 445 - 3.5 PLC Program Development Procedure 3.5.1 Precautions before Development Pay careful attention to the following items befo re deve loping la dder programs u si ng the GPPQ . (1) PC Type Selection The PC type must be set when newly creating pro g ram[...]
-
Page 455
Appendix 3. PLC Development Env i ronment using GPPQ 3.5 PLC Program Development Procedure - 446 - 3.5.2 Ladder Transfer to the C64 Controller The method of transferring a ladde r to the C64 cont roller with the GPPQ (especially the re st rictions and C64 characteristic operation s) is explained below. (1) Menu Selection The screen is selected from[...]
-
Page 456
Appendix 3. PLC Development Env i ronment using GPPQ 3.5 PLC Program Development Procedure - 447 - (3) Operation during a Transfer Error The ladder data is conversed to the ladder ma chine code characteri stic to the C64 controller simultaneously with the ladder transfe r from the GPPQ to the C64 controller. A conversion error will occur if devices[...]
-
Page 457
Appendix 3. PLC Development Env i ronment using GPPQ 3.5 PLC Program Development Procedure - 448 - 3.5.3 Ladder Read from the C64 Controller The method of reading a ladder from th e M600 controller to the GPPQ is explained below. (1) Menu Selection The screen is selected from the menu u sing the follo wing GPPQ b asic operation. ( GRPH ) Mode scree[...]
-
Page 458
Appendix 3. PLC Development Env i ronment using GPPQ 3.5 PLC Program Development Procedure - 449 - 3.5.4 Ladder Comparison with the C64 Controller The method of comparing the ladders b etwee n the C64 controller and GPPQ is explaine d below. (1) Menu Selection The screen is selected from the menu u sing the follo wing GPPQ b asic operation. ( GRPH [...]
-
Page 459
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 450 - 3.6 PLC-Related Data Development Procedure The development procedure is expl ained here for alarm messages, operator message s, PLC switches, etc., as PLC rel ated data. 3.6.1 PLC Related Data File Names The PLC related data is controlled and st[...]
-
Page 460
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 451 - 3.6.2 Development Procedure The general development procedure for messag e date is explained below. (1) Creation The message data is described using a gene ral text editor. The description method and forma t will be described later. (2) Conversi[...]
-
Page 461
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 452 - 3.6.3 Message Data Description Method The message data can be described as text data by a general text editor. Commercially availa ble spreadsheet software can also be used if it conforms to the following description method. (1) Description Form[...]
-
Page 462
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 453 - (2) Description Metho d The message data is described as text data by the following descrip tion format. … Setti ng area … Message area (al arm m essages) … Page break code … En d co de … M essage area (PLC sw i tch es) … Message are[...]
-
Page 463
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 454 - (3) Details of comment message The message of tool registration screen and the massage for load meter are defined in the comment message. The descri ption format of comm ent message is shown as below. ;M, Device, Device No., Message ch aracter s[...]
-
Page 464
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 455 - (c) Load meter display 34 characters The start pos ition of bar graph i s fixed at the 11th c harac ter from the left side. The value of R152 is displayed. (Binary 0 to 32767) The value of R154 is displayed. (Binary 0 to 32767) The display lengt[...]
-
Page 465
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 456 - (4) Precautions NO. of characters quantity limitations, handling of information other than settings, handli ng of information other than format. (a) Message data maxim um v alue Processing will be carried out with the values at the following max[...]
-
Page 466
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 457 - 3.6.4 Conversion to GPPQ Data "CNVQ (data conversion software pack age)" is used in the conve rsion from text data to GPPQ data. It is also possible to convert to GPPQ data from spreadsheet software instea d of text data. Refer to the [...]
-
Page 467
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 458 - (3) Commercially Available Software QnA Conversion Setting The screen is selected from the menu u sing the following CNVQ basi c operation. 1 F11 ( HOM E CLR ) Mo de Mod e sel ection m enu s c r e e n Commer c ial l y avail ab l e sof twa re QnA[...]
-
Page 468
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 459 - 3.6.5 Operation with the GPPQ Message data in the GPPQ is handled as "Integrate d interlinear statements" in the PLC program. "Integrated interlinear statements" are int erlin ear comments to help in unde rsta nding the PLC p[...]
-
Page 469
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 460 - (2) Interlinear Statement Editing The screen is selected from the menu u sing the follo wing GPPQ b asic operation. Devic e comment edit screen Step No. designation screen Interlinear statement edit screen 5 Edit A lt ( GRPH ) Menu 7 T ext c[...]
-
Page 470
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 461 - 3.6.6 Transfer to the Controller The following shows the method of transferrin g a message from the GPPQ to the CNC controll er. The transfer method is the same as that of the ladder code. Ladder cod es and message data are distinguished by thei[...]
-
Page 471
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 462 - 3.6.7 Reading and Comparing from the Controller The following describes the method of reading and comparing a m essage from the CNC controller to the GPPQ. The method of reading and compari ng is the same as that of ladder codes. Ladder codes an[...]
-
Page 472
Appendix 3. PLC Development Env i ronment using GPPQ 3.6 PLC-Related Data Dev elopment Procedure - 463 - (3) Message Data Comparison Message data compari son can be executed in the same mann er a s the ladder program, however, note that the target compared is the ladder c ode (NOP LF, END) onl y. Therefore, message data described as "Integrate[...]
-
Page 473
Appendix 3. PLC Development Env i ronment using GPPQ 3.7 Differences From The M500 PLC Dev elopment Environment - 464 - 3.7 Differences From The M500 PLC Development Environment 3.7.1 PLC Commands The command range that can be used in the MEL SEC-QnA Series PLC program differs from the command range that can be use d by the C64. Be cause of this, s[...]
-
Page 474
Appendix 3. PLC Development Env i ronment using GPPQ 3.7 Differences From The M500 PLC Dev elopment Environment - 465 - (2) Commands that the F orm at Differs from tha t of the GPPQ "Commands used by inpu tting or outputting an accumulator (A0, A1)" in the conventional M500 Series did not have A0 or A1 designated in the command. However, [...]
-
Page 475
Appendix 3. PLC Development Env i ronment using GPPQ 3.7 Differences From The M500 PLC Dev elopment Environment - 466 - (3) Commands that can be Used with the GPPQ, but cannot be Used by the C64 When commands that can not be used by the M600 are written from the GPPQ to the C64, they are rewritten to "NOP" commands. (Note that comma nd s [...]
-
Page 476
Revision History Date of revision Manual No. Revision det ails Feb. 2002 BNP-B2309A First edition cr eated. May 2004 BNP-B2309C • The section "1. GX Developer" is revised wholly . • The following commands were added in ac cordi ng to the software version D; FROM, T O, OPEN, CLOSE, BUFSND, BUFRCV , READ, SREAD, WRITE, SWRITE, RIRD, RIW[...]
-
Page 477
Notice Every effort has been made to keep up with sof tware and hardware revisions in the contents described in this manual. However , please understand that in some unavoidable cases simultaneous revision is n ot possible. Please contact your Mit subishi Electric dealer with any questions or com ment s regarding the use of this product. Duplicatio[...]
-
Page 478
BNP-B2309D(ENG) MC6/C64 008-185 (0412) MEE Specifications subject to change without notice. Printed in Japan on recycled paper. MITSUBISHI ELEC T R IC CO R PO R A T ION HEAD OFFICE : MITSUBISHI DENKI BLDG., 2-2-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN MODEL Manual No. MODEL CODE[...]