Yaskawa Ladder Works Programming Manual Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Équipement Yaskawa Ladder Works Programming Manual. Yaskawa Ladder Works Programming Manual User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 220
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Ladder Works

Ladder WorksLadder Editor Programming Manual

Page 2 - TABLE OF CONTENTS

1.4 10-MS OFF-DELAY TIMER Instructions (TOFF[10ms]) 1-5 1.4 10-MS OFF-DELAY TIMER Instruction (TOFF[10ms]) [Outline] The TOFF[10ms] is executed while

Page 3

6.1 BIT ROTATION LEFT Instruction (ROTL) 6-3 [Program Example] The data having MB00000A (bit A of MW00000) as the head address and a bit width of 10

Page 4

6.2 BIT ROTATION RIGHT Instruction (ROTR) 6-4 6.2 BIT ROTATION RIGHT Instruction (ROTR) [Outline] The ROTR instruction is used to rotate bits to the

Page 5 - Appendix

6.2 BIT ROTATION RIGHT Instruction (ROTR) 6-5 [Program Example] The data having MB00000 (bit 0 of MW00000) as the head address and a bit width of 10

Page 6 - 1 Relay Circuit Instructions

6.3 MOVE BITS Instruction (MOVB) 6-6 6.3 MOVE BITS Instruction (MOVB) [Outline] The MOVB instruction moves the designated number of bits (Width) from

Page 7

6.3 MOVE BITS Instruction (MOVB) 6-7 [Program Example] The 10 bits of data starting from MB000000 (bit 0 of MW00000) are transferred to MB000010 ( bi

Page 8

6.4 MOVE WORD Instruction (MOVW) 6-8 6.4 MOVE WORD Instruction (MOVW) [Outline] The MOVW instruction moves the designated number of words (Width) from

Page 9

6.4 MOVE WORD Instruction (MOVW) 6-9 [Program Example] The word data MW00000 to MW00009 are transferred to MW00100 to MW00109. Aftertransfer1234H2345

Page 10 - [Program Example]

6.5 EXCHANGE Instruction (XCHG) 6-10 6.5 EXCHANGE Instruction (XCHG) [Outline] The XCHG instruction is used to exchange data between data tables 1 (D

Page 11

6.5 EXCHANGE Instruction (XCHG) 6-11 [Program Example] The contents of MW00000 to MW00009 are exchanged to MW00100 to MW00109. Aftertransfer1031H103

Page 12

6.6 SET WORDS Instruction (SETW) 6-12 6.6 SET WORDS Instruction (SETW) [Outline] The SETW instruction stores the designated data (Set Data) in all re

Page 13

1.5 1-S ON-DELAY TIMER Instructions (TON[1s]) 1-6 1.5 1-S ON-DELAY TIMER Instruction (TON[1s]) [Outline] The TON[1s] times while the immediately-prec

Page 14

6.6 SET WORDS Instruction (SETW) 6-13 [Program Example] The contents of MW00100 to MW00119 are set to 0. 00000Transfer data Transfer destination0000

Page 15 - 1.9 COIL Instruction (COIL)

6.7 BYTE-TO-WORD EXPANSION Instruction (BEXTD) 6-14 6.7 BYTE-TO-WORD EXPANSION Instruction (BEXTD) [Outline] The BEXTD instruction stores the byte se

Page 16

6.7 BYTE-TO-WORD EXPANSION Instruction (BEXTD) 6-15 [Program Example] The 5 bytes beginning with MW00100 are expanded into five words beginning with

Page 17

6.8 WORD-TO-WORD COMPRESSION Instruction (BPRESS) 6-16 6.8 WORD-TO-WORD COMPRESSION Instruction (BPRESS) [Outline] The BPRESS instruction stores the

Page 18

6.8 WORD-TO-WORD COMPRESSION Instruction (BPRESS) 6-17 [Program Example] The 5 bytes beginning with MW00100 are compressed into five words beginning

Page 19

6.9 BINARY SEARCH Instruction (BSRCH) 6-18 6.9 BINARY SEARCH Instruction (BSRCH) [Outline] The BSRCH instruction uses a binary search method to searc

Page 20

6.10 SORT Instruction (SORT) 6-19 6.10 SORT Instruction (SORT) [Outline] The SORT instruction sorts data within the designated register range (Data T

Page 21

6.11 BIT SHIFT LEFT Instruction (SHFTL) 6-20 6.11 BIT SHIFT LEFT Instruction (SHFTL) [Outline] The SHFTL instruction shifts the bit sequence designat

Page 22 - [Program Example ]

6.12 BIT SHIFT RIGHT Instruction (SHFTR) 6-21 6.12 BIT SHIFT RIGHT Instruction (SHFTR) [Outline] The SHFTR instruction shifts the bit sequence design

Page 23

6.13 COPY WORD Instruction (COPYW) 6-22 6.13 COPY WORD Instruction (COPYW) [Outline] The COPYW instruction copies the designated number of words (Wid

Page 24

1.6 1-S OFF-DELAY TIMER Instructions (TOFF[1s]) 1-7 1.6 1-S OFF-DELAY TIMER Instruction (TOFF[1s]) [Outline] The TOFF[1s] times while the immediately

Page 25

6.14 BYTE SWAP Instruction (BSWAP) 6-23 6.14 BYTE SWAP Instruction (BSWAP) [Outline] The BSWAP instruction swaps the higher-place and lower-place byt

Page 26

6.14 BYTE SWAP Instruction (BSWAP) 6-24 12H13H 44H14H 54H34H 12H34H44H 13H54H 14HMW00100MW00101MW00102MW00100MW00102MW00101Upper LowerAfter swapBefore

Page 27

7 DDC Instructions 7-1 7 DDC Instructions 7.1 DEAD ZONE A Instruction (DZA)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・7-2 7.2 DEAD ZONE B Instruction (D

Page 28

7.1 DEAD ZONE A Instruction (DZA) 7-2 7.1 DEAD ZONE A Instruction (DZA) [Outline] The DZA instruction executes a dead zone operation on integer, doub

Page 29

7.1 DEAD ZONE A Instruction (DZA) 7-3 [Program Example] Integer type operation Double-length integer type operation Real number type operation

Page 30

7.2 DEAD ZONE B Instruction (DZB) 7-4 7.2 DEAD ZONE B Instruction (DZB) [Outline] The DZB instruction executes a dead zone operation on integer, doub

Page 31 - 2.8 MOD Instruction (MOD)

7.2 DEAD ZONE B Instruction (DZB) 7-5 [Program Example] Integer type operation Double-length integer type operation Real number type operation

Page 32 - 2.9 REM Instruction (REM)

7.3 UPPER/LOWER LIMIT Instruction (LIMIT) 7-6 7.3 UPPER/LOWER LIMIT Instruction (LIMIT) [Outline] The LIMIT instruction executes an upper/lower limit

Page 33 - 2.10 INC Instruction (INC)

7.3 UPPER/LOWER LIMIT Instruction (LIMIT) 7-7 [Parameter] Parameter Name Setting Input · Any integer type, double-length integer type and real numb

Page 34

7.3 UPPER/LOWER LIMIT Instruction (LIMIT) 7-8 [Program Example] Integer type operation Input (MW00100) Output (MW0010) -100 > MW00100 -00100 (un

Page 35 - 2.11 DEC Instruction (DEC)

1.7 RISING PULSE Instructions (ON – PLS) 1-8 1.7 RISING PULSE Instruction (ON – PLS) [Outline] The ON-PLS sets the value of the bit input to ON durin

Page 36

7.4 PI CONTROL Instruction (PI) 7-9 7.4 PI CONTROL Instruction (PI) [Outline] The PI instruction executes a PI control operation according to the con

Page 37

7.4 PI CONTROL Instruction (PI) 7-10 Here, the PI operation is expressed as follows: Y 1 X = Kp + Ki× Ti×S X : deviation input value Y : output val

Page 38

7.4 PI CONTROL Instruction (PI) 7-11 [Program Example] Integer type operation MW00100 to MW00111 are used for the parameter table. Real number type

Page 39

7.5 PD CONTROL Instruction (PD) 7-12 7.5 PD CONTROL Instruction (PD) [Outline] The PD instruction executes a PD control operation according to the co

Page 40

7.5 PD CONTROL Instruction (PD) 7-13 Here, the PD operation is expressed as follows: Y X = Kp + Kd×Td×S X : deviation input value Y : output value Th

Page 41

7.5 PD CONTROL Instruction (PD) 7-14 [Program Example] Integer type operation MW00100 to MW00109 are used for the parameter table. Real number intege

Page 42

7.6 PID CONTROL Instruction (PID) 7-15 7.6 PID CONTROL Instruction (PID) [Outline] The PID instruction executes a PID control operation according to

Page 43

7.6 PID CONTROL Instruction (PID) 7-16 Table of Real Type PID Instruction Parameters ADR Type Symbol Name Specification I/O 0 W RLY Relay I/O

Page 44

7.6 PID CONTROL Instruction (PID) 7-17 InputX OutputYLIMIT DB Ki Ts/Ti Z -1I LIMITZ -1+-++Kd Td/Ts +++Kp [Format] Symbol : PID Full Name : PID Co

Page 45

7.6 PID CONTROL Instruction (PID) 7-18 [Program Example] Integer type operation MW00100 to MW00115 are used for the parameter table. Real number type

Page 46

1.8 FALLING PULSE Instructions (OFF – PLS) 1-9 1.8 FALLING PULSE Instruction (OFF – PLS) [Outline] The OFF-PLS sets the value of the bit input to ON

Page 47

7.7 FIRST-ORDER LAG Instruction (LAG) 7-19 7.7 FIRST-ORDER LAG Instruction (LAG) [Outline] The LAG instruction calculates the first-order lag accordi

Page 48

7.7 FIRST-ORDER LAG Instruction (LAG) 7-20 [Format] Symbol : LAG Full Name : First Order Lag Category : DDC Icon : [Parameter] Parameter Name Set

Page 49

7.8 PHASE LEAD/LAG Instruction (LLAG) 7-21 7.8 PHASE LEAD/LAG Instruction (LLAG) [Outline] The LLAG instruction calculates the phase lead/lag accordi

Page 50

7.8 PHASE LEAD/LAG Instruction (LLAG) 7-22 [Format] Symbol : LLAG Full Name : Phase Lead Lag Category : DDC Icon : [Parameter] Parameter Name Sett

Page 51

7.9 FUNCTION GENERATOR Instruction (FGN) 7-23 7.9 FUNCTION GENERATOR Instruction (FGN) [Outline] The FGN instruction generates a function curve accor

Page 52

7.9 FUNCTION GENERATOR Instruction (FGN) 7-24 [Format] Symbol : FGN Full Name : Function Generator Category : DDC Icon : [Parameter] Parameter Name

Page 53

7.9 FUNCTION GENERATOR Instruction (FGN) 7-25 Real number type operation (number of data: N=20) #F00000 to #F00080 are used for the parameter table.

Page 54 - Instructions

7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) 7-26 7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) [Outline] The IFGN instruction generates a

Page 55 - 3.1 AND Instruction (AND)

7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) 7-27 X1 X2XX3X4Y1 Y2 Y Y3 Y4 ↑ OutPutvalue Y Input value X → [Format] Symbol : IFGN Full Name

Page 56 - 3.2 OR Instruction (OR)

7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) 7-28 #L00000 to #L00080 are used for the parameter table. Real number type operation (number of da

Page 57 - 3.3 XOR Instruction (XOR)

1.9 COIL Instruction (COIL) 1-10 1.9 COIL Instruction (COIL) [Outline] The COIL sets the value of the referenced register to 1 (ON) when the immediat

Page 58

7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) 7-29 7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) [Outline] The LAU instruction pe

Page 59

7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) 7-30 Table of Real Type LAU Instruction Parameters ADR Type Symbol Name Specification I/

Page 60

7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) 7-31 [Program Example] Integer type operation MW00100 to MW000106 are used for the parameter t

Page 61

7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) 7-32 7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) [Outline] The SLAU instruction

Page 62

7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) 7-33 BIT Symbol Name Specification I/O 0 RN Line is running "ON" is input while

Page 63

7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) 7-34 [Format] Symbol : SLAU Full Name : S-Curve Linear Accelerator Category : DDC Icon : [

Page 64

7.13 PULSE WIDTH MODULATION Instruction (PWM) 7-35 7.13 PULSE WIDTH MODULATION Instruction (PWM) [Outline] The PWM instruction converts the value of

Page 65

7.13 PULSE WIDTH MODULATION Instruction (PWM) 7-36 [Parameter] Parameter Name Setting Input · Any integer type register · Any integer type registe

Page 66

8 Table Data Manipulation Instructions 8-1 8 Table Data Manipulation Instructions 8.1 BLOCK READ Instruction (TBLBR)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・

Page 67

8.1 BLOCK READ Instruction (TBLBR) 8-2 8.1 BLOCK READ Instruction (TBLBR) [Outline] The TBLBR instruction consecutively reads file register table ele

Page 68

1.10 SET COIL Instructions (S-COIL) 1-11 1.10 SET COIL Instruction (S-COIL) [Outline] The S-COIL turns ON the output when the execution condition is

Page 69

8.1 BLOCK READ Instruction (TBLBR) 8-3 [Program Example] From the table defined as TABLE1, with DW00010 to DW00013 as a parameter table, data (elemen

Page 70 - Method of setting RSSEL

8.2 BLOCK WRITE Instruction (TBLBW) 8-4 8.2 BLOCK WRITE Instruction (TBLBW) [Outline] The TBLBW instruction writes the contents of a continuous regio

Page 71 - Method of setting MDSEL

8.2 BLOCK WRITE Instruction (TBLBW) 8-5 [Program Example] From the table defined as TABLE1, with DW00010 to DW00013 as a parameter table, area (eleme

Page 72

8.3 ROW SEARCH Instruction (TBLSRL) 8-6 8.3 ROW SEARCH Instruction (TBLSRL) [Outline] The TBLSRL instruction searches for the column element of the f

Page 73

8.3 ROW SEARCH Instruction (TBLSRL) 8-7 [Parameter] Parameter Name Setting Table Name Table name Search Data · Register address · Register addre

Page 74

8.4 COLUMN SEARCH Instruction (TBLSRC) 8-8 8.4 COLUMN SEARCH Instruction (TBLSRC) [Outline] The TBLSRC instruction searches for the row element of th

Page 75 - Instruction Sequence

8.4 COLUMN SEARCH Instruction (TBLSRC) 8-9 [Parameter] Parameter Name Setting Table Name Table name Search Data · Register address · Register ad

Page 76

8.5 BLOCK CLEAR Instruction (TBLCL) 8-10 8.5 BLOCK CLEAR Instruction (TBLCL) [Outline] The TBLCL instruction clears the data of the block element of

Page 77

8.5 BLOCK CLEAR Instruction (TBLCL) 8-11 [Program Example] The designated block in the table defined as TABLE1 is cleared using DW00010 to DW00013 as

Page 78 - Instruction Sequence 2

8.6 BLOCK MOVE Instruction (TBLMV) 8-12 8.6 BLOCK MOVE Instruction (TBLMV) [Outline] The TBLMV instruction transfers the data of the block elements o

Page 79

1.11 RESET COIL Instructions (R-COIL) 1-12 1.11 RESET COIL Instruction (R-COIL) [Outline] The R-COIL turns OFF the output when the execution conditio

Page 80

8.6 BLOCK MOVE Instruction (TBLMV) 8-13 [Parameter] Parameter Name Setting Src Table Name Table name Dest Table Name Table name Parameter · Regi

Page 81

8.7 QUEUE TABLE READ Instructions (QTBLR,QTBLRI) 8-14 8.7 QUEUE TABLE READ Instructions (QTBLR, QTBLRI) [Outline] The QTBLR/QTBLRI instruction consec

Page 82

8.7 QUEUE TABLE READ Instructions (QTBLR,QTBLRI) 8-15 [Parameter] Parameter Name Setting Table Name Table name Read Data · Register address (exce

Page 83

8.8 QUEUE TABLE WRITE Instructions (QTBLW, QTBLWI) 8-16 8.8 QUEUE TABLE WRITE Instructions (QTBLW, QTBLWI) [Outline] The QTBLW/QTBLWI instruction wri

Page 84

8.8 QUEUE TABLE WRITE Instructions (QTBLW, QTBLWI) 8-17 [Parameter] Parameter Name Setting Table Name 表名称 Write Data · Register address (except f

Page 85

8.9 QUEUE POINTER CLEAR Instructions (QTBLCL) 8-18 8.9 QUEUE POINTER CLEAR Instruction (QTBLCL) [Outline] The QTBLCL instruction returns the queue re

Page 86 - 5.2 SINE Instruction (SIN)

9 Standard System Function 9-1 9 Standard System Function 9.1 Counter Function (COUNTER)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・9-2 9.2 First-in Fi

Page 87

9.1 Counter Function (COUNTER) 9-2 9.1 Counter Function (COUNTER) [Outline] Increments or decrements the current value when the count up/down command

Page 88 - 5.3 COSINE Instruction (COS)

9.1 Counter Function (COUNTER) 9-3 The forms of parameter input and output are shown in below. Input Data Form Input Designation Description Bit inp

Page 89

9.2 First-in First-out Function (FINFOUT) 9-4 9.2 First-in First-out Function (FINFOUT) [Outline] This is a first-in first-out type block data transf

Page 90

2 Numeric Operation Instructions 2-1 2 Numeric Operation Instructions 2.1 STORE Instruction (STORE)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・2-2 2.

Page 91

9.3 Trace Function (TRACE) 9-5 9.3 Trace Function (TRACE) [Outline] Performs execution control of the traces of the trace data designated by the trac

Page 92

9.4 Data Trace Read Function (DTRC-RD) 9-6 9.4 Data Trace Read Function (DTRC-RD) [Outline] Reads out the trace data of the main controller unit and

Page 93

9.4 Data Trace Read Function (DTRC-RD) 9-7 9.4.1 Readout of Data Readout of Data is described Figure 9.1. Data Trace MemoryNumber ofread recordsOldNew

Page 94

9.4 Data Trace Read Function (DTRC-RD) 9-8 Record Length A Record is composed of the data for the selected items. Word length of 1 record = Bn 1 wor

Page 95

9.5 Failure Trace Read Function (FTRC-RD) 9-9 9.5 Failure Trace Read Function (FTRC-RD) [Outline] Reads the failure trace data and stores them in the

Page 96

9.5 Failure Trace Read Function (FTRC-RD) 9-10 9.5.1 Failure Occurrence Data Readout Failure occurrence data readout is described in figure 9.3. The

Page 97

9.5 Failure Trace Read Function (FTRC-RD) 9-11 Table 9.4 Bit Configuration No. Bit Configuration of ① Bit Configuration of ② 7 Defined flag (1 = de

Page 98

9.5 Failure Trace Read Function (FTRC-RD) 9-12 Record Configuration Record composition is shown in figure 9.9. Register Designation No.2 words1 word

Page 99

9.6 Inverter Trace Read Function (ITRC-RD) 9-13 9.6 Inverter Trace Read Function (ITRC-RD) [Outline] Reads out the trace data of the inverter and sto

Page 100

9.6 Inverter Trace Read Function (ITRC-RD) 9-14 Table 9.5 Configuration of the Inverter Trace Read Execution Status (STATUS) Name Bit Name Remarks

Page 101

2.1 STORE Instruction (STORE) 2-2 2.1 STORE Instruction (STORE) [Outline] The STORE instruction stores the contents of Source in the Dest. [Format]

Page 102

9.7 Send Message Function (MSG-SND) 9-15 9.7 Send Message Function (MSG-SND) [Outline] Sends a message to the called station which is on the line and

Page 103

9.7 Send Message Function (MSG-SND) 9-16 9.7.1 Parameters They adhere to contents-functions and so on and are collected into parameter numerical order

Page 104

9.7 Send Message Function (MSG-SND) 9-17 Status (PARAM01) Output the status of the transmission unit. Bit Assignment RESULTCOMMANDREQUESTPARAMETERF

Page 105

9.7 Send Message Function (MSG-SND) 9-18 REQUEST 1 = Request 0 = Completion of receipt report Called Station # (PARAM02) Serial 1~254 : Message is

Page 106

9.7 Send Message Function (MSG-SND) 9-19 Data Address The set contents will differ according to the function code as Table 9.10. Table 9.10 Address

Page 107

9.7 Send Message Function (MSG-SND) 9-20 0DH Discontinuous readout of holding register (expanded) 1 to 508 (1 to 01FCH) words 1 to 252 (1 to 00FCH)

Page 108

9.7 Send Message Function (MSG-SND) 9-21 9.7.2 Input EXCUTE (Send Message Execution Command) When the command becomes "ON", the message is

Page 109

9.7 Send Message Function (MSG-SND) 9-22 9.7.3 Program Example Program example is described Figure 9.11.

Page 110

9.7 Send Message Function (MSG-SND) 9-23 Figure 9.11 Program Sample

Page 111

9.8 Receive Message Function (MSG-RCV) 9-24 9.8 Receive Message Function (MSG-RCV) [Outline] Receives a message from a calling station which is on th

Page 112

TABLE OF CONTENTS 1 TABLE OF CONTENTS 1 Relay Circuit Instructions 1.1 N.O. Contact Instruction (NOC)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・1-2 1.2 N

Page 113

2.1 STORE Instruction (STORE) 2-3 [Program Example] Notes: When a double-length integer type data is stored in an integer type register, the lo

Page 114

9.8 Receive Message Function (MSG-RCV) 9-25 9.8.1 Parameters They adhere to contents-functions and so on and are collected into parameter numerical or

Page 115

9.8 Receive Message Function (MSG-RCV) 9-26 Status (PARAM01) Output the status of the transmission unit. See 5.5.1."Parameters" of "

Page 116 - 6.10 SORT Instruction (SORT)

9.8 Receive Message Function (MSG-RCV) 9-27 Input Relay Offset (PARAM09) Set the offset word address of the input relay. This is valid in the case

Page 117

9.8 Receive Message Function (MSG-RCV) 9-28 CH-NO (Channel No.) Designate the channel No. of the transmission unit. However, the channel number sho

Page 118

9.8 Receive Message Function (MSG-RCV) 9-29 9.8.4 Program Example Program example is described Figure 9.12.

Page 119

9.8 Receive Message Function (MSG-RCV) 9-30 Figure 9.12 Program Sample

Page 120

9.9 Inverter Constant Write Function (ICNS-WR) 9-31 9.9 Inverter Constant Write Function (ICNS-WR) [Outline] Writes the inverter constants. The types

Page 121

9.9 Inverter Constant Write Function (ICNS-WR) 9-32 Table 9.14 Configuration of Inverter Constant Write Execution Status (STATUS) Name Bit No. Rema

Page 122 - 7 DDC Instructions

9.9 Inverter Constant Write Function (ICNS-WR) 9-33 9.9.2 Method of Writing to an EEPROM Procedures for writing constants to an EEPROM (inverter inter

Page 123

9.9 Inverter Constant Write Function (ICNS-WR) 9-34 9.9.3 Program Example An example of a program (if MP930) that writes "200" in the consta

Page 124

2.2 ADDITION Instruction (ADD) 2-4 2.2 ADDITION Instruction (ADD) [Outline] The ADD instruction adds integer, double-length integer, and real number

Page 125

9.9 Inverter Constant Write Function (ICNS-WR) 9-35

Page 126

9.10 Inverter Constant Read Function (ICNS-RD) 9-36 9.10 Inverter Constant Read Function (ICNS-RD) [Outline] Reads the inverter constants. The types

Page 127

9.10 Inverter Constant Read Function (ICNS-RD) 9-37 Table 9.15 Configuration of Inverter Constant Read Execution Status (STASTUS) Name Bit No. Rema

Page 128

A-1 Appendix Expression Outline It is necessary to describe the conditional expression and the operational expression in IF, WHILE, and the EXPRESSI

Page 129

A-2 ・ Substitution operator = A right value is substituted for a left value ・ Reserved word true/false Value to logical expression ○ Priority leve

Page 130

A-3 in C language. The bool type variable takes only either of value of true or false. It can be used only for the logical expression. The fo

Page 131

A-4 ○ Comparison operator This operator can be used for the operand of the integer type and the real type. The register of the bit type should come

Page 132

A-5 MW00001 = MF00012 OK MB000102 = MW00010 OK MB000102 = true OK MW00010 = MB000101 NG MW00010 = true NG ○ Function The

Page 133

A-6 3. Application to ladder program The use of Expression in the ladder program is divided into three kinds of the following. ① Conditional express

Page 134

A-7 MW00003 = MW00000/50; OK MW00002 = MW00001 & 300; OK MW00010 = MW00003 – MW00002; OK MB000001 == true; NG MW00006 >= 100;

Page 135

2.2 ADDITION Instruction (ADD) 2-5 [Program Example ] Addition of integer type values Addition of real number type values Notes: In the case of

Page 136

YASKAWA ELECTRIC AMERICA, INC.Chicago-Corporate Headquarters 2121 Norman Drive South, Waukegan, IL 60085, U.S.A.Phone: (847) 887-7000 Fax: (847) 8

Page 137

2.3 EXTENDED ADDITION Instruction (ADDX) 2-6 2.3 EXTENDED ADDITION Instruction (ADDX) [Outline] The ADDX instruction adds integer values. Source B is

Page 138

2.4 SUBTRACTION Instruction (SUB) 2-7 2.4 SUBTRACTION Instruction (SUB) [Outline] The SUB instruction subtracts integer, double-length integer, and r

Page 139

2.4 SUBTRACTION Instruction (SUB) 2-8 [Program Example] Subtraction of integer type values Subtraction of real number type values Notes: In the

Page 140

2.5 EXTENDED SUBTRACTION Instruction (SUBX) 2-9 2.5 EXTENDED SUBTRACTION Instruction (SUBX) [Outline] The SUBX instruction subtracts integer values.

Page 141

2.6 MULTIPLICATION Instruction (MUL) 2-10 2.6 MULTIPLICATION Instruction (MUL) [Outline] The MUL instruction multiplies integer, double-length intege

Page 142

2.6 MULTIPLICATION Instruction (MUL) 2-11 Multiplication of double-length integer type values Multiplication of real number type values Notes: I

Page 143

2.7 DIVISION Instruction (DIV) 2-12 2.7 DIVISION Instruction (DIV) [Outline] The DIV instruction divides integer, double-length integer, and real num

Page 144

TABLE OF CONTENTS 2 3 Logical Operation/ Comparison Instructions 3.1 AND Instruction (AND)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・3-2 3.2 OR In

Page 145

2.7 DIVISION Instruction (DIV) 2-13 [Program Example] Real number type data

Page 146

2.8 MOD Instruction (MOD) 2-14 2.8 MOD Instruction (MOD) [Outline] The MOD instruction outputs the remainder of integer or double-length integer divi

Page 147

2.9 REM Instruction (REM) 2-15 2.9 REM Instruction (REM) [Outline] The REM instruction outputs the remainder of real number division to the Dest. He

Page 148

2.10 INC Instruction (INC) 2-16 2.10 INC Instruction (INC) [Outline] The INC instruction adds 1 to the designated integer or double-length integer re

Page 149

2.10 INC Instruction (INC) 2-17 Double-length integer type ⇔equivalent

Page 150

2.11 DEC Instruction (DEC) 2-18 2.11 DEC Instruction (DEC) [Outline] The DEC instruction subtracts 1 from the designated integer or double-length int

Page 151

2.11 DEC Instruction (DEC) 2-19 Double-length integer type ⇔equivalent

Page 152

2.12 ADD TIME Instruction (TMADD) 2-20 2.12 ADD TIME Instruction (TMADD) [Outline] The TMADD instruction adds one time (hours/minutes/seconds) to ano

Page 153

2.12 ADD TIME Instruction (TMADD) 2-21 [Program Example] The time data in DW0000 to DW00101 is added to the time data in MW00100 to MW00101. 8 hrs 40

Page 154

2.13 SUBTRACT TIME Instruction (TMSUB) 2-22 2.13 SUBTRACT TIME Instruction (TMSUB) [Outline] The TMSUB instruction subtracts one time (hours/minutes/

Page 155

TABLE OF CONTENTS 3 6 Data Manipulation Instructions 6.1 BIT ROTATION LEFT Instruction (ROTL)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・6-2 6.2 BIT ROTATION RIGHT

Page 156

2.13 SUBTRACT TIME Instruction (TMSUB) 2-23 [Program Example] The time data in DW0000 to DW0001 is subtracted to the time data in MW00100 to MW00101.

Page 157

2.14 SPEND TIME Instruction (SPEND) 2-24 2.14 SPEND TIME Instruction (SPEND) [Outline] The SPEND instruction subtracts one time (year/month/day/hours

Page 158

2.14 SPEND TIME Instruction (SPEND) 2-25 [Program Example] The time elapsed from the time data in MW00100 to MW00103 to the time data in DW00000 to D

Page 159 - Parameter Name Setting

2.15 SIGN INVERSION Instruction (INV) 2-26 2.15 SIGN INVERSION Instruction (INV) [Outline] The INV instruction inverts the sign of the contents of th

Page 160

2.15 SIGN INVERSION Instruction (INV) 2-27 [Program Example] Integer type data Double-length integer type data Real number type data

Page 161

2.16 1’S COMPLEMENT Instruction (COM) 2-28 2.16 1’S COMPLEMENT Instruction (COM) [Outline] The COM instruction determines the 1’s complement of the c

Page 162

2.17 ABSOLUTE VALUE CONVERSION Instruction (ABS) 2-29 2.17 ABSOLUTE VALUE CONVERSION Instruction (ABS) [Outline] The ABS instruction determines the a

Page 163

2.17 ABSOLUTE VALUE CONVERSION Instruction (ABS) 2-30 [Program Example] Integer type data Double-length integer type data Real number type data

Page 164

2.18 BINARY CONVERSION Instruction (BIN) 2-31 2.18 BINARY CONVERSION Instruction (BIN) [Outline] The BIN instruction converts a binary coded decimal

Page 165

2.19 BCD CONVERSION Instruction (BCD) 2-32 2.19 BCD CONVERSION Instruction (BCD) [Outline] The BCD instruction converts a binary value in the Source

Page 166

TABLE OF CONTENTS 4 9 STANDARD SYSTEM FUNCTION 9.1 Counter Function (COUNTER)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・9-2 9.2 First-in First-out Functi

Page 167

2.20 PARITY CONVERSION Instruction (PARITY) 2-33 2.20 PARITY CONVERSION Instruction (PARITY) [Outline] The PARITY instruction counts the number of bi

Page 168

2.21 ASCII CONVERSION Instruction ( ASCII ) 2-34 2.21 ASCII CONVERSION Instruction (ASCII) [Outline] The ASCII instruction converts the specified cha

Page 169

2.22 ASCII CONVERSION 2 Instruction (BINASC) 2-35 2.22 ASCII CONVERSION 2 Instruction (BINASC) [Outline] The BINASC instruction converts the 16-bit b

Page 170

2.22 ASCII CONVERSION 3 Instruction (ASCBIN) 2-36 2.23 ASCII CONVERSION 3 Instruction (ASCBIN) [Outline] The ASCBIN instruction converts four-digit h

Page 171

3 Logical Operation/ Comparison Instructions 3-1 3 Logical Operation/ Comparison Instructions 3.1 AND Instruction ( AND )・・・・・・・・・・・・・・・・・・・・・・・・・・・

Page 172

3.1 AND Instruction (AND) 3-2 3.1 AND Instruction (AND) [Outline] The AND instruction outputs the logical product (AND) of Source A and Source B to t

Page 173 - ADR Type

3.2 XOR Instruction (OR) 3-3 3.2 OR Instruction (OR) [Outline] The OR instruction outputs the logical sum (OR) of Source A and Source B to the Dest.

Page 174

3.3 XOR Instruction (XOR) 3-4 3.3 XOR Instruction (XOR) [Outline] The XOR instruction outputs the exclusive logical sum (XOR) of Source A and Source

Page 175

3.4 Comparison Instruction (<) 3-5 3.4 Comparison Instruction (<) [Outline] This instruction compare Source A with Source B and stores the comp

Page 176 - 9 Standard System Function

3.5 Comparison Instruction (<=) 3-6 3.5 Comparison Instruction (<=) [Outline] This instruction compare Source A with Source B and stores the co

Page 177

1 Relay Circuit Instructions 1-1 1 Relay Circuit Instructions 1.1 N.O. Contact Instruction (NOC)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・1-2 1.2 N.C

Page 178

3.6 Comparison Instruction (=) 3-7 3.6 Comparison Instruction (=) [Outline] This instruction compare Source A with Source B and stores the comparison

Page 179

3.7 Comparison Instruction (!=) 3-8 3.7 Comparison Instruction (!=) [Outline] This instruction compare Source A with Source B and stores the comparis

Page 180 - 9.3 Trace Function (TRACE)

3.8 Comparison Instruction (>=) 3-9 3.8 Comparison Instruction (>=) [Outline] This instruction compare Source A with Source B and stores the co

Page 181

3.9 Comparison Instruction (>) 3-10 3.9 Comparison Instruction (>) [Outline] This instruction compare Source A with Source B and stores the com

Page 182 - 9.4.1 Readout of Data

3.10 RANGE CHECK Instruction (RCHK) 3-11 3.10 RANGE CHECK Instruction (RCHK) [Outline] The RCHK instruction checks whether the input value in the Inp

Page 183 - ■ Number of Records

3.10 RANGE CHECK Instruction (RCHK) 3-12 [Program Example] Integer type data Input (MW00100) Output (DB000000) -1000>MW00100 OFF -1000<=MW001

Page 184

4 Program Control Instructions 4-1 4 Program Control Instructions 4.1 SUB-DRAWING CALL Instruction (SEE)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・4-2 4.2 FUN

Page 185 - Day and hour of occurrence

4.1 SUB-DRAWING CALL Instruction (SEE) 4-2 4.1 SUB-DRAWING CALL Instruction (SEE) [Outline] The SEE instruction is used to call a sub-drawing from a

Page 186

4.2 FUNCTION CALL Instruction (FUNC) 4-3 4.2 FUNCTION CALL Instruction (FUNC) [Outline] The FUNC instruction is used to call a user function or syste

Page 187

4.2 FUNCTION CALL Instruction (FUNC) 4-4 [Program Example]

Page 188

1.1 N.O. Contact Instruction (NOC) 1-2 1.1 N.O. Contact Instruction (NOC) [Outline] The NOC sets the value of the bit output to ON if the value of th

Page 189 - Name Bit Name Remarks

4.3 INPUT STRAIGHT Instruction (INS) 4-5 4.3 DIRECT INPUT STRING Instruction (INS) [Outline] The INS instruction continuously performs direct input t

Page 190

4.3 INPUT STRAIGHT Instruction (INS) 4-6 Method of setting MDSEL d:Data offset (0≦d≦7)FC840a b c d Hexadecimal: abcdHa:Input module typeb:Rack number

Page 191 - 9.7.1 Parameters

4.4 OUTPUT STRAIGHT Instruction (OUTS) 4-7 4.4 DIRECT OUTPUT STRING Instruction (OUTS) [Outline] The OUTS instruction continuously performs direct ou

Page 192 - PARAMETER

4.4 OUTPUT STRAIGHT Instruction (OUTS) 4-8 [Program Example] Two words output to LIO-01 mounted at rack 3, slot 10. Notes: Two outputs will be

Page 193 - ■ Function Code (PARAM04)

4.5 EXTENSION PROGRAM CALL Instruction (XCALL) 4-9 4.5 EXTENSION PROGRAM CALL Instruction (XCALL) [Outline] The XCALL instruction is used to call an

Page 194 - ■ Data Size (PARAM06)

4.6 WHILE Instruction (WHILE, END_WHILE) 4-10 4.6 WHILE Instruction (WHILE, END_WHILE) [Outline] Instruction between WHILE and END_WHILE is repeatedl

Page 195

4.6 WHILE Instruction (WHILE, END_WHILE) 4-11 [Program Example] The total for 100 registers, from MW00100 to MW00199, is stored in MW00200.

Page 196 - 9.7.2 Input

4.7 IF Instruction (IF, END_IF) 4-12 4.7 IF Instruction (IF, END_IF) [Outline] If the conditional expression in the IF instruction is approved, the i

Page 197 - 9.7.3 Program Example

4.8 IF Instruction (IF, ELSE, END_IF) 4-13 4.8 IF Instruction (IF, ELSE, END_IF) [Outline] If the conditional expression in the IF instruction is app

Page 198 - Figure 9.11 Program Sample

4.8 IF Instruction (IF, ELSE, END_IF) 4-14 [Program Example] MW00011 is set to 0 if MW00010 is positive number, and set to 1 if MW00010 is negative n

Page 199

1.2 N.C. Contact instruction (NCC) 1-3 1.2 N.C. Contact instruction (NCC) [Outline] The NCC sets the value of the bit output to OFF when the value of

Page 200 - 9.8.1 Parameters

4.9 FOR Instruction (FOR, END_FOR) 4-15 4.9 FOR Instruction (FOR, END_FOR) [Outline] The instruction sequence surrounded by the FOR instruction and t

Page 201 - Function Code Setting

4.9 FOR Instruction (FOR, END_FOR) 4-16 [Program Example] The high byte and low byte, form MW00100 to MW00102, are exchanged.

Page 202 - 9.8.2 Input

4.10 EXPRESSION Instruction (EXPRESSION) 4-17 4.10 EXPRESSION Instruction (EXPRESSION) [Outline] EXPRESSION instruction is composed by one block. It

Page 203 - 9.8.3 Output

5 Basic Function Instructions 5-1 5 Basic Function Instructions 5.1 SQUARE ROOT Instruction (SQRT)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・5-2 5.2 SINE I

Page 204 - 9.8.4 Program Example

5.1 SQUARE ROOT Instruction (SQRT) 5-2 5.1 SQUARE ROOT Instruction (SQRT) [Outline] The SQRT instruction calculates the square root of an integer or

Page 205 - Figure 9.12 Program Sample

5.1 SQUARE ROOT Instruction (SQRT) 5-3 [Program Example] Integer type data • When the input is a positive number • When the input is a negative numbe

Page 206

5.2 SINE Instruction (SIN) 5-4 5.2 SINE Instruction (SIN) [Outline] The SIN instruction calculates the sine of an integer or real number value as the

Page 207 - Name Bit No. Remarks

5.2 SINE Instruction (SIN) 5-5 [Program Example] Integer type data Input X = 30 degrees (MW00100 = 30*100 = 3000) Output SIN (X) = 0.50 (MW00102 = 0.

Page 208 - WRITE ENTER command

5.3 COSINE Instruction (COS) 5-6 5.3 COSINE Instruction (COS) [Outline] The COS instruction calculates the cosine of integer or real number values as

Page 209 - 9.9.3 Program Example

5.3 COSINE Instruction (COS) 5-7 [Program Example] Integer type data Input X = 60 degrees (MW00100 = 60*100 = 6000) Output COS (X) = 0.50 (MW00102 =

Page 210

1.3 10-MS ON-DELAY TIMER Instructions (TON[10ms]) 1-4 1.3 10-MS ON-DELAY TIMER Instruction (TON[10ms]) [Outline] The TON[10ms] is executed while the

Page 211

5.4 TANGENT Instruction (TAN) 5-8 5.4 TANGENT Instruction (TAN) [Outline] The TAN instruction uses the Source as the input (unit = degrees) and store

Page 212

5.5 ARC SINE Instruction (ASIN) 5-9 5.5 ARC SINE Instruction (ASIN) [Outline] The ASIN instruction uses the Source as the input and stores the arc si

Page 213

5.6 ARC COSINE Instruction (ACOS) 5-10 5.6 ARC COSINE Instruction (ACOS) [Outline] The ACOS instruction uses the Source as the input and stores the a

Page 214

5.7 ARC TANGENT Instruction (ATAN) 5-11 5.7 ARC TANGENT Instruction (ATAN) [Outline] The ATAN instruction calculates the arc tangent of integer or re

Page 215

5.7 ARC TANGENT Instruction (ATAN) 5-12 [Program Example] Integer type data Input X = 1.00 (MW00100 = 1.00*100 = 100) Output X = 45 degrees (MW00102

Page 216

5.8 EXPONENT Instruction (EXP) 5-13 5.8 EXPONENT Instruction (EXP) [Outline] The EXP instruction uses the Source as the input (x) and stores the natu

Page 217

5.9 NATURAL LOGARITHM Instruction (LN) 5-14 5.9 NATURAL LOGARITHM Instruction (LN) [Outline] The LN instruction uses the Source as the input (x) and

Page 218

5.10 COMMON LOGARITHM Instruction (LOG) 5-15 5.10 COMMON LOGARITHM Instruction (LOG) [Outline] The LOG instruction uses the Source as the input (x) a

Page 219

6 Data Manipulation Instructions 6-1 6 Data Manipulation Instructions 6.1 BIT ROTATION LEFT Instruction (ROTL)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・6-2 6.

Page 220

6.1 BIT ROTATION LEFT Instruction (ROTL) 6-2 6.1 BIT ROTATION LEFT Instruction (ROTL) [Outline] The ROTL instruction is used to rotate bits to the le

Commentaires sur ces manuels

Pas de commentaire